bbsUserAdmin.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:2k
- <html>
- <head>
-
- </head>
- <%@ page contentType="text/html;charset=GBK" language="java" %>
- <%@ page import = "StudyBbs.*" %>
- <%@ page import = "java.util.*" %>
- <%
- Vector v = (Vector)session.getAttribute(Constants.USER_LIST_KEY);
- User u = null;
- if(v != null ){
- %>
- <body bgcolor="#FFFFFF">
- <div align="center">
- <p><font color="#990000" size="+2"><u>网上论坛用户维护中心</u></font> </p>
- <table width="80%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td bgcolor="#99CCFF">
- <div align="center">用户名</div>
- </td>
- <td bgcolor="#99CCFF">
- <div align="center">用户权限</div>
- </td>
- <td bgcolor="#99CCFF">
- <div align="center">@-@</div>
- </td>
- <td bgcolor="#99CCFF">
- <div align="center">^_^</div>
- </td>
- </tr>
-
- <%for(int i = 0;i < v.size();i++)
- {
- u = (User)v.get(i);
- %>
- <tr>
- <td >
- <div align="center"><%=u.getUsername()%></div>
- </td>
- <td ><%=u.getGrade()%></td>
- <td ><a href="bbsUserEdit.jsp?username=<%=u.getUsername()%>">编辑</a></td>
- <td >
- <div align="center"><a href="userDel.do?username=<%=u.getUsername()%>">删除</a></div>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <hr width="100%" size="1">
- </td>
- </tr>
-
- <% } %>
-
-
-
- <tr>
- <td class="text1">
- <div align="center"></div>
- </td>
- <td class="text1" colspan="2"> </td>
- </tr>
- <tr>
- <td class="text1" colspan="4" bgcolor="#99CCFF">搜索查询</td>
- </tr>
- <tr>
- <td class="text1" colspan="4">
- <form method="post" action="userSearch.do">
- <p> 请输入用户名:
- <input type="text" name="username" size="15" maxlength="50">
- </p>
- <p>
- <input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置">
- </p>
- <p> </p>
- </form>
- </td>
- </tr>
- </table>
- <% }
- else{
- %>
- 无用户信息!
- <%}
- %>
- </body>
- </html>