83 lines
2.3 KiB
HTML
83 lines
2.3 KiB
HTML
{extend name="public/base"/}
|
|
{block name="body"}
|
|
<div class="main-box clearfix">
|
|
<header class="main-box-header clearfix">
|
|
<div class="pull-left">
|
|
<ul class="nav nav-tabs">
|
|
<li >
|
|
<a href="{:url('admin/group/index')}">用户组管理</a>
|
|
</li>
|
|
<li class="active">
|
|
<a href="{:url('admin/group/access')}">权限节点</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="pull-right">
|
|
<a href="{:url('Group/addnode',array('type'=>$type))}" class="btn btn-danger">
|
|
<i class="fa fa-plus"></i>
|
|
添加节点
|
|
</a>
|
|
<!---
|
|
<a href="{:url('Group/upnode',array('type'=>$type))}" class="btn btn-danger ajax-get">
|
|
<i class="fa fa-plus"></i>
|
|
更新节点
|
|
</a>
|
|
--->
|
|
</div>
|
|
</header>
|
|
<div class="main-box-body clearfix">
|
|
<div class="tabs-wrapper">
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade in active" id="tab-home">
|
|
{if condition="empty($list)"}
|
|
<p>暂无数据!</p>
|
|
{else/}
|
|
<div class="table-responsive clearfix">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th width="30"><input class="checkbox check-all" type="checkbox"></th>
|
|
<th width="60">ID</th>
|
|
<th>类型</th>
|
|
<th>组名</th>
|
|
<th>标识</th>
|
|
<th>分组</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{volist name="list" id="item"}
|
|
<tr>
|
|
<th width="30"><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></th>
|
|
<td>{$item['id']}</td>
|
|
<td>{$item['type']==1?"URL":"主菜单"}</td>
|
|
<td>{$item['title']}</td>
|
|
<td>{$item['name']}</td>
|
|
<td>{$item['group']}</td>
|
|
<td>
|
|
{if condition="$item['status'] eq '0'"}
|
|
<span class="label label-danger">禁用</span>
|
|
{elseif condition="$item['status'] eq '1'"/}
|
|
<span class="label label-primary">启用</span>
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
<a href="{:url('Group/editnode',array('id'=>$item['id']))}">编辑</a>
|
|
<a href="{:url('Group/delnode',array('id'=>$item['id']))}" class="confirm ajax-get">删除</a>
|
|
</td>
|
|
</tr>
|
|
{/volist}
|
|
</tbody>
|
|
</table>
|
|
{$page}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block} |