?? userlist.jsp
字號:
<%@ 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="nm.*"%>
<%@ 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="checkpower.do?functiontype=newuser">
新建用戶
</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%">
級別
</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="checkpower.do?functiontype=useredit&username=<%=user.getUsername()%>">
編輯
</a>
</td>
<td>
<a href="checkpower.do?functiontype=userdelete&username=<%=user.getUsername()%>">
刪除
</a>
</td>
</tr>
<%
}
%>
<tr bgcolor="#0099CC">
<td colspan="4">
<form method="post" action="usersearch.do">
請輸入您要搜索的用戶名:
<input type="text" name="username" size="15" maxlength="50">
<input type="submit" name="Submit" value="提交">
</form>
</td>
</tr>
</table>
</div>
<%
} else {
%>
無用戶信息!
<%
}
%>
<%@ include file="/common/footer.jsp"%>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -