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

📄 regist.jsp

📁 这是论坛原代码,希望大家能好好看看,说明需要的太多了吧
💻 JSP
📖 第 1 页 / 共 3 页
字号:
          </tr>				
                <tr>
                  <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="timeZone"/></td>
                  <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">
&nbsp;
<select name="timeZone">
  <option value="GMT-11:00">(GMT-11.00)
  <lt:Label res="res.label.cms.config" key="GMT-11.00"/>
  </option>
  <option value="GMT-10:00">(GMT-10.00)
  <lt:Label res="res.label.cms.config" key="GMT-10.00"/>
  </option>
  <option value="GMT-09:00">(GMT-9.00)
  <lt:Label res="res.label.cms.config" key="GMT-9.00"/>
  </option>
  <option value="GMT-08:00">(GMT-8.00)
  <lt:Label res="res.label.cms.config" key="GMT-8.00"/>
  </option>
  <option value="GMT-07:00">(GMT-7.00)
  <lt:Label res="res.label.cms.config" key="GMT-7.00"/>
  </option>
  <option value="GMT-06:00">(GMT-6.00)
  <lt:Label res="res.label.cms.config" key="GMT-6.00"/>
  </option>
  <option value="GMT-05:00">(GMT-5.00)
  <lt:Label res="res.label.cms.config" key="GMT-5.00"/>
  </option>
  <option value="GMT-04:00">(GMT-4.00)
  <lt:Label res="res.label.cms.config" key="GMT-4.00"/>
  </option>
  <option value="GMT-03:00">(GMT-3.00)
  <lt:Label res="res.label.cms.config" key="GMT-3.00"/>
  </option>
  <option value="GMT-02:00">(GMT-2.00)
  <lt:Label res="res.label.cms.config" key="GMT-2.00"/>
  </option>
  <option value="GMT-01:00">(GMT-1.00)
  <lt:Label res="res.label.cms.config" key="GMT-1.00"/>
  </option>
  <option value="GMT">(GMT)
  <lt:Label res="res.label.cms.config" key="GMT"/>
  </option>
  <option value="GMT+01:00">(GMT+1.00)
  <lt:Label res="res.label.cms.config" key="GMT+1.00"/>
  </option>
  <option value="GMT+02:00">(GMT+2.00)
  <lt:Label res="res.label.cms.config" key="GMT+2.00"/>
  </option>
  <option value="GMT+03:00">(GMT+3.00)
  <lt:Label res="res.label.cms.config" key="GMT+3.00"/>
  </option>
  <option value="GMT+04:00">(GMT+4.00)
  <lt:Label res="res.label.cms.config" key="GMT+4.00"/>
  </option>
  <option value="GMT+04:30">(GMT+4.30)
  <lt:Label res="res.label.cms.config" key="GMT+4.30"/>
  </option>
  <option value="GMT+05:00">(GMT+5.00)
  <lt:Label res="res.label.cms.config" key="GMT+5.00"/>
  </option>
  <option value="GMT+05:30">(GMT+5.30)
  <lt:Label res="res.label.cms.config" key="GMT+5.30"/>
  </option>
  <option value="GMT+05:45">(GMT+5.45)
  <lt:Label res="res.label.cms.config" key="GMT+5.45"/>
  </option>
  <option value="GMT+06:00">(GMT+6.00)
  <lt:Label res="res.label.cms.config" key="GMT+6.00"/>
  </option>
  <option value="GMT+06:30">(GMT+6.30)
  <lt:Label res="res.label.cms.config" key="GMT+6.30"/>
  </option>
  <option value="GMT+07:00">(GMT+7.00)
  <lt:Label res="res.label.cms.config" key="GMT+7.00"/>
  </option>
  <option value="GMT+08:00" selected="selected">(GMT+8.00)
  <lt:Label res="res.label.cms.config" key="GMT+8.00"/>
  </option>
  <option value="GMT+09:00">(GMT+9.00)
  <lt:Label res="res.label.cms.config" key="GMT+9.00"/>
  </option>
  <option value="GMT+09:30">(GMT+9.30)
  <lt:Label res="res.label.cms.config" key="GMT+9.30"/>
  </option>
  <option value="GMT+10:00">(GMT+10.00)
  <lt:Label res="res.label.cms.config" key="GMT+10.00"/>
  </option>
  <option value="GMT+11:00">(GMT+11.00)
  <lt:Label res="res.label.cms.config" key="GMT+11.00"/>
  </option>
  <option value="GMT+12:00">(GMT+12.00)
  <lt:Label res="res.label.cms.config" key="GMT+12.00"/>
  </option>
  <option value="GMT+13:00">(GMT+13.00)
  <lt:Label res="res.label.cms.config" key="GMT+13.00"/>
  </option>
</select></td>
                </tr>              
                <tr>
                  <td rowspan="2" align=left valign="middle"  bgcolor="#FFFFFF">
				  &nbsp;<lt:Label res="res.label.forum.user" key="sign"/>
				  <br>
				  <br>
				  &nbsp;UBB:
				  <%
				  com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
				  if (cfg.getBooleanProperty("forum.sign_ubb"))
				  	out.print(SkinUtil.LoadString(request, "res.label.forum.user", "support"));
				  else
				  	out.print(SkinUtil.LoadString(request, "res.label.forum.user", "not_support"));
				  %>				  </td>
                  <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
                  <%@ include file="forum/inc/getubb.jsp"%></td>
                </tr>
                <tr>
                  <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
                    <textarea cols="75" name="Content" rows="5" wrap="VIRTUAL" title="签名档"></textarea>
                    <font color="#000000"><br>
&nbsp;&nbsp;
<lt:Label res="res.label.forum.user" key="sign_limit_count"/>
<%=cfg.getIntProperty("forum.sign_length")%></font></td>
                </tr>                
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF"> <table border=0 cellpadding=0 cellspacing=0 width=100%>
                <tr valign=bottom> 
                  <td height=41 align="center" valign="middle" > <font color="#FF0000">&nbsp; </font>
                    <input name=Write type=submit value="<lt:Label key="ok"/>">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input name=reset type=reset value="<lt:Label key="reset"/>">
				  </td>
                </tr>
              </table></td>
          </tr>
        </table></td>
</tr></form></table>
<iframe width=0 height=0 src="regist_check.jsp" name="checkFrame" id="checkFrame"></iframe>
<%@ include file="forum/inc/footer.jsp"%>
</body>
<SCRIPT>
function VerifyInput()
{
var newDateObj = new Date()
if (document.frmAnnounce.RegName.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_regname"/>");
document.frmAnnounce.RegName.focus();
return false;
}

if (document.frmAnnounce.Password.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_pwd"/>");
document.frmAnnounce.Password.focus();
return false;
}
if (document.frmAnnounce.Password2.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_pwd2"/>");
document.frmAnnounce.Password2.focus();
return false;
}
if (document.frmAnnounce.Password.value != document.frmAnnounce.Password2.value)
{
alert("<lt:Label res="res.label.forum.user" key="pwd_not_equal_pwd2"/>");
document.frmAnnounce.Password.focus();
return false;
}

if (document.frmAnnounce.Email.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_email"/>");
document.frmAnnounce.Email.focus();
return false;
}

if (document.frmAnnounce.Question.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_question"/>");
document.frmAnnounce.Question.focus();
return false;
}

if (document.frmAnnounce.Answer.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_answer"/>");
document.frmAnnounce.Answer.focus();
return false;
}

if (document.frmAnnounce.BirthYear.value > 0)  {
	if (isNaN(document.frmAnnounce.BirthYear.value) || document.frmAnnounce.BirthYear.value > newDateObj.getFullYear()  || document.frmAnnounce.BirthYear.value < 1900)
	{
		alert("<lt:Label res="res.label.forum.user" key="err_birthday"/>");
		document.frmAnnounce.BirthYear.focus();
		return false;
	}
}

var signlen = <%=cfg.getIntProperty("forum.sign_length")%>;
if (document.frmAnnounce.Content.value.length>signlen)
{
	alert("<lt:Label res="res.label.forum.user" key="sign_limit_count"/>" + signlen);
	document.frmAnnounce.Content.focus();
	return false;
}

return true;
}
</SCRIPT>
</html>

⌨️ 快捷键说明

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