{extend name="../../admin/view/public/system"} {block name='title'}角色管理-系统管理{/block} {block name='content'}
当前位置：角色管理
添加新角色
{if count($list)>0}

| 角色名称 | 上级角色 | 员工数量 | 状态 | 操作
--- | --- | --- | --- | --- | ---
{foreach $list as $key => $row}
| {for start="1" end=$row['level']} {/for} {if $row['level'] > 0}├─ {/if} {$row['rolename']} | {$row['parent_rolename']} | {$row['usercount']} | 'status','value'=>1,'id'=>$row['id']))}' data-switch-value1='1|启用|label label-primary|{:webUrl('perm/roleChange',array('type' => 'status','value'=>0,'id'=>$row['id']))}' > {if $row['status']==1}启用{else}禁用{/if} |
{/foreach}
| {$pager | raw}

{else}
暂时没有任何角色!
{/if}
{/block}