Thinkphp文件管理器

浏览:6221 发布日期:2017/02/07 分类:功能实现 关键字: php
代码请下载,如果有使用问题,请到http://www.daimasucai.com/topic发表意见。

<table>

<thead>

<tr>

<th class="row-selected row-selected">

<input class="check-all" type="checkbox"></th>

<th>文件夹/文件名</th>

<th>文件类型</th>

<th>文件权限</th>

<th>文件大小</th>

<th>修改时间</th>

<th>相关操作</th></tr>

</tr>

</thead>

<tbody>

<volist name="list" id="vo">

<tr>

<td>{$i}</td>

<td>{$vo.filename}</td>

<td>{$vo.type}</td>

<td>

<if condition='$vo.is_readable==true'>

<font color='green'>可读</font>

<else/>

<font color='red'>不可读</font></if>

<if condition='$vo.is_writeable==true'>

<font color='green'>可写</font>

<else/>

<font color='red'>不可写</font></if>

</td>

<td>{$vo.filesize}</td>

<td>{$vo.mtime|date='Y-m-d H:i:s',###}</td>

<td>

<a href='javascript:' target="_blank">下载</a>  

<eq name="vo.type" value="dir">

<a href="

{:U('FileManage/index',array('dir'=>$vo['nowdir']))}">浏览</a>

</if>  

<else />        </eq>

<a id="box" onclick="ajax('{:U('FileManage/rename?dir=')}{$vo.nowdir}')" href="javascript:">重命名</a>  

<a href='javascript:' onclick="jconfirm('file_{$i}','确定删除文件夹{$vo.filename}?','{:U('FileManage/del?dir=')}{$vo.nowdir}')">删除</a></td>

</tr>

</volist>

</tbody>

</table>

附件 Thinkphp文件管理器.zip ( 4.08 KB 下载:531 次 )

评论( 相关
后面还有条评论,点击查看>>