<{include file="index/header.html"}> 
<div class="nav"><span>分类列表</span></div>
<div class="filter">
	<a href="javascript:;" onClick="edit_cats('分类添加','?m=article&a=category_edit');" class="add">分类添加</a> 
</div>
<div class="main">
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="300">分类</th> 
				<th width="80">排序</th>
				<th width="80">状态</th>
				<th width="120">操作</th>
				<th width="120">时间</th>
				<th></th> 
		  	</tr>
	  	</thead> 
		<{if $data}> 
		<tbody>
			<{foreach item=i from=$data}>
				<tr>  
					<td><{$i.name}></td> 
					<td><{$i.px}></td>
					<td><{if $i.status == '1'}>正常<{else}><span style="color:#FF0000;">关闭</span><{/if}></td>
					<td>
						<a href="javascript:;" onClick="edit_cats('修改分类','?m=article&a=category_edit&cid=<{$i.cid}>');" class="edit">修改</a>	
						<a href="javascript:;" data-id="<{$i.cid}>" class="del">删除</a>
					</td>
					<td><{$i.addtime}></td>
					<td></td>
				</tr>
			<{/foreach}>
		</tbody> 
		<{else}>
			<{if $data.page}><tr><td colspan="6"><div class="nomsg">还没有数据，赶快添加吧！</div></td></tr><{/if}>
		<{/if}> 
	</table> 
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete('?m=article&a=category_del');
function edit_cats(name,url){
	parent.dialog(name, url, 500, 250); 
} 
</script>