vipreg.jsp

来自「网上订票系统源代码」· JSP 代码 · 共 173 行

JSP
173
字号
<%@ page    language  = "java"  %>
<%@ page    import    = "java.io.*"  %>
<%@ page    import    = "java.sql.*" %>
<%@ page    import    = "java.math.*" %>
<%@ page    import    = "java.util.Date" %>
<%@ page    import    = "java.util.Vector" %>
<%@ page    import    = "common.*"%>
<%@ page    import    = "java.text.SimpleDateFormat" %>
<%@ page    import    = "javax.servlet.http.*"%>
<%@ page contentType="text/html; charset=gb2312"%>
<%
	request.setCharacterEncoding("gb2312");
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><% Control cc = new Control();out.print(cc.SysName);%>——注册会员</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="css/an_css.css" type="text/css" rel="stylesheet">
<link href="css/css.css" rel="stylesheet" type="text/css">
<META content="MSHTML 6.00.3790.3959" name=GENERATOR>
<STYLE type=text/css>.STYLE1 {
	FONT-WEIGHT: bold; COLOR: #ff6600
}
</STYLE>
</HEAD>
<BODY>
<!-- Head Start -->
<div align="center">
<script language="javascript" src="JS/top.js"></script>
</div>
<!-- Head End -->
<script language="javascript" type="text/javascript">function isCharsInBag (s, bag){var i, c;for (i = 0; i < s.length; i++){c = s.charAt(i);if (bag.indexOf(c) == -1) return false;}return true;}function isCharsAllInBag (s, bag){var i, c;for (i = 0; i < bag.length; i++){c = bag.charAt(i);if (s.indexOf(c) != -1) return true;}return false;}function CharNumInString(stringToCal,char){  var Num=0;  eval("Num=stringToCal.replace(/[^"+ char +"]/g,'').length;");  return(Num);}function isVaildEmail(s){var i = 1;var len = s.length;/*if ( len == 0 ) return true;*/if (len > 80){return false;}pos1 = s.indexOf('@');pos2 = s.indexOf('.');pos3 = s.lastIndexOf('@');pos4 = s.lastIndexOf('.');if ((pos1 <= 0)||(pos1 == len-1)||(pos2 <= 0)||(pos2 == len-1)){return false;}else{if( (pos1 == pos2 - 1) || (pos1 == pos2 + 1)  || ( pos1 != pos3 ) || ( pos4 < pos3 ) ){return false;}}return true;}function isFloat(str){var Result=true;var dote,i,dotenum;if(!isCharsInBag(str,'1234567890.')){Result=false;}else{dotenum=0;for ( i=0; i< str.length; i++){dote=str.charAt(i);if(dote=='.') dotenum++;}if(dotenum>1) Result=false;}return (Result);}function isMobileNum(str){var Result=true;if(str.length!=11){Result=false;}else{if(!isCharsInBag(str,'1234567890')){Result=false;}else{if((str.substr(0,3)!='130')&&(str.substr(0,3)!='131')&&(str.substr(0,3)!='132')&&(str.substr(0,3)!='133')&&(str.substr(0,3)!='134')&&(str.substr(0,3)!='135')&&(str.substr(0,3)!='136')&&(str.substr(0,3)!='137')&&(str.substr(0,3)!='138')&&(str.substr(0,3)!='139')&&(str.substr(0,3)!='159')) Result=false;}}return (Result);}function isSafeInupt(StrToCheck){   var Result = true;  if(isCharsAllInBag(StrToCheck,'\' =\\/";,<>#$%^&*()!`~:[]{}|+?'))  {    Result = false;  }  return (Result);}function isFixPhoneNum(StrToCheck){  var Result = true;  var i;  if(!isCharsInBag(StrToCheck,'-0123456789#*'))  {     Result = false;  }  if(StrToCheck.indexOf('-')==0) Result = false;  return(Result);}function CheckForm_form1(){ var ifcontinue=true;if(ifcontinue&&(form1.UNick.value=='')){ alert('请填写登录名!');form1.UNick.focus(); ifcontinue=false;}if(ifcontinue&&(form1.UPwd.value=='')){ alert('请填写登录密码!');form1.UPwd.focus(); ifcontinue=false;}if(ifcontinue&&(form1.UPwd1.value=='')){ alert('请填写重复密码!');form1.UPwd1.focus(); ifcontinue=false;}if(ifcontinue&&(form1.UName.value=='')){ alert('请填写真实姓名!');form1.UName.focus(); ifcontinue=false;}if(ifcontinue&&(form1.UPwd.value!=form1.UPwd1.value)){ alert('两次输入密码不一致,请重新输入!');form1.UPwd.focus(); ifcontinue=false;}if(ifcontinue&&(!isSafeInupt(form1.UNick.value))||(form1.UNick.value==''&&ifcontinue)){ alert('登录名中包含非法字符,请重新输入!');form1.UNick.focus(); ifcontinue=false;}if(ifcontinue&&(!isSafeInupt(form1.UPwd.value))||(form1.UPwd.value==''&&ifcontinue)){ alert('登录密码中包含非法字符,请重新输入!');form1.UPwd.focus(); ifcontinue=false;}if(ifcontinue&&(!isSafeInupt(form1.UPwd1.value))||(form1.UPwd1.value==''&&ifcontinue)){ alert('重复密码中包含非法字符,请重新输入!');form1.UPwd1.focus(); ifcontinue=false;}if(ifcontinue&&(!isSafeInupt(form1.UName.value))&&(form1.UName.value!='')){ alert('真实姓名中包含非法字符,请重新输入!');form1.UName.focus(); ifcontinue=false;}if(ifcontinue&&(!isSafeInupt(form1.UEmail.value))||(form1.UEmail.value==''&&ifcontinue)){ alert('Email中包含非法字符,请重新输入!');form1.UEmail.focus(); ifcontinue=false;}if(ifcontinue&&(!isVaildEmail(form1.UEmail.value))||(form1.UEmail.value==''&&ifcontinue)){ alert('请输入正确的电子邮件地址!');form1.UEmail.focus(); ifcontinue=false;} return ifcontinue;}</script>
<DIV align=center>
<FORM id="form1" name="form1" method="post" action="RegProcess.jsp">
<table cellpadding="0" cellspacing="0" border="0" width="750">
<tr>
	<td height="5"></td>
</tr>
</table>
<TABLE height=223 cellSpacing=0 cellPadding=0 width=750 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle width=201>
      <TABLE height=137 cellSpacing=0 cellPadding=0 width="100%" background=image/bg_title_login.gif border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width=201 height=46><IMG height=46 
            src="image/XS_title_server.gif" width=201></TD></TR>
        <TR>
          <TD vAlign=top height=69>
            <TABLE cellSpacing=1 cellPadding=0 width="79%" align=center bgColor=#9ac9cc border=0>
              <TBODY>
              <TR>
                <TD bgColor="#ffffff" height=25>
                  <DIV align=left><IMG height=19 hspace=10 
                  src="image/pic01.gif" width=17 align=absMiddle>会员介绍</DIV></TD>
			  </TR>
			  <TR>
			    <TD bgcolor="#FFFFFF" style="line-height:180%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎注册本站会员,注册会员不仅可以使您获得更方便快捷的网上订舱服务,更有多种折扣等着您!您还有机会参加本站各种促销活动!</TD>
			  </TR>
              </TBODY>
			</TABLE>
		  </TD>
		</TR>
        <TR>
          <TD vAlign=top><IMG height=22 src="image/BG_login01.gif" width=201></TD>
		</TR>
		</TBODY>
	  </TABLE>
    </TD>
    <TD vAlign=top align=middle>
      <TABLE cellSpacing=0 cellPadding=0 width=538 border=0>
        <TBODY>
        <TR>
          <TD><IMG height=51 src="image/title01.gif" 
        width=538></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=538 border=0>
        <TBODY>
        <TR>
          <TD><IMG height=22 src="image/pic07.gif" width=538></TD></TR>
        <TR>
          <TD vAlign=top align=middle background=image/pic08.gif>
            <TABLE cellSpacing=0 cellPadding=0 width="97%" border=0>
              <TBODY>
              <TR>
                <TD class=TXT180><FONT 
                  color=#666666>欢迎您使用订舱中心会员注册系统,请注意:<BR><BR>(1) 带<FONT 
                  color=#ff0000>*</FONT>为必填项 <BR>(2) 
                  请填写真实有效的个人信息,特别是姓名、email地址,以便我们和您联系。</FONT></TD>
			  </TR>
			  </TBODY>
			</TABLE>
            <TABLE height=10 cellSpacing=0 cellPadding=0 width="95%" border=0>
              <TBODY>
              <TR>
                <TD colSpan=4 height=30>&nbsp;<STRONG>会员注册信息</STRONG></TD>
              </TR>
              <TR>
                <TD width=20>&nbsp;</TD>
                <TD width="123" height=25>&nbsp; </TD>
                <TD colspan="2"><FONT color=red></FONT></TD></TR>
              <TR>
                <TD style="HEIGHT: 25px">&nbsp;</TD>
                <TD height=25 style="HEIGHT: 25px">&nbsp;登录名:</TD>
                <TD width="148" style="HEIGHT: 25px"><INPUT id=UNick 
                  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; WIDTH: 120px; COLOR: #333333; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px" 
                  maxLength=16 name=UNick> <FONT color=red>&nbsp;*</FONT></TD>
			    <TD width="220" style="HEIGHT: 25px">登录本站的用户名</TD>
              </TR>
			  <TR>
                <TD style="HEIGHT: 25px">&nbsp;</TD>
                <TD height=25 style="HEIGHT: 25px">&nbsp;登录密码:</TD>
                <TD style="HEIGHT: 25px"><INPUT name=UPwd type="password" id=UPwd 
                  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; WIDTH: 120px; COLOR: #333333; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px" 
                  maxLength=8> <FONT color=red>&nbsp;*</FONT></TD>
			    <TD style="HEIGHT: 25px">登录密码</TD>
			  </TR>
			  <TR>
                <TD style="HEIGHT: 25px">&nbsp;</TD>
                <TD height=25 style="HEIGHT: 25px">&nbsp;重复密码:</TD>
                <TD style="HEIGHT: 25px"><INPUT name=UPwd1 type="password" id=UPwd1 
                  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; WIDTH: 120px; COLOR: #333333; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px" 
                  maxLength=8> <FONT color=red>&nbsp;*</FONT></TD>
			    <TD style="HEIGHT: 25px">重复输入密码</TD>
			  </TR>
			  <TR>
                <TD style="HEIGHT: 25px">&nbsp;</TD>
                <TD height=25 style="HEIGHT: 25px">&nbsp;真实姓名:</TD>
                <TD colspan="2" style="HEIGHT: 25px"><INPUT id=UName 
                  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; WIDTH: 120px; COLOR: #333333; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px" 
                  maxLength=10 name=UName> <FONT color=red>&nbsp;*</FONT></TD>
			  </TR>
              <TR>
                <TD>&nbsp;</TD>
                <TD height=25>&nbsp;邮 箱:</TD>
                <TD><input name=UEmail id=UEmail 
                  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; WIDTH: 120px; COLOR: #333333; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 20px" size="30" 
                  maxlength=45>
                  <FONT color=red>&nbsp;*</FONT></TD>
                <TD>请输入您常用的Email</TD>
              </TR>
			  <TR>
                <TD colspan="4">&nbsp;</TD>
              </TR>
              <TR>
                <TD height="25" colspan="4" align="center">
                  <INPUT  id=Button1 style="FONT-SIZE: 12px; WIDTH: 88px" onclick="if(CheckForm_form1()) form1.submit();" type="button" value=" 提  交" name=Button1> 
                          <INPUT id=Button3 style="FONT-SIZE: 12px; WIDTH: 88px" type="reset" value=" 重  置" name=Button3></TD>
                </TR>
			  </TBODY>
			  </TABLE>
			  </TD>
		</TR>
        <TR>
          <TD><IMG height=19 src="image/pic09.gif" width=538></TD>
		</TR>
		</TBODY>
		</TABLE>
	</TD>
	</TR>
</TBODY>
</TABLE>
</FORM>
</DIV>
<!-- Bottom Start -->
<div align="center">
<script language="javascript" type="text/javascript" src="JS/end.js"></script>
</div>
<!-- Bottom End -->
</BODY>
</HTML>

⌨️ 快捷键说明

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