<!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>vodcms.com</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='id[]']").each(function() {
			$(this).attr("checked", $('#checkall').attr('checked'));
		});
	});
	 $("#all").click(function() {
	 	$("input[@name='id[]']").each(function() {
			$(this).attr("checked", $('#all').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="Block">
        <div class="BlockBar">系统节目评论</div>
		<form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>comments/post/">
        <table cellspacing="1" cellpadding="4" class="tab">
		
			   <tr class="sub align-center">
			     <td class="align-center">编号</td>
			     <td width="15%">评论人</td>
	             <td width="14%">影片</td>
	             <td width="16%">发布时间</td>
	             <td width="32%">评论内容</td>
	             <td width="14%"><label>
	               <input name="checkall" type="checkbox" class="checkbox" id="checkall" value="checkbox" />
	             </label>
                 全选/反选</td>
		    </tr>
			<?php
			if (count($this->connets)>0){
			foreach($this->connets as $row){?>
			   <tr class="row">
				<td width="9%" class="align-center"><?php echo $row['id'];?></td>
				<td class="align-center"><?php echo $row['username'];?></td>
			    <td class="align-center"><?php echo $row['movie'];?></td>
			    <td class="align-center"><?php echo date('Y-m-d H:i:s', $row['addtime']);?></td>
			    <td class="align-center"><?php echo $row['content'];?></td>
			    <td class="align-center"><label>
			      <input name="id[]" type="checkbox" class="checkbox" id="id[]" value="<?php echo $row['id'];?>" />
			    </label>
		          <a href="<?php echo $this->installdir;?>comments/delete/id/<?php echo $row['id'];?>" onclick="return confirm('确认删除吗?')">删除</a> <?php if($row['locked'] == 1){?><a href="<?php echo $this->installdir;?>comments/locked/id/<?php echo $row['id'];?>">待审核</a><?php }?></td>
		      </tr>
			<?php }
			}
			else{
			}?>
        
        </table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr><td width="82%">
	  <?php echo $this->printpage;?>
	    <div class="form-handle">
	      <label>
	      <input name="all" type="checkbox" class="checkbox" id="all" value="checkbox" />
	      全选
	      </label>
	      <select name="post" id="post">
	        <option value="locked">审核评论</option>
	        <option value="delete">批量删除</option>
	        </select>
		    <input type="submit" name="Submit3" value="操作" />
		  </div>
	    </td>
	  </tr></table></form>
      </div>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

