regindex.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:12k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.net.*" errorPage="" %>
  3. <HTML><HEAD><TITLE>-会员注册-</TITLE>
  4. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  5. <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
  6. <LINK href="image/main.css" type=text/css rel=stylesheet>
  7. <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
  8. <STYLE type=text/css>BODY {
  9. MARGIN: 0px
  10. }
  11. .STYLE1 {
  12. COLOR: #ff3300
  13. }
  14. .STYLE2 {
  15. COLOR: #ff0000
  16. }
  17. </STYLE>
  18. <script language="javascript">
  19. function mycheck(register_common){  
  20. if((register_common.name.value=="")||(register_common.name.value.length<5)||(register_common.name.value.length>21)||(register_common.name.value.indexOf(" ")>-1))
  21.   {
  22.     alert("登录账号没有输入或格式不对");
  23.     register_common.name.focus();
  24.     return false;
  25.   }  
  26.   if ((register_common.password.value=="")||(register_common.password.value.length<5)||(register_common.password.value.length>20))
  27.   {
  28.     alert("密码没有输入或格式不对!");
  29.     register_common.password.focus();
  30.     return false;
  31.   }
  32.     if (register_common.password2.value == "")
  33.   {
  34.     alert("确认密码没有输入!");
  35.     register_common.password2.focus();
  36.     return false;
  37.   }
  38.   if (register_common.password.value!=register_common.password2.value)
  39.   { alert("两次输入密码不一样!");
  40.     register_common.password.focus();
  41.     return false;
  42.   }
  43.   if(register_common.email.value=="")
  44.  {
  45.   alert("请填写邮箱!");
  46.   register_common.email.focus();
  47.   return false;
  48.  }
  49.   if (register_common.email.value!="")
  50.  { if((register_common.email.value.length < 5)||(register_common.email.value.indexOf("@")<1) || (register_common.email.value.indexOf(".")<1) || (register_common.email.value.charAt(register_common.email.value.length-1)=="."))
  51.   {  
  52.     alert("请填写正确的E-mail地址以便联系!格式为:username@host.name");
  53.     register_common.email.focus();
  54.     return false;
  55.    }
  56.  }
  57.    if(register_common.userName.value=="")
  58.  {
  59.   alert("请填写真实姓名!");
  60.   register_common.userName.focus();
  61.   return false;
  62.  }
  63.     if(register_common.address.value=="")
  64.  {
  65.   alert("请填写联系地址!");
  66.   register_common.address.focus();
  67.   return false;
  68.  }
  69.     if(register_common.mobile.value=="")
  70.  {
  71.   alert("请填写邮编!");
  72.   register_common.mobile.focus();
  73.   return false;
  74.  }   if(register_common.telephone.value=="")
  75.  {
  76.   alert("请填写联系电话!");
  77.   register_common.telephone.focus();
  78.   return false;
  79.  }
  80.    if(register_common.brief.value=="")
  81.  {
  82.   alert("请输入注册说明");
  83.   register_common.brief.focus();
  84.   return false;
  85.  }
  86. }
  87. </script>
  88. <META name=KEYWords 
  89. contect="网上书城,网上购书,书,买书,卖书,购书,网上书店,广东,东莞,永正,购书中心,文学,经济,工商,计算机,电脑,教育,音像,电子,医药卫生,建筑工业,艺术,法律,历史,外语,儿童,动漫,小说">
  90. <META name=DEscription contect="广东省东莞永正购书中心,全国第七大民营书城,东莞最大的民营书城,网上购书中心">
  91. <META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
  92. <BODY>
  93. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  94. bgColor=#ffffff border=0>
  95.   <TBODY>
  96.     <TR>
  97.       <TD width=760>
  98.         <TABLE class=4l borderColor=#ebebeb cellSpacing=0 cellPadding=0 
  99.       width="100%" align=center border=0>
  100.           <TBODY>
  101.             <TR>
  102.               <TD>
  103.                 <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
  104.             border=0>
  105.                   <TBODY>
  106.                     <TR>
  107.                       <TD colSpan=2 height=13></TD>
  108.                     </TR>
  109.                     <TR>
  110.                       <TD width=260>
  111.                         <DIV align=center><IMG height=45 
  112.                   src="image/logo.gif" width=200></DIV></TD>
  113.                       <TD align=right width=500>
  114.                         <TABLE cellSpacing=0 cellPadding=0 width=500 align=right 
  115.                   border=0>
  116.                           <TBODY>
  117.                             <TR>
  118.                               <TD align=right width=22><IMG height=67 
  119.                         src="image/top_1.gif" width=7></TD>
  120.                               <TD align=right width=82><A onfocus=this.blur() 
  121.                         href="default.jsp"><IMG 
  122.                         height=67 src="image/home.gif" width=82 
  123.                         border=0></A></TD>
  124.                               <TD align=right width=74><A onfocus=this.blur() 
  125.                         href="newbook.jsp?pageNum=1"><IMG 
  126.                         height=67 src="image/newbook.gif" 
  127.                         width=74 border=0></A></TD>
  128.                               <TD align=right width=79><A onfocus=this.blur() 
  129.                         href="tuibook.jsp?pageNum=1"><IMG 
  130.                         height=67 src="image/jptj.gif" width=79 
  131.                         border=0></A></TD>
  132.                               <TD align=right width=75><A onfocus=this.blur() 
  133.                         href="upload_show.jsp"><IMG 
  134.                         height=67 src="image/tejia.gif" 
  135.                         width=75 border=0></A></TD>
  136.                               <TD align=right width=78><a onFocus=this.blur() 
  137.                         href="messagebox/indexme.jsp"><img 
  138.                         height=67 src="image/guest.gif" 
  139.                         width=78 border=0></a></TD>
  140.                               <TD align=right width=90><A onfocus=this.blur() 
  141.                         href="contactus.jsp"><IMG 
  142.                         height=67 src="image/link_wo.gif" 
  143.                         width=90 
  144.             border=0></A></TD>
  145.                             </TR>
  146.                           </TBODY>
  147.                       </TABLE></TD>
  148.                     </TR>
  149.                   </TBODY>
  150.               </TABLE></TD>
  151.             </TR>
  152.           </TBODY>
  153.       </TABLE></TD>
  154.     </TR>
  155.   </TBODY>
  156. </TABLE>
  157. <CENTER>
  158.   <TABLE width=760 border=0 cellpadding=3 cellspacing=1 align=center  bgcolor=#FFFFFF height=300    class="grayline">
  159.     <tr>
  160.       <td width="760" height=30>当前位置:<a href=default.jsp>首页</a> > 会员注册</td>
  161.     </tr>
  162.     <tr>
  163.       <td height="1" background="image/small/bgline.gif"></td>
  164.     </tr>
  165.     <tr>
  166.       <td align="center">
  167.         <table width="620" border="1" cellpadding="2" cellspacing="0" bordercolor="#F4F6FC" bordercolorlight="#F4F6FC" bordercolordark="#FFFFFF" height="381">
  168.           <form name="ADDUser" method="POST" action="register_check_comm.jsp" onSubmit="return mycheck(ADDUser)">
  169.             <tr>
  170.               <td colspan="2" bgcolor="#F4F6FC" height="25"> <img src=image/gl.gif width="13" height="14" border=0><font color=red>必填资料</font></td>
  171.             </tr>
  172.             <tr>
  173.               <td width="265" align="left" height="26"><b>&nbsp;登录帐号(最少4位,最多16位):</b><br>
  174. &nbsp;可使用数字、字母、中文,禁用特殊符号</td>
  175.               <td width="341" height="26"><input name="name" type="text" size="25" maxlength="16" style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  176.               </td>
  177.             </tr>
  178.             <tr>
  179.               <td align="left" height="24" width="265"><b>&nbsp;密码(最少6位,最多16位):<br>
  180. &nbsp;</b>请输入数字或大、小写字母作为密码</td>
  181.               <td height="24" width="341">
  182.                 <input name="password" type="password" size="25" maxlength="16" style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  183.               </td>
  184.             </tr>
  185.             <tr>
  186.               <td align="left" height="24" width="265"><b>&nbsp;重复密码:<br>
  187. &nbsp;</b>请再输一遍确认</td>
  188.               <td height="24" width="341"><input name="password2" type="password" size="25" maxlength="16"  style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  189.               </td>
  190.             </tr>
  191.             <tr>
  192.               <td align="left" height="24" width="265"><b>&nbsp;电子邮箱:<br>
  193.               </b>&nbsp;请输入有效的邮件地址</td>
  194.               <td height="24" width="341"><input name="email" type="text" size="25" maxlength="50"   style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  195.               </td>
  196.             </tr>
  197.             <tr>
  198.               <td width="265" align="left" height="24"><b>&nbsp;真实姓名:<br>
  199.               </b>&nbsp;收货人真实姓名,请准确填写</td>
  200.               <td width="341" height="24"><input name="userName" type="text" size="25" maxlength="20"   style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  201.               </td>
  202.             </tr>
  203.             <tr>
  204.               <td align="left" height="24" width="265"><b>&nbsp;联系地址:<br>
  205.               </b>&nbsp;收货人通信地址,请准确填写</td>
  206.               <td height="24" width="341"><input name="address" type="text" value="" size="25" maxlength="50"   style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  207.               </td>
  208.             </tr>
  209.             <tr>
  210.               <td align="left" height="24" width="265"><b>&nbsp;邮政编码:<br>
  211.               </b>&nbsp;收货人邮政编码</td>
  212.               <td height="24" width="341"><input name="mobile" type="text" value="" size="25" maxlength="8"   style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana">
  213.               </td>
  214.             </tr>
  215.             <tr>
  216.               <td align="left" height="24" width="265"><b>&nbsp;联系电话:<br>
  217.               </b>&nbsp;留下您的联系电话,以备不时之需</td>
  218.               <td height="24" width="341"><input name="telephone" type="text" id="Phone"   style="BORDER-RIGHT: #CCCCCF 1px solid; BORDER-TOP: #CCCCCF 1px solid; FONT -SIZE: 10pt; BORDER-LEFT: #CCCCCF 1px solid; COLOR: #666666; BORDER-BOTTOM: #CCCCCF 1px solid; FONT-FAMILY: verdana" value="" size="25" maxlength="20">
  219.               </td>
  220.             </tr>
  221.             <tr>
  222.               <td align="left" height="26" width="265"><b>&nbsp;性&nbsp;&nbsp;别:</b><br>
  223. &nbsp;请选择您的性别</td>
  224.               <td height="26" width="341">
  225.                 <input name="sex" type="radio" value="先生" checked>
  226.                 <img src=image/boy.gif width="23" height="21" border=0>先生
  227.                 <input type="radio" name="sex" value="小姐">
  228.                 <img src=image/girl.gif width="23" height="21" border=0>女士</td>
  229.             </tr>
  230.             <tr>
  231.               <td align="left" height="80" width="265"><b>&nbsp;其它说明:</b><br>
  232. &nbsp;您的其它备忘说明、要求等</td>
  233.               <td height="80" width="341"><textarea name="brief" cols="40" rows="4" class="txtBoxStyle2" id="jieshao"></textarea></td>
  234.             </tr>
  235.             <tr>
  236.               <td align=center colspan=2 height="54">
  237.                 <input type="hidden" name="adduser" value="true">
  238.                 <input type=submit value="我填好了,现在注册" name="ok">
  239. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
  240.               <input type=reset value="不行,还是重写吧" name="Reset"></td>
  241.             </tr>
  242.           </form>
  243.       </table></TD>
  244.     </TR>
  245.     <tr>
  246.       <td height=20></td>
  247.     </tr>
  248.   </table>
  249.   <%@ include file ="foot.jsp"%>
  250.   </CENTER>
  251. </BODY></HTML>