⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reg.asp

📁 这是惠州城市超市购物管理系统的源代码
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--
┌─ o91.com───────────────┐
│  动感购物商务平台WWW.SNSN.NET版权所有  │
│  设计:模糊视线13855119911 QQ:9912515 │
└────────────────────┘
-->
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%dim action
action=request.QueryString("action")%>
<html>
<head>
<title><%=webname%>--新用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=JavaScript>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
   if(checkspace(document.userinfo.username.value)) {
	document.userinfo.username.focus();
    alert("对不起,请填写用户名!");
	return false;
  }
    if(checkspace(document.userinfo.userpassword.value) || document.userinfo.userpassword.value.length < 6 || document.userinfo.userpassword.value.length >20) {
	document.userinfo.userpassword.focus();
    alert("密码长度不能不能这空,在6位到20位之间,请重新输入!");
	return false;
  }
    if(document.userinfo.userpassword.value != document.userinfo.userpassword1.value) {
	document.userinfo.userpassword.focus();
	document.userinfo.userpassword.value = '';
	document.userinfo.userpassword1.value = '';
    alert("两次输入的密码不同,请重新输入!");
	return false;
  }

 if(document.userinfo.useremail.value.length!=0)
  {
    if (document.userinfo.useremail.value.charAt(0)=="." ||        
         document.userinfo.useremail.value.charAt(0)=="@"||       
         document.userinfo.useremail.value.indexOf('@', 0) == -1 || 
         document.userinfo.useremail.value.indexOf('.', 0) == -1 || 
         document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 || 
         document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1)
     {
      alert("Email地址格式不正确!");
      document.userinfo.useremail.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空!");
   document.userinfo.useremail.focus();
   return false;
   }
   if(checkspace(document.userinfo.quesion.value)) {
	document.userinfo.quesion.focus();
    alert("对不起,请填写密码提问!");
	return false;
  }
   if(checkspace(document.userinfo.answer.value)) {
	document.userinfo.answer.focus();
    alert("对不起,请填写密码提问的答案!");
	return false;
  }
}
function checkshouhuoxx()
{
   if(checkspace(document.shouhuoxx.userzhenshiname.value)) {
	document.shouhuoxx.userzhenshiname.focus();
    alert("对不起,请填写真实姓名!");
	return false;
  }
  if(checkspace(document.shouhuoxx.shouhuodizhi.value)) {
	document.shouhuoxx.shouhuodizhi.focus();
    alert("对不起,请填写收货人详细收货地址!");
	return false;
  }
  if(checkspace(document.shouhuoxx.youbian.value)) {
	document.shouhuoxx.youbian.focus();
    alert("对不起,请填写邮编!");
	return false;
  }
  if(document.shouhuoxx.youbian.value.length!=6) {
	document.shouhuoxx.youbian.focus();
    alert("对不起,请正确填写邮编!");
	return false;
  } 
    if(checkspace(document.shouhuoxx.usertel.value)) {
	document.shouhuoxx.usertel.focus();
    alert("对不起,请留下您的联系电话!");
	return false;
  }
      if(checkspace(document.shouhuoxx.songhuofangshi.value)) {
	document.shouhuoxx.songhuofangshi.focus();
    alert("对不起,您还没有选择送货方式!");
	return false;
  }
      if(checkspace(document.shouhuoxx.zhifufangshi.value)) {
	document.shouhuoxx.zhifufangshi.focus();
    alert("对不起,您还没有选择支付方式!");
	return false;
  }
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<%select case action
case ""%>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
    <td> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="100"><img src="images/block.gif" width="1" height="1"> <br><table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="efefef"><strong>&nbsp;&nbsp;<img src="images/dot_03.gif" width="9" height="9" border="0"> 
                  </strong><b>新用户注册</b></td>
              </tr>
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
            </table>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="33"> <div align="center"> 
                    <p>&nbsp;</p>
                    <table width="500" border="0" cellspacing="0" cellpadding="0" height="31"  class="table-shangxia">
                      <tr> 
                        <td height="22"><b><%=webname%>注册条约</b></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
              <tr> 
                <td> <br> <table width="490" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td>
                        <%call tiaoyue()%>
                        </td>
                    </tr>
                  </table>
                  <br> </td>
              </tr>
            </table>
            <div align="center"> 
              <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <form name="form1" method="post" action="reg.asp?action=yes">
                    <td height="36"> <div align="center"> 
                        <input name="Submit4" type="submit" class="go-wenbenkuang" value="我接受条约同意注册">
                        <input name="Submit32" type="button" class="go-wenbenkuang" value="我不同意注册" onClick="javascript:window.history.go(-1)">
                      </div></td>
                  </form>
                </tr>
              </table>
            </div>
          </td>
        </tr>
      </table></td>
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
  </tr>
</table>
<table width="748" border="0" cellspacing="0" cellpadding="0" align="center" background="images/bj_x.gif">
</table>
<%case "yes"%>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
    <td> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="100"><img src="images/block.gif" width="1" height="1"><br> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="efefef"><strong>&nbsp;&nbsp;<img src="images/dot_03.gif" width="9" height="9" border="0"> 
                  </strong><b>新用户注册</b></td>
              </tr>
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
            </table>
            <form name=userinfo method=post action=reg.asp?action=save>
              <table width="70%" border="0" align="center" cellpadding="2" cellspacing="1" >
                <tr> 
                  <td class=pad>用 户 名: <input name="username" class="wenbenkuang" type="text" id="username2">
                    * <br>
                    请填写您用来登录的用户名。</td>
                </tr>
                <tr> 
                  <td class=pad>电子邮件: <input name="useremail" class="wenbenkuang" type="text" id="useremail2">
                    * <br>
                    请填写您有效的邮件地址,以便于我们为您提供有效的服务。</td>
                </tr>
                <tr> 
                  <td class=pad>密  码: 
                    <input name="userpassword" class="wenbenkuang" type="password" id="userpassword2">
                    * <br>
                    长度必须大于6个字符小于20个字符,只能为英语字、数字,例如:snsn2003等。&nbsp; &nbsp; </td>
                </tr>
                <tr> 
                  <td class=pad>确认密码: 
                    <input name="userpassword1" class="wenbenkuang" type="password" id="userpassword12">
                    * <br>
                    请将输入的密码再次输入,以免设置密码出错。&nbsp; </td>
                </tr>
                <td class=pad>密码提问: <input name="quesion"  class="wenbenkuang" type="text" id="quesion2">
                  *(用于密码遗忘时使用) </td>
                </tr>
                <tr> 
                  <td class=pad>密码答案: <input name="answer" class="wenbenkuang" id="answer2">
                    *(密码遗忘时将验证此答案) </td>
                </tr>
                <tr> 
                  <td class=pad> <br> <input name="Submit" type="submit" class="go-wenbenkuang" value="提交信息" onClick="return checkuserinfo();"> 
                    <input name="Submit2" type="reset" class="go-wenbenkuang" value="重置"> 
                    <input name="Submit3" type="button" class="go-wenbenkuang" value="返回" onClick="javascript:window.history.go(-1)">
                    (带*为必填项) </td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table></td>
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
  </tr>
</table>
<%case "yes2"%>
<script language=JavaScript>
<%dim i,j
	set rs_s=server.createobject("adodb.recordset")
	rs_s.open "select * From shop_szSheng order by shengorder",conn,1,1
%>
	var selects=[];
	selects['xxx']=new Array(new Option('请选择城市……','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(
<%
	set rs_s1=server.createobject("adodb.recordset")
	rs_s1.open "select * From shop_szShi where shengid="&rs_s("id")&" order by shiorder",conn,1,1
	if rs_s1.recordcount>0 then 
		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.shouhuoxx){
			if(szSheng.value) {
				szShi.options.length=0;
				for(var i=0;i<selects[szSheng.value].length;i++){
					szShi.add(selects[szSheng.value][i]);
				}
			}
		}

⌨️ 快捷键说明

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