You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.3 KiB
HTML
137 lines
4.3 KiB
HTML
5 years ago
|
<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 class="" href="{:U('add')}"><span class="button_icon button_icon1"></span>新增</a>
|
||
|
</div>
|
||
|
|
||
|
<!-- 高级搜索 -->
|
||
|
<div class="fl cf search_list jssearch">
|
||
|
<div class="input-list search-title-box">
|
||
|
<label>搜索:</label>
|
||
|
</div>
|
||
|
<div class="sleft">
|
||
|
<input type="text" name="nickname" class="" value="{:I('nickname')}" placeholder="管理员账号">
|
||
|
</div>
|
||
|
<div class="sleft">
|
||
|
<select name="status">
|
||
|
<option value="">状态</option>
|
||
|
<option value="1">正常</option>
|
||
|
<option value="0">{:L('Lock')}</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="sleft">
|
||
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('index',array('row'=>I('row')))}">搜索</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 数据列表 -->
|
||
|
<div class="data_list">
|
||
|
<table class="">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
|
||
|
<th class="">账号ID</th>
|
||
|
<th class="">管理员账号</th>
|
||
|
<th class="">角色类型</th>
|
||
|
<th class="">登录次数</th>
|
||
|
<th class="">最后登录时间</th>
|
||
|
<th class="">最后登录IP</th>
|
||
|
<th class="">状态</th>
|
||
|
<th class="" style="width:8%;min-width:110px;">操作</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<notempty name="_list">
|
||
|
<volist name="_list" id="vo">
|
||
|
<tr>
|
||
|
<td>{$vo.uid} </td>
|
||
|
<td>{$vo.nickname}</td>
|
||
|
<td>
|
||
|
{:get_auth_group_name($vo['uid'])}
|
||
|
</td>
|
||
|
<td>{$vo.login}</td>
|
||
|
<td><span>{$vo.last_login_time|time_format0}</span></td>
|
||
|
<td><span>{:long2ip($vo['last_login_ip'])}</span></td>
|
||
|
<td>
|
||
|
<eq name="vo.status" value="1">
|
||
|
{:get_status_title($vo['status'])}
|
||
|
<else/>
|
||
|
<span style="color:#ff0000">{:get_status_title($vo['status'])}</span>
|
||
|
</eq>
|
||
|
</td>
|
||
|
|
||
|
<td><a href="{:U('User/edit?id='.$vo['uid'])}" class="">编辑</a>
|
||
|
<eq name="vo.status" value="1">
|
||
|
<a href="{:U('User/changeUserStatus?method=forbidUser&id='.$vo['uid'])}" class="ajax-get ">{:L('Lock')}</a>
|
||
|
<else/>
|
||
|
<a href="{:U('User/changeUserStatus?method=resumeUser&id='.$vo['uid'])}" class="ajax-get ">解锁</a>
|
||
|
</eq>
|
||
|
<a href="{:U('User/delete',['id'=>$vo['uid']])}" class="confirm ajax-get">删除</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</volist>
|
||
|
<else/>
|
||
|
<td colspan="9" class="text-center">aOh! 暂时还没有内容!</td>
|
||
|
</notempty>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="page">
|
||
|
<a class="sch-btn" href="{:U('Export/manager_list',array_merge(['xlsname'=>'管理_管理员列表'],I('get.')))}">导出</a>
|
||
|
{$_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="User/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 src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
Think.setValue('status',"{:I('status')}");
|
||
|
Think.setValue('row',"{:I('row',10)}");
|
||
|
//搜索功能
|
||
|
$("#search").click(function(){
|
||
|
var url = $(this).attr('url');
|
||
|
var query = $('.jssearch').find('input').serialize();
|
||
|
query += "&"+$('.jssearch').find('select').serialize();
|
||
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
||
|
query = query.replace(/^&/g,'');
|
||
|
if( url.indexOf('?')>0 ){
|
||
|
url += '&' + query;
|
||
|
}else{
|
||
|
url += '?' + query;
|
||
|
}
|
||
|
window.location.href = url;
|
||
|
});
|
||
|
//回车搜索
|
||
|
$(".search-input").keyup(function(e){
|
||
|
if(e.keyCode === 13){
|
||
|
$("#search").click();
|
||
|
return false;
|
||
|
}
|
||
|
});
|
||
|
//导航高亮
|
||
|
highlight_subnav('{:U('User/index')}');
|
||
|
</script>
|
||
|
</block>
|