?? usermanager.jsp
字號(hào):
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<html:html>
<head>
<title>
用戶管理
</title>
</head>
<link href="images/myStyleClass.css" rel="stylesheet" type="text/css">
<body>
<%@ include file="/common/header2.jsp"%>
<html:errors />
<%@ page import="j2eebbs.*"%>
<%@ page import="java.util.*"%>
<%
Vector userVector = (Vector) session
.getAttribute(Constants.USER_LIST_KEY);
User user = null;
if (userVector != null) {
%>
<div align="center">
<table width="80%" border="1" align="center">
<tr align="right">
<td colspan="4">
<A href="<%=request.getContextPath()%>/backtoadminindex.do">
首頁(yè)
</A>
<A href="adminlogoff.do">
注銷登錄
</A>
</td>
</tr>
<tr align="center">
<td colspan="4">
用戶管理
</td>
</tr>
<tr align="center" bgcolor="#0099CC">
<td width="25%">
用戶名
</td>
<td width="25%">
級(jí)別
</td>
<td width="25%">
編輯
</td>
<td width="25%">
刪除
</td>
</tr>
<%for (int i = 0; i < userVector.size(); i++) {
user = (User) userVector.get(i);
%>
<tr align="center">
<td>
<%=user.getUsername()%>
</td>
<td>
<%=user.getGrade()%>
</td>
<td>
<a href="usereditjsp.do?username=<%=user.getUsername()%>">
編輯
</a>
</td>
<td>
<a href="userdelete.do?username=<%=user.getUsername()%>">
刪除
</a>
</td>
</tr>
<%}
%>
<tr bgcolor="#0099CC">
<td colspan="4">
<form method="post" action="searchuser.do">
請(qǐng)輸入您要搜索的用戶名:
<input type="text" name="username" size="15" maxlength="50">
<input type="submit" name="Submit" value="提交">
</form>
</td>
</tr>
</table>
</div>
<%} else {
%>
無(wú)用戶信息!
<%}
%>
<%@ include file="/common/footer.jsp"%>
</body>
</html:html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -