📄 shop.asp
字号:
<%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"--><!--#include file="check_user.asp"-->
<%
set rs_detail=server.createobject("adodb.recordset")
sqltext2="select * from shop where shop_name1='" & request.cookies("sp_name") & "'"
rs_detail.open sqltext2,conn,1,1
%>
<html>
<head>
<STYLE>BODY {
FONT-SIZE: 9pt
}
TD {
FONT-SIZE: 9pt; 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.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>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body background="../pic/user/bg.jpg" leftmargin="0" topmargin="0">
<form method="POST" action="update_shop.asp" onsubmit="return isok(this)" >
<br>
<br>
<table width="550" border="1" bordercolordark="#fffcf0" bordercolorlight="#0000FF" cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" height="39" > <div align="center">以下是你的基本资料,如要修改,请正确填写信息后按"修改注册信息"按钮即可!</div></td>
</tr>
<tr>
<td width=107 align="right" > <font color=#e71c17> </font>商户帐户:</td>
<td width=437 > <%=rs_detail("shop_name1")%> </td>
</tr>
<tr>
<td width=107 align="right"> <font color=#e71c17> </font>商店名称:</td>
<td width=437> <input type="text" name="shop_name2" value="<%=rs_detail("shop_name2")%>">
</td>
</tr>
<tr>
<td width=107 align="right"> <font color=#e71c17> </font>负责人:</td>
<td width=437> <input type="text" name="name" value="<%=rs_detail("name")%>" >
</td>
</tr>
<tr>
<td width=107 align="right"> 密码:</td>
<td width=437> <input type="password" name="pwd" value="<%=rs_detail("PassWD")%>">
</td>
</tr>
<tr>
<td width=107 align="right"> E-MAIL:</td>
<td width=437> <input type="text" name="email" value="<%=rs_detail("email")%>">
</td>
</tr>
<tr>
<td width=107 align="right"> 公司电话:</td>
<td width=437> <input type="text" name="usephone" value="<%=rs_detail("phone")%>">
</td>
</tr>
<tr>
<td width=107 align="right"> 邮编:</td>
<td width=437> <input type="text" name="postcode" value="<%=rs_detail("zip")%>">
</td>
</tr>
<tr>
<td width=107 align="right"> <font color=#e71c17> </font>公司地址:</td>
<td width=437> <input type="text" name="haddr" size="56" value="<%=rs_detail("address")%>">
</td>
</tr>
</table>
<div align="center"> <br>
<input type="submit" value="修改注册信息" name="B4" >
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -