<!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="<?php echo $this->basedir;?>js/datepicker.css" rel="stylesheet" type="text/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 src="<?php echo $this->basedir;?>js/ui.datepicker.js"></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");
	 /*全选*/
	 $("#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'));
		});
	});
    $('#stime').datepicker(),
	$('#etime').datepicker()
});
function setime(time){
	document.getElementById('newtime').innerHTML = time;
	if (time==1){
		window.location.reload();
	}
	setTimeout("setime("+(time-1)+")", 1000);
}
</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">当前正在点播用户列表:<span id="newtime">10</span>秒后自动刷新本页</div>
	  <form id="form2" name="form2" method="post" action="">
	  <table border="0" cellpadding="1" cellspacing="1" class="tab">
  <tr class="row">
    <td width="14%" class="align-right">时间范围：</td>
    <td width="86%"><input name="stime" type="text" class="time" id="stime" value="<?php echo $_REQUEST['stime'];?>" />
      至
        <input name="etime" type="text" class="time" id="etime" value="<?php echo $_REQUEST['etime'];?>" /></td>
  </tr>
  <tr class="row">
    <td class="align-right">用户名：</td>
    <td><input name="username" type="text" id="username" value="<?php echo $_REQUEST['username'];?>" />
      留空将不把用户名作为匹配条件</td>
  </tr>
  <tr class="row">
    <td class="align-right">&nbsp;</td>
    <td><input name="Submit" type="submit" class="btn" value="提交" /></td>
  </tr>
</table>
</form>
	  </div>
	  <div class="BlockBar">影片点播历史记录</div>
        <form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>user/playlog/">
        <table border="0" align="center" cellpadding="4" cellspacing="1" class="tab" id="ta">
          <tr class="sub">
            <td width="11%" class="align-center">编号</td>
            <td width="18%" class="align-center">用户</td>
            <td width="22%" class="align-center">点播时间</td>
            <td width="10%" class="align-center">扣点</td>
            <td width="27%" class="align-center">观看影片</td>
            <td width="12%" class="align-center"><input name="checkbox" id="checkall" type="checkbox" class="checkbox" value="checkbox" />
              全选</td>
          </tr>
		  <?php
		  if (count($this->active)>0){
		  foreach($this->active as $row){?>
          <tr class="row">
            <td class="align-center"><?php echo $row['id'];?></td>
            <td class="align-center"><?php echo $row['username'];?></td>
            <td class="align-center"><?php echo date('Y-m-d H:i:s', $row['addtime']);?></td>
            <td class="align-center"><?php echo $row['point'];?></td>
            <td class="align-center"><?php echo $row['movie'];?></td>
            <td class="align-center"><input name="id[]" type="checkbox" class="checkbox" value="<?php echo $row['id'];?>" />  <a href="<?php echo $this->installdir;?>user/actives/do/del/id/<?php echo $row['id'];?>/"></a></td>
          </tr>
		  <?php
		  }}else{
		  	echo '<tr class="row align-center" ><td colspan="6">没有找到任何记录!<a href="javascript:history.back()">您可以点击这里返回上一页</a></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 name="checkbox2" id="all" type="checkbox" class="checkbox" value="checkbox" />
	    全选
	    <input name="" type="submit" value="删除选择" class="btn" /></div>
	    </td>
	  </tr></table></form>
      </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>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

