📄 newshop2.asp
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp"-->
<%
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
if rs("shop_name1")=request.form("shop_name1") then
Response.Redirect "messagebox.asp?msg=此商店名称已被占用,请选用其他名称或与本站联系!"
response.end
rs.close
end if
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
}
.style1 {color: #FF3300}
</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=#339900 text="#000000">
<div align="center">
<table width="626" height="500" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td background="images/2px_bk.gif">
<table width="599" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td valign="middle">
<DIV align=center>
<form method="POST" action="newshop3.asp" onsubmit="return isok(this)" name=shjiainfo>
<INPUT type=hidden value=<%=request.form("shop_name1")%> name=shop_name1>
<INPUT type=hidden value=2 name=methodflag>
<input type=hidden name="n" value="<%response.write request("classid")%>">
<TABLE width=543 border="1" align="center" cellPadding=5 cellspacing="2" bordercolor="#F9F9F9" class=main>
<TBODY>
<TR>
<TD bgColor=#ffffff align="right" colspan="2">
<p align="left"><font color="#416327"> </font><span class="style1">请填写建店基本信息后按“下一步”(资料必须真实,否则管理员将有权删除本商店 带*号为必填项)</span>
</TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right"><div align="left">公司全称: </div></TD>
<TD bgColor=#ffffff width="420"><b><font color="#E71C17"><%=request.form("shop_name1")%></font></b>
<select size="1" name="classid" style="background-color: #FFFFE6">
<option value="1" selected >宾馆酒店</option>
<option value="2" >娱乐场所</option>
<option value="3" >餐饮酒楼</option>
<option value="4" >旅行社团</option>
</select>
</TD>
</TR>
<tr>
<td width=123 bgcolor=#ffffff align="right"><div align="left"><font color=#e71c17>*</font>公司简称:</div></td>
<td bgcolor=#ffffff width="420">
<input maxlength=20 name=shop_name2>
</td>
</tr>
<tr>
<td width=123 bgcolor=#ffffff align="right"><div align="left"><font color=#e71c17>*</font>负责人:</div></td>
<td bgcolor=#ffffff width="420">
<input maxlength=20 name=name>
</td>
</tr>
<TR>
<TD width=123 bgColor=#ffffff align="right"><div align="left"><FONT color=#e71c17>*</FONT>密码:</div></TD>
<TD bgColor=#ffffff width="420"> <FONT color=#000000>
<INPUT type=password maxLength=18 name=pwd>
</FONT> </TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right"><div align="left"><FONT color=#e71c17>*</FONT>密码确认:</div></TD>
<TD bgColor=#ffffff width="420"><FONT color=#000000>
<INPUT
type=password maxLength=18 name=PasswordConfirm>
</FONT></TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right"><div align="left"><FONT color=#e71c17>*</FONT>E-MAIL:</div></TD>
<TD bgColor=#ffffff width="420">
<INPUT maxLength=40 name=email>
</TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right" valign="top"><div align="left"><FONT color=#e71c17>*</FONT>公司电话:</div></TD>
<TD bgColor=#ffffff width="420">
<INPUT id=text5 maxLength=30
name=usephone>
</TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right" valign="top"><div align="left"><FONT color=#e71c17>*</FONT>公司地址:</div></TD>
<TD bgColor=#ffffff width="420">
<INPUT maxLength=200 size=60 name=haddr>
</TD>
</TR>
<TR>
<TD width=123 bgColor=#ffffff align="right"><div align="left"><FONT color=#e71c17>*</FONT>邮编:</div></TD>
<TD bgColor=#F6F6F6 width="420">
<INPUT maxLength=15 name=postcode>
</TD>
</TR>
<TR>
<TD bgColor=#ffffff colSpan=2>
<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>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -