📄 user_list_w.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="foton.util.*" %>
<%@ page import="foton.user.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<title>
用户管理
</title>
</head>
<body bgcolor="#dddddd">
<h1 align="center">用户管理 </h1>
<table width=100% border=0>
<tr>
<td> </td>
<td> 用户名 </td>
<td> 真实姓名</td>
<td> 工作部门</td>
<td> 操作</td>
</tr>
<% Condition condition = new Condition();
int pageNum = 10;
int currPage;
String url = "user_list.jsp";
if (request.getParameter("pages")==null) {
currPage =0;
}
else {
currPage = new Integer(request.getParameter("pages")).intValue();
}
condition.setPageNum(pageNum);
condition.setCurrPage(currPage);
// ArrayList list = (ArrayList)session.getAttribute("result");
userDAO dao = new userDAO();
ArrayList list = dao.getUser(condition);
Iterator it = list.iterator();
while (it!=null && it.hasNext()) {
userInfo info = (userInfo)it.next();
%>
<tr>
<td> <input type="checkbox" name=""> </td>
<td> <%=info.getUserID()%> </td>
<td> <%=info.getName()%></td>
<td> <%=info.getDeptName()%> </td>
<td> <a href ="user_update.jsp?userID=<%=info.getUserID()%>" target="_self">修改 </a> </td>
</tr>
<% } %>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),condition.getRecordNum(),url)%>
<p> </p></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -