?? mymodify.jsp
字號(hào):
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="INC/theme.jsp"%>
<% stats="修改個(gè)人資料";
%>
<%
out.println(headLine(forumID,forumName,forumLogo,"",1,stats));
%>
<%String action=ParamUtil.getString(request,"action");
if(action!=null&&("update").equals(action)){
if(foundUser){
try
{
UserManager.updateUser(request);
%>
<table cellpadding=0 cellspacing=0 border=0 width=95% bgcolor=<%=aTableBackColor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr align="center">
<td width="100%" bgcolor=<%=aTableTitleColor%>>成功:修改資料</td>
</tr>
<tr>
<td width="100%" bgcolor=<%=tableBodyColor%>><b>恭喜您,您的資料修改成功</b><br>
</td>
</tr>
<tr align="center">
<td width="100%" bgcolor=<%=aTableTitleColor%>>
<a href="javascript:history.go(-1)"> << 返回上一頁(yè)</a>
</td>
</tr>
</table> </td></tr></table>
<%
}
catch(Exception e){
errMsg=e.getMessage();
%>
<%@ include file="INC/error.jsp"%>
<%
}
}
else{
errMsg="<li>對(duì)不起,沒(méi)有此用戶(hù)";
%>
<%
}
}
else
{
%>
<%
try{
if(foundUser){
User theUser=UserManager.findUser(userName);
%>
<form action="mymodify.jsp?action=update" method=POST name="theForm">
<input type="hidden" name="userName" value="<%=userName%>">
<table cellpadding=0 cellspacing=0 border=0 width=<%=tableWidth%> bgcolor=<%=tableBackColor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr align="center">
<td colspan="2" width="100%" bgcolor=<%=tableTitleColor%> height=25><font color="<%=tableFontColor%>"><b><%=response.encodeURL(userName)%>修改資料</b></font></td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>性別</B>:<BR>請(qǐng)選擇您的性別</font></td>
<td width="60%"><input type="radio" value="1"<%if ("1".equals(theUser.getSex())){%> checked <%}%>name="sex">酷哥
<input type="radio" name="sex"<%if ("0".equals(theUser.getSex())){%> checked <%}%> value="0">靚妹</td>
</td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>密碼</B>:<BR>如要修改請(qǐng)直接輸入</font></td>
<td width="60%">
<input type="password" name="userPassword" value="<%=response.encodeURL(theUser.getUserPassword())%>" size=30 maxlength=13>
</td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>Email地址</B>:<BR>請(qǐng)輸入有效的郵件地址,這將保證您在論壇中的私人資料。</font></td>
<td width="60%">
<input type="TEXT" name="userEmail" size=30 maxlength=50 value="<%if(theUser.getUserEmail()!=null&&!theUser.getUserEmail().equals("")) {%><%=response.encodeURL(theUser.getUserEmail())%><%}%>">
</td>
</tr>
<%if (titleFlag!=null&&titleFlag.equals("1")){%>
<%if (theUser.getUserClass()>5){%>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>頭銜</B>:</font></td>
<td width="60%"> <input type="text" name="title" value="<%if(theUser.getTitle()!=null&&!theUser.getTitle().equals("")){ %><%=response.encodeURL(theUser.getTitle())%><%}%>" size=15 maxlength=13> </td>
</tr>
<%}%>
<%}%>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%" valign=top><font color="<%=tableContentColor%>"><B>頭像</B>:<BR>
您可以選擇一個(gè)個(gè)性圖片,當(dāng)你發(fā)表時(shí)將顯示在您的名字下方。<BR>
如果你填寫(xiě)了下面的自定義頭像部分,那么你的頭像以自定義的為準(zhǔn)。否則,請(qǐng)你留空自定義頭像的所有欄目!<BR>
<B>關(guān)于自定義頭像</B>:<BR>
你也可以在這里給出你自定義頭像的 URL 地址,頭像的高度和寬度(像素)。 如果不想要自定義頭像,請(qǐng)將相應(yīng)欄目欄目全部留空!</font>
</td>
<td width="60%"> <font color="<%=tableContentColor%>">
<select name=face style="font-family:arial" size=1 onChange="document.images['face'].src=options[selectedIndex].value; parent.document.forms[0].myface.value=options[selectedIndex].value">
<%
int startP=(picURL+"Image").length();
int oldFaceNum=0;
try{
oldFaceNum = Integer.parseInt(theUser.getFace().substring(startP,startP+2));
}
catch(Exception e){
try{
oldFaceNum = Integer.parseInt(theUser.getFace().substring(startP,startP+1));
}
catch(Exception e1){
oldFaceNum=1;
}
}
%>
<%for(i=1;i<61;i++){%>
<option value='<%=picURL%>Image<%=i%>.gif' <%if(i==oldFaceNum){ out.println("selected");}%>>Image<%=i%></option>
<%}%>
</select> <img id=face src="<%=theUser.getFace()%>" width=<%=theUser.getWidth()%> height=<%=theUser.getHeight()%>><BR><BR>
圖像位置:<input type="TEXT" name="myface" size=20 maxlength=100 value=<%=theUser.getFace()%>><br>
寬 度:<input type="TEXT" name="width" size=2 maxlength=2 value=<%=theUser.getWidth()%>>20---120的整數(shù)<br>
高 度:<input type="TEXT" name="height" size=2 maxlength=2 value=<%=theUser.getHeight()%>>20---120的整數(shù)<br></font>
</td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>主頁(yè)地址</B>:<BR>如果您有主頁(yè),請(qǐng)輸入主頁(yè)地址。此項(xiàng)可選</font></td>
<td width="60%">
<input type="TEXT" name="homePage" value="<%if (theUser.getHomePage()!=null&&!theUser.getHomePage().equals("")){ %><%=response.encodeURL(theUser.getHomePage())%><%}%>" size=30 maxlength=100>
</td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td width="40%"><font color="<%=tableContentColor%>"><B>OICQ號(hào)碼</B>:<BR>如果您有 OICQ,請(qǐng)輸入號(hào)碼。此項(xiàng)可選</font></td>
<td width="60%">
<input type="TEXT" name="oicq" value="<%if(theUser.getOicq()!=null&&!("").equals(theUser.getOicq())){%><%=response.encodeURL(theUser.getOicq())%><%}%>" size=30 maxlength=20>
</td>
</tr>
<tr bgcolor=<%=tableBodyColor%>>
<td valign=top width="40%"><font color="<%=tableContentColor%>"><B>簽名</B>:<BR>不能超過(guò) 300 個(gè)字符
<br>
文字將出現(xiàn)在您發(fā)表的文章的結(jié)尾處。</font></td>
<td width="60%">
<%
String signature="";
if(theUser.getNoFilterSign()!=null&&!("").equals(theUser.getNoFilterSign()))
signature=theUser.getNoFilterSign();
%>
<textarea name="sign" rows=5 cols=60 wrap=PHYSICAL><%=signature%></textarea>
</td>
</tr>
<tr align="center">
<td colspan="2" width="100%" bgcolor=<%=tableTitleColor%>>
<input type=Submit value="更 新" name="Submit"> <input type="reset" name="Submit2" value="清 除">
</td>
</tr>
</table> </td></tr></table>
</form>
<%
}
else throw new Exception("<li>對(duì)不起,您沒(méi)有登陸,或者非法登陸了</li>");
}
catch(Exception e){
out.println(e.getMessage());
}
}%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -