98 lines
3.7 KiB
HTML
98 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>{$lang['system_name']}</title>
|
||
<meta name="renderer" content="webkit">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
<meta name="viewport"
|
||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||
<!--[if lt IE 9]>
|
||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||
<![endif]-->
|
||
<style>
|
||
.relation{ text-decoration: underline;}
|
||
.relation:hover{ color:#807362}
|
||
.self{ background:rgb(199, 182, 151)}
|
||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||
</style>
|
||
</head>
|
||
|
||
<body class="iframeClass scroll-wrapper">
|
||
<div class="x-body">
|
||
<div class="layui-form">
|
||
<table class="layui-table">
|
||
<thead>
|
||
<tr>
|
||
<th>{$lang['username']}</th>
|
||
<th>{$lang['nickname']}</th>
|
||
<th>{$lang['sub_account_function']}</th>
|
||
<th>{$lang['create_time']}</th>
|
||
<th>{$lang['operate']}</th>
|
||
</thead>
|
||
<tbody>
|
||
{foreach name="$sub_list" item="vo"}
|
||
<tr>
|
||
<td>{$vo.username}</td>
|
||
<td>{$vo.nickname}</td>
|
||
<td>{$vo.account_type}</td>
|
||
<td>{$vo.create_time}</td>
|
||
<td>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.edit_sub_account}','/sub/edit_sub?id={$vo.id}',800,430)">{$lang['edit_sub_account']}</a>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="del({$vo.id})">{$lang['delete_sub_account']}</a>
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
<?php if(count($sub_list) == 0): ?>
|
||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||
<?php else: ?>
|
||
<div class="page">{$sub_list->render()}</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script type="text/javascript">
|
||
var lang = {$jsonlang};
|
||
function del(id){
|
||
layer.confirm(lang.is_delete_sub_account, {
|
||
title: lang.delete_sub_account,
|
||
btn: [lang.yse,lang.no] //按钮
|
||
}, function(){
|
||
var query = new Object();
|
||
query.sub_id = id;
|
||
$.ajax({
|
||
url:'/sub/do_del',
|
||
data:query,
|
||
type:'POST',
|
||
dataType:'JSON',
|
||
success:function(data){
|
||
if(data.code == 0){
|
||
layer.msg(data.msg,{
|
||
title:lang.message,
|
||
});
|
||
}else if(data.code == 1){
|
||
layer.alert(data.msg,{
|
||
title:lang.message,
|
||
},function(index){
|
||
layer.close(index);
|
||
window.location.reload();
|
||
});
|
||
}
|
||
}
|
||
})
|
||
}, function(){
|
||
});
|
||
}
|
||
</script>
|
||
</html> |