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

📄 admin_shop.asp

📁 一套很早的多用户电子商务程序
💻 ASP
字号:
<%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"-->
<!--#include file="Check.asp"-->
<%
id=request("id")
set rs_detail=server.createobject("adodb.recordset")
sqltext2="select * from shop where id=" &id
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);} 

if (theform.P_count.value.length<1||isNaN(theform.P_count.value))
    {alert("限制网店上传的商品数量不能为空且必须为数字!");
	 theform.P_count.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="admin_update_shop.asp?id=<%=rs_detail("id")%>"  onsubmit="return isok(this)" >
  <br>
  <br>
  <table width="600" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight="#0000FF" bordercolordark="#fffcf0">
    <tr> 
      <td colspan="4" > <div align="center"><font color="#0000FF"><strong>网 店 高 级 管 理</strong></font></div></td>
    </tr>
    <tr> 
      <td width=76 align="right" > <font color=#e71c17>&nbsp;</font>商户帐号:</td>
      <td colspan="3" >&nbsp;<b><%=rs_detail("shop_name1")%></b> </td>
    </tr>
    <tr> 
      <td align="right"> <font color=#e71c17>&nbsp;</font>商店名称:</td>
      <td width=197> <input type="text" name="shop_name2" value="<%=rs_detail("shop_name2")%>"> 
      </td>
      <td width=71 align="right"><font color=#e71c17>&nbsp;</font>负责人:</td>
      <td width=214> <input type="text" name="name" value="<%=rs_detail("name")%>" ></td>
    </tr>
    <tr> 
      <td align="right"> 密  码:</td>
      <td> <input type="text" name="pwd" value="<%=rs_detail("PassWD")%>"> </td>
      <td align="right">E-MAIL:</td>
      <td> <input type="text" name="email" value="<%=rs_detail("email")%>"></td>
    </tr>
    <tr> 
      <td align="right"> 公司电话:</td>
      <td> <input type="text" name="usephone" value="<%=rs_detail("phone")%>"> 
      </td>
      <td align="right">邮 编:</td>
      <td> <input type="text" name="postcode" value="<%=rs_detail("zip")%>"></td>
    </tr>
    <tr> 
      <td align="right"> <font color=#e71c17>&nbsp;</font>公司地址:</td>
      <td colspan="3"> <input type="text" name="haddr" size="56" value="<%=rs_detail("address")%>"> 
      </td>
    </tr>
  </table>
        
  <br>
  <table width="600" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight="#0000FF" bordercolordark="#fffcf0">
    <tr> 
      <td width="76" align="right" >网店级别:</td>
      <td width="198" ><select name="Rank">
          <option value="普通网店" <%if rs_detail("Rank")="普通网店" then response.write "selected"%>>普通网店</option>
          <option value="黄金网店" <%if rs_detail("Rank")="黄金网店" then response.write "selected"%>>黄金网店</option>
          <option value="钻石网店" <%if rs_detail("Rank")="钻石网店" then response.write "selected"%>>钻石网店</option>
        </select> </td>
      <td width="87" align="right" >可上传商品数:</td>
      <td width="197" ><input name="P_count" type="text" size="3" value="<%=rs_detail("P_count")%>">
        (件)</td>
    </tr>
    <tr> 
      <td align="right" >在线支付:</td>
      <td > <select name="pay4">
          <option value="no" <%if rs_detail("pay4")="no" then response.write "selected"%>>禁用</option>
          <option value="yes" <%if rs_detail("pay4")="yes" then response.write "selected"%>>开通</option>
        </select></td>
      <td align="right" >网店申请验证:</td>
      <td ><select name="dredge">
          <option value="no" <%if rs_detail("dredge")="no" then response.write "selected"%>>未开通</option>
          <option value="yes" <%if rs_detail("dredge")="yes" then response.write "selected"%>>已开通</option>
        </select></td>
    </tr>
    <tr>
      <td align="right" >申请时间:</td>
      <td ><%=rs_detail("RegTime")%></td>
      <td align="right" >过期时间:</td>
      <td ><input name="LastTime" type="text" size="22" value="<%=rs_detail("LastTime")%>"></td>
    </tr>
  </table>
  <p align="center"> 
   <input type="submit" value="确认更新" name="Submit" class="unnamed5" onClick="document.form1.logo_name.value = frames.message.document.body.innerHTML;">
      
    <input type="button" value="返 回" name="B42" onClick="window.location.href='shop_check.asp?up=<%=request("up")%>&page=<%=request("page")%>'">
  </p>
  </form>
</body>
</html>

⌨️ 快捷键说明

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