test
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.
 
 
 
 
 
 

82 lines
4.5 KiB

{php include wl_template('common/header');}
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">管理员列表</a></li>
</ul>
<div class="app-content">
<div class="app-filter">
<div class="filter-action">
<div class="bs-callout bs-callout-danger" id="callout-glyphicons-empty-only">
<h4>员工登录地址</h4>
<p><a href='javascript:;' class="js-clip" title='点击复制链接' data-url="{$loginUrl}" >{$loginUrl}</a></p>
</div>
</div>
<div class="filter-action">
<a href="{php echo web_url('agentset/agentSetStaff/adminedit')}" class="btn btn-primary">添加管理员</a>
</div>
</div>
<div class="app-table-list">
<div class="panel panel-default">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr class="text-center">
<th width="10%">id</th>
<th width="30%">管理员名称</th>
<th width="20%">通知权限(点击编辑)</th>
<!-- <th width="20%">审核权限(点击修改)</th>-->
<th width="20%">操作</th>
</tr>
</thead>
<tbody>
{loop $tags $tag}
<tr>
<td>{$tag['id']}</td>
<td>{$tag['nickname']}</td>
<td>
<span class="change">
<span style="float: left;" class='label {if $tag['notice']==1}label label-primary {else}label-default{/if}'
data-toggle='ajaxSwitch'
data-switch-value='{$tag['notice']}'
data-switch-value0='0|无|label label-default|{php echo web_url('agentset/agentSetStaff/changeadmin',array('type'=>1,'value'=>1,'id'=>$tag['id']))}'
data-switch-value1='1|有|label label-primary|{php echo web_url('agentset/agentSetStaff/changeadmin',array('type'=>1,'value'=>0,'id'=>$tag['id']))}'>
{if $tag['notice']==1}有{else}无{/if}
</span>
</span>
</td>
<!-- <td>-->
<!-- <span class="change">-->
<!-- <span style="float: left;" class='label {if $tag['manage']==1}label label-primary {else}label-default{/if}'-->
<!-- data-toggle='ajaxSwitch'-->
<!-- data-switch-value='{$tag['manage']}'-->
<!-- data-switch-value0='0|无|label label-default|{php echo web_url('agentset/agentSetStaff/changeadmin',array('type'=>2,'value'=>1,'id'=>$tag['id']))}'-->
<!-- data-switch-value1='1|有|label label-primary|{php echo web_url('agentset/agentSetStaff/changeadmin',array('type'=>2,'value'=>0,'id'=>$tag['id']))}'>-->
<!-- {if $tag['manage']==1}有{else}无{/if}-->
<!-- </span>-->
<!-- </span>-->
<!-- </td>-->
<td>
<a href="{php echo web_url('agentset/agentSetStaff/adminedit',array('id'=>$tag['id']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" title="修改"><i class="fa fa-edit"></i></a>
<a data-toggle="ajaxRemove" href="{php echo web_url('agentset/agentSetStaff/changeadmin',array('type'=>3,'id'=>$tag['id']));}" data-confirm='确认删除此管理员?' class="btn btn-default btn-sm" ><i class="fa fa-times"></i></a>
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div class="app-table-foot clearfix">
<div class="pull-left">
</div>
<div class="pull-right">
{$pager}
</div>
</div>
</div>
</div>
</div>
<style>
.change:hover{
cursor:pointer;
}
</style>
{php include wl_template('common/footer');}