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

📄 admin_shop_ps.asp

📁 安全性好,适用于制作论坛和进行资源下载的个人和大型网站使用!
💻 ASP
字号:
<!--#include file="mdb.asp"-->
<%Admin="shop"%>
<!--#include file="check.asp"-->
<!--#include file="inc/config.asp"-->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="inc/admin.css" type=text/css rel=StyleSheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<TITLE>Hxcms管理中心—商品配送设置管理</TITLE>
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey)) >
<%
'****************************************************
' Hxcms Ver7.5       Power by Hx66.net
' Web: http://www.Hx66.net,http://www.Hx66.net/home
' Copyright (C) 2006 Hx66.net All Rights Reserved.
'****************************************************
if session("adminlogin")<>sessionvar then
  Response.Write("<script language=javascript>alert('你尚未登录,或者超时了!请重新登录');this.location.href='admin.asp';</script>")
  response.end
end if
action=request("action")
if action="" then
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from shop_ps"
rs.open sql,conn,1,3
%>
<table width="98%" align="center" border="1" cellspacing="0" cellpadding="4" class=Hxcmsbk style="border-collapse: collapse">
<form name="form" method="post" action="admin_shop_ps.asp?action=ps">
<tr><td class=Hxcmsss align="center" colspan="7">商品配送费用设置(没有请留空)</td></tr>
<tr class=Hxcmsds align="center">
<td width="5%">排序</td>
<td width="25%">配送方式</td>
<td width="10%">配送基价</td>
<td width="10%">启用附加费</td>
<td width="10%">起点数量</td>
<td width="10%">单位运费</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds align="center">
<td>1</td>
<td><input type="text" name="peisong1" size="18" value="<%=rs("peisong1")%>" class=input></td>
<td><input type="text" name="fei1" size="5" value="<%=rs("fei1")%>" class=input> 元</td>
<td><input type=checkbox name='tackfei1' value=1 <%if rs("tackfei1")=1 then response.write "checked" end if%>></td>
<td><input type="text" name="qdsum1" size="5" value="<%=rs("qdsum1")%>" class=input></td>
<td><input type="text" name="onefei1" size="5" value="<%=rs("onefei1")%>" class=input> 元</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds align="center">
<td>2</td>
<td><input type="text" name="peisong2" size="18" value="<%=rs("peisong2")%>" class=input></td>
<td><input type="text" name="fei2" size="5" value="<%=rs("fei2")%>" class=input> 元</td>
<td><input type=checkbox name='tackfei2' value=1 <%if rs("tackfei2")=1 then response.write "checked" end if%>></td>
<td><input type="text" name="qdsum2" size="5" value="<%=rs("qdsum2")%>" class=input></td>
<td><input type="text" name="onefei2" size="5" value="<%=rs("onefei2")%>" class=input> 元</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds align="center">
<td>3</td>
<td><input type="text" name="peisong3" size="18" value="<%=rs("peisong3")%>" class=input></td>
<td><input type="text" name="fei3" size="5" value="<%=rs("fei3")%>" class=input> 元</td>
<td><input type=checkbox name='tackfei3' value=1 <%if rs("tackfei3")=1 then response.write "checked" end if%>></td>
<td><input type="text" name="qdsum3" size="5" value="<%=rs("qdsum3")%>" class=input></td>
<td><input type="text" name="onefei3" size="5" value="<%=rs("onefei3")%>" class=input> 元</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds align="center">
<td>4</td>
<td><input type="text" name="peisong4" size="18" value="<%=rs("peisong4")%>" class=input></td>
<td><input type="text" name="fei4" size="5" value="<%=rs("fei4")%>" class=input> 元</td>
<td><input type=checkbox name='tackfei4' value=1 <%if rs("tackfei4")=1 then response.write "checked" end if%>></td>
<td><input type="text" name="qdsum4" size="5" value="<%=rs("qdsum4")%>" class=input></td>
<td><input type="text" name="onefei4" size="5" value="<%=rs("onefei4")%>" class=input> 元</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds align="center">
<td>5</td>
<td><input type="text" name="peisong5" size="18" value="<%=rs("peisong5")%>" class=input></td>
<td><input type="text" name="fei5" size="5" value="<%=rs("fei5")%>" class=input> 元</td>
<td><input type=checkbox name='tackfei5' value=1 <%if rs("tackfei5")=1 then response.write "checked" end if%>></td>
<td><input type="text" name="qdsum5" size="5" value="<%=rs("qdsum5")%>" class=input></td>
<td><input type="text" name="onefei5" size="5" value="<%=rs("onefei5")%>" class=input> 元</td>
<td width="*"></td>
</tr>
<tr class=Hxcmsds>
   <td colspan="7">注1:附加费不勾选时,商品配送费用=配送基价</td>
</tr>
<tr class=Hxcmsds>
   <td colspan="7">注2:附加费勾选时<BR>a、购买数量≤起点数量:商品配送费用=配送基价<BR> b、购买数量>起点数量:商品配送费用=配送基价+[单位运费×(购买数量-起点数量)]。</td>
</tr>
<tr class=Hxcmsqs>
   <td align="center" colspan="7"><input type="submit" name="Submit" value="提 交 设 置" class="button"></td>
</tr>
</form>
</table>
<%
rs.close
else
end if
if action="ps" then
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from shop_ps"
rs.open sql,conn,1,3
rs("peisong1")=Trim(Request.Form("peisong1"))
rs("fei1")=Trim(Request.Form("fei1"))
rs("tackfei1")=cint(Request.Form("tackfei1"))
rs("qdsum1")=cint(Request.Form("qdsum1"))
rs("onefei1")=Trim(Request.Form("onefei1"))
rs("peisong2")=Trim(Request.Form("peisong2"))
rs("fei2")=Trim(Request.Form("fei2"))
rs("tackfei2")=cint(Request.Form("tackfei2"))
rs("qdsum2")=cint(Request.Form("qdsum2"))
rs("onefei2")=Trim(Request.Form("onefei2"))
rs("peisong3")=Trim(Request.Form("peisong3"))
rs("fei3")=Trim(Request.Form("fei3"))
rs("tackfei3")=cint(Request.Form("tackfei3"))
rs("qdsum3")=cint(Request.Form("qdsum3"))
rs("onefei3")=Trim(Request.Form("onefei3"))
rs("peisong4")=Trim(Request.Form("peisong4"))
rs("fei4")=Trim(Request.Form("fei4"))
rs("tackfei4")=cint(Request.Form("tackfei4"))
rs("qdsum4")=cint(Request.Form("qdsum4"))
rs("onefei4")=Trim(Request.Form("onefei4"))
rs("peisong5")=Trim(Request.Form("peisong5"))
rs("fei5")=Trim(Request.Form("fei5"))
rs("tackfei5")=cint(Request.Form("tackfei5"))
rs("qdsum5")=cint(Request.Form("qdsum5"))
rs("onefei5")=Trim(Request.Form("onefei5"))
rs.update
rs.close
response.Redirect "admin_shop_ps.asp?提示=修改数据操作成功"
else
set rs=nothing
end if
'****************************************************
' Hxcms Ver7.5       Power by Hx66.net
' Web: http://www.Hx66.net,http://www.Hx66.net/home
' Copyright (C) 2006 Hx66.net All Rights Reserved.
'****************************************************
%>


⌨️ 快捷键说明

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