📄 usermanager.jsp
字号:
<td bgcolor=#FFFFFF><input type=text size=20 name="mark" value="<%=mark%>" maxlength=2> (-5 到 10 之间)</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>个人签名:</b></font></td>
<td bgcolor=#FFFFFF><textarea name="signature" cols="60" rows="8"><%=signature%></textarea><br><input type="checkbox" name="notshowsignature" value="1" <%if(notshowsignature.equals("1")) out.print("checked");%>>屏蔽此用户签名?</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>性别:</b></font></td>
<td bgcolor=#FFFFFF>
<select name="sex" size="1">
<option value="保密" <%if(sex.equals("保密")) out.print("selected");%>>保密 </option>
<option value="帅哥" <%if(sex.equals("帅哥")) out.print("selected");%>>帅哥 </option>
<option value="美女" <%if(sex.equals("美女")) out.print("selected");%>>美女 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>最高学历:</b></font></td>
<td bgcolor=#FFFFFF>
<select name="education" size="1">
<option value="保密" <%if(education.equals("保密")) out.print("selected");%>>保密 </option>
<option value="小学" <%if(education.equals("小学")) out.print("selected");%>>小学 </option>
<option value="初中" <%if(education.equals("初中")) out.print("selected");%>>初中 </option>
<option value="高中" <%if(education.equals("高中")) out.print("selected");%>>高中</option>
<option value="大专" <%if(education.equals("大专")) out.print("selected");%>>大专</option>
<option value="本科" <%if(education.equals("本科")) out.print("selected");%>>本科</option>
<option value="硕士" <%if(education.equals("硕士")) out.print("selected");%>>硕士</option>
<option value="博士" <%if(education.equals("博士")) out.print("selected");%>>博士</option>
<option value="博士后" <%if(education.equals("博士后")) out.print("selected");%>>博士后</option>
</select>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>婚姻状况:</b></font></td>
<td bgcolor=#FFFFFF>
<select name="marry" size="1">
<option value="保密" <%if(marry.equals("保密")) out.print("selected");%>>保密 </option>
<option value="未婚" <%if(marry.equals("未婚")) out.print("selected");%>>未婚 </option>
<option value="已婚" <%if(marry.equals("已婚")) out.print("selected");%>>已婚 </option>
<option value="离婚" <%if(marry.equals("离婚")) out.print("selected");%>>离婚 </option>
<option value="丧偶" <%if(marry.equals("丧偶")) out.print("selected");%>>丧偶 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>职业状况:</b></font></td>
<td bgcolor=#FFFFFF>
<select name="work" size="1">
<option value="保密" <%if(work.equals("保密")) out.print("selected");%>>保密 </option>
<option value="计算机业" <%if(work.equals("计算机业")) out.print("selected");%>>计算机业 </option>
<option value="金融业" <%if(work.equals("金融业")) out.print("selected");%>>金融业 </option>
<option value="商业" <%if(work.equals("商业")) out.print("selected");%>>商业 </option>
<option value="服务行业" <%if(work.equals("服务行业")) out.print("selected");%>>服务行业 </option>
<option value="教育业" <%if(work.equals("教育业")) out.print("selected");%>>教育业 </option>
<option value="学生" <%if(work.equals("学生")) out.print("selected");%>>学生 </option>
<option value="工程师" <%if(work.equals("工程师")) out.print("selected");%>>工程师 </option>
<option value="主管,经理" <%if(work.equals("主管,经理")) out.print("selected");%>>主管,经理 </option>
<option value="政府部门" <%if(work.equals("政府部门")) out.print("selected");%>>政府部门 </option>
<option value="制造业" <%if(work.equals("制造业")) out.print("selected");%>>制造业 </option>
<option value="销售/广告/市场" <%if(work.equals("销售/广告/市场")) out.print("selected");%>>销售/广告/市场 </option>
<option value="失业中" <%if(work.equals("失业中")) out.print("selected");%>>失业中 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>生日:</b>如不想填写,请全部留空。</font></td>
<td bgcolor=#FFFFFF><input type="text" name="birthday" size=10 maxlength=10 value="<%=birthday%>"><font color=#333333> (*格式:1980-01-01)</font></td>
</tr>
<SCRIPT language=javascript>
function showxz() {
document.images.userxzs.src="../star/"+document.creator.astro.options[document.creator.astro.selectedIndex].value+".gif";
}
</SCRIPT>
<tr>
<td bgcolor=#ffffff valign=top><font color=#333333><b>所属星座:</b>请选择你所属的星座。<br>如果输入了生日的话,那么此项无效!</font></td>
<td bgcolor=#ffffff>
<SELECT name="astro" onchange=showxz() size="1">
<OPTION value="blank" <%if(astro.equals("保密")) out.print("selected");%>>保密</OPTION>
<OPTION value="z1" <%if(astro.equals("z1")) out.print("selected");%>>白羊座(3月21--4月19日)</OPTION>
<OPTION value="z2" <%if(astro.equals("z2")) out.print("selected");%>>金牛座(4月20--5月20日)</OPTION>
<OPTION value="z3" <%if(astro.equals("z3")) out.print("selected");%>>双子座(5月21--6月21日)</OPTION>
<OPTION value="z4" <%if(astro.equals("z4")) out.print("selected");%>>巨蟹座(6月22--7月22日)</OPTION>
<OPTION value="z5" <%if(astro.equals("z5")) out.print("selected");%>>狮子座(7月23--8月22日)</OPTION>
<OPTION value="z6" <%if(astro.equals("z6")) out.print("selected");%>>处女座(8月23--9月22日)</OPTION>
<OPTION value="z7" <%if(astro.equals("z7")) out.print("selected");%>>天秤座(9月23--10月23日)</OPTION>
<OPTION value="z8" <%if(astro.equals("z8")) out.print("selected");%>>天蝎座(10月24--11月21日)</OPTION>
<OPTION value="z9" <%if(astro.equals("z9")) out.print("selected");%>>射手座(11月22--12月21日)</OPTION>
<OPTION value="z10" <%if(astro.equals("z10")) out.print("selected");%>>魔羯座(12月22--1月19日)</OPTION>
<OPTION value="z11" <%if(astro.equals("z11")) out.print("selected");%>>水瓶座(1月20--2月18日)</OPTION>
<OPTION value="z12" <%if(astro.equals("z12")) out.print("selected");%>>双鱼座(2月19--3月20日)</OPTION>
</SELECT>
<IMG border=0 name=userxzs src="../star/<%if(astro.equals("保密")) out.print("blank"); else out.print(astro);%>.gif" width=15 height=15 align="absmiddle">
</TD>
</TR>
</tr>
<SCRIPT language=javascript>
function showsx() {
document.images.usersxs.src="../sx/"+document.creator.usersx.options[document.creator.usersx.selectedIndex].value+".gif";
}
</SCRIPT>
<tr>
<td bgcolor=#ffffff valign=top><font color=#333333><b>所属生肖:</b>请选择你所属的生肖。</font></td>
<td bgcolor=#ffffff>
<SELECT name="usersx" onchange=showsx() size="1">
<OPTION value="blank" <%if(usersx.equals("保密")) out.print("selected");%>>保密</OPTION>
<OPTION value="sx1" <%if(usersx.equals("sx1")) out.print("selected");%>>子鼠</OPTION>
<OPTION value="sx2" <%if(usersx.equals("sx2")) out.print("selected");%>>丑牛</OPTION>
<OPTION value="sx3" <%if(usersx.equals("sx3")) out.print("selected");%>>寅虎</OPTION>
<OPTION value="sx4" <%if(usersx.equals("sx4")) out.print("selected");%>>卯兔</OPTION>
<OPTION value="sx5" <%if(usersx.equals("sx5")) out.print("selected");%>>辰龙</OPTION>
<OPTION value="sx6" <%if(usersx.equals("sx6")) out.print("selected");%>>巳蛇</OPTION>
<OPTION value="sx7" <%if(usersx.equals("sx7")) out.print("selected");%>>午马</OPTION>
<OPTION value="sx8" <%if(usersx.equals("sx8")) out.print("selected");%>>未羊</OPTION>
<OPTION value="sx9" <%if(usersx.equals("sx9")) out.print("selected");%>>申猴</OPTION>
<OPTION value="sx10" <%if(usersx.equals("sx10")) out.print("selected");%>>葵鸡</OPTION>
<OPTION value="sx11" <%if(usersx.equals("sx11")) out.print("selected");%>>戌狗</OPTION>
<OPTION value="sx12" <%if(usersx.equals("sx12")) out.print("selected");%>>亥猪</OPTION>
</SELECT>
<IMG border=0 name=usersxs src="../sx/<%if(usersx.equals("保密")) out.print("blank"); else out.print(usersx);%>.gif" align="absmiddle">
</TD>
</TR>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>增加金钱:</b></td>
<td bgcolor=#FFFFFF><input type=text name="addMoney" value="1000" maxlength=12></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>增加经验:</b></font></td>
<td bgcolor=#FFFFFF><input type=text name="addExperience" value="100" maxlength=12></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>增加魅力:</b></font></td>
<td bgcolor=#FFFFFF><input type=text name="addCharm" value="100" maxlength=12></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>访问次数:</b></td>
<td bgcolor=#FFFFFF><input type=text name="visittimes" value="<%=visittimes%>" maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>时差:</b></td>
<td bgcolor=#FFFFFF>
<input type=text name="timedifference" maxlength=6 size=6 value="<%=timedifference%>">
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>私有论坛访问权限:</b><br>勾选此项授权该用户可以访问任何保密论坛。</font><br></td>
<td bgcolor=#FFFFFF>
<input type="checkbox" name="allowprivate" value="1" <%if(allowprivate.equals("1")) out.print("checked");%>>保密论坛
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>用户类型:</b><br>>>注意:坛主为超级用户,有绝对高的权限。<br> 坛主互相之间不能操作/删除。<br> 请尽量少添加此类用户。<br>>>总版主在任何论坛都具有版主权限,<br> 在管理中心只有一定权限。<br>>>认证版主既是分论坛版主同时也是认证用户。<br>>>认证用户可以在认证论坛发帖。</font></td>
<td bgcolor=#FFFFFF>
<select name="usermode">
<option value="1" <%if(usermode==1 && userstatus.equals("0")) out.print("selected");%>>一般用户
<option value="2" <%if(usermode==2 && userstatus.equals("0")) out.print("selected");%>>认证用户
<option value="ban">禁止此用户发帖
<option value="mask">屏蔽此用户帖子
<option value="3" <%if(usermode==3 && userstatus.equals("0")) out.print("selected");%>>论坛版主
<option value="4" <%if(usermode==4 && userstatus.equals("0")) out.print("selected");%>>认证版主
<%
if(cookieMode.equals("7")) {
%>
<option value="6" <%if(usermode==6 && userstatus.equals("0")) out.print("selected");%>>论坛总版主 *
<option value="7" <%if(usermode==7 && userstatus.equals("0")) out.print("selected");%>>坛主 **
<%
}
%>
</select>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>注册时间:</b></td>
<td bgcolor=#FFFFFF><font color=#333333><%=registertime%></font></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>注册时的 IP 地址:</b></td>
<td bgcolor=#FFFFFF><font color=#333333><%=ipfrom%></font></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>最后访问时间:</b></td>
<td bgcolor=#FFFFFF><font color=#333333><%=lastactivetime%></font></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>用户短讯息:</b></td>
<td bgcolor=#FFFFFF>
<font color=#333333>
收件箱共 <%=getMsgNumber%> 条 [ <a href="usermanager.jsp?action=<%=action%>&box=get&username=<%=username%>">删除收件箱</a> ]<br>
发件箱共 <%=sendMsgNumber%> 条 [ <a href="usermanager.jsp?action=<%=action%>&box=send&username=<%=username%>">删除发件箱</a> ]
</font>
</td>
</tr>
<%
if(usermode!=7) {
%>
<tr>
<td colspan=2 bgcolor=#FFFFFF align=center>
[ <a href="usermanager.jsp?action=delete&username=<%=username%>">删 除 此 用 户</a> ]
</td>
</tr>
<tr>
<td colspan=2 bgcolor=#EEEEEE align=center>
<input type=submit value="提 交" name=submit>
</td>
</tr>
<%
}
%>
</form>
<%
}
}
else if(action.equals("delete")) {
String username=ParameterUtils.getString(request,"username");
userManager.setUserName(username);
userManager.deleteUser();
String errorInfo=userManager.getErrorInfo();
if(errorInfo.equals("")) {
%>
<tr>
<td bgcolor="#333333">
<font face=宋体 color=#FFFFFF><b>用户管理中心</b></font>
</td>
</tr>
<tr>
<td bgcolor=#EEEEEE><font color=#333333><b>删除用户的资料已成功!</font></b></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b><%=username%> 的资料已全部被删除!</b></font></td>
</tr>
<%
}
else {
%>
<tr>
<td bgcolor="#333333">
<font face=宋体 color=#FFFFFF><b>用户管理中心</b></font>
</td>
</tr>
<tr>
<td bgcolor=#EEEEEE><font color=#333333><b><%=errorInfo%></font></b></td>
</tr>
<%
}
}
else if(action.equals("ban")) {
String username=ParameterUtils.getString(request,"username");
userManager.setUserName(username);
userManager.banUser();
String errorInfo=userManager.getErrorInfo();
if(errorInfo.equals("")) {
%>
<tr>
<td bgcolor="#333333">
<font face=宋体 color=#FFFFFF><b>用户管理中心</b></font>
</td>
</tr>
<tr>
<td bgcolor=#EEEEEE><font color=#333333><b>禁止用户帐号已成功!</font></b></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b><%=username%> 的帐号已被禁止!</b></font></td>
</tr>
<%
}
else {
%>
<tr>
<td bgcolor="#333333">
<font face=宋体 color=#FFFFFF><b>用户管理中心</b></font>
</td>
</tr>
<tr>
<td bgcolor=#EEEEEE><font color=#333333><b>禁止用户帐号失败!</font></b></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><b>出现错误!<%=errorInfo%></b></font></td>
</tr>
<%
}
}
}
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -