📄 userslist.jsp
字号:
<%@ 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"));
}
byte uSex = ParamUtils.getByteParameter(request, "uSex", (byte)-1);
int uAreaId = ParamUtils.getIntParameter(request, "uAreaId", -1);
int iPage = ParamUtils.getIntParameter(request,"iPage",1);
int userID = 0;
if(request.getMethod().equals("POST")){
String [] userIDs;
userIDs = request.getParameterValues("userID");
cud.setAct(request.getParameter("act"));
cud.setDoTopic(ParamUtils.getIntParameter(request, "doTopic"));
cud.userDel(userIDs);
out.print(prtCenter2(cud.getMessage(),"./usersList.jsp?iPage"+iPage,1));
out.close();
return;
}
%>
<html>
<head>
<title>今晚在线-社区管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<STYLE type=text/css media=screen>@import url(../GVinc/GamVanClubStyle.css);</STYLE>
</head><body>
<script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6" class="tab">
<tr><td align="center"><strong>社区用户列表</strong></td>
</tr></table>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
<form name="Gforms" method="get" action="">
<tr><td>
<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="-1" selected>不限制</option>
<option value="0">保密</option>
<option value="1">男</option>
<option value="2">女</option>
</select>
<input name="gvSubmit" type="submit" id="gvSubmit" value="查询"></td>
</tr></form></table>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
<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="98" align="center"><strong>注册时间</strong></td>
<td width="98" align="center"><strong>注册IP</strong></td>
<td width="98" align="center"><strong>最后登陆时间</strong></td>
<td width="98" 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;
com.gamvan.club.user.ClubUserResults cur = new com.gamvan.club.user.ClubUserResults();
cur.setKeys(keys);
cur.setKeys_ip(keys_ip);
cur.setUserSex((byte)uSex);
totalPage = cur.userCount();
%>
<c:forEach var="u" items="<%=cur.userList(iPage,30)%>">
<tr align="center" bgcolor="#f6f6f6">
<td bgcolor="#f6f6f6">
<club:users type="htmlCheckbox" idIs="${u.userID}" property="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>
<span class="smallTxt"><club:users type="dateTime" value="${u.userRegTime}"/></span>
</td><td>
<span class="smallTxt"><club:users type="userRegip" value="${u.userRegip}"/></span>
</td><td>
<span class="smallTxt"><club:users type="dateTime" value="${u.userLastTime}"/></span>
</td><td>
<span class="smallTxt"><club:users type="userLastip" value="${u.userLastip}"/></span>
</td><td>
<span class="smallTxt"><club:users type="userLoginTimes" value="${u.userLoginTimes}"/></span>
</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -