|
|
|
<extend name="Public/base" />
|
|
|
|
<block name="body">
|
|
|
|
<!-- 标题栏 -->
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<h3 class="page_title">角色权限</h3>
|
|
|
|
<p class="description_text">说明:可以设置管理账号的不同操作权限</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
<div class="fl button_list">
|
|
|
|
<a id="add-group" class="" href="{:U('createGroup')}"><span class="button_icon button_icon1"></span>新增</a>
|
|
|
|
<a url="{:U('changestatus?method=resumeGroup')}" class="ajax-post" target-form="ids" ><span class="button_icon button_icon4"></span>正常</a>
|
|
|
|
<a url="{:U('changestatus?method=forbidGroup')}" class="ajax-post" target-form="ids" ><span class="button_icon button_icon5"></span>禁用</a>
|
|
|
|
<a url="{:U('changestatus?method=deleteGroup')}" class="ajax-post confirm" target-form="ids" ><span class="button_icon button_icon2"></span>删除</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
<div class="data_list">
|
|
|
|
<table class="">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class=""><input class="check-all" type="checkbox"/></th>
|
|
|
|
<th class="">用户组</th>
|
|
|
|
<th class="">详情</th>
|
|
|
|
|
|
|
|
<th class="">授权</th>
|
|
|
|
<th class="">状态</th>
|
|
|
|
<th class="">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<notempty name="_list">
|
|
|
|
<volist name="_list" id="vo">
|
|
|
|
<tr>
|
|
|
|
<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
|
|
|
|
<td><a href="{:U('AuthManager/editgroup?id='.$vo['id'])}">{$vo.title}</a> </td>
|
|
|
|
<td>
|
|
|
|
<span>
|
|
|
|
<empty name="vo['description']">
|
|
|
|
空
|
|
|
|
<else/>
|
|
|
|
{:mb_strimwidth($vo['description'],0,60,"...","utf-8")}
|
|
|
|
</empty>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td><a href="{:U('AuthManager/access?group_name='.$vo['title'].'&group_id='.$vo['id'])}" >访问授权</a>
|
|
|
|
<a href="{:U('AuthManager/category?group_name='.$vo['title'].'&group_id='.$vo['id'])}" >分类授权</a>
|
|
|
|
<a href="{:U('AuthManager/user?group_name='.$vo['title'].'&group_id='.$vo['id'])}" >成员授权</a>
|
|
|
|
<a href="{:U('AuthManager/dataempower?group_name='.$vo['title'].'&group_id='.$vo['id'])}" >数据授权</a>
|
|
|
|
<if condition="$vo['id'] eq 11 or $vo['id'] eq 12 or $vo['id'] eq 21">
|
|
|
|
<a href="{:U('AuthManager/AuthMarketMember?group_name='.$vo['title'].'&group_id='.$vo['id'])}" >市场专员分成</a>
|
|
|
|
</if>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<eq name="vo.status" value="1"><span class="enabled_status">{:get_status_title($vo['status'])}</span>
|
|
|
|
<else /><span class="disabled_status">{:get_status_title($vo['status'])}</span></eq>
|
|
|
|
</td>
|
|
|
|
<td><eq name="vo.status" value="1">
|
|
|
|
<a href="{:U('AuthManager/changeStatus?method=forbidGroup&id='.$vo['id'])}" class="ajax-get">禁用</a>
|
|
|
|
<else/>
|
|
|
|
<a href="{:U('AuthManager/changeStatus?method=resumeGroup&id='.$vo['id'])}" class="ajax-get">正常</a>
|
|
|
|
</eq>
|
|
|
|
<a href="{:U('AuthManager/changeStatus?method=deleteGroup&id='.$vo['id'])}" class="confirm ajax-get">删除</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</volist>
|
|
|
|
<else/>
|
|
|
|
<td colspan="6" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
</notempty>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="page">
|
|
|
|
<if condition="$role_export_check eq true ">
|
|
|
|
<a class="sch-btn" href="{:U('Export/auth_manager',array_merge(array('xlsname'=>'管理_角色权限'),I('get.')))}">导出</a>
|
|
|
|
</if>
|
|
|
|
{$_page}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="common_settings">
|
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
|
<form class="addShortcutIcon">
|
|
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
|
|
<input type="hidden" name="url" value="AuthManager/index">
|
|
|
|
</form>
|
|
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
//导航高亮
|
|
|
|
highlight_subnav('{:U('AuthManager/index')}');
|
|
|
|
|
|
|
|
Think.setValue('row','{:I("row")}');
|
|
|
|
</script>
|
|
|
|
</block>
|