📄 usermodify.jsp
字号:
<%
/*##################################################################**
**# LyBBS ver 1.2.b2 (1.2.beta-2版) / 凌云论坛 ver 1.2.b2 #**
**# #**
**# 版权所有: 凌云工作室 (原流星电脑工作室) #**
**# #**
**# 制作人 : 星语凌 『teddy (Yongshan Ye)』 #**
**# #**
**# 主页地址: http://www.unix-now.com/lybbs 凌云论坛主页 #**
**# http://www.ierp.info/lybbs 凌云论坛镜像站 #**
**# http://horseye@sina.com/ 凌云论坛支持信箱 #**
**# #**
**##################################################################*/
%>
<%
int number=0;
String submit="",query="";
boolean updateok=false;
errorinfo="";
tempSTR=request.getParameter("submit");
if(tempSTR!=null && !tempSTR.equals(""))
submit=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
//本页的变量定义
int usertimedifference=0,defaultheight=0,defaultwidth=0,maxposticonheight=0,maxposticonwidth=0,userimagewidth=0,userimageheight=0;
String usermembertitle="",userhomepage="",userqq="",usericq="",usercountry="",userprovince="",usercity="",userpart="",usersex="",usereducation="",usermarry="",userwork="",userbirthday="0000-00-00",usersx="",userastro="",userintrodution="",usersignature="",userimage="",usershowemail="1",arrowavaupload="",defaultimageurl="",userimageurl="";
int maxinslegth=0,maxinsline=0,maxsignlegth=0,maxsignline=0;
String registeravatars="",editjhmpself="",editusertitleself="";
tempSTR=request.getParameter("imageurl");
if(tempSTR!=null && !tempSTR.equals(""))
userimageurl=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("imagewidth");
if(tempSTR!=null && !tempSTR.equals(""))
userimagewidth=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("imageheight");
if(tempSTR!=null && !tempSTR.equals(""))
userimageheight=Integer.parseInt(tempSTR);
rs=connect.executeQuery("select avatars from config where id=1");
if(rs.next())
registeravatars=rs.getString(1);
rs=connect.executeQuery("select editjhmpself,editusertitleself,maxinslegth,maxinsline,maxsignlegth,maxsignline,defaultheight,defaultwidth,maxposticonheight,maxposticonwidth,arrowavaupload from style where adminselected='1'");
if(rs.next()) {
editjhmpself=rs.getString(1);
editusertitleself=rs.getString(2);
maxinslegth=rs.getInt(3);
maxinsline=rs.getInt(4);
maxsignlegth=rs.getInt(5);
maxsignline=rs.getInt(6);
defaultheight=rs.getInt(7);
defaultwidth=rs.getInt(8);
maxposticonheight=rs.getInt(9);
maxposticonwidth=rs.getInt(10);
arrowavaupload=rs.getString(11);
}
if(cookiemode.equals("1")) {
errorinfo="用户数据读取失败!无法修改用户资料!";
}
else if(submit.equals("")){
rs=connect.executeQuery("select newmembertitle,email,homepage,qq,icq,country,province,city,newsocialpart,sex,education,marry,work,birthday,usersx,astro,introdution,signature,imagename,lostquestion,lostanswer,username,showemail,timedifference,imageurl,imagewidth,imageheight from author where id="+cookieid);
if(rs.next()) {
usermembertitle=rs.getString(1);
useremail=rs.getString(2);
userhomepage=rs.getString(3);
userqq=rs.getString(4);
usericq=rs.getString(5);
usercountry=rs.getString(6);
userprovince=rs.getString(7);
usercity=rs.getString(8);
userpart=rs.getString(9);
usersex=rs.getString(10);
usereducation=rs.getString(11);
usermarry=rs.getString(12);
userwork=rs.getString(13);
userbirthday=rs.getString(14);
usersx=rs.getString(15);
userastro=rs.getString(16);
userintrodution=rs.getString(17);
usersignature=rs.getString(18);
userimage=rs.getString(19);
lostquestion=rs.getString(20);
lostanswer=rs.getString(21);
username=rs.getString(22);
usershowemail=rs.getString(23);
usertimedifference=rs.getInt(24);
defaultimageurl=rs.getString(25);
if(!defaultimageurl.equals("")) {
defaultwidth=rs.getInt(26);
defaultheight=rs.getInt(27);
}
}
if(username.equals(cookiename) && !username.equals("") && !username.equals("客人") && !username.equals("访客")) {
%>
<form action="profile.jsp" method=post name="creator">
<input type=hidden name="action" value="<%=action%>">
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebordercolor%> align=center>
<tr>
<td>
<table cellpadding=6 cellspacing=1 border=0 width=100%>
<tr>
<td bgcolor=<%=miscbacktwo%> valign=middle colspan=2 align=center>
<font color=<%=fontcolormisc%>><b>修改 <font color=><%=username%></b></font> 的个人资料
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%> width=40%><font color=<%=fontcolormisc%>><b>密码:</b><br>请输入修改密码,区分大小写</td>
<td bgcolor=<%=miscbackone%> width=60%><input type=password name="password" maxlength=20> <a href="javascript:openScript('help.jsp?helpon=遗忘密码',500,400)"><img src=images/help_b.gif border=0></a></td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>密码:</b><br>再输一遍,以便确定!</td>
<td bgcolor=<%=miscbackone%>><input type=password name="password2" maxlength=20> <a href="javascript:openScript('help.jsp?helpon=遗忘密码',500,400)"><img src=images/help_b.gif border=0></a></td>
</tr>
</table>
<table cellpadding=6 cellspacing=1 border=0 width=100% id=adv>
<tr>
<td bgcolor=<%=miscbacktwo%> valign=middle colspan=2 align=center>
<font color=<%=fonthighlight%>><b>如果你不想修改密码,请保持上面空白!</b></font>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbacktwo%>>
<font color=<%=fontcolormisc%>><b>邮件地址:</b><br>请输入有效的邮件地址,这将使您能用到论坛中的所有功能</font>
</td>
<td bgcolor=<%=miscbacktwo%>>
<input type=text name="email" value="<%=useremail%>"> * 此项必须填写
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%> width=40%>
<font color=<%=fontcolormisc%>><b>显示邮件地址</b><br>
您是否希望在您发表文章之后显示您的邮件?</font>
</td>
<td bgcolor=<%=miscbackone%> width=60%>
<font color=<%=fontcolormisc%>><input name="showemail" type="radio" value="1" <%if(usershowemail.equals("1")) out.println("checked");%>> 是 <input name="showemail" type="radio" value="0" <%if(usershowemail.equals("0")) out.println("checked");%>> 否</font>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>>
<font color=<%=fontcolormisc%>><b>密码提示问题:</b><br>帮助您找回您忘记的密码!</font>
</td>
<td bgcolor=<%=miscbackone%>>
<input type=text name="lostquestion" maxlength=40 value="<%=lostquestion%>"> * 此项必须填写
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>>
<font color=<%=fontcolormisc%>><b>密码提示问题的答案:</b><br>一定要记住答案!不然忘了密码,可找不回来罗!</font>
</td>
<td bgcolor=<%=miscbackone%>>
<input type=text name="lostanswer" maxlength=40 value="<%=lostanswer%>"> * 此项必须填写
</td>
</tr>
<%
if(editusertitleself.equals("1")) {
%>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>个人头衔:</b><BR>最大 20 个字符(10个汉字)</font></td>
<td bgcolor=<%=miscbackone%>><input type=text name="newmembertitle" value="<%=usermembertitle%>" size=10 maxlength=20></td>
</tr>
<%
}
if(editjhmpself.equals("1")) {
%>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>江湖门派:</b><BR>最大 20 个字符(10个汉字)</font></td>
<td bgcolor=<%=miscbackone%>><input type=text name="newsocialpart" value="<%=userpart%>" size=10 maxlength=20></td>
</tr>
<%
}
%>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>性别</b></font></td>
<td bgcolor=<%=miscbackone%>>
<select name="sex" size="1">
<option value="保密" <%if(usersex.equals("保密")) out.print("selected");%>>保密 </option>
<option value="帅哥" <%if(usersex.equals("帅哥")) out.print("selected");%>>帅哥 </option>
<option value="美女" <%if(usersex.equals("美女")) out.print("selected");%>>美女 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>最高学历</b></font></td>
<td bgcolor=<%=miscbackone%>>
<select name="education" size="1">
<option value="保密" <%if(usereducation.equals("保密")) out.print("selected");%>>保密 </option>
<option value="小学" <%if(usereducation.equals("小学")) out.print("selected");%>>小学 </option>
<option value="初中" <%if(usereducation.equals("初中")) out.print("selected");%>>初中 </option>
<option value="高中" <%if(usereducation.equals("高中")) out.print("selected");%>>高中</option>
<option value="大专" <%if(usereducation.equals("大专")) out.print("selected");%>>大专</option>
<option value="本科" <%if(usereducation.equals("本科")) out.print("selected");%>>本科</option>
<option value="硕士" <%if(usereducation.equals("硕士")) out.print("selected");%>>硕士</option>
<option value="博士" <%if(usereducation.equals("博士")) out.print("selected");%>>博士</option>
<option value="博士后" <%if(usereducation.equals("博士后")) out.print("selected");%>>博士后</option>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>婚姻状况</b></font></td>
<td bgcolor=<%=miscbackone%>>
<select name="marry" size="1">
<option value="保密" <%if(usermarry.equals("保密")) out.print("selected");%>>保密 </option>
<option value="未婚" <%if(usermarry.equals("未婚")) out.print("selected");%>>未婚 </option>
<option value="已婚" <%if(usermarry.equals("已婚")) out.print("selected");%>>已婚 </option>
<option value="离婚" <%if(usermarry.equals("离婚")) out.print("selected");%>>离婚 </option>
<option value="丧偶" <%if(usermarry.equals("丧偶")) out.print("selected");%>>丧偶 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>职业状况</b></font></td>
<td bgcolor=<%=miscbackone%>>
<select name="work" size="1">
<option value="保密" <%if(userwork.equals("保密")) out.print("selected");%>>保密 </option>
<option value="计算机业" <%if(userwork.equals("计算机业")) out.print("selected");%>>计算机业 </option>
<option value="金融业" <%if(userwork.equals("金融业")) out.print("selected");%>>金融业 </option>
<option value="商业" <%if(userwork.equals("商业")) out.print("selected");%>>商业 </option>
<option value="服务行业" <%if(userwork.equals("服务行业")) out.print("selected");%>>服务行业 </option>
<option value="教育业" <%if(userwork.equals("教育业")) out.print("selected");%>>教育业 </option>
<option value="学生" <%if(userwork.equals("学生")) out.print("selected");%>>学生 </option>
<option value="工程师" <%if(userwork.equals("工程师")) out.print("selected");%>>工程师 </option>
<option value="主管,经理" <%if(userwork.equals("主管,经理")) out.print("selected");%>>主管,经理 </option>
<option value="政府部门" <%if(userwork.equals("政府部门")) out.print("selected");%>>政府部门 </option>
<option value="制造业" <%if(userwork.equals("制造业")) out.print("selected");%>>制造业 </option>
<option value="销售/广告/市场" <%if(userwork.equals("销售/广告/市场")) out.print("selected");%>>销售/广告/市场 </option>
<option value="失业中" <%if(userwork.equals("失业中")) out.print("selected");%>>失业中 </option>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=miscbackone%>><font color=<%=fontcolormisc%>><b>生日:</b>如不想填写,请全部留空。此项可选</font></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -