parent
69632033cf
commit
1ec666d86e
@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="adminCommon::common-header"></head>
|
||||
<body class="sb-nav-fixed">
|
||||
<nav th:replace="adminCommon::common-navbar"></nav>
|
||||
<div id="layoutSidenav">
|
||||
<div th:replace="adminCommon::common-sidenav"></div>
|
||||
|
||||
<div id="layoutSidenav_content">
|
||||
<main>
|
||||
<div class="container-fluid px-4">
|
||||
<h1 class="mt-4">用户管理</h1>
|
||||
|
||||
<ol class="breadcrumb mb-4">
|
||||
<li class="breadcrumb-item"><a th:href="@{/toAdminMain}">主页</a></li>
|
||||
<li class="breadcrumb-item active">用户管理</li>
|
||||
</ol>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table me-1"></i>
|
||||
用户信息表
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="datatablesSimple">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用户账号</th>
|
||||
<th>密码</th>
|
||||
<th>姓名</th>
|
||||
<th>性别</th>
|
||||
<th>年龄</th>
|
||||
<th>身高</th>
|
||||
<th>体重</th>
|
||||
<th>联系方式</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr th:each="mem:${memberList}">
|
||||
<td th:text="${mem.memberAccount}">用户账号</td>
|
||||
<td th:text="${mem.memberPassword}">密码</td>
|
||||
<td th:text="${mem.memberName}">姓名</td>
|
||||
<td th:text="${mem.memberGender}">性别</td>
|
||||
<td th:text="${mem.memberAge}">年龄</td>
|
||||
<td th:text="${mem.memberHeight}">身高</td>
|
||||
<td th:text="${mem.memberWeight}">体重</td>
|
||||
<td th:text="${mem.memberPhone}">联系方式</td>
|
||||
<td>
|
||||
<a th:href="@{/member/toUpdateMember(memberAccount=${mem.memberAccount})}"
|
||||
style="text-decoration: none">
|
||||
<input type="button" class="btn btn-sm btn-outline-primary" value="编辑">
|
||||
</a>
|
||||
<a th:href="@{/member/delMember(memberAccount=${mem.memberAccount})}"
|
||||
style="text-decoration: none">
|
||||
<input type="button" class="btn btn-sm btn-outline-danger"
|
||||
onclick="return del()" value="删除">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align:center;margin-top:20px;margin-bottom:20px">
|
||||
<a th:href="@{/member/toAddMember}">
|
||||
<input type="button" class="btn btn-outline-success" value="添加用户信息">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer th:replace="adminCommon::common-footer"></footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div th:include="adminCommon::common-scripts"></div>
|
||||
<script>
|
||||
function del() {
|
||||
let msg = "确定要删除吗?";
|
||||
if (confirm(msg) == true) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue