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

📄 register.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<jsp:include flush="true" page="header.jsp" />
<script src="include/javascript/calendar.js" type="text/javascript"></script>
<div id="nav"><a href="${settings.indexname}"> ${settings.bbname} </a> &raquo; 注册</div>
<c:choose><c:when test="${bbrules=='1' && rulesubmit==null}">
<form name="bbrules" method="post" action="${regname}">
<input type="hidden" name="formhash" value="${formhash}" />
<input type="hidden" name="referer" value="index.jsp" />
<div class="mainbox formbox">
	<h1>注册</h1>
	<table cellspacing="0" cellpadding="0" width="100%" align="center" class="register">
		<tbody><tr><td><br />${bbrulestxt}<br /><br /></td></tr></tbody>
		<tr class="btns" style="height: 40px"><td align="center" id="rulebutton">请仔细阅读以上的注册许可协议</td></tr>
	</table>
</div>
</form>
<script type="text/javascript">
var secs = 9;
var wait = secs * 1000;
$('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议 (" + secs + ")";
for(i = 1; i <= secs; i++) {
	window.setTimeout("update(" + i + ")", i * 1000);
}
window.setTimeout("timer()", wait);
function update(num, value) {
	if(num == (wait/1000)) {
		$('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议";
	} else {
		printnr = (wait / 1000) - num;
		$('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议 (" + printnr + ")";
	}
}
function timer() {
	$('rulebutton').innerHTML = '<button type="submit" id="rulesubmit" name="rulesubmit" value="true">同 意</button> &nbsp; <button type="button" onclick="location.href=\'index.jsp\'">不同意</button>';
}
</script>
</c:when><c:otherwise>
<script type="text/javascript">
	function showadv() {
		if(document.register.advshow.checked == true) {
			$("adv").style.display = "";
		} else {
			$("adv").style.display = "none";
		}
	}
	function previewavatar(url) {
		if(url) {
			$('avatarpreview').innerHTML = '<img id="previewimg" /><br />';
			$('previewimg').src = url;
			if($('avatarwidthnew')) {
				$('avatarwidthnew').value = $('previewimg').clientWidth;
				$('avatarheightnew').value = $('previewimg').clientHeight;
			}
		} else {
			$('avatarpreview').innerHTML = '';
		}
	}
</script>
<form method="post" name="register" action="${regname}?regsubmit=yes" onSubmit="this.regsubmit.disabled=true;">
<input type="hidden" name="formhash" value="${formhash}" />
<div class="mainbox formbox">
	<span class="headactions"><a href="member.jsp?action=credits&view=promotion_register" target="_blank">查看积分策略说明</a></span>
	<h1>注册</h1>
	<table summary="注册" cellspacing="0" cellpadding="0">
		<thead><tr><th>基本信息 ( * 为必填项)</th><td>&nbsp;</td></tr></thead>
		<c:if test="${seccodecheck}"><tr><th><label for="seccodeverify">验证码 *</label></th><td><div id="seccodeimage"></div> <input type="text" onfocus="updateseccode();this.onfocus = null" id="seccodeverify" name="seccodeverify" size="8" maxlength="4" onBlur="checkseccode()" tabindex="1" /> <em class="tips" id="checkseccodeverify"><strong>点击输入框显示验证码</strong> 如果看不清验证码,请点图片刷新</em><script type="text/javascript">var seccodedata = [${seccodedata["width"]}, ${seccodedata["height"]},${seccodedata["type"]}];</script></td></tr></c:if>
		<c:if test="${secqaaStatus==1}"><tr><th><label for="secanswer">验证问答 *</label></th><td><p id="secquestion">Loading question</p> <input type="text" name="secanswer" size="25" maxlength="50" id="secanswer" onBlur="checksecanswer()" tabindex="2" /> <span id="checksecanswer">&nbsp;</span><script type="text/javascript">ajaxget('ajax.do?action=updatesecqaa&inajax=1', 'secquestion');</script></td></tr></c:if>
		<tr><th><label for="username">用户名 *</label></th><td><input type="text" id="username" name="username" size="25" maxlength="15" onBlur="checkusername()" tabindex="3" /> <span id="checkusername">&nbsp;</span></td></tr>
		<tr><th><label for="password">密码 *</label></th><td><input type="password" name="password" size="25" id="password" onBlur="checkpassword()" tabindex="4" /> <span id="checkpassword">&nbsp;</span></td></tr>
		<tr><th><label for="password2">确认密码 *</label></th><td><input type="password" name="password2" size="25" id="password2" onBlur="checkpassword2()" tabindex="5" /> <span id="checkpassword2">&nbsp;</span></td></tr>
		<tr><th><label for="email">Email *</label></th><td><input type="text" name="email" size="25" id="email" onBlur="checkemail()" tabindex="6" /> <span id="checkemail"><a href="http://im.live.cn/" target="_blank">免费注册5G超大Hotmail邮箱</a><c:if test="${regverify==1}">&nbsp; 请确保信箱有效,我们将发送激活说明到这个地址</c:if> <c:choose><c:when test="${!empty accessemail}">&nbsp; 您只能使用以 ${accessemail} 结尾的信箱</c:when><c:when test="${!empty censoremail}">&nbsp; 请不要使用以 ${censoremail} 结尾的信箱</c:when></c:choose></span></td></tr>
		<c:if test="${regstatus >1}"><tr><th><label for="invitecode">邀请码 ${regstatus==2?"*":""}</label></th><td><input type="text" name="invitecode" size="25" maxlength="16" value="${param.invitecode}" id="invitecode" onBlur="checkinvitecode()" tabindex="7" /> <span id="checkinvitecode"></span></td></tr></c:if>
		<c:if test="${fromuser!=null}"><tr><th>推荐人</th><td><input type="text" name="fromuser" size="25" value="${fromuser}" disabled="disabled" tabindex="9" /></td></tr></c:if>
		<c:forEach items="${fields_required}" var="field">
			<tr>
				<th>${field.value.title}  *<c:if test="${empty field.value.description}"><br />${field.value.description}</c:if></th>
				<td>
					<c:choose><c:when test="${field.value.selective>0}">
						<select name="${field.key}new" tabindex="10">
							<option value="">- 请选择 -</option>
							<c:forTokens items="${field.value.choices}" delims="," varStatus="index" var="choice"><option value="${index.count}">${choice}</option></c:forTokens>
						</select></c:when>
						<c:otherwise><input type="text" name="${field.key}new" size="25" value="" tabindex="10" /></c:otherwise>
					</c:choose>
					<c:if test="${field.value.unchangeable>0}">&nbsp;请认真填写本项目,一旦确定将不可修改</c:if>
				</td>
			</tr>					
		</c:forEach>
		<c:if test="${regverify==2}"><tr><th>注册原因 *</th><td><textarea rows="4" cols="30" name="regmessage" tabindex="11"></textarea></td></tr></c:if>
		<tr><th><label for="advshow">高级选项</label></th><td><label><input id="advshow" name="advshow" class="checkbox" ${advcheck} type="checkbox" value="1" onclick="showadv()" tabindex="12" />显示高级用户设置选项</label></td></tr>
	</table>
	<table summary="注册 高级选项" cellspacing="0" cellpadding="0" id="adv" style="display: ${advdisplay};">
		<thead><tr><th>扩展信息</th><td>&nbsp;</td></tr></thead>
		<tr><th><label for="questionid">安全提问</label></th><td><select id="questionid" name="questionid" tabindex="13"><option value="0">无安全提问</option><option value="1">母亲的名字</option><option value="2">爷爷的名字</option><option value="3">父亲出生的城市</option><option value="4">您其中一位老师的名字</option><option value="5">您个人计算机的型号</option><option value="6">您最喜欢的餐馆名称</option><option value="7">驾驶执照的最后四位数字</option></select> 如果您启用安全提问,登录时需填入相应的项目才能登录</td></tr>
		<tr><th><label for="answer">回答</label></th><td><input type="text" id="answer" name="answer" size="25" tabindex="14" /></td></tr>
		<c:forEach items="${fields_optional}" var="field">
			<tr>
				<th>${field.value.title}<c:if test="${empty field.value.description}"><br />${field.value.description}</c:if></th>
				<td>
					<c:choose><c:when test="${field.value.selective>0}">
						<select name="${field.key}new" tabindex="10">
							<option value="">- 请选择 -</option>
							<c:forTokens items="${field.value.choices}" delims="," varStatus="index" var="choice"><option value="${index.count}">${choice}</option></c:forTokens>
						</select></c:when>
						<c:otherwise><input type="text" name="${field.key}new" size="25" value="" tabindex="10" /></c:otherwise>
					</c:choose>
					<c:if test="${field.value.unchangeable>0}">&nbsp;请认真填写本项目,一旦确定将不可修改</c:if>
				</td>
			</tr>					
		</c:forEach>
		<c:if test="${groupinfo.allownickname>0}"><tr><th>昵称</th><td><input type="text" name="nickname" size="25" maxlength="30" tabindex="16" /></td></tr></c:if>
		<tr><th>性别</th><td><label><input type="radio" name="gender" value="1" tabindex="17" /> 男</label> <label><input type="radio" name="gender" value="2" tabindex="18" /> 女</label> <label><input type="radio" name="gender" value="0" tabindex="19"checked="checked"> 保密</label></td></tr>
		<tr><th><label for="bday">生日</label></th><td><input type="text" id="bday" name="bday" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="0000-00-00" tabindex="20" /></td></tr>
		<tr><th><label for="loaction">来自</label></th><td><input type="text" id="loaction" name="location" size="25" tabindex="21" /></td></tr>
		<tr><th><label for="site">个人网站</label></th><td><input type="text" id="site" name="site" size="25" tabindex="22" /></td></tr>
		<tr><th><label for="qq">QQ</label></th><td><input type="text" id="qq" name="qq" size="25" tabindex="23" /></td></tr>
		<tr><th><label for="msn">MSN</label></th><td><input type="text" name="msn" size="25" tabindex="8" /><span id="checkmsn"><a href="http://im.live.cn/" target="_blank">下载最新版MSN Messenger</a> </span></td></tr>
		<tr><th><label for="icq">ICQ</label></th><td><input type="text" id="icq" name="icq" size="25" tabindex="24" /></td></tr>
		<tr><th><label for="yahoo">Yahoo</label></th><td><input type="text" id="yahoo" name="yahoo" size="25" tabindex="25" /></td></tr>
		<tr><th><label for="taobao">阿里旺旺</label></th><td><input type="text" id="taobao" name="taobao" size="25" tabindex="26" /></td></tr>
		<tr><th><label for="alipay">财付通账号</label></th><td><input type="text" id="alipay" name="alipay" size="25" tabindex="27" /></td></tr>
		<tr><th valign="top"><label for="bio">自我介绍</label></th><td><textarea rows="5" cols="30" id="bio" name="bio" tabindex="28"></textarea></td></tr>
		<thead><tr><th>论坛个性化设置</th><td>&nbsp;</td></tr></thead>
		<tr><th><label for="styleid">界面风格</label></th><td><select id="styleidnew" name="styleid" tabindex="29"><option value="0">- 使用默认 -</option><c:forEach items="${styleTemplates}" var="style"><option value="${style.key}">${style.value}</option></c:forEach></select></td></tr>
		<tr><th><label for="tpp">每页主题数</label></th><td><select id="tpp" name="tpp" tabindex="30"><option value="0">- 使用默认 -</option><option value="10">10</option><option value="20">20</option><option value="30">30</option></select></td></tr>
		<tr><th><label for="ppp">每页帖数</label></th><td><select id="ppp" name="ppp" tabindex="31"><option value="0">- 使用默认 -</option><option value="5">5</option><option value="10">10</option><option value="15">15</option></select></td></tr>
		<tr>
			<th><label for="timeoffset">时差设定</label></th>
			<td><select id="timeoffset" name="timeoffset" tabindex="32">
				<option value="9999" selected="selected">- 使用默认 -</option>
				<option value="-12">(GMT -12:00) Eniwetok, Kwajalein</option>
				<option value="-11">(GMT -11:00) Midway Island, Samoa</option>
				<option value="-10">(GMT -10:00) Hawaii</option>
				<option value="-9">(GMT -09:00) Alaska</option>
				<option value="-8">(GMT -08:00) Pacific Time (US & Canada), Tijuana</option>
				<option value="-7">(GMT -07:00) Mountain Time (US & Canada), Arizona</option>
				<option value="-6">(GMT -06:00) Central Time (US & Canada), Mexico City</option>
				<option value="-5">(GMT -05:00) Eastern Time (US & Canada), Bogota, Lima,Quito</option>
				<option value="-4">(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
				<option value="-3.5">(GMT -03:30) Newfoundland</option>
				<option value="-3">(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
				<option value="-2">(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
				<option value="-1">(GMT -01:00) Azores, Cape Verde Islands</option>
				<option value="0">(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
				<option value="1">(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
				<option value="2">(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
				<option value="3">(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
				<option value="3.5">(GMT +03:30) Tehran</option>
				<option value="4">(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
				<option value="4.5">(GMT +04:30) Kabul</option>
				<option value="5">(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
				<option value="5.5">(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
				<option value="5.75">(GMT +05:45) Katmandu</option>
				<option value="6">(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
				<option value="6.5">(GMT +06:30) Rangoon</option>
				<option value="7">(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
				<option value="8">(GMT +08:00) &#x5317;&#x4eac;(Beijing), Hong Kong, Perth,Singapore, Taipei</option>
				<option value="9">(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
				<option value="9.5">(GMT +09:30) Adelaide, Darwin</option>
				<option value="10">(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
				<option value="11">(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
				<option value="12">(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
			</select></td>
		</tr>
		<tr><th><label>时间格式</label></th><td><label><input type="radio" value="0" name="timeformat" tabindex="33" checked="checked" />默认</label> <label><input type="radio" value="1" name="timeformat" tabindex="34" />12 小时</label> <label><input type="radio" value="2" name="timeformat" tabindex="35" />24 小时</label></td></tr>
		<tr><th><label for="dateformat">日期格式</label></th><td><select id="dateformat" name="dateformat" tabindex="36"><option value="0">默认</option><c:forEach items="${dateformats}" var="dateformat" varStatus="index"><option value="${index.count}">${dateformat}</option></c:forEach></select></td></tr>
		<tr><th>短消息提示音</th><td><label><input type="radio" value="0" name="pmsound" />无</label> <input type="radio" value="1" name="pmsound" tabindex="37" checked/><a href="images/sound/pm_1.wav" />#1 </a> <input type="radio" value="2" name="pmsound" tabindex="38"><a href="images/sound/pm_2.wav" />#2 </a> <input type="radio" value="3" name="pmsound" tabindex="39"><a href="images/sound/pm_3.wav" />#3 </a></td></tr>
		<c:if test="${groupinfo.allowcstatus>0}"><tr><th>自定义头衔</th><td><input type="text" name="customstatus" size="25" maxlength="30" tabindex="40" /></td></tr></c:if>
		<tr><th>其他选项</th><td><c:if test="${groupinfo.allowinvisible==1}"><input type="checkbox" name="invisible" value="1" tabindex="41" /> 在线列表中隐身<br /></c:if><input type="checkbox" name="showemail" value="1" tabindex="42" checked="checked" />	Email 地址可见 <br /><input type="checkbox" name="newsletter" value="1" tabindex="43" checked="checked" /> 同意接收论坛通知 (Email 或短消息)<br /></td></tr>
		<c:choose>
			<c:when test="${groupinfo.allowavatar==1}"><tr><th>头像</th><td><span id="avatarpreview"></span> <input type="text" name="urlavatar" id="urlavatar" size="25" tabindex="44" /><a href="member.do?action=viewavatars&page=1" onclick="ajaxget(this.href, 'avatardiv');doane(event);">论坛头像列表</a> <div id="avatardiv" style="display: none; margin-top: 10px;"></div></td></tr></c:when>
			<c:when test="${groupinfo.allowavatar==2}"><tr><th>头像</th><td><span id="avatarpreview"></span> <input type="text" name="urlavatar" id="urlavatar" size="25" tabindex="44" /> <a href="member.do?action=viewavatars&page=1" onclick="ajaxget(this.href, 'avatardiv');doane(event);">论坛头像列表</a> <div id="avatardiv" style="display: none; margin-top: 10px;"></div><br />宽: <input type="text" name="avatarwidthnew" size="1" value="*" /> &nbsp; 高: <input type="text" name="avatarheightnew" size="1" value="*" /></td></tr></c:when>
		</c:choose>
		<c:if test="${groupinfo.maxsigsize>0}"><tr><th>个人签名(${groupinfo.maxsigsize} 字节以内)	<br /><br /><a href="faq.jsp?action=message&id=18" target="_blank">JspRun!代码</a> ${groupinfo.allowsigbbcode>0?"可用":"禁用"}<br />[img] 代码 ${groupinfo.allowsigimgcode>0?"可用":"禁用"}</th><td><textarea rows="4" cols="30" name="signature" tabindex="45"></textarea></td></tr></c:if>
	</table>
	<table summary="Submit Button" cellpadding="0" cellspacing="0"><tr><th>&nbsp;</th><td><button class="submit" type="submit" name="regsubmit" value="true" tabindex="100">提交</button></td></tr></table>
</div>
</form>
<script type="text/javascript">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';

⌨️ 快捷键说明

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