<input type="hidden" name="boxchecked" value="0">
<input type="hidden" name="current-path" value="<?=@$targPath?>">
<table class="filelist" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr>
      <td width="5%">&nbsp;</td>
      <td colspan="8"><?=html::anchor(BASEURI."file_manager/index/".base64_encode(dirname($targPath)),"上级目录");?></td>
    </tr>
    <?php foreach($paths as $tmp){if(!@$a){$a=1;}?>
    <?php 	if($tmp['type']=="dir"){?>
    <tr>
      <td width="5%">&nbsp;</td>
      <td width="5%"><?=$a++?></td>
      <td width="25%"><?=html::anchor(BASEURI."file_manager/index/".base64_encode($tmp['path']),$tmp['file_name']);?></td>
      <td width="15%"><?=dirname($tmp['path'])?></td>
      <td width="5%">&nbsp;</td>
      <td width="15%">&nbsp;</td>
      <td width="5%">目录</td>
      <td width="5%">&nbsp;</td>
      <td width="15%"><?=html::anchor(BASEURI.'','编辑')?>
        <?=html::anchor(BASEURI.'file_manager/delete/'.base64_encode($tmp['path'])."/".base64_encode($targPath),'删除',array("onclick"=>"return confirm('是否要删除目录')"))?>
      </td>
    </tr>
    <?php }?>
    <?php }?>
    <?php foreach($paths as $tmp){if(!@$a){$a=1;}?>
    <?php 	if($tmp['type']=="file"){?>
    <tr>
      <td width="5%"><input type="checkbox" name="select[]" id="cb<?=$a?>" value="<?=$tmp['path']?>" class="filepath"></td>
      <td width="5%"><?=$a++?></td>
      <td width="25%"><?=$tmp['file_name']?></td>
      <td width="15%"><?=dirname($tmp['path'])?></td>
      <td width="5%"><?=$tmp['ext']?></td>
      <td width="15%"><?=$tmp['filemtime']?></td>
      <td width="5%">文件</td>
      <td style="text-align:right;" width="10%"><?=$tmp['file_size']?>
        KB</td>
      <td width="15%"><?=html::anchor(BASEURI.'','编辑')?>
        <?=html::anchor(BASEURI.'file_manager/delete/'.base64_encode($tmp['path'])."/".base64_encode($targPath),'删除',array("onclick"=>"return confirm('是否要删除文件')"))?>
        <?=html::anchor(BASEURI.'#','选择',array("onclick"=>"selectuse('".$tmp['path']."')"))?>
        <?php if($tmp['is_image']){?>&nbsp;&nbsp;[<a thumb="<?=BASEURL.path::getThumb($tmp['path'])?>"  href="<?=BASEURI.$tmp['path']?>" target="_blank" class="preview">图片</a>]<?php }?>
      </td>
    </tr>
    <?php }?>
    <?php }?>
  </tbody>
</table>
