<% If request.cookies("timesshop")("username")="" Then dim url url=url&request.ServerVariables("SCRIPT_NAME") if(len(trim(request.ServerVariables("QUERY_STRING")))>0) then url=url & "?" & request.ServerVariables("QUERY_STRING") end if response.write url response.Redirect "/shop/user/login.asp?url='"&url&"'" end if igoodsid=FormatSQL(SafeRequest("goodid",0)) set rs=server.CreateObject("adodb.recordset") rs.open "select * from goods where username='"&request.cookies("timesshop")("username")&"' and goodsid="& igoodsid&" order by dcreatedate",conn,1,3 'response.write "是这里的问题吗?" 'response.end %> <%=webname%>  ----  我的订单详情
<%=igoodsid%>号订单详情

<% if (rs("payforstats")=0 and rs("mdel")=0 and rs("goodsstats")<>1) then %> <% end if%> <% set rs9=server.CreateObject("adodb.recordset") rs9.open "select tproduct.id,tproduct.tproduct_bh,tproduct.tproduct,orders.productnum,tproduct.tpricenet,tproduct.tprice1,tproduct.tprice2,tproduct.tprice3,tproduct.tprice4,orders.jiage,orders.actionid,orders.kind from orders,tproduct where orders.username='"&request.cookies("timesshop")("username")&"' and orders.goods='"& igoodsid &"' and orders.id=tproduct.id order by orders.actionid",conn,1,1 intTotalNum = rs9.RecordCount sum1=0 sum=0 sums1=0 sumcount=0 do while not rs9.eof %> <% if (rs("payforstats")=0 and rs("mdel")=0 and rs("goodsstats")<>1 ) then if rs("coupon")= "" or rs("coupon")= 0 then %> <% end if end if%> <% rs9.movenext loop rs9.close set rs9=nothing%>
产品编号 名称 数量 单价 总价移除
<%=rs9(1)%> <%select case rs9(11) case 0 response.write rs9(2) case 1 response.write "(赠品)"& rs9(2) case 2 response.write "(礼品)"& rs9(2) case 3 response.write "(特价)"& rs9(2) case 4 response.write "(积分兑换)"& rs9(2) end select %> <%productnum=rs9(3) sumcount=productnum+sumcount response.write productnum%> ¥<% iprice=rs9(9) response.Write iprice %> ¥<% = iprice*productnum%> <%sum1=iprice*productnum+sum1%> (不含发票)删除
<% 'set rs10=server.CreateObject("adodb.recordset") ' rs10.open "select * from goods where goodsid="& igoodsid&" order by dcreatedate",conn,1,3 '若增减过商品,则重新保存总价格 if request("action")="changed" then rs("totaljg")=sum1 rs("yftotal")=sum1-rs("goodszk")+rs("yfyf")-rs("yfje")-rs("yfyh") rs.update end if 'rs10.close 'set rs10=nothing %> <% if (rs("payforstats")=0 and rs("mdel")=0 and rs("goodsstats")<>1) then %> <% end if %>
总价:<%=sum1%>元,<%=sumcount%>件,此订单内共有<%=intTotalNum%>品种商品
 
" method="post" >
添加商品
商品编号:
 
数量:
 
<% if rs("coupon")="" or rs("coupon")=0 then %>
" method="post" > <% set rs5=server.CreateObject("adodb.recordset") rs5.open "select * from coupon where state=0 and owner='"&request.cookies("timesshop")("username")&"'",conn,1,3 %>
使用礼券
*请选择合适的礼券,然后按“使用礼券”,系统会自己将礼券内容作为折扣项目,以减少您的应付款。
*每张订单只能使用一张礼券,使用后不能更改;可以添加商品,添加后的商品不在礼券计算范围之内,不能从订单中删除商品。(建议在增添好商品之后再使用礼券)
*特价商品不再享受折扣,所以将不在礼券计算范围之内。
       
 
选择礼券:
 
<% else %> 该订单已使用了礼券! <% end if %>
<% '货品总价 itotaljg=rs("totaljg") '订单折扣 igoodszk=rs("goodszk") '运费总计 iyfyf=rs("yfyf") '运费优惠 iyfyh=rs("yfyh") '运费合计 iyftotal=iyfyf-iyfyh '已付金额 iyfje=rs("yfje") '应付合计 inttotaljg=itotaljg-igoodszk-iyfje+iyftotal %>
<% '如果付款状态为未付款,并且订单有效则显示网上支付,反之不显示! if (rs("payforstats")=0 and rs("mdel")=0 and rs("goodsstats")<>1) then%>
 
<%end if%>
订单情况:
订单编号:
<%=rs("goodsid")%>
订单用户:
<%=rs("username")%>
订单状态:
<%if rs("mdel")=1 then%> 自助取消 <% elseif rs("goodsstats") =0 then %> 未处理 <%elseif rs("goodsstats") =1 then%> 无效订单 <%elseif rs("goodsstats")=2 then%> 处理中的订单 <%elseif rs("goodsstats")=3 then%> 交易完成 <%end if%>
生成日期:
<%=rs("dcreatedate")%>
订单账务:
货品总价:
¥<%=rs("totaljg")%>
货品毛重:
<%=rs("totalmz")%> Kg
订单折扣:
¥<%=rs("goodszk")%>
运费总计:
¥<%=rs("yfyf")%>
应付运费:
¥<%=iyftotal%>
发票:
<% strfapiao =rs("fapiao") if strfapiao=1 then %>需要发票 <%else%> 不用开票,请提供收据 <%end if%>
已付金额:
¥<%=rs("yfje")%>
应付总计:
¥ <%=inttotaljg%>
付款配送信息:
支付方式:
<%=rs("payfs")%>
到款状态:
<% if rs("payforstats")=0 then%>未到款<% elseif rs("payforstats")=1 then%>已到款<%end if%>
发货状态:
<% if rs("sendstats")=0 then%>未发货<% elseif rs("sendstats")=1 then%>已发货<%end if%>
到款时间:
<%=rs("paydate")%>
发货时间:
<%=rs("ycreatedate")%>
发货单号:
<%=rs("sendcode")%>
收货人信息:
<%if rs("checkadd")="checkadd1" then%> <%elseif rs("checkadd")="checkadd2" then%> <%end if%>
收货人姓名:
<%=rs("name")%>  性别: <%if rs("sex")=0 then%>男<%else%>女<%end if%>
邮箱:
<%=rs("email")%>
电话:
<%if rs("mob")<> "" then %><%=rs("mob")%>,<%end if%> <%=rs("tel")%>
地址:
<% =rs("city")%> <% =rs("address")%> <% if rs("postcode")<>"" then%>,邮编:<%=rs("postcode")%><%end if%> <% =rs("city2")%> <% =rs("address2")%> <% if rs("postcode2")<>"" then%>,邮编:<%=rs("postcode2")%><%end if%>
备注信息:
发票:
<%if rs("fapiao")=1 then %>需要发票 抬头为:<%=rs("taitou")%><%else%>不需要<%end if%>
备注:
<%=rs("content")%>

 <%rs.close set rs=nothing%>