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

📄 newshop2.asp

📁 一套很早的多用户电子商务程序
💻 ASP
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp"-->
<%
shop_name1=request.form("shop_name1")
Dim objFSO
set objFSO=server.createobject("scripting.filesystemobject")
if objFSO.FolderExists(server.MapPath(shop_name1)) then
      Response.Redirect "messagebox.asp?msg=此用户名称已被注册,请返回重新选择!"
      response.end
end if
Set objFSO=Nothing
set rs=server.createobject("adodb.recordset")
sqltext="select * from shop where shop_name1='" & request.form("shop_name1") & "'"
rs.open sqltext,conn,1,1

'查找数据库,检查用户名是否已经注册过
if rs.recordcount >= 1 then 
      Response.Redirect "messagebox.asp?msg=此用户名称已被注册,请返回重新选择!"
      response.end
      rs.close
end if
%>
<html>
<head>
<title>商品详细信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>BODY {
	FONT-SIZE: 10pt
}
td           { font-size: 10pt; line-height: 150% }
A {
	TEXT-DECORATION: none
}
A:hover {
	TEXT-DECORATION: underline
}
</STYLE>

<script language="javascript">
<!--
function isok(theform)
{

if (theform.shop_name2.value.length<2)

  {
    alert("商店简称不能为空且至少2个字符!");
    theform.shop_name2.focus();
    return (false);
  }
if (theform.name.value.length<2)

  {
    alert("负责人不能为空且至少2个字符!");
    theform.name.focus();
    return (false);
  }
if (theform.pwd.value.length<4)

  {
    alert("密码不能为空且至少4位!");
    theform.pwd.focus();
    return (false);
  }

if (theform.PasswordConfirm.value!=theform.pwd.value)

  {
    alert("您的密码确认与上面密码不符!");
    theform.PasswordConfirm.focus();
    return (false);
  }


 if (theform.email.value.length<5|theform.email.value.indexOf("@")==-1|theform.email.value.indexOf(".")==-1)
    {alert("请输入正确的Eail地址!");
	 theform.email.focus( );
	 return(false);} 


if (theform.usephone.value.length<10)
    {alert("请输入带区号的电话!");
	 theform.usephone.focus( );
	 return(false);} 
	

if (theform.haddr.value.length<5)
    {alert("请正确填写您详细的地址!");
	 theform.haddr.focus( );
	 return(false);} 
	
if (theform.postcode.value.length!=6||isNaN(theform.postcode.value))
    {alert("邮政编码必须为6位数字!");
	 theform.postcode.focus( );
	 return(false);} 



return (true);
}
-->
</script>





</head>

<body bgcolor="#FFFFFF" text="#000000" background="pic/bg.jpg">    
<div align="center">    
  <table width="626" border="0" cellspacing="0" cellpadding="0">
    <tr>     
      <td colspan="2"><img src="myshop/pic/top.gif" width="631" height="26"></td>    
    </tr>    
    <tr>     
      <td width="599" bgcolor="#FFF0C0"> 
        <table width="559" border="1" cellpadding="4" align="center" bordercolorlight="#FFD146" bordercolordark="#FFFCF0">
          <tr> 
            <td width="543"> 
              <DIV align=center>


<form method="POST" action="newshop3.asp"  onsubmit="return isok(this)" >

<INPUT type=hidden value=<%=request.form("shop_name1")%> name=shop_name1>
<INPUT type=hidden value=2  name=methodflag>
                  
                  <TABLE class=main cellPadding=3 width=569>
                    <TBODY> 
                    <TR> 
                      <TD width=551 bgColor=#ffffff align="right" colspan="2"> 
                        <p align="left"><font color="#416327">  </font><FONT 
            color=#416327>请填写建店基本信息后按“下一步”(资料必须真实,否则管理员将有权删除本商店 带*号为必填项)</FONT> 
                      </TD>
                    </TR>
                    <TR> 
                        <TD width=95 bgColor=#ffffff align="right">用户名称: </TD>
                      <TD bgColor=#ffffff width="456"><b><font color="#E71C17"><%=request.form("shop_name1")%></font></b> 
                      </TD>
                    </TR>
                    <tr> 
                        <td width=95 bgcolor=#ffffff align="right"><font color=#e71c17>*</font>商店名称:</td>
                      <td bgcolor=#ffffff width="456"> 
                        <input maxlength=20  name=shop_name2>
                      </td>
                    </tr>
                    <tr> 
                      <td width=95 bgcolor=#ffffff align="right"><font color=#e71c17>*</font>负责人:</td>
                      <td bgcolor=#ffffff width="456"> 
                        <input maxlength=20  name=name>
                      </td>
                    </tr>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码:</TD>
                      <TD bgColor=#ffffff width="456"> <FONT color=#000000> 
                        <INPUT type=password maxLength=18 name=pwd>
                        </FONT> </TD>
                    </TR>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码确认:</TD>
                      <TD bgColor=#ffffff width="456"><FONT color=#000000> 
                        <INPUT            
            type=password maxLength=18 name=PasswordConfirm>
                        </FONT></TD>
                    </TR>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>E-MAIL:</TD>
                      <TD bgColor=#ffffff width="456"> 
                        <INPUT maxLength=40 name=email>
                      </TD>
                    </TR>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>公司电话:</TD>
                      <TD bgColor=#ffffff width="456"> 
                        <INPUT id=text5 maxLength=30            
            name=usephone>
                      </TD>
                    </TR>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>公司地址:</TD>
                      <TD bgColor=#ffffff width="456"> 
                        <INPUT maxLength=200 size=60 name=haddr>
                      </TD>
                    </TR>
                    <TR> 
                      <TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>邮编:</TD>
                      <TD bgColor=#ffffff width="456"> 
                        <INPUT maxLength=15 name=postcode>
                      </TD>
                    </TR>
                    <TR> 
                      <TD bgColor=#ffffff colSpan=2 width="559"> 
                        <p align="center"> 
                          <INPUT class=main1 id=button2 type=button value=上一步 name=reset onClick="javascript:window.history.go(-1)">
                             
                          <INPUT class=main1 type=submit value=下一步 name=button1>
                      </TD>
                    </TR>
                    </TBODY> 
                  </TABLE>         
                </FORM>         
              </DIV>         
            </td>         
          </tr>         
        </table>            
      </td>            
      <td width="33" background="pic/user/bak.gif" valign="top"><img border="0" src="pic/user/j1.gif" width="33" height="36"></td>            
    </tr>            
    <tr>             
      <td colspan="2"><img src="pic/user/bottom.gif" width="631" height="18"></td>            
    </tr>            
  </table>            
</div>            
</body>            
</html>            

⌨️ 快捷键说明

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