<?php
defined('IN_BKUP') or exit('Access Denied');
include template('header');
?>
<form method="post" name="myform" >
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
      <tr>
        <td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">选中</span></div></td>
        <td width="9%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">编号</span></div></td>
        <td width="19%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">文件名</span></div></td>
        <td width="13%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">文件大小</span></div></td>
        <td width="19%" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">备份时间</span></div></td>
        <td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">卷号</span></div></td>
        <td width="24%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
<?php 
if(is_array($infos)){
	foreach($infos as $id => $info){
$id++;
?>
      <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><input type="checkbox" name="filenames[]" value="<?php echo $info['filename']; ?>"></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><?php echo $id; ?></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><a href="./data/<?php echo $info['filename']; ?>"><?php echo $info['filename']; ?></a></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><?php echo $info['filesize']; ?> M</div></td>
        <td bgcolor="#FFFFFF" class="STYLE19"><div align="center"><?php echo $info['maketime']; ?></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><?php echo $info['number']; ?></div></td>
        <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21"><a href="?action=<?php echo $action; ?>&pre=<?php echo $info['pre']; ?>&dosubmit=1">导入</a> | <a href="?action=delete&filenames=<?php echo $info['filename'];?>">删除</a> | <a href="?action=down&filename=<?php echo $info['filename']; ?>">下载</a></div></td>
      </tr>
<?php 
	}
}
?>
    </table>
&nbsp;<span class="STYLE10">
<input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check'>
全选/反选 
<input style="width:120px; height:22px; border:1px solid #CCC; background:#FFF; padding-top:3px;" type="submit" name="submit2" value=" 删除选中的备份 " onclick="document.myform.action='?action=delete'">
</span><br>
<br /></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
</tr>
</table>
</html>
