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

📄 xgsl.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="fuction.asp"-->
<%
username=nosql(session("username"))
actionid=nosql(request("actionid"))
zonger=nosql(request("zonger"))
vipjine=nosql(request("vipjine"))
vipcount=nosql(request("vipcount"))
if actionid="" then
response.write "<script language=javascript>alert('对不起,您没有选择商品!');window.close();</script>"
response.End
end if
for i=1 to request.form("actionid").count
if request.form("shopcount")(i)<=0 then
shopcount=1
else
shopcount=request.form("shopcount")(i)
end if

set rs_s=server.CreateObject("adodb.recordset")
rs_s.open "select * from shop_snsn where shopid="&request.form("shopid")(i),conn,1,1
if session("username")="" then
     zonger2=rs_s("shichangjia")*shopcount
	 else
if session("reglx")=1 then
	        zonger2=rs_s("huiyuanjia")*shopcount
else 
	zonger2=rs_s("vipjia")*shopcount
end if
end if
kucun=rs_s("kucun")
shopname=rs_s("shopname")
rs_s.close
set rs_s=nothing
if kucun<cint(shopcount) then
response.write "<script language=javascript>alert('你选购的商品“"&shopname&"”库存不足,不能修改数量,请选购更换其它商品!');window.location.href='gouwu.asp?action=show';</script>"
response.end
end if
conn.execute("update shop_action set shopcount="&shopcount&",zonger="&zonger2&" where actionid="&request.form("actionid")(i))
next
response.Redirect "gouwu.asp?action=show"
%>

⌨️ 快捷键说明

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