You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php require $pach . 'public/top.php';?>
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo Url('auth/role')?>">角色管理</a></li>
{if condition="checkPath('auth/roleAdd')"}
<li><a href="<?php echo Url('auth/roleAdd')?>">增加角色</a></li>
{/if}
</ul>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="30">ID</th>
<th align="left">角色名称</th>
<th align="left">角色描述</th>
<th width="50" align="left">状态</th>
<th width="160">操作</th>
</tr>
</thead>
<tbody>
<?php foreach($list as $v){?>
<tr>
<td>{$v.id}</td>
<td>{$v.name}</td>
<td>{$v.remark}</td>
<td>
<?php if($v['status']==1){ ?>
<font color="red">√</font>
<?php }else{ ?>
<font color="red"></font>
<?php } ?>
</td>
<td>
<?php if($v['id']==1){ ?>
<font color="#cccccc">权限设置</font> |
<font color="#cccccc">编辑</font> |
<font color="#cccccc">删除</font>
<?php }else{ ?>
{if condition="checkPath('auth/authorize',['id'=>$v['id']])"}
<a href="<?php echo Url('auth/authorize',['id'=>$v['id']])?>">权限设置</a> |
{/if}
{if condition="checkPath('auth/roleEdit',['id'=>$v['id']])"}
<a href="<?php echo Url('auth/roleEdit',['id'=>$v['id']])?>">编辑</a> |
{/if}
{if condition="checkPath('auth/roleDelete',['id'=>$v['id']])"}
<a class="a-post" post-msg="你确定要删除吗" post-url="<?php echo Url('auth/roleDelete',['id'=>$v['id']])?>">删除</a>
{/if}
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php require $pach . 'public/foot.php';?>