<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/public.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/style.css" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script src="<?php echo $this->basedir;?>js/jquery.tablednd.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function() {
     $("#ta tr").mouseover(function(){
      $(this).addClass("over");
     });
     $("#ta tr").mouseout(function(){
      $(this).removeClass("over");
     });
	 $("#ta tr:even").addClass("double");
	 $('#mostrar').click(function(){$('#sh').toggle();});
	 /*全选*/
	 $("#checkall").click(function() {
	 	$("input[@name='movid[]']").each(function() {
			$(this).attr("checked", $('#checkall').attr('checked'));
		});
	});
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      
		
		<div class="BlockBar">影片列表</div>
		<form id="form2" name="form2" method="post" action="">
		<table cellspacing="1" cellpadding="4" class="tab" id="ta">
		
          <tr class="sub align-center">
            <td width="7%" class="align-center">编号</td>
            <td width="29%" class="align-center">片名类型</td>
            <td width="11%" class="align-center">服务器</td>
            <td width="10%" class="align-center">播放器</td>
            <td width="9%" class="align-center">连载</td>
            <td width="8%" class="align-center">浏览</td>
            <td width="7%" class="align-center">状态</td>
            <td width="11%" class="align-center">添加时间</td>
            <td width="8%" class="align-center"><input name="checkbox3" type="checkbox" id="checkall" class="checkbox" value="checkbox" />&nbsp;全选</td>
          </tr>
          <?php
          if (count($this->movie)>0){
          	foreach ($this->movie as $rs){
			//print_r($rs);
			?>
			   <tr class="row">
				<td class="align-center"><?php echo $rs['movid'];?></td>
				<td><div style="float:left;padding:2px;"><img src="<?php echo $rs['pic'];?>" width="70"  /></div><div style="float:left;padding:2px;">
				片名:<a href="<?php echo $this->installdir;?>movie/modify/movid/<?php echo $rs['movid'];?>/" title="编辑"><?php echo $rs['title'];?></a><br />地区:<?php echo $rs['area'];?><br  />分类:<?php echo $this->_Movie->formatCategory($rs['category']);?><br />
				点播权:<?php echo $rs['lookgid'] ? $rs['lookgid'] : '免费';?></div></td>
				<td class="align-center"><?php echo $rs['sid'];?>号服务器</td>
				<td class="align-center"><?php echo $rs['player'];?></td>
				<td class="align-center"><?php echo $rs['serialise'];?></td>
				<td class="align-center"><?php echo $rs['click'];?></td>
				<td class="align-center"><a href="<?php echo $this->installdir;?>movie/modify/id/<?php echo $rs['movid'];?>/do/locked/"><?php echo $rs['locked'] ? '锁定中' : '启用中';?></a></td>
				<td class="align-center"><?php echo date('Y-m-d', $rs['addtime']);?></td>
				<td class="align-center" c> <input name="movid[]" type="checkbox" class="checkbox" id="movid[]" value="<?php echo $row['movid'];?>" />
			    <a href="<?php echo $this->installdir;?>movie/delete/id/<?php echo $rs['movid'];?>/" onclick="return confirm('确认删除吗')">删除 </a></td>
			  </tr>
			  <?php
          	}
          }else{
          	echo '<tr class="row align-center"><td colspan="9">没有找到任何记录!</td></tr>';
          }?>
        </table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr><td width="82%">
	  <?php echo $this->printpage;?>
	    <div class="form-handle"><input type="submit" name="Submit4" value="批量编辑" />
	      <select name="select5">
	        <option value="recmd">取消推荐</option>
	        <option value="recmded">推荐</option>
	        <option value="delmovie">删除影片</option>
	        <option value="locked">隐藏影片</option>
	        <option value="unlock">显示影片</option>
	        </select>
		    <input type="submit" name="Submit3" value="操作" />
		  </div>
	    </td>
	  </tr></table></form>
		</div><br />
		<div class="Block">
        <div class="BlockBar"><a href="#" id="mostrar"><img src="../../images/admin/ico_switch_open.gif" border="0" width="10" height="11" /></a>影片搜索</div>
        <table cellspacing="1" cellpadding="4" width="100%" class="tab" id="sh"><form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>movie/">
			   <tr class="row">
			     <td class="align-center">筛选分类：</td>
			     <td width="90%"><select name="category" id="category">
			       <option value="0">任意分类</option><?php echo $this->CategoryOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">播放器：</td>
			     <td><select name="player" id="player">
			       <option value="0">任意类型</option><?php echo $this->PlayerOption;?>
			       </select>			     </td>
	        </tr>
			<tr class="row">
			     <td class="align-center">服务器：</td>
			     <td><select name="sid" id="sid">
			       <option value="0">任意服务器</option><?php echo $this->ServerOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">地区：</td>
			     <td><select name="area" id="area">
			       <option value="0">任意地区</option><?php echo $this->AreaOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">授权：</td>
			     <td><select name="group" id="group">
			       <option value="all">任意用户</option><option value="0" <?php if ($_REQUEST['group']==0) echo 'selected="selected"';?> >免费</option><?php echo $this->GroupOption;?>
			       </select>			     </td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">状态：</td>
			     <td><select name="locked" id="locked">
			       <option value="all" <?php if ($_REQUEST['locked']== 'all') echo 'selected="selected"';?> >不限状态</option>
			       <option value="1" <?php if ($_REQUEST['locked']==1) echo 'selected="selected"';?> >隐藏中</option>
			       <option value="0" <?php if ($_REQUEST['locked']==0) echo 'selected="selected"';?>>显示中</option>
			       </select>
			     </td>
	        </tr>
			   <tr class="row">
				<td width="10%" class="align-center">搜索关键词：</td>
				<td>
			     <input name="keyword" type="text" id="keyword" value="<?php echo $_REQUEST['keyword'];?>" />				</td>
			  </tr>
			   <tr class="row">
			     <td class="align-center">匹配项目：</td>
			     <td><input name="type" type="radio" class="radio" value="title" <?php if ($_REQUEST['type'] ==0) echo 'checked';?> />
		         片名
	               <input name="type" type="radio" class="radio" value="actor" <?php if ($_REQUEST['type'] ==1) echo 'checked';?> />
	               主演	               
	               <input name="type" type="radio" class="radio" value="author" <?php if ($_REQUEST['type'] ==1) echo 'checked';?> />
	               录入员
	               <input name="checkbox" type="checkbox" class="checkbox" id="checkbox" value="0" checked="checked" />
	               模糊查找
	               <input name="checkbox" type="checkbox" class="checkbox" id="checkbox" value="1" />
	               精确查找</td>
	        </tr>
			   <tr class="row">
			     <td class="align-center">&nbsp;</td>
			     <td><input type="submit" class="btn" value=" 搜 索 " />
		         <input name="Submit2" type="button" class="btn" value=" 返 回 " />
		         <input type="button" class="btn" value=" 置顶 " onclick="window.scrollTo(0,0)" /></td>
	        </tr>
        </form>
        </table>
      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

