112 lines
4.7 KiB
HTML
112 lines
4.7 KiB
HTML
|
<?php
|
||
|
$page_title='域名列表';
|
||
|
include('common_head.html');?>
|
||
|
<link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
|
||
|
<!-- Begin Page Content -->
|
||
|
<div class="container-fluid">
|
||
|
|
||
|
<!-- Page Heading -->
|
||
|
<h1 class="h3 mb-4 text-gray-800">域名列表</h1>
|
||
|
<a href="#" class="btn btn-primary btn-icon-split ">
|
||
|
<span class="icon text-white-50">
|
||
|
<i class="fas fa-plus"></i>
|
||
|
</span>
|
||
|
<span class="text">添加新域名</span>
|
||
|
</a>
|
||
|
<div class="my-2"></div>
|
||
|
<div class="card shadow mb-4">
|
||
|
<div class="card-header py-3">
|
||
|
<h6 class="m-0 font-weight-bold text-primary">域名列表</h6>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
如遇需更改账号,请先以新账号添加用户,再删除旧账号
|
||
|
<div><code id="notice"></code></div>
|
||
|
<div class="table-responsive">
|
||
|
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>头像</th>
|
||
|
<th>姓名</th>
|
||
|
<th>邮箱</th>
|
||
|
<th>账号</th>
|
||
|
<th>密码</th>
|
||
|
<th>操作</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tfoot>
|
||
|
<tr>
|
||
|
<th>头像</th>
|
||
|
<th>姓名</th>
|
||
|
<th>邮箱</th>
|
||
|
<th>账号</th>
|
||
|
<th>密码</th>
|
||
|
<th>操作</th>
|
||
|
</tr>
|
||
|
</tfoot>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>新用户</td>
|
||
|
<td>管理员</td>
|
||
|
<td>admin@admin.com</td>
|
||
|
<td>admin</td>
|
||
|
<td>Start date</td>
|
||
|
<td>Salary</td>
|
||
|
</tr>
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- /.container-fluid -->
|
||
|
|
||
|
</div>
|
||
|
<!-- End of Main Content -->
|
||
|
|
||
|
|
||
|
<?php include('common_foot.html');?>
|
||
|
|
||
|
<!-- Page level plugins -->
|
||
|
<script src="vendor/datatables/jquery.dataTables.min.js"></script>
|
||
|
<script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>
|
||
|
|
||
|
<!-- Page level custom scripts -->
|
||
|
<script src="js/demo/datatables-demo.js"></script>
|
||
|
<script>
|
||
|
function change($account){
|
||
|
var name = $("#"+$account+'name').val();
|
||
|
var password = $("#"+$account+"password").val();
|
||
|
var email = $("#"+$account+"email").val();
|
||
|
if(name=="" || email==""){
|
||
|
$('#notice').html('数据不完整');
|
||
|
return false;
|
||
|
}
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: '/api/user/change',
|
||
|
data: {'name':name,'password':password,'email':email,'account':$account},
|
||
|
async: false,
|
||
|
dataType: 'json',
|
||
|
cache: false,
|
||
|
beforeSubmit: function () {
|
||
|
$('#notice').html('正在操作');
|
||
|
},
|
||
|
success: function (data) {
|
||
|
if (data.code == 200) {
|
||
|
$('#notice').html('操作成功,即将刷新页面');
|
||
|
$(location).attr('href','user');
|
||
|
} else {
|
||
|
$('#notice').html(data.msg);
|
||
|
}
|
||
|
},
|
||
|
clearForm: false,
|
||
|
resetForm: false
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|