📄 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 = "";
String keys_ip = "";
if(request.getParameter("keys")!=null){
keys = (request.getParameter("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;
}
if(keys!=null){
keys=java.net.URLDecoder.decode(keys,"UTF-8");
}
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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -