288 lines
13 KiB
HTML
288 lines
13 KiB
HTML
{include file="public/layout" /}
|
||
|
||
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
|
||
<div id="append_parent"></div>
|
||
<div id="ajaxwaitid"></div>
|
||
<div class="page">
|
||
<div class="flexigrid">
|
||
|
||
<div class="mDiv">
|
||
<div class="ftitle">
|
||
<div class="member-nav-group">
|
||
{eq name="'Project@users_index'|is_check_access" value="1"}
|
||
<label class="member-nav-item">
|
||
<input type="button" class="btn {if condition="!in_array($Request.action, ['users_index','users_add','users_edit'])"}current{else/}selected{/if}" value="应用管理" onclick="window.location.href='{:url("Project/users_index")}';">
|
||
</label>
|
||
{/eq}
|
||
{eq name="'Project@level_index'|is_check_access" value="1"}
|
||
<label class="member-nav-item">
|
||
<input type="button" class="btn {if condition="!in_array($Request.action, ['level_index','level_add','level_edit'])"}current{else/}selected{/if}" value="服务商管理" onclick="window.location.href='{:url("Project/level_index")}';">
|
||
</label>
|
||
{/eq}
|
||
{eq name="'Project@password_index'|is_check_access" value="1"}
|
||
<label class="member-nav-item">
|
||
<input type="button" class="btn {if condition="!in_array($Request.action, ['password_index','password_add','password_edit'])"}current{else/}selected{/if}" value="查询密码" onclick="window.location.href='{:url("Project/password_index")}';">
|
||
</label>
|
||
{/eq}
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<form class="navbar-form form-inline" id="searchForm" action="{:url('Project/level_index')}" method="get" onsubmit="layer_loading('正在处理');">
|
||
{$searchform.hidden|default=''}
|
||
<div class="sDiv">
|
||
<div class="sDiv2 fl" style="margin-right: 6px;">
|
||
<input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="搜索个人/企业/服务中心...">
|
||
<input type="submit" class="btn" value="搜索">
|
||
<i class="fa fa-search"></i>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="ftitle">
|
||
<div class="fbutton">
|
||
<a href="javascript:void(0);" data-href="{:url('Project/edit')}" onclick="openFullframe(this, '新增项目', '100%', '100%');">
|
||
<div class="add">
|
||
<span><i class="layui-icon layui-icon-addition"></i>新增服务商</span>
|
||
</div>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="hDiv">
|
||
<div class="hDivBox">
|
||
<table cellspacing="0" cellpadding="0" style="width: 100%">
|
||
<thead>
|
||
<tr>
|
||
<th abbr="article_title" axis="col3" style="width: 8%">
|
||
<div class="tc">证书</div>
|
||
</th>
|
||
<th abbr="article_title" axis="col4" style="width: 15%">
|
||
<div class="tc">个人/企业</div>
|
||
</th>
|
||
<th abbr="ac_id" axis="col4" class="" style="width: 15%">
|
||
<div class="tc ">服务中心</div>
|
||
</th>
|
||
<th axis="col4" class="" style="width: 15%">
|
||
<div class="tc">操作</div>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="bDiv" style="height: auto;">
|
||
<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
|
||
<table style="width: 100%">
|
||
<tbody>
|
||
{empty name="list"}
|
||
<tr>
|
||
<td align="center" style="width: 5%;text-align: center;padding-top: 20px;">
|
||
<i class="fa fa-exclamation-circle"></i>没有符合条件的记录
|
||
</td>
|
||
</tr>
|
||
{else/}
|
||
{foreach name="list" item="vo" key="k" }
|
||
<tr>
|
||
<td style="width: 8%">
|
||
<div class="tc">
|
||
<a href="{$vo.qrcode|get_head_pic=###}" target="_blank"><img id="img_head_pic" style="height: 40px;margin-right: 5px;float: unset;margin: auto;" src="{$vo.qrcode|get_head_pic=###}" /></a>
|
||
</div>
|
||
</td>
|
||
<td abbr="article_title" axis="col4" style="width: 15%">
|
||
<div class="tc">{$vo.name}</div>
|
||
</td>
|
||
<td abbr="ac_id" axis="col4" class="" style="width: 15%">
|
||
<div class="tc">{$vo.centre}</div>
|
||
</td>
|
||
<td axis="col4" class="" style="width: 15%">
|
||
|
||
<div style="text-align: center">
|
||
|
||
<a data-href="{:url('Project/edit',array('id'=>$vo['id']))}" data-closereload="1" onclick="openFullframe(this, '编辑', '100%', '100%');" class="btn blue">编辑</a>
|
||
<i></i>
|
||
<a class="btn red" href="javascript:void(0);" data-url="{:url('Project/del')}" data-id="{$vo.id}" data-admin_id="{$vo.admin_id}" data-username="{$vo.username}" onClick="usersdel(this);">删除</a>
|
||
|
||
</div>
|
||
|
||
</td>
|
||
|
||
|
||
<!-- <td class="sign">
|
||
<div >
|
||
<input type="checkbox" name="ids[]" value="{$vo.id}">
|
||
</div>
|
||
</td> -->
|
||
|
||
<!-- <td class="operation">
|
||
<div class=" ">
|
||
|
||
<a href="{:url('Project/users_edit',array('id'=>$vo['users_id']))}" class="btn blue">编辑</a>
|
||
<i></i>
|
||
<a class="btn red" href="javascript:void(0);" data-url="{:url('Project/users_del')}" data-id="{$vo.users_id}" data-admin_id="{$vo.admin_id}" data-username="{$vo.username}" onClick="usersdel(this);">删除</a>
|
||
|
||
</div>
|
||
</td> -->
|
||
</tr>
|
||
{/foreach}
|
||
{/empty}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="iDiv" style="display: none;"></div>
|
||
</div>
|
||
<div class="footer-oper">
|
||
<!-- <span class="ml15">
|
||
<input type="checkbox" class="checkAll">
|
||
</span>
|
||
<div class="nav-dropup">
|
||
<a onclick="batch_del(this, 'ids');" data-url="{:url('Project/users_del')}" class="layui-btn layui-btn-primary">
|
||
<div class="add" title="批量删除">
|
||
<span>批量删除</span>
|
||
</div>
|
||
</a>
|
||
</div> -->
|
||
{include file="public/page" /}
|
||
<div style="clear:both"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
$(function(){
|
||
$('input[name*=ids]').click(function(){
|
||
if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
|
||
$('.checkAll').prop('checked','checked');
|
||
} else {
|
||
$('.checkAll').prop('checked', false);
|
||
}
|
||
});
|
||
$('input[type=checkbox].checkAll').click(function(){
|
||
$('input[type=checkbox]').prop('checked',this.checked);
|
||
});
|
||
});
|
||
$(document).ready(function(){
|
||
// 表格行点击选中切换
|
||
$('#flexigrid > table>tbody >tr').click(function(){
|
||
$(this).toggleClass('trSelected');
|
||
});
|
||
|
||
// 点击刷新数据
|
||
$('.fa-refresh').click(function(){
|
||
location.href = location.href;
|
||
});
|
||
|
||
{eq name="$is_syn_theme_users" value="1"}
|
||
syn_theme_users();
|
||
{/eq}
|
||
function syn_theme_users()
|
||
{
|
||
layer_loading('初始化中');
|
||
// 确定
|
||
$.ajax({
|
||
type : 'get',
|
||
url : "{:url('Member/ajax_syn_theme_users')}",
|
||
data : {_ajax:1},
|
||
dataType : 'json',
|
||
success : function(res){
|
||
layer.closeAll();
|
||
if(res.code == 1){
|
||
layer.msg(res.msg, {icon: 1, time: 1000}, function(){
|
||
window.location.href = res.url;
|
||
});
|
||
}else{
|
||
layer.alert(res.msg, {icon: 2, title:false}, function(){
|
||
window.location.reload();
|
||
});
|
||
}
|
||
},
|
||
error: function(e){
|
||
layer.closeAll();
|
||
layer.alert(ey_unknown_error, {icon: 2, title:false}, function(){
|
||
window.location.reload();
|
||
});
|
||
}
|
||
})
|
||
}
|
||
});
|
||
|
||
// 删除
|
||
function usersdel(obj){
|
||
var admin_id = $(obj).data('admin_id');
|
||
if (0 < admin_id) {
|
||
var title = "系统管理员前台ID,删除不可恢复?";
|
||
} else {
|
||
var title = "此操作不可恢复,确认彻底删除?";
|
||
}
|
||
layer.confirm(title, {
|
||
title: false,//$(obj).attr('data-username'),
|
||
btn: ['确定','取消'] //按钮
|
||
}, function(){
|
||
layer_loading('正在处理');
|
||
// 确定
|
||
$.ajax({
|
||
type : 'post',
|
||
url : $(obj).attr('data-url'),
|
||
data : {del_id:$(obj).attr('data-id'), _ajax:1},
|
||
dataType : 'json',
|
||
success : function(data){
|
||
layer.closeAll();
|
||
if(data.code == 1){
|
||
layer.msg(data.msg, {icon: 1});
|
||
window.location.reload();
|
||
}else{
|
||
layer.alert(data.msg, {icon: 2, title:false});
|
||
}
|
||
}
|
||
})
|
||
}, function(index){
|
||
layer.close(index);
|
||
});
|
||
return false;
|
||
}
|
||
|
||
/**
|
||
* 批量删除提交
|
||
*/
|
||
function batch_del(obj, name) {
|
||
var a = [];
|
||
$('input[name^='+name+']').each(function(i,o){
|
||
if($(o).is(':checked')){
|
||
a.push($(o).val());
|
||
}
|
||
})
|
||
if(a.length == 0){
|
||
layer.alert('请至少选择一项', {icon: 2, title:false});
|
||
return;
|
||
}
|
||
// 删除按钮
|
||
layer.confirm('此操作不可恢复,确认批量彻底删除?', {
|
||
title: false,
|
||
btn: ['确定', '取消'] //按钮
|
||
}, function () {
|
||
layer_loading('正在处理');
|
||
$.ajax({
|
||
type: "POST",
|
||
url: $(obj).attr('data-url'),
|
||
data: {del_id:a, _ajax:1},
|
||
dataType: 'json',
|
||
success: function (data) {
|
||
layer.closeAll();
|
||
if(data.code == 1){
|
||
layer.msg(data.msg, {icon: 1});
|
||
window.location.reload();
|
||
}else{
|
||
layer.alert(data.msg, {icon: 2, title:false});
|
||
}
|
||
},
|
||
error:function(){
|
||
layer.closeAll();
|
||
layer.alert(ey_unknown_error, {icon: 2, title:false});
|
||
}
|
||
});
|
||
}, function (index) {
|
||
layer.closeAll(index);
|
||
});
|
||
}
|
||
</script>
|
||
|
||
{include file="public/footer" /} |