<{include file="index/header.html"}> 
<div class="nav"><span>模版管理</span></div>
<style type="text/css"> 
tbody tr td span{ padding:0 10px 0 10px;} 
</style> 
<div class="main"> 
	<table width="100%" class="ltable">
	  	<thead>
		  	<tr>
				<th>文件名称</th>  
				<th width="80">文件大小</th>
				<th width="80">操作</th>
				<th width="120">修改时间</td> 
		  	</tr>
	  	</thead>
		<tbody>
<{if $file_name || $path_name}> 
	<{if $path_name}> 
		<{foreach item=p from=$path_name}>	
			<tr>
				<td><span><img src="<{$__APP__}>public/images/icon/close_file.png"/></span><a href="#"><{$p.name}></a></td>  
				<td></td>
				<td><a href="?m=template&path=<{$p.path}>">进入目录</a></td>
				<td><{$p.time|date_format:'%Y-%m-%d %H:%M'}>'</td>
			</tr> 
		<{/foreach}>
	<{/if}>		
	<{if $file_name}>
		<{foreach item=f from=$file_name}>	
			<tr>
				<td><span><img src="<{$__APP__}>public/images/icon/file.png"/></span><a href="#"><{$f.name}></a></td>  
				<td><{$f.size}></td>
				<td><a href="?m=template&a=edit&path=<{$f.path}>">编辑</a></td>
				<td><{$f.time|date_format:'%Y-%m-%d %H:%M'}>'</td>
			</tr>
		<{/foreach}>
	<{/if}>
<{else}>
	  	<tr><td colspan="4">没有数据</td></tr>
<{/if}>
		</tbody> 
	</table> 
</div>
<{include file="index/footer.html"}> 
