📄 usermain.jsp
字号:
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><%@include file="../header.jsp"%><table border="0" cellpadding="0" cellspacing="4" width="100%"> <tr> <td valign="top" width="160px"><%@include file="../userLink.jsp"%></td> <td valign="top"> USER MAIN<br/> <html:link action="/userAdd.do?method=add" style="text-decoration:none;">Add</html:link><br/> <html:link action="/userList?pageNumber=1" style="text-decoration:none;">First</html:link> <c:if test="${objectPaging.pageNumber-10>0}"> <html:link action="/userList?pageNumber=${objectPaging.pageNumber-10}" style="text-decoration:none;">Prev</html:link> </c:if> <c:if test="${objectPaging.pageNumber-10<1}"> Prev </c:if> <c:forEach items="${objectPaging.listPaging}" var="pageNumber"> <c:if test="${pageNumber==objectPaging.pageNumber}"> <b>${pageNumber}</b> </c:if> <c:if test="${pageNumber!=objectPaging.pageNumber}"> <html:link action="/userList?pageNumber=${pageNumber}" style="text-decoration:none;">${pageNumber}</html:link> </c:if> </c:forEach> <c:if test="${objectPaging.pageNumber+10<=objectPaging.totalPage}"> <html:link action="/userList?pageNumber=${objectPaging.pageNumber+10}" style="text-decoration:none;">Next</html:link> </c:if> <c:if test="${objectPaging.pageNumber+10>objectPaging.totalPage}"> Next </c:if> <html:link action="/userList?pageNumber=${objectPaging.totalPage}" style="text-decoration:none;">Last</html:link> <table border="1" cellpadding="1" cellspacing="0" width="100%"> <tr> <td>NO</td> <td>USERNAME</td> <td>REALNAME</td> <td align="center">LEVEL</td> <td align="center">OPERASI</td> </tr> <c:set var="no" value="${(objectPaging.pageNumber-1)*20}"/> <c:forEach items="${objectPaging.listObject}" var="user"> <tr> <td>${no+1}</td> <td>${user.username}</td> <td>${user.realName}</td> <td align="center"> <c:if test="${user.level==0}">Administrator</c:if> <c:if test="${user.level==1}">Akademik</c:if> </td> <td align="center"><html:link action="/userEdit.do?method=edit&id=${user.id}" style="text-decoration:none;">Edit</html:link> | <html:link action="/userEdit.do?method=delete&id=${user.id}" style="text-decoration:none;">Delete</html:link></td> </tr> <c:set var="no" value="${no+1}"/> </c:forEach> </table> </td> </tr></table><%@include file="../footer.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -