|
|
产品编号 |
名称 |
数量 |
单价 |
总价 |
<% 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
%>
<%=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%>
(不含发票) |
<% 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%>
<%
'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
%>
总价:<%=sum1%>元,<%=sumcount%>件,此订单内共有<%=intTotalNum%>品种商品 |
|
<% if (rs("payforstats")=0 and rs("mdel")=0 and rs("goodsstats")<>1) then %>
|
|
<% end if %>
<% if rs("coupon")="" or rs("coupon")=0 then %>
<% 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")%> |
|
收货人信息: |
收货人姓名: |
<%=rs("name")%> 性别:
<%if rs("sex")=0 then%>男<%else%>女<%end if%> |
邮箱: |
<%=rs("email")%> |
电话: |
<%if rs("mob")<> "" then %><%=rs("mob")%>,<%end if%> <%=rs("tel")%> |
地址: |
<%if rs("checkadd")="checkadd1" then%>
<% =rs("city")%> <% =rs("address")%> <% if rs("postcode")<>"" then%>,邮编:<%=rs("postcode")%><%end if%>
|
<%elseif rs("checkadd")="checkadd2" then%>
<% =rs("city2")%> <% =rs("address2")%> <% if rs("postcode2")<>"" then%>,邮编:<%=rs("postcode2")%><%end if%>
|
<%end if%>
|
备注信息: |
发票: |
<%if rs("fapiao")=1 then %>需要发票 抬头为:<%=rs("taitou")%><%else%>不需要<%end if%> |
备注: |
<%=rs("content")%> |
|
<%rs.close
set rs=nothing%> |