<{include file="index/header.html"}>  
<div class="nav"><span>权限管理</span></div> 
<div class="filter">  
	<a href="javascript:;" onclick="edit('添加模块', '?m=admin&a=func_edit<{if $smarty.get.pid}>&pid=<{$smarty.get.pid}><{/if}>')" class="add">添加功能</a> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="100">模块别名</th>
				<th width="200">名称</th>
				<th width="80">排序</th> 
				<th width="130">操作</th>
				<th width="110">添加时间</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data}>
			<{foreach item=i from=$data}>
				<tr>
					<td>
					<{if $smarty.get.pid}>
						<{$i.code}>
					<{else}>
						<a href="?m=admin&a=func&pid=<{$i.id}>" class="down"><{$i.code}></a>
					<{/if}>
					</td> 
					<td><{$i.name}></td> 
					<td><{$i.px}></td>
					<td>
						<a href="javascript:;" onclick="edit('编辑模块', '?m=admin&a=func_edit&id=<{$i.id}><{if $smarty.get.pid}>&pid=<{$smarty.get.pid}><{/if}>')" class="edit">编辑</a>
					 	<a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a> 
					</td>
					<td><{$i.addtime}></td>
					<td></td>
				</tr>
			<{/foreach}>
		<{else}>
			<tr><td colspan="6">还没有数据</td></tr>
		<{/if}>
		</tbody> 
	</table>
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete('?m=admin&a=func_del');
function edit(name,url){  
	parent.dialog(name,url,400); 
}
</script>