{extend name="public/base" /}
{block name="title"}角色管理{/block}

{block name="content"}
<h2 class="sub-header">角色管理</h2>[ <a href="/admin/adminrole/add">添加角色</a> ]<br><br>

<form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
<thead><tr>
<th>ID</th>
<th>角色名称</th>
<th>角色描述</th>
<th>状态</th>
<th>管理</th>
</tr></thead>
<tbody>
<?php if($posts){foreach($posts as $row){ ?><tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['des']; ?></td>
<td><?php if($row['status']==0){echo '启用';}else{echo '禁用';} ?></td>
<td><?php if($row['id']<>1){ ?><a href="/admin/adminrole/permissions?id=<?php echo $row['id']; ?>">权限设置</a> | <?php } ?><a href="/admin/adminrole/edit?id=<?php echo $row['id']; ?>">修改</a><?php if($row['id']<>1){ ?> | <a onclick="delconfirm('/admin/adminrole/del?id=<?php echo $row['id']; ?>')" href="javascript:;">删除</a><?php } ?></td>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

<div class="backpages">{$page}</div>
{/block}