⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usermodify.jsp

📁 BBS系统
💻 JSP
📖 第 1 页 / 共 3 页
字号:
     <td bgcolor=<%=miscbackone%>>
      <input type="text" name="birthday" size=10 maxlength=10 value="<%=userbirthday%>"> (*格式:1980-01-01)
     </td>
    </tr>
    <tr>
     <SCRIPT language=javascript>
       function showsx() {
         document.images.usersxs.src="sx/"+document.creator.usersx.options[document.creator.usersx.selectedIndex].value+".gif";
       }
     </SCRIPT>
     <td bgcolor=<%=miscbackone%> vAlign=top>
      <font color=<%=fontcolormisc%>><b>所属生肖:</b><br>请选择你所属的生肖。<br>如果你正确输入了生日的话,那么此项无效!</font>
     </td>
     <td bgcolor=<%=miscbackone%>>
      <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>
     <SCRIPT language=javascript>
       function showxz() {
       document.images.userxzs.src="star/"+document.creator.astro.options[document.creator.astro.selectedIndex].value+".gif";
       }
     </SCRIPT>
     <td bgcolor=<%=miscbackone%> vAlign=top>
      <font color=<%=fontcolormisc%>><b>所属星座:</b><br>请选择你所属的星座。<br>如果你正确输入了生日的话,那么此项无效!</font>
     </td>
     <td bgcolor=<%=miscbackone%>>
      <SELECT name="astro" onchange=showxz() size="1">
       <OPTION value="blank" <%if(userastro.equals("保密")) out.print("selected");%>>保密</OPTION>
       <OPTION value="z1" <%if(userastro.equals("z1")) out.print("selected");%>>白羊座(3月21--4月19日)</OPTION>
       <OPTION value="z2" <%if(userastro.equals("z2")) out.print("selected");%>>金牛座(4月20--5月20日)</OPTION>
       <OPTION value="z3" <%if(userastro.equals("z3")) out.print("selected");%>>双子座(5月21--6月21日)</OPTION>
       <OPTION value="z4" <%if(userastro.equals("z4")) out.print("selected");%>>巨蟹座(6月22--7月22日)</OPTION>
       <OPTION value="z5" <%if(userastro.equals("z5")) out.print("selected");%>>狮子座(7月23--8月22日)</OPTION>
       <OPTION value="z6" <%if(userastro.equals("z6")) out.print("selected");%>>处女座(8月23--9月22日)</OPTION>
       <OPTION value="z7" <%if(userastro.equals("z7")) out.print("selected");%>>天秤座(9月23--10月23日)</OPTION>
       <OPTION value="z8" <%if(userastro.equals("z8")) out.print("selected");%>>天蝎座(10月24--11月21日)</OPTION>
       <OPTION value="z9" <%if(userastro.equals("z9")) out.print("selected");%>>射手座(11月22--12月21日)</OPTION>
       <OPTION value="z10" <%if(userastro.equals("z10")) out.print("selected");%>>魔羯座(12月22--1月19日)</OPTION>
       <OPTION value="z11" <%if(userastro.equals("z11")) out.print("selected");%>>水瓶座(1月20--2月18日)</OPTION>
       <OPTION value="z12" <%if(userastro.equals("z12")) out.print("selected");%>>双鱼座(2月19--3月20日)</OPTION>
      </SELECT>
      <IMG border=0 name=userxzs src="star/<%if(userastro.equals("保密")) out.print("blank"); else out.print(userastro);%>.gif" width=15 height=15 align="absmiddle">
     </TD>
    </TR>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>主页地址:</b><br>如果您有主页,请输入主页地址。此项可选</font>
     </td>
     <td bgcolor=<%=miscbackone%>><input type=text name="homepage" value="<%=userhomepage%>"></td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>OICQ 号:</b><br>如果您有 OICQ,请输入号码。此项可选
     </td>
     <td bgcolor=<%=miscbackone%>><input type=text name="qq" value="<%=userqq%>"></td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>ICQ 号:</b><br>如果您有 ICQ,请输入号码。此项可选</font>
     </td>
     <td bgcolor=<%=miscbackone%>><input type=text name="icq" value="<%=usericq%>"></td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>来自:</b><br>请输入您所在国家的具体地方。此项可选</font>
     </td>
     <td bgcolor=<%=miscbackone%>>
      国家 <input type=text name="country" maxlength=6 size=6 value="<%=usercountry%>">
      省份 <input type=text name="province" maxlength=6 size=6 value="<%=userprovince%>"><br>
      城市 <input type=text name="city" maxlength=12 size=12 style="font-weight: bold" value="<%=usercity%>"> 不能超过12个字符(6个汉字)
     </td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
       <font color=<%=fontcolormisc%>><b>时差:</b><br>
       服务器所在时区:北京时间<br>如果您所在的位置和服务器有时差,请输入。<br>您看到所有的时间将按照您所在的地区时间显示。</font>
     </td>
     <td bgcolor=<%=miscbackone%>><input type=text name="timedifference" maxlength=6 size=6 value="<%=usertimedifference%>"> 小时
     </td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>自我简介: </b><BR>不能超过 <B><%=maxinsline%></B> 行,也不能超过 <B><%=maxinslegth%></B> 个字符<br><br>您可以在此输入您的个人简介。此项可选</font>
     </td>
     <td bgcolor=<%=miscbackone%>><textarea name="introdution" cols="60" rows="<%=maxinsline%>"><%=userintrodution%></textarea></td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>><b>签名:</b><br>不能超过 <B><%=maxsignline%></B> 行,也不能超过 <B><%=maxsignlegth%></B> 个字符
       <br><br>不能使用 HTML 标签<br>可以使用 <a href="javascript:openScript('misc.jsp?action=lycode',300,350)">LyBBS 标签</a><BR>
       <li>贴图标签 : <b>允许</b>
       <li>文字大小 : <b>禁止</b>
      </font>
     </td>
     <td bgcolor=<%=miscbackone%>><textarea name="signature" cols="60" rows="<%=maxsignline%>"><%=usersignature%></textarea></td>
    </tr>
