- <%@ page language="java" contentType="text/html;charset=UTF-8" %><%@
- include file="../GVinc/gvInclude.jsp" %><%@
- include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cud" scope="request" class="com.gamvan.club.user.ClubUserDel"/><%
- String uid[];
- String keys_ip = "";
- String keys= ParamUtils.getStringParameter(request, "keys");
- keys=com.gamvan.net.URL.urlDecoder(keys,"UTF-8");
- /**
- * 整合至apache 发现如果不进行一次转码无法正确查询中文
- * 可能和apache默认编码有关,但是我在httpd.conf关闭了apache的默认编码依然不行
- * 所以只好手工作一次ISO8859-1到UTF8的编码了
- * 如果是直接用TOMCAT运行此程序则需要注销下面这句 keys=com.gamvan.tools.Gb.toUTF8(keys);
- */
- keys=com.gamvan.tools.Gb.toUTF8(keys);
- if(request.getParameter("keys_ip")!=null){
- keys_ip = (request.getParameter("keys_ip"));
- }
- int uSex=TypeChange.stringToInt(request.getParameter("uSex"));
- int userID = 0;
- if(request.getMethod().equals("POST")){
- String [] userIDs;
- userIDs = request.getParameterValues("userID");
- cud.setAct(request.getParameter("act"));
- cud.setDoTopic(TypeChange.stringToInt(request.getParameter("doTopic")));
- cud.userDel(userIDs);
- out.print(prtCenter2(cud.getMessage(),"./usersList.jsp",1));
- out.close();
- return;
- }
- %>
- <html>
- <head>
- <title>今晚在线-社区管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
- <tr><td align="center"><strong>社区用户列表</strong></td>
- </tr></table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#9AA8CB">
- <form name="form2" method="get" action=""> <tr bgcolor="#f6f6f6">
- <td bgcolor="#e6e6e6">
- <strong>ID关键字</strong>
- <input name="keys" type="text" id="keys" size="16" maxlength="30" value="<%=keys%>">
-
- <strong>IP关键字</strong>
- <input name="keys_ip" type="text" id="keys_ip" size="16" maxlength="30" value="<%=keys_ip%>">
-
- <strong>性别</strong>
- <select name="uSex" id="uSex">
- <option value="0" selected>不限制</option>
- <option value="1">男</option>
- <option value="2">女</option>
- </select>
- <input name="gvSubmit" type="submit" id="gvSubmit" value="查询">
- </td></tr>
- </form>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action="">
- <tr>
- <td width="40" align="center"><strong>操作</strong></td>
- <td align="center"><strong>用户ID</strong></td>
- <td width="30" align="center"><strong>性别</strong></td>
- <td width="90" align="center"><strong>注册时间</strong></td>
- <td width="90" align="center"><strong>注册IP</strong></td>
- <td width="90" align="center"><strong>最后登陆时间</strong></td>
- <td width="90" align="center"><strong>最后登陆IP</strong></td>
- <td width="35" align="center"><strong>登陆</strong></td>
- <td width="80" align="center"><strong>发/回帖</strong></td>
- <td width="35" align="center"><strong>参数</strong></td>
- <td width="30" align="center"><strong>编辑</strong></td>
- </tr>
- <%
- int totalPage = 0;
- int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
- if(iPage<1){
- iPage = 1;
- }
- cuc.setKeys(keys);
- cuc.setKeys_ip(keys_ip);
- cuc.setUserSex((byte)uSex);
- totalPage = cuc.userCount();
- %>
- <c:forEach var="u" items="<%=cuc.userList(iPage,30)%>">
- <tr align="center" bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6">
- <input name="userID" type="checkbox" id="userID" value="<club:users type="userID" value="${u.userID}"/>">
- </td><td>
- <club:users type="userName" value="${u.userName}" idIs="${u.userID}" url="../" bea="${u.userIsDel}"/>
- </td><td>
- <club:users type="userSex" value="${u.userSex}"/>
- </td><td>
- <club:users type="dateTime" value="${u.userRegTime}"/>
- </td><td>
- <club:users type="userRegip" value="${u.userRegip}"/>
- </td><td>
- <club:users type="dateTime" value="${u.userLastTime}"/>
- </td><td>
- <club:users type="userLastip" value="${u.userLastip}"/>
- </td><td>
- <club:users type="userLoginTimes" value="${u.userLoginTimes}"/>
- </td><td>
- <strong>
- <club:users type="userTopicCount" value="${u.userTopicCount}"/> / <club:users type="userReCount" value="${u.userReCount}"/>
- </strong></td>
- <td>
- <a href="userParameter.jsp?userID=<club:users type="userID" value="${u.userID}"/>">参数</a></td>
- <td>
- </td>
- </tr>
- </c:forEach>
- <tr bgcolor="#f6f6f6">
- <td height="36" colspan="12" bgcolor="#f6f6f6">
- <%
- out.print(OutPrint.pageJump(totalPage, 30, iPage, "usersList.jsp?keys_ip="+ keys_ip +"&keys="+ java.net.URLEncoder.encode(keys, "UTF-8") +"&uSex="+uSex+"&"));
- %>
- </td></tr>
- <tr bgcolor="#f6f6f6">
- <td height="36" colspan="12" bgcolor="#f6f6f6">
- <select name="act" id="act">
- <option value="0" selected>请选择操作内容</option>
- <option value="1">删除用户</option>
- <option value="3">恢复被删除用户</option>
- <option value="2">物理删除用户</option>
- </select>
-
- <select name="doTopic" id="doTopic">
- <option value="0" selected>用户文章操作</option>
- <option value="1">删除用户文章 </option>
- <option value="2">禁止显示用户文章</option>
- <option value="3">恢复禁止显示的文章</option>
- </select>
-
- <input name="gvSubmit" type="submit" id="gvSubmit" value="确定操作">
- </td>
- </tr>
- </form>
- </table>
- <br>
- </body>
- </html>