usersList.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:6k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ 
  2. include file="../GVinc/gvInclude.jsp" %><%@ 
  3. include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="cud" scope="request" class="com.gamvan.club.user.ClubUserDel"/><% 
  5. String uid[];
  6. String keys_ip = "";
  7. String keys= ParamUtils.getStringParameter(request, "keys");
  8. keys=com.gamvan.net.URL.urlDecoder(keys,"UTF-8");
  9. /**
  10.  * 整合至apache 发现如果不进行一次转码无法正确查询中文
  11.  * 可能和apache默认编码有关,但是我在httpd.conf关闭了apache的默认编码依然不行
  12.  * 所以只好手工作一次ISO8859-1到UTF8的编码了
  13.  * 如果是直接用TOMCAT运行此程序则需要注销下面这句 keys=com.gamvan.tools.Gb.toUTF8(keys);
  14.  */
  15. keys=com.gamvan.tools.Gb.toUTF8(keys);
  16. if(request.getParameter("keys_ip")!=null){
  17. keys_ip = (request.getParameter("keys_ip"));
  18. }
  19. int uSex=TypeChange.stringToInt(request.getParameter("uSex"));
  20. int userID = 0;
  21. if(request.getMethod().equals("POST")){
  22.  String [] userIDs;
  23. userIDs = request.getParameterValues("userID");
  24. cud.setAct(request.getParameter("act"));
  25. cud.setDoTopic(TypeChange.stringToInt(request.getParameter("doTopic")));
  26. cud.userDel(userIDs);
  27. out.print(prtCenter2(cud.getMessage(),"./usersList.jsp",1));
  28. out.close();
  29. return;
  30. }
  31. %>
  32. <html>
  33. <head>
  34. <title>今晚在线-社区管理</title>
  35. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  36. <link href="css.css" rel="stylesheet" type="text/css">
  37. </head>
  38. <body>
  39. <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
  40. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  41. <tr><td align="center"><strong>社区用户列表</strong></td>
  42. </tr></table>
  43. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#9AA8CB">
  44. <form name="form2" method="get" action=""> <tr bgcolor="#f6f6f6">
  45. <td bgcolor="#e6e6e6">
  46. <strong>ID关键字</strong>
  47. <input name="keys" type="text" id="keys" size="16" maxlength="30" value="<%=keys%>">
  48. &nbsp;&nbsp;
  49. <strong>IP关键字</strong>
  50. <input name="keys_ip" type="text" id="keys_ip" size="16" maxlength="30" value="<%=keys_ip%>">
  51. &nbsp;&nbsp;
  52. <strong>性别</strong>
  53. <select name="uSex" id="uSex">
  54. <option value="0" selected>不限制</option>
  55. <option value="1">男</option>
  56. <option value="2">女</option>
  57. </select>
  58. <input name="gvSubmit" type="submit" id="gvSubmit" value="查询">
  59. </td></tr>
  60. </form>
  61. </table>
  62. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  63. <form name="form1" method="post" action="">
  64.     <tr>
  65.       <td width="40" align="center"><strong>操作</strong></td>
  66.       <td align="center"><strong>用户ID</strong></td>
  67.       <td width="30" align="center"><strong>性别</strong></td>
  68.       <td width="90" align="center"><strong>注册时间</strong></td>
  69.       <td width="90" align="center"><strong>注册IP</strong></td>
  70.       <td width="90" align="center"><strong>最后登陆时间</strong></td>
  71.       <td width="90" align="center"><strong>最后登陆IP</strong></td>
  72.   <td width="35" align="center"><strong>登陆</strong></td>
  73.   <td width="80" align="center"><strong>发/回帖</strong></td>
  74.   <td width="35" align="center"><strong>参数</strong></td>
  75.       <td width="30" align="center"><strong>编辑</strong></td>
  76.     </tr>
  77. <% 
  78. int totalPage = 0;
  79. int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
  80. if(iPage<1){
  81. iPage = 1;
  82. }
  83. cuc.setKeys(keys);
  84. cuc.setKeys_ip(keys_ip);
  85. cuc.setUserSex((byte)uSex);
  86. totalPage = cuc.userCount();
  87. %>
  88. <c:forEach var="u" items="<%=cuc.userList(iPage,30)%>">
  89. <tr align="center" bgcolor="#f6f6f6">
  90. <td bgcolor="#f6f6f6">
  91. <input name="userID" type="checkbox" id="userID" value="<club:users type="userID" value="${u.userID}"/>">
  92. </td><td>
  93. <club:users type="userName" value="${u.userName}" idIs="${u.userID}" url="../" bea="${u.userIsDel}"/>
  94. </td><td>
  95. <club:users type="userSex" value="${u.userSex}"/>
  96. </td><td>
  97. <club:users type="dateTime" value="${u.userRegTime}"/>
  98. </td><td>
  99. <club:users type="userRegip" value="${u.userRegip}"/>
  100. </td><td>
  101. <club:users type="dateTime" value="${u.userLastTime}"/>
  102. </td><td>
  103. <club:users type="userLastip" value="${u.userLastip}"/>
  104. </td><td>
  105. <club:users type="userLoginTimes" value="${u.userLoginTimes}"/>
  106. </td><td>
  107. <strong>
  108. <club:users type="userTopicCount" value="${u.userTopicCount}"/> / <club:users type="userReCount" value="${u.userReCount}"/>
  109. </strong></td>
  110. <td>
  111. <a href="userParameter.jsp?userID=<club:users type="userID" value="${u.userID}"/>">参数</a></td>
  112. <td>
  113. </td>
  114. </tr>
  115. </c:forEach>
  116. <tr bgcolor="#f6f6f6">
  117. <td height="36" colspan="12" bgcolor="#f6f6f6">
  118. <%
  119. out.print(OutPrint.pageJump(totalPage, 30, iPage, "usersList.jsp?keys_ip="+ keys_ip +"&keys="+ java.net.URLEncoder.encode(keys, "UTF-8") +"&uSex="+uSex+"&"));
  120. %>
  121. </td></tr>
  122.     <tr bgcolor="#f6f6f6">
  123.       <td height="36" colspan="12" bgcolor="#f6f6f6">
  124. <select name="act" id="act">
  125. <option value="0" selected>请选择操作内容</option>
  126. <option value="1">删除用户</option>
  127. <option value="3">恢复被删除用户</option>
  128. <option value="2">物理删除用户</option>
  129. </select>
  130. &nbsp;&nbsp;
  131. <select name="doTopic" id="doTopic">
  132. <option value="0" selected>用户文章操作</option>
  133. <option value="1">删除用户文章 </option>
  134. <option value="2">禁止显示用户文章</option>
  135. <option value="3">恢复禁止显示的文章</option>
  136. </select>
  137. &nbsp;&nbsp;&nbsp;&nbsp;
  138. <input name="gvSubmit" type="submit" id="gvSubmit" value="确定操作"> 
  139. </td>
  140. </tr>
  141. </form>
  142. </table>
  143. <br>
  144. </body>
  145. </html>