{include file="head.html"}
<div id="maincontent">
  <div class="wrap">
    <div class="crumbs"> <a href="__APP__/index/home">{lang='扩展'}</a> <a href="__URL__">{lang='上传管理'}</a> </div>
    <hr />
    <br />
    <form action="__URL__/del_all" method="post" target="_self" id="batch" name="batch" >
      <table class="list_table table_style">
        <thead>
          <tr>
            <th width="5%"><div align="center">
                <input  type="checkbox" id="checkall" onclick = "selectAll('id[]');" />
              </div></th>
            <th width="10%"><div align="center">ID</div></th>
            <th width="45%"><div align="center">{lang='文件'}</div></th>
            <th width="20%"><div align="center">{lang='上传时间'}</div></th>
            <th width="20%"><div align="center">{lang='管理操作'}</div></th>
          </tr>
        </thead>
        <?php if(is_array($list)) foreach ($list as $vo) { ?>
        <tr id="del_{$vo['id']}">
          <td align="center"><input name="id[]" type="checkbox" id="id[]" value="{$vo['id']}" ></td>
          <td align="center">{$vo['id']}</td>
          <td align="left"><a href="{$vo['file']}" target="_blank">{$vo['file']}</a></td>
          <td align="center"><?php echo date('Y-m-d H:i:s',$vo['time']) ?></td>
          <td align="center"><a onclick="del('__URL__/del-{$vo['id']}','{lang='确认要删除该文件吗？'}','{lang='操作提示'}',this)" href="javascript:void(0)">{lang='删除'}</a></td>
        </tr>
        <?php } ?>
      </table>
      <div>
        <div style="float:left;margin-top:10px;">
          <div style="float:left">
            <select name="mode" id="mode">
              <option value="1">{lang='批量删除'}</option>
            </select>
          </div>
          <div style="float:left"> <a class="nextPage" href="javascript:document.forms['batch'].submit()">{lang='执行'}</a> </div>
        </div>
        <div style="float:right; margin-top:10px;" id="page">{$page}</div>
      </div>
    </form>
  </div>
</div>
<script language="javascript">
function selectAll(name){   
    $("[name='"+name+"']").each(function(){//反选   
    if($(this).attr("checked")){   
          $(this).removeAttr("checked");   
    }else{   
          $(this).attr("checked",'true');   
    }   
    })  
}
</script>
</body></html>