📄 reg_member.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="functions.asp"-->
<HEAD><TITLE>学生信息注册</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
<%
'访问者只有在注册协议页面单击“我同意”才能进入此页面,如果直接在地址栏输入此页面的文件名,将转入协议页面。
if request.form("action")<>"agree" then
response.write "<script language='javascript'>"
response.write "location.href='reg.asp';"
response.write "</script>"
response.end
end if
%>
<script language="JavaScript">
function JM_sh(ob){
if (ob.style.display=="none"){ob.style.display=""}else{ob.style.display="none"};
}
function fucPWDchk(str)
{
var strSource ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var ch;
var i;
var temp;
for (i=0;i<=(str.length-1);i++)
{
ch = str.charAt(i);
temp = strSource.indexOf(ch);
if (temp==-1)
{
return 0;
}
}
if (strSource.indexOf(ch)==-1)
{
return 0;
}
else
{
return 1;
}
}
function jtrim(str)
{ while (str.charAt(0)==" ")
{str=str.substr(1);}
while (str.charAt(str.length-1)==" ")
{str=str.substr(0,str.length-1);}
return(str);
}
//判断表单输入正误
function Checkreg()
{
if (document.ADDUser.UserId.value.length < 4 || document.ADDUser.UserId.value.length >16) {
alert("提示:请输入学号,有效长度为4-16位");
document.ADDUser.UserId.focus();
return false;
}
if (document.ADDUser.pw1.value.length <6 || document.ADDUser.pw1.value.length >16) {
alert("提示:请输入密码,最少6位,最长16位。");
document.ADDUser.pw1.focus();
return false;
}
if (!fucPWDchk(document.ADDUser.pw1.value)){
alert("提示:只能使用纯数字和大、小写字母作为密码");
document.ADDUser.pw1.focus();
return false;
}
if (document.ADDUser.pw1.value != document.ADDUser.pw2.value) {
alert("提示:您两次输入的密码不一样,请检查后重新输入");
document.ADDUser.pw2.focus();
return false;
}
if (document.ADDUser.Usermail.value.length <10 || document.ADDUser.Usermail.value.length >=100) {
alert("提示:请输入有效的电子邮箱");
document.ADDUser.Usermail.focus();
return false;
}
if (document.ADDUser.Usermail.value.length > 0 && !document.ADDUser.Usermail.value.match( /^.+@.+$/ ) ) {
alert("提示:请输入有效的电子信箱");
document.ADDUser.Usermail.focus();
return false;
}
if (document.ADDUser.Username.value.length < 2 || document.ADDUser.Username.value.length >16) {
alert("提示:请检查您填写的真实姓名");
document.ADDUser.Username.focus();
return false;
}
if (document.ADDUser.Banji.value.length <3 || document.ADDUser.Banji.value.length >=100) {
alert("提示:请输入有效的班级");
document.ADDUser.Banji.focus();
return false;
}
if (document.ADDUser.Zhuanye.value.length <2 || document.ADDUser.Zhuanye.value.length >20) {
alert("提示:请输入正确的专业");
document.ADDUser.Zhuanye.focus();
return false;
}
if (document.ADDUser.HomePhone.value.length <6 || document.ADDUser.HomePhone.value.length >18) {
alert("提示:请输入有效的电话号码");
document.ADDUser.HomePhone.focus();
return false;
}
if (document.ADDUser.Birthday.value.length <3 || document.ADDUser.Birthday.value.length >12) {
alert("提示:请输入有效的出生年月");
document.ADDUser.Birthday.focus();
return false;
}
}
</script>
</HEAD>
<BODY bgColor=#2f66bf >
<DIV align=center>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=763 border=0>
<TBODY>
<TR>
<TD width="100%"><!--#include file="head.asp"--></TD></TR></TBODY></TABLE>
<TABLE dir=ltr cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=center>
<TABLE height=830 cellSpacing=0 cellPadding=0 width=763 border=0>
<TBODY>
<TR>
<TD width=763 background=images/head_13.jpg height=15></TD></TR>
<TR>
<TD vAlign=top align=middle width=763
background=images/head_14.jpg height=49>
<TABLE id=AutoNumber3 style="BORDER-COLLAPSE: collapse"
borderColor=#111111 cellSpacing=0 cellPadding=0 width=763
border=0><TBODY>
<TR>
<TD width=11 rowSpan=4> </TD>
<TD width=741></TD>
<TD width=11 rowSpan=4> </TD></TR>
<TR>
<TD width=741></TD></TR>
<TR>
<TD width=741> </TD></TR>
<TR>
<TD width=741></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width=763 background=images/head_16.jpg height=11></TD></TR>
<TR>
<TD width=763 background=images/head_11.jpg height=726>
<DIV align=center>
<TABLE id=table8 height="101%" cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=187>
<!-- #include file ="left.asp"-->
</TD>
<TD vAlign=top>
<TABLE id=table9 height=30 cellSpacing=0 cellPadding=0
width=571 border=0>
<TBODY>
<TR>
<TD width=12 background=images/sousuo_1.jpg> </TD>
<TD width=115 background=images/sousuo_2.jpg>
<TABLE id=table12 height=18 cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top><FONT color=#ffffff><SPAN
style="FONT-SIZE: 12px"> 学 生 搜
索</SPAN></FONT></TD></TR></TBODY></TABLE></TD>
<TD background=images/sousuo_2.jpg> </TD>
<TD vAlign=top width=133
background=images/sousuo_2.jpg>
<FORM style="MARGIN: 0px" name="form1" action="search.asp" method="post">
<TABLE cellSpacing=0 cellPadding=0 width=390 border=0>
<TBODY>
<TR>
<TD width=56></TD>
<TD vAlign=top width=144><SPAN lang=zh-cn>
<SELECT class=smallSel size=1 name="searchid">
<OPTION value="Userid" selected name="typeid">=按登陆学号=</OPTION>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -