<% If request.cookies("timesshop")("username")="" Then Response.Write "" end if igoodsid=FormatSQL(SafeRequest("goodid",0)) %> <%=webname%>  ----  我的订单详情
<%=igoodsid%>号订单详情

<% set rs=server.CreateObject("adodb.recordset") rs.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 = rs.RecordCount sum1=0 sum=0 sums1=0 sumcount=0 do while not rs.eof %> <% rs.movenext loop rs.close set rs=nothing%>
产品编号 名称 数量 单价 总价
<%=rs(1)%> <%select case rs(11) case 0 response.write rs(2) case 1 response.write "(赠品)"& rs(2) case 2 response.write "(礼品)"& rs(2) case 3 response.write "(特价)"& rs(2) case 4 response.write "(积分兑换)"& rs(2) end select %> <%productnum=rs(3) sumcount=productnum+sumcount response.write productnum%> ¥<% iprice=rs(9) response.Write iprice %> ¥<% = iprice*productnum%> <%sum1=iprice*productnum+sum1%>
总价:<%=sum1%>元,<%=sumcount%>件,此订单内共有<%=intTotalNum%>品种商品
<%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,1 '货品总价 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%> 网上支付:
提醒:您也可以选择网上支付来支付款项,不需要任何手续费.
网上支付:
您可以任意选择其中一个平台在线支付,如果失败您可继续选择另一个平台进行支付
>>>此订单您需付款:¥<%=inttotaljg%>元
   支付宝客服中心        (推荐)
<%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%>
运费优惠:
¥<%=rs("yfyh")%>
已付金额:
¥<%=rs("yfje")%>
应付总计:
¥<%=inttotaljg%>
付款配送信息:
收货区域:
<%=rs("area")%>
送货方式:
<%=rs("sendfs")%>
支付方式:
<%=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%>