<?php 
	$this->display(tpl('head',true));
?>
<style>
	.layui-table thead tr th{
		text-align: center;
	}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  	<legend>分类管理</legend>
</fieldset>
<table class="layui-table" cellspacing="0" cellpadding="0" border="0"  lay-filter="demoEvent">
	<thead>
		<tr>
			<th width="40">cid</th>
			<th>名称</th>
			<th width="100">记录集</th>
			<th width="130">操作</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($data AS $row) { ?>
			
		<tr>
			<td align="center"><?php echo $row['cid'] ?></td>
			<td><?php echo $row['name'] ?></td>
			<td align="center"><?php echo $row['num'] ?></td>
			<td align="center">
				<a class="layui-btn layui-btn-sm layui-btn-warm" href="<?php echo PLUGIN_ACTION ?>category/edit/cid_<?php echo $row[cid] ?>">编辑</a>
				<a class="layui-btn layui-btn-sm layui-btn-danger" href="<?php echo PLUGIN_ACTION ?>category/del/cid_<?php echo $row[cid] ?>">删除</a>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php 
	$this->display(tpl('foot',true));
?>
