📄 list_users.jsp
字号:
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><html> <head> <title>用户列表</title> </head> <body> <center> <h2> 所有用户列表 </h2> <hr> <br> <input type="button" value="首页" ${pageForm.hasFirstPage ? "" : "disabled" } onClick="javascript:window.location='${pageContext.request.contextPath }/admin/list_users.do?currentPage=1' " /> <input type="button" value="上一页" ${pageForm.hasPrePage ? "" : "disabled" } onClick="javascript:window.location='${pageContext.request.contextPath }/admin/list_users.do?currentPage=${pageForm.currentPage-1 }' " /> <input type="button" value="下一页" ${pageForm.hasNextPage ? "" : "disabled" } onClick="javascript:window.location='${pageContext.request.contextPath }/admin/list_users.do?currentPage=${pageForm.currentPage+1 }' " /> <input type="button" value="尾页" ${pageForm.hasLastPage ? "" : "disabled" } onClick="javascript:window.location='${pageContext.request.contextPath }/admin/list_users.do?currentPage=${pageForm.totalPage}' " /> <font size="4" color="red">${pageForm.currentPage }/${pageForm.totalPage}</font> 总用户数: ${pageForm.recordCount }<br><br> <table width="80%" cellpadding="1" cellspacing="1" bgcolor="blue" > <tr bgcolor="#F2F2F2" align="center"> <th>序号</th> <th>用户ID</th> <th>姓名</th> <th>电子邮箱</th> <th colspan="2">操作</th> </tr> <c:forEach var="user" items="${users}" varStatus="ind"> <tr bgcolor="#F2F2F2" align="center"> <td>${ind.count }</td> <td>${user.uid }</td> <td>${user.name }</td> <td>${user.email }</td> <td> <a href="${pageContext.request.contextPath }/admin/deleteById.do?id=${user.id }">删除</a> </td> <td> <a href="${pageContext.request.contextPath }/admin/showUserDetail.do?id=${user.id }">详细信息</a> </td> </tr> </c:forEach> <c:if test="${empty users}"> <td colspan="6">没有相关用户</td> </c:if> </table><table height="10%"> <tr><td><td></tr></table> </center> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -