register.jsp

来自「是一个用VB编写得银行ATM机交易的程序」· JSP 代码 · 共 270 行

JSP
270
字号
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">  
   <html xmlns="http://www.w3.org/1999/xhtml">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>注册</title>
    <style type="text/css">
<!--
body {
	margin-top: 0px;
	margin-bottom: 0px;
	background-color: #59758a;
}
.BottomLine {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.RoundTable {
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-top-color: #9099A9;
	border-right-color: #9099A9;
	border-bottom-color: #9099A9;
	border-left-color: #9099A9;
}
-->
    </style>
	
	<style>
	.rt,.rb{
display:block;
width:652px;
margin-left:0px;
margin-right:0px;
}
.rt{
margin-top:5px;
}
.rb{
margin-bottom:5px;

}
.rt *{
display:block;
height: 1px;
overflow: hidden;
background-color:#330011;
border-left:1px solid #330011;
border-right:1px solid #330011;
}
.rb *{
display:block;
height: 1px;
overflow: hidden;
background-color:#8F97A7;
border-left:1px solid #aa00ee;
border-right:1px solid #aa00ee;
}

.rb1{
margin: 0 6px;
background-color:#8F97A7;
}
.rb2{
margin: 0 4px;
border-width:0px 2px;
background-color:#8F97A7;
}
.rb3{
margin: 0 3px;
background-color:#8D95A5;
}
.rb4{
margin: 0 2px;
background-color:#8D95A5;
}
.rb5{
margin: 0 1px;
height: 2px;
background-color:#8D95A5;
}
.rb6 {display:block;
width:650px;
margin-left:0px;
margin-right:0px;
}
    .rt1 {display:block;
width:650px;
margin-left:0px;
margin-right:0px;
}
    </style>
	
	<script language="JavaScript">
<!--
function valiform(){
if(document.form1.UserName.value==""){
alert("请输入用户名" );
document.form1.UserName.focus();
return false;}
if(document.form1.URealName.value==""){
alert("请输入真实姓名" );
document.form1.URealName.focus();
return false;}
if(document.form1.UCardID.value==""){
alert("请输入身份证号" );
document.form1.UCardID.focus();
return false;}
if(document.form1.email.value==""){
alert("请输入Email地址" );
document.form1.email.focus();
return false;}
if(document.form1.UPhone.value==""){
alert("请输入联系电话" );
document.form1.UPhone.focus();
return false;}
if(document.form1.UPass.value==""){
alert("请输入密码" );
document.form1.UPass.focus();
return false;}
if(document.form1.UPassAgain.value==""||document.form1.UPassAgain.value!=document.form1.UPass.value){
alert("请确认密码" );
document.form1.UPassAgain.focus();
document.form1.UPassAgain.value="";
return false;}

var filter2=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/; 
if (!filter2.test(document.form1.email.value)) { 
alert("邮件地址不正确,请重新填写!"); 
document.form1.email.focus(); 
 return false; }
 }
   function isDigit(s)
{
  var patrn=/^[0-9]{1,20}$/;
  if (!patrn.exec(s)&&s!=""){
    alert("身份证号必须为数字!");
    document.form1.UCardID.value="";
    document.form1.UCardID.focus();
    return false;
  }
}
 //-->
 </script>
 
    </head>
    <body>
	<center>
    <table width="720" height="600" border="0" cellpadding="0" cellspacing="0" bordercolor="#0066FF">
      <tr>
        <td width="760" height="46" valign="top" background="images/top_back01.jpg"><table width="720" height="46" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="150" rowspan="2" background="images/top01.jpg">&nbsp;</td>
            <td width="469" rowspan="2" align="left" valign="top"><table width="150" height="46" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td background="images/CardSystem.gif">&nbsp;</td>
              </tr>
            </table></td>
            <td width="101" height="19" align="center" background="images/top_back02.jpg"><font color="#FFFF00" size="2"><a href="CA/ca_log.jsp">CA登陆</a></font></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="760" height="505" align="center" bgcolor="#FFFFFF">
		
		
		  <b class="rt"> <b class="rb1"></b> <b class="rb2"></b> <b class="rb3"></b> <b class="rb4"></b> <b class="rb5"></b> </b><table width="650" height="460" border="0" cellpadding="0" cellspacing="0" bordercolor="#949CAC" class="RoundTable">
  <tr>
    <td><table width="650" height="460" border="0" cellpadding="0" cellspacing="0" class="RoundTable">
      <tr>
        <td height="30" colspan="2" align="left" valign="top" background="images/table01_5.gif">&nbsp;</td>
      </tr>
      <tr>
        <td width="230" height="430" align="left" valign="top"><table width="214" height="194" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td background="images/lock.jpg">&nbsp;</td>
            </tr>
        </table></td>
        <td height="430" align="center" valign="middle"><table width="400" height="420" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="60" align="center"><table  class="BottomLine" width="350" height="60" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" valign="bottom"><b><font size="6" face="华文中宋">用户注册界面</font></b></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="360" align="center">
			<form  name="form1" method="post" action="/BankCheck/RegesiterServlet" onsubmit="return valiform()">
<center>
<table width="231" border="1">
  <tr>
    <td width="66" height="20">用户名</td>
    <td width="149"><label>
      <input name="UserName" type="text" id="UserName" size="10" />
    </label></td>
  </tr>
  <tr>
    <td height="20">密码</td>
    <td><input name="UPass" type="password" id="UPass" size="18" /></td>
  </tr>
  <tr>
    <td height="20">密码确认</td>
    <td><input name="UPassAgain" type="password" id="UPassAgain" size="18" /></td>
  </tr>
  <tr>
    <td height="20">真实姓名</td>
    <td><input name="URealName" type="text" id="URealName" size="10" /></td>
  </tr>
  <tr>
    <td height="20">身份证号</td>
    <td><input name="UCardID" type="text" id="UCardID" size="19" onBlur="isDigit(this.value)"/></td>
  </tr>
  <tr>
    <td height="20">Email</td>
    <td><input name="email" type="text" id="email" size="18" /></td>
  </tr>
  <tr>
    <td height="20">联系电话</td>
    <td><input name="UPhone" type="text" id="UPhone" size="18" /></td>
  </tr>
</table>
<p>
  <label>
  <input type="submit" name="Submit" value="提交" />
  </label>
  <label>
  <input type="reset" name="Submit2" value="重置" />
  </label>
</p>
</center>
    </form>
			</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<b class="rb"> <b class="rb5"></b> <b class="rb4"></b> <b class="rb3"></b> <b class="rb2"></b> <b class="rb1"></b> </b></td>
      </tr>
      <tr>
        <td height="50" align="center" valign="middle" bgcolor="#FFFFFF" ><font size="2">Copyright © 2008 北京交通大学交通运输学院商务考研战队 </font></td>
      </tr>
    </table>   
	</center>    
    </body>
</html>

⌨️ 快捷键说明

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