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

📄 admin_setup.asp

📁 一套很早的多用户电子商务程序
💻 ASP
字号:
<%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"-->
<!--#include file="Check.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Manager"
rs.open sql,conn,3,3

if request.form("send")="send"  and IsNumeric(request.form("P_count")) then
'开始更新商城网站设置
rs("copyright")=request.form("copyright")
rs("Domain_Name")=request.form("Domain_Name")
rs("phone")=request.form("phone")
rs("Email")=request.form("Email")
'网店申请设置
rs("dredge")=request.form("dredge")
rs("test_time")=request.form("test_time")
rs("moban")=request.form("moban")
rs("P_count")=request.form("P_count")
rs("shop_logo")=request.form("shop_logo")
rs("shop_banner")=request.form("shop_banner")
rs("shop_center_pic")=request.form("shop_center_pic")
rs.update
 response.write"<script>alert('成功更新了网站设置!');window.location.href='admin_setup.asp'</script>"
rs.close
conn.close
end if
%>



<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>页面设置</title>
<script language="javascript">
</script>
</head>
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
<body background="../pic/user/bg.jpg">
<form name="form1" method="post" action="admin_setup.asp">
  <center>
    <br>
    <table width="500" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#0000FF" bordercolordark="#FFFFFF">
      <tr> 
        <td height="25" colspan="2"> <div align="center"></div>
          <font color="#0000FF"><strong>网站基本设置:</strong></font></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">版权所有</div></td>
        <td>&nbsp; <input name="copyright" type="text" value="<%=rs("copyright")%>" size="35"></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">网站域名</div></td>
        <td>&nbsp; <strong>http://</strong> <input name="Domain_Name" type="text" value="<%=rs("Domain_Name")%>" size="27"> 
        </td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">服务电话</div></td>
        <td>&nbsp; <input name="phone" type="text" value="<%=rs("phone")%>" size="35"> 
        </td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">Email地址</div></td>
        <td>&nbsp; <input name="Email" type="text" value="<%=rs("Email")%>" size="35"> 
        </td>
      </tr>
      <tr> 
        <td height="25" colspan="2"> <font color="#0000FF"><strong>网店申请默认设置:</strong></font></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">网店申请</div></td>
        <td>&nbsp; <input name="dredge" type="radio" value="yes" <% if rs("dredge")="yes" then response.write"checked"%>>
          申请后立即开通  
          <input name="dredge" type="radio" value="no" <% if rs("dredge")="no" then response.write"checked"%>>
          申请后经验证再开通</td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">试用时间</div></td>
        <td>&nbsp; <select name="test_time">
            <option value="7">7天</option>
            <option value="15" selected>15天</option>
            <option value="30">30天</option>
          </select></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">默认模板</div></td>
        <td>&nbsp; <select name="moban">
            <option value="101">NO:101</option>
            <option value="102" selected>NO:102</option>
          </select></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">上传商品数量</div></td>
        <td>&nbsp; <input name="P_count" type="text" value="<%=rs("P_count")%>" size="4">
          (件) <font color="#FF0000">*</font><font color="#999999">须为有效数字</font></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">默认logo图片</div></td>
        <td>&nbsp; <input name="shop_logo" type="text" value="<%=rs("shop_logo")%>" size="35"> 
          <a href="#" onClick="window.open('../upload_pic.asp?FM_name=form1&editname=shop_logo&filepath=IMAGES','','status=yes,scrollbars=no,top=20,left=110,width=420,height=165')"><font color="#0000FF">上传图片</font></a></td>
      </tr>
      <tr> 
        <td height="30"> <div align="center">默认banner图片</div></td>
        <td>&nbsp; <input name="shop_banner" type="text" value="<%=rs("shop_banner")%>" size="35"> 
          <a href="#" onClick="window.open('../upload_pic.asp?FM_name=form1&editname=shop_banner&filepath=IMAGES','','status=yes,scrollbars=no,top=20,left=110,width=420,height=165')"><font color="#0000FF">上传图片</font></a></td>
      </tr>
      <tr> 
        <td width="93" height="30"> <div align="center">默认中间图片</div></td>
        <td width="401">&nbsp; <input name="shop_center_pic" type="text" value="<%=rs("shop_center_pic")%>" size="35"> 
          <a href="#" onClick="window.open('../upload_pic.asp?FM_name=form1&editname=shop_center_pic&filepath=IMAGES','','status=yes,scrollbars=no,top=20,left=110,width=420,height=165')"><font color="#0000FF">上传图片</font></a> 
        </td>
      </tr>
      <tr> 
        <td height="51" colspan="2">    
          <div align="center"> 
            <input type="submit" value="确认更新" name="Submit" >
            <input type="hidden" name="send" value="send">
             <a href="../default.asp" target="_blank">网站预览</a></div></td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </center>
</form>
<%rs.close:set rs=nothing
conn.close
%>
</body>
</html>

⌨️ 快捷键说明

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