<{include file="index/header.html"}> 
<div class="nav"><span>文章列表</span></div> 
<div class="filter">
	<a href="?m=article&a=edit" class="add">添加文章</a>
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th>  
				<th width="100">分类</th>
				<th width="500">标题</td> 
				<th width="60">浏览</th>
				<th width="60">喜欢</th> 
				<th width="120">操作</th> 
				<th width="120">时间</th>
				<th></th>
		  	</tr>
	  	</thead> 
		<tbody>
		<{if $data.list}>		
			<{foreach item=i from=$data.list}>
				<tr>
					<td><input name="key_id[]" type="checkbox" value="<{$i.id}>" class="checked_list"/></td>
					<td><a href="?m=article&a=index&cid=<{$i.cid}>"><{$i.cname}></a></td>
					<td><a href="index.php?m=article&a=show&id=<{$i.id}>" target="_blank"><{$i.title}></a></td> 
					<td><{$i.click}></td>
					<td><{$i.like}></td> 
					<td>
						<a href="?m=article&a=edit&id=<{$i.id}>" class="edit">编辑</a>
						<a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a>
					</td>
					<td><{$i.addtime}></td>
					<td></td>
				</tr>
			<{/foreach}>
		<{else}> 
			<td colspan="7"><div class="nomsg">还没有数据，赶快添加吧！</div></td>
		<{/if}>
		</tbody>
	</table>
	<{if $data.page}><div class="page"><{$data.page}></div><{/if}> 
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete('?m=article&a=del', '.del_ck'); 
</script>