<%
  if(registeravatars.equals("1")) {
%>
     <script language="javascript">
       function showimage() {
        document.images.useravatars.src="avatars/"+document.creator.useravatar.options[document.creator.useravatar.selectedIndex].value;
       }
     </script>        
    <tr>
     <td bgcolor=<%=miscbackone%> valign=top>
      <font color=<%=fontcolormisc%>><b>个性图片:</b><br>您可以选择一个个性图片,当你发表时将显示在您的名字下方。<BR>如果你填写了下面的自定义头像部分,那么你的头像以<b>自定义</b>的为准。否则,请你留空自定义头像的所有栏目!<BR>
       <br><br><b>关于自定义头像</b>:<br>你也可以在这里给出你自定义头像的 URL 地址,头像的高度和宽度(像素)。 如果不想要自定义头像,请将相应栏目栏目全部留空!<BR><BR>
       <br><b>如果你不想要任何的头像,那么请首先在菜单上选“不要头像”,然后留空所有自定义头像的部分!</b><BR><br>
      </font>
     </td>
     <td bgcolor=<%=miscbackone%> valign=top>
       <a href=viewavatars.jsp target=_blank><B>按此查看</B></a>所有头像名称列表。<BR>
       <select name="useravatar" size=1 onChange="showimage()">
         <option value="blank" selected>使用上次选择头像</option>
         <option value="noavatar">不要头像</option>
<%@ include file="boardavatars.jsp"%>
       </select>
       <img src=avatars/<%if(userimage.equals("")) out.print("noavatar.gif");else out.print(userimage);%> name="useravatars" width=32 height=32 hspace=15><br><br><br>
<%
    if(arrowavaupload.equals("1")) {
%>
       <br>上传头像: 暂还未完成文件上传功能<%--<input type="file" size=20 name="addme"> 上传自定义头像。--%><br>
<%
    }
%>
       <br>图像位置: <input type="text" name="imageurl" size=20 value="<%=defaultimageurl%>"> 输入完整的 URL 路径。<br>
       <br>图像宽度: <input type="text" name="imagewidth" size=2 maxlength=3 value=<%=defaultwidth%>> 必须是 20 -- <%=maxposticonwidth%> 之间的一个整数。<br>
       <br>图像高度: <input type="text" name="imageheight" size=2 maxlength=3 value=<%=defaultheight%>> 必须是 20 -- <%=maxposticonheight%> 之间的一个整数。<br></td>
     </td>
    </tr>
<%
  }
%>
   </table>
  </td>
   <script language="JavaScript">
     function showadv() {
       if (document.creator.advshow.checked == true) {
          adv.style.display = "";
          advance.innerText="关闭高级用户设置选项"
       }
       else{
          adv.style.display = "none";
          advance.innerText="显示高级用户设置选项"
       }
     }
   </script>
 </tr>
</table>

<img src="" width=0 height=4><BR>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> align=center>
 <tr>
  <td width=50%>
    <INPUT id=advcheck name=advshow type=checkbox value=1 onclick=showadv() checked>
    <span id="advance">显示高级用户设置选项</span>
  </td>
  <td width=50%>
    <input type=submit value="提 交" name=submit>
  </td>
 </tr>
</table>
</form>
<%
  }
  else {
    errorinfo="无法确认用户身份!请确保您处在登录状态!如有问题请联系管理员!";
  }
}
else if(submit.equals("提 交")) {
  tempSTR=request.getParameter("password");
  if(tempSTR!=null && !tempSTR.equals(""))
     password=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("password2");
  if(tempSTR!=null && !tempSTR.equals(""))
     password2=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("email");
  if(tempSTR!=null && !tempSTR.equals(""))
     useremail=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("showemail");
  if(tempSTR!=null && !tempSTR.equals(""))
     usershowemail=tempSTR;
  tempSTR=request.getParameter("lostquestion");
  if(tempSTR!=null && !tempSTR.equals(""))
     lostquestion=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  if(!lostquestion.equals("")) {
    lostquestion=connect.Replace(lostquestion,"\'","\\\'");
    lostquestion=connect.Replace(lostquestion,"\"","\\\"");
  }
  tempSTR=request.getParameter("lostanswer");
  if(tempSTR!=null && !tempSTR.equals(""))
     lostanswer=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  if(!lostanswer.equals("")) {
    lostanswer=connect.Replace(lostanswer,"\'","\\\'");
    lostanswer=connect.Replace(lostanswer,"\"","\\\"");
  }
  tempSTR=request.getParameter("newmembertitle");
  if(tempSTR!=null && !tempSTR.equals("")) {
    usermembertitle=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
    usermembertitle=connect.Replace(usermembertitle,"\'","\\\'");
    usermembertitle=connect.Replace(usermembertitle,"\"","\\\"");
  }
  else usermembertitle="";
  tempSTR=request.getParameter("newsocialpart");
  if(tempSTR!=null && !tempSTR.equals("")) {
    userpart=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
    userpart=connect.Replace(userpart,"\'","\\\'");
    userpart=connect.Replace(userpart,"\"","\\\"");
  }
  else userpart="";
  tempSTR=request.getParameter("sex");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -