<% igoodsid=FormatSQL(SafeRequest("goodsid",0)) %> <% ' 随机函数 Function RndNumber(Min,Max) Randomize RndNumber=Int((Max - Min + 1) * Rnd() + Min) End Function 'Response.Write RndNumber(100000,999999) %> <%=igoodsid%>订单

<%set rs=server.CreateObject("adodb.recordset") rs.open "select * from goods where goodsid="& igoodsid&" order by dcreatedate",conn,1,1 %>

上海彩虹色卡专卖店商品订单
www.cars51.cn

为了保障您的合法权益,请在收货时检查产品是否完好并请仔细阅读的售后服务条款,谢谢!
24小时服务电话:13501854032         E-mail:service@cars51.cn
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
订单编号:<%=rs("goodsid")%> 订单用户:<%=rs("username")%> 订购日期:<%=rs("dcreatedate")%>
支付方式:<%=rs("payfs")%> 发货方式:<%=rs("sendfs")%> 发货区域:<%=rs("area")%> 货品毛量:<%=rs("totalmz")%>kg
收货人信息:...........................................................................................................................................................................
姓名:<%=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%>
商品信息:...............................................................................................................................................................................
<% set rs1=server.CreateObject("adodb.recordset") rs1.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 from orders, tproduct where orders.goods='"& igoodsid &"' and orders.id=tproduct.id order by orders.actionid ",conn,1,1 intTotalNum = rs1.RecordCount sum1=0 sum=0 sums1=0 sumcount=0 do while not rs1.eof %> <% rs1.movenext loop rs1.close set rs1=nothing%>
产品编号 名称 数量 单价 总价
<%=rs1(1)%> <%if rs1(9)=0 then response.write "(赠品)"& rs1(2) else response.write rs1(2) end if%> <%productnum=rs1(3) sumcount=productnum+sumcount response.write productnum%> <% iprice=rs1(9)%>¥<%=iprice%> ¥<% = iprice*productnum%> <%sum1=iprice*productnum+sum1%>
总价:<%=sum1%>元,<%=sumcount%>件,此订单内共有<%=intTotalNum%>品种商品
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
订单账务:
货物总价:¥<%=rs("totaljg")%> <%itotaljg=rs("totaljg")%> 订单折扣:¥<%=rs("goodszk")%> <%igoodszk=rs("goodszk")%> 配送费用:¥ <%iyfyf=rs("yfyf") iyfyh=rs("yfyh") iyftotal=iyfyf-iyfyfh%> <%=iyftotal%> 已付金额:¥<%=rs("yfje")%> <%iyfje=rs("yfje")%> 应付总计:¥ <%dingdanyf=itotaljg-igoodszk-iyfje+iyftotal%> <%=dingdanyf%>
订单审核:_______________ 客户签收:_____________  
<% set rs9=server.CreateObject("adodb.recordset") rs9.open "select * from tips ",conn,1,1 if not rs9.eof then RecNo=rndnumber(0,rs9.recordcount) rs9.move recno %> <% end if rs9.close set rs9=nothing %>
 
备注:  <%=rs("content")%>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
小贴士: [ <%=rs9("tiptitle")%> ]
   <%=rs9("tip")%>