<{include file="index/header.html"}>
<div class="nav"><span>友情链接</span></div>
<div class="filter">
	<a href="javascript:;" onClick="edit_link('添加链接','?m=ad&a=link_edit')" class="add">添加链接</a>
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="120">名称</td> 
				<th width="320">域名</td> 
				<th width="50">排序</td>
				<th width="50">状态</td>
				<th width="130">管理</td>
				<th width="110">添加时间</td>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data}>
			<{foreach item=i from=$data}>
				<tr> 
					<td><{$i.name}></td>  
					<td><{$i.link}></td>  
					<td><{$i.px}></td> 
					<td><{if $i.status == '1'}>正常<{else}>关闭<{/if}></td> 
					<td>
						<a href="javascript:;" onClick="edit_link('修改链接','?m=ad&a=link_edit&id=<{$i.id}>')" class="edit">修改</a>
						<a href="?m=ad&a=link_del&id=<{$i.id}>" class="del">删除</a>
					</td>
					<td><{$i.addtime}></td>
					<td></td>
				</tr>
			<{/foreach}>
		<{else}>
	  		<tr><td colspan="7">还没有数据，赶快添加吧！</td></tr>
		<{/if}>
		</tbody> 
	</table> 
</div>
<{include file="index/footer.html"}>
<script type="text/javascript">
function edit_link(name,url){  
	parent.dialog(name,url); 
}
</script>