📄 adduser1.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%if reg="1" then%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=jjgn%> - 会员注册_建站铺修正版_bbs.jzpu.com</title>
<script type="text/javascript">
// JavaScript Document
<!--
function FrmAddLink_onsubmit() {
var i, n;
if (document.FrmAddLink.username.value=="")
{
alert("对不起,请输入您的用户名!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.username.value.length < 2)
{
alert("您的用户名能不能长一点!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.username.value.length > 30)
{
alert("您的用户名太长了吧!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.username.value.indexOf('`') >= 0 ||
document.FrmAddLink.username.value.indexOf('~') >= 0 ||
document.FrmAddLink.username.value.indexOf('!') >= 0 ||
document.FrmAddLink.username.value.indexOf('@') >= 0 ||
document.FrmAddLink.username.value.indexOf('#') >= 0 ||
document.FrmAddLink.username.value.indexOf('$') >= 0 ||
document.FrmAddLink.username.value.indexOf('%') >= 0 ||
document.FrmAddLink.username.value.indexOf('^') >= 0 ||
document.FrmAddLink.username.value.indexOf('&') >= 0 ||
document.FrmAddLink.username.value.indexOf('*') >= 0 ||
document.FrmAddLink.username.value.indexOf('(') >= 0 ||
document.FrmAddLink.username.value.indexOf(')') >= 0 ||
document.FrmAddLink.username.value.indexOf('+') >= 0 ||
document.FrmAddLink.username.value.indexOf('{') >= 0 ||
document.FrmAddLink.username.value.indexOf('}') >= 0 ||
document.FrmAddLink.username.value.indexOf('|') >= 0 ||
document.FrmAddLink.username.value.indexOf('[') >= 0 ||
document.FrmAddLink.username.value.indexOf(']') >= 0 ||
document.FrmAddLink.username.value.indexOf('\\') >= 0 ||
document.FrmAddLink.username.value.indexOf(';') >= 0 ||
document.FrmAddLink.username.value.indexOf(':') >= 0 ||
document.FrmAddLink.username.value.indexOf('>') >= 0 ||
document.FrmAddLink.username.value.indexOf('<') >= 0 ||
document.FrmAddLink.username.value.indexOf(',') >= 0 ||
document.FrmAddLink.username.value.indexOf('?') >= 0 ||
document.FrmAddLink.username.value.indexOf('/') >= 0 ||
document.FrmAddLink.username.value.indexOf('\'') >= 0 ||
document.FrmAddLink.username.value.indexOf('"') >= 0 ||
document.FrmAddLink.username.value.indexOf(' ') >= 0 ||
document.FrmAddLink.username.value.indexOf('=') >= 0 ||
document.FrmAddLink.username.value.indexOf('%') >= 0
)
{
alert("用户名中包含无效字符,请重新选择用户名!");
document.FrmAddLink.username.focus();
return false;
}
else if (document.FrmAddLink.passwd.value=="")
{
alert("对不起,请您输入密码!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length < 4)
{
alert("为了安全,您的密码应该长一点!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length > 16)
{
alert("您的密码太长了吧!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.username.value==document.FrmAddLink.passwd.value)
{
alert("为了安全,用户名与密码不应该相同!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd2.value=="")
{
alert("对不起,请您输入验证密码!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
{
alert("对不起,您两次输入的密码不一致!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.question.value=="")
{
alert("对不起,请您输入提示问题!")
document.FrmAddLink.question.focus()
return false
}
else if (document.FrmAddLink.answer.value=="")
{
alert("对不起,请您输入问题答案!")
document.FrmAddLink.answer.focus()
return false
}
else if (document.FrmAddLink.question.value==document.FrmAddLink.answer.value)
{
alert("为了安全,提示问题与问题答案不应该相同!")
document.FrmAddLink.answer.focus()
return false
}
else if (document.FrmAddLink.fullname.value=="")
{
alert("对不起,请输入您的真实姓名!")
document.FrmAddLink.fullname.focus()
return false
}
else if (document.FrmAddLink.depid.value=="")
{
alert("对不起,请选择您的工作单位!")
document.FrmAddLink.depid.focus()
return false
}
else if (document.FrmAddLink.sex.value=="")
{
alert("对不起,请选择您的性别!")
document.FrmAddLink.sex.focus()
return false
}
else if (document.FrmAddLink.tel.value=="")
{
alert("对不起,请输入您的联系电话!")
document.FrmAddLink.tel.focus()
return false
}
else if (document.FrmAddLink.email.value=="")
{
alert("对不起,请输入您的电子邮件!")
document.FrmAddLink.email.focus()
return false
}
else if (document.FrmAddLink.email.value.indexOf("@",0)== -1||document.FrmAddLink.email.value.indexOf(".",0)==-1)
{
alert("对不起,您输入的电子邮件有误!")
document.FrmAddLink.email.focus()
return false
}
}
//Function to open pop up window
function openWin(theURL,winName,features) {
window.open(theURL,winName,features);
}
//--></script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head><!--//生日选择日期处理开始-->
<script src="inc/User_Info_Modify.js" type="text/javascript"></script>
<!--//生日选择日期处理结束-->
</head>
<body>
<form action="saveuser.asp" method="post" id="FrmAddLink" onsubmit="return FrmAddLink_onsubmit()" language="javascript">
<div class="wide_400 align_left padding_50px line_height_20px" id="regmain">
<fieldset>
<legend> <h2>┊会 员 注 册┊</h2></legend>
<p>为了使您能正常使用本系统,请详细填写每一项资料</p>
<div><span>用 户 名:</span><input name="username" size="26" maxlength="30" title="请在这里填写您的用户名,注册成功后将用此用户名登录本系统。" /></div><div><span>密 码:</span><input name="passwd" size="26" maxlength="30" type="password" title="请在这里填写您的登录密码,在登录时本系统将验证您的密码。" /></div><div><span>验证密码:</span><input name="passwd2" size="26" maxlength="15" type="password" title="请在这里填写您的验证密码,必须与上面的密码一致,主要是防止您的错误输入。" /></div><div><span>提示问题:</span><input name="question" size="26" maxlength="50" type="text" title="请在这里填写您的提示问题,如果您忘记了密码,可以利用此功能来找回您的密码。" /></div><div><span>问题答案:</span> <input name="answer" size="26" maxlength="50" type="text" title="请在这里填写您的提示问题的答案,如果您忘记了密码,可以利用此功能来找回您的密码。" /></div><div><span>真实姓名:</span><input name="fullname" size="26" maxlength="10" title="请在这里填写您的真实姓名。" /></div><div><span>工作单位:</span><%set rstype=createobject("adodb.recordset")
sql="select * from "& db_Dep_Table &" order by id"
rstype.Open sql,conn,1,3%>
<select name="depid" style="font-family: 宋体; font-size: 9pt" title="请在这里选择您的工作单位。">
<option value="">请选择工作单位</option>
<%do while not rstype.EOF%>
<option value="<%=rstype("id")%>"><%=rstype("depname")%>==<%=rstype("deptype")%></option>
<%rstype.MoveNext
loop
set rstype=nothing%>
</select> </div><div><span>性
别:</span><select size="1" name="sex" title="请在这里填写您的性别。">
<option selected="selected" value="">请选择性别</option>
<%if db_Sex_Select = "EChuang" then%>
<option value="先生">先生</option>
<option value="女士">女士</option>
<option value="保密">保密</option>
<%else%>
<%if db_Sex_Select = "Number" then%>
<option value="1">先生</option>
<option value="0">女士</option>
<%end if%>
<%end if%>
</select></div><div><span>生 日:</span><%if db_Birthday_Select = "EChuang" then%><select size="1" name="birthyear">
<%for i=1950 to 2004%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</select>
年
<select size="1" name="birthmonth">
<%for i=1 to 12%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</select>
月
<select size="1" name="birthday">
<%for i=1 to 31%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</select>
日 <%else%>
<%if db_Birthday_Select = "Text" then%><input name="birthday" onfocus="show_cele_date(birthday,'','',birthday)" value="<%=year(now())-18%>-<%=month(now())%>-<%=day(now())%>" size="26">
<%end if%>
<%end if%></div><div><span>联系电话:</span><input name="tel" size="26" maxlength="100" title="请在这里填写您的联系电话,以便我们与您联系。" /></div><div><span>电子邮件:</span><input name="email" size="26" maxlength="100" title="请在这里填写您的电子邮件地址。" /></div><div><span>个人照片:</span><%dim i
if UserTableType = "Dvbbs" then ''显示用户头像,加'bbs/'前缀路径,使图文系统直接显示定向到论坛头像%>
bbs/ <input id="photo" name="photo" value="<%=replace(BbsUserFace,"{$i}","1")%>" onchange="document.all.imag.src=this.value" size="26" maxlength="255" title="个人头象。也可以直接填入您的网上照片的地址(需加http://)。" />
<select onchange="var bbspath='<%=BbsPath%>';document.all.imag.src=bbspath+options[selectedIndex].value;document.all.photo.value=options[selectedIndex].value;" >
<%
BbsUserFaceMax="60" '用户头象文件{$i}值可取的最大值
FaceDefault = "Images/userface/image1.gif" '用户注册(未名E设计图文侧)默认头象文件,相对于 BbsPath 路径。
BbsUserFace = "Images/userface/image{$i}.gif" %>
<option select="select" value="<%=FaceDefault%>">默认</option>
<%for i=1 to BbsUserFaceMax
%>
<option select="select" value="<%=replace(BbsUserFace,"{$i}",i)%>">头像<%=i%></option>
<%next%>
</select>
<p><img src="<%=BbsPath%>Images/userface/image1.gif" border="0" id="imag" onload="javascript:if(this.width>screen.width-550)this.width=screen.width-550" />
</p>
<%else%>
<input id="photo" name="photo" value="images/nopic.gif" onchange="document.all.imag.src=this.value" size="26" class="smallInput" maxlength="255" style="font-family: 宋体; font-size: 9pt" title="个人照片。您可以上传自己的照片,也可以直接填写您的网上照片的地址。" />
<select onchange="document.all.imag.src=options[selectedIndex].value;document.all.photo.value=options[selectedIndex].value" >
<option select="select" value="images/nopic.gif">默认</option>
<%
for i=1 to 35
%>
<option select="select" value="images/Image<%=I%>.gif">头像<%=I%></option>
<%next%>
</select>
<p><img src="images/nopic.gif" border="0" id="imag" onload="javascript:if(this.width>screen.width-550)this.width=screen.width-550" />
</p>
<%end if%></div></td>
<div><span>自我介绍:</span> <textarea rows="5" name="content" cols="26" title="请在这里填写您的个人介绍。"></textarea>
</div>
</div><div>
<input type="submit" value=" 确 定 " name="cmdOk" />
<input type="reset" value=" 重 填 " name="cmdReset">
</fieldset></div>
</form>
</body>
</html>
<%else%>
<script type="text/javascript">
alert("对不起,用户注册功能已被管理员关闭!")
</script>
<html xmlns="http://www.w3.org/1999/xhtml"><body onload="javascript:window.close()"></body>
<%end if%></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -