?? usermanage.jsp
字號:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title>userManage.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../../photo/css.css">
</head>
<body>
<jsp:include flush="true" page="head.jsp"></jsp:include>
<table width="70%" align="center">
<tr>
<td align="right"><a href="editUser.jsp">添加新用戶</a></td>
</tr>
</table>
<table border="1" width="70%" align="center" cellspacing="0" cellpadding="10" bordercolor="#8000ff">
<tr>
<td colspan="6" align="center"><h3>用戶管理</h3></td>
</tr>
<tr>
<th>用戶名</th><th>密碼</th><th>加入時間</th><th>用戶類型</th>
</tr>
<logic:iterate id="user" name="usersList" property="smallRecordSet">
<tr>
<td><c:out value="${user.userName}"/></td>
<td><c:out value="${user.userPassword}"/></td>
<td><c:out value="${user.userDate}"/></td>
<td><c:out value="${user.userType}"/></td>
<td><a href="<c:url value="/userManage.do?method=findById&&userId=${user.userId}" />">修改</a></td>
<td><a href="<c:url value="/userManage.do?method=delete&&userId=${user.userId}" />">刪除</a></td>
</tr>
</logic:iterate>
</table>
<table width="70%" align="center">
<tr>
<td>
<html:link action="/userManage.do?method=pageFactory" >首頁</html:link>
<c:if test="${usersList.currentPageIndex!=1}">
<html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="prePageIndex">上一頁</html:link>
</c:if>
<c:if test="${usersList.currentPageIndex!=usersList.pageCount}">
<html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="nextPageIndex">下一頁</html:link>
</c:if>
<html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="pageCount">尾頁</html:link>
<c:out value="第${usersList.currentPageIndex}頁"></c:out>
<c:out value="共${usersList.pageCount}頁"></c:out>
<c:out value="${usersList.recordCount}條記錄"></c:out>
</td>
</tr>
</table>
<c:if test="${requestScope.deleteInfo=='hasChild'}">
<script type="text/javascript">
alert("此客戶有訂單存在,不能刪除其資料!");
</script>
</c:if>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -