<?php require_once("admin_public.php");?>
<div class="admin_bread">当前位置：举报管理</div>
<div class="admin_right">
  <div class="admin_main">
    <form action="result.php" method="post" name="files_form" class="admin_info_form files_form" onsubmit="return check_delbtn(select);">
      <div class="admin_info" id="info_a">
        <h4 class="h1">举报管理</h4>
        <div class="admin_table">
          <table width="100%">
            <thead>
              <tr>
                <td style="width:4%;"><input type="checkbox" name="chkAll" id="chkAll" onclick="return CheckAll(this.form)" title="全选" /></td>
                <td style="width:12%;">文件ID</td>
                <td style="width:32%;">文件名</td>
                <td style="width:4%;">锁定</td>
                <td style="width:7%;">文件MIME</td>
                <td style="width:7%;">文件字节</td>
                <td style="width:12%;">上传时间</td>
                <td style="width:12%;">举报时间</td>
                <td style="width:8%;">下载次数</td>
              </tr>
            </thead>

            <?php 
			$result=report();
			while($report=mysql_fetch_array($result))
			{
			?>
            <tr>
              <td><input type="checkbox" name="select[]" class="checkbox" value="<?php echo $report['id'];?>" /></td>
              <td><?php echo $report['id'];?></td>
              <td><a href="file_view.php?id=<?php echo $report['id'];?>" title="<?php echo $report['name'];?>" target="_blank"><?php echo $report['name'];?></a> <a href="report_view.php?id=<?php echo $report['id'];?>" title="<?php echo $report['reason'];?>" style="color:#F60;" target="_blank">查看理由</a></td>
              <td><?php if($report['locked']=='0'){echo "否";}else{echo "<span style='color:red;'>是</span>";};?></td>
              <td><?php echo $report['type'];?></td>
              <td><?php echo size_info($report['size']);?></td>
              <td><?php echo date('Y.m.d H:s',$report['up']);?></td>
              <td><?php echo date('Y.m.d H:s',$report['date']);?></td>
              <td><?php echo $report['down'];?>次</td>
            </tr>
            <?php
			}
			?>
          </table>
        </div>
      </div>
      <div class="page_box">
      <input type="submit" value="删除所选" name="files_del" class="submit_del" onclick="return window.confirm(' 确定删除全部所选吗？');"/>
      <input type="submit" value="还原所选" name="report_del" class="submit_del"  onclick="return window.confirm(' 确定还原全部所选吗？');"/>
      <input type="submit" value="锁定所选" name="report_lock" class="submit_del"  onclick="return window.confirm(' 确定锁定全部所选吗？');"/>
      <input type="submit" value="解除锁定" name="report_lock_free" class="submit_del"  onclick="return window.confirm(' 确定解除全部所选吗？');"/>
      <?php echo pages('report.php','report');?>  
    </div>
    </form >
  </div>
</div>
<?php require_once("admin_footer.php");?>