严智鑫
2024-05-13 cedce4883f0d204f5bf7bf87c0bf4858dabb0c23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
 
<html>
<head>
    <title>用户管理</title>
</head>
 
<body>
    <c:if test="${not empty message}">
        <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
    </c:if>
    
    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead><tr><th>登录名</th><th>用户名</th><th>注册时间<th>管理</th></tr></thead>
        <tbody>
        <c:forEach items="${users}" var="user">
            <tr>
                <td><a href="${ctx}/admin/user/update/${user.id}">${user.loginName}</a></td>
                <td>${user.name}</td>
                <td>
                    <fmt:formatDate value="${user.registerDate}" pattern="yyyy年MM月dd日  HH时mm分ss秒" />
                </td>
                <td><a href="${ctx}/admin/user/delete/${user.id}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>