<!--#include file="include/nowshop.asp" -->
<!--#include file="md5.asp" -->

<%
call aspsql()
Name=request.cookies("buyok")("userid")
Recname=request.form("Recname")
Zipcode=request.form("ZipCode")
RecPhone=request.form("RecPhone")
Pay_Mode1=request.form("Pay_Mode")
CompPhone=request.form("CompPhone")
Recaddress=request.form("Recaddress")
Province=request.form("Province")
city=request.form("city")
Fetch_Mode=request.form("Fetch_Mode")
Recname2=request.form("Recname2")
Province2=request.form("Province2")
city2=request.form("city2")
Recaddress2=request.form("Recaddress2")
RecPhone2=request.form("RecPhone2")
Recmail2=request.form("Recmail2")
Zipcode2=request.form("ZipCode2")


Recmail=request.form("Recmail")
Notes=request.form("Notes")
post=request.form("post")
Gettime=request.form("gettime")
if reg<>"1" then
if request.cookies("buyok")("userid")="" then 
response.redirect "../error.asp?error=006"
response.end
end if
end if
buylist = request.cookies("buyok")("cart")
if buylist="" then
response.redirect "../error.asp?error=007"
response.end
end if
%>

<%randomize
d=right("00"&int(99*rnd()),2)
yy=right(year(date),2)
mm=right("00"&month(date),2)
dd=right("00"&day(date),2)
riqi=yy & mm & dd
xiaoshi=right("00"&hour(time),2)
fenzhong=right("00"&minute(time),2)
miao=right("00"&second(time),2)
inBillNo=yy & mm & dd & xiaoshi & fenzhong & miao & d
inBillNo1=yy&"年" & mm &"月"& dd &"日"& xiaoshi& "时"& fenzhong &"分"
%>
<%
set rs=conn.execute("select * from bconfig")
pei=rs("pei"&post)
fei=rs("fei"&post)
mianyoufei=rs("mianyoufei")
mianyoufei_msg=rs("mianyoufei_msg")
if clng(request.cookies("buyok")("total"))>=mianyoufei then
pei=pei  & "，" & mianyoufei_msg
fei=0
else
pei=pei & "，配送费用"& fei & "元"
end if
set rs=nothing
Sum1=request.cookies("buyok")("total")
sum3=sum1+fei
sum3=FormatNum(sum3,2)
%> 
<%
call aspsql()
call buyok_check_path()
Set rs = conn.Execute("select * from pay") 
pay1= rs("pay1")
payid=rs("payid")
paykey=rs("paykey")
set rs=nothing
Name=request.cookies("buyok")("userid")
if Name="" then Name="游客"
RecName=request.form("RecName")
RecPhone=request.form("RecPhone")
CompPhone=request.form("CompPhone")
Gettime=request.form("Gettime")
RecAddress=request.form("RecAddress")
Notes=request.form("Notes")
Recmail=request.form("Recmail")
Zipcode=request.form("ZipCode")
Province=request.form("Province")
city=request.form("city")
Fetch_Mode=request.form("Fetch_Mode")
RecName2=request.form("RecName2")
Province2=request.form("Province2")
city2=request.form("city2")
RecAddress2=request.form("RecAddress2")
Zipcode2=request.form("ZipCode2")
Recmail2=request.form("Recmail2")
RecPhone2=request.form("RecPhone2")

Pei=rs("pei"&post)
Fei=formatnum(fei,2)
'buylist=request.form("buylist")
buylist = request.cookies("buyok")("cart")
userkou=checkuserkou()
if reg<>"1" and request.cookies("buyok")("userid")="" then
response.redirect "error.asp?error=006"
response.end
end if
if buylist="" then
response.cookies("buyok")("cart")=""
response.cookies("buyok")("total")=""
response.redirect "error.asp?error=007"
response.end
end if
Set rs = conn.Execute("select * from bproduc where ProdId in ("&buylist&") order by ProdId")
set rsdetail=server.createobject("adodb.recordset")
sql="select * from bOrder"
rsdetail.open sql,conn,1,3
While Not rs.EOF
buynum=split(replace(buylist,"'",""),", ")
for i=0 to ubound(buynum)
if rs("prodid")=buynum(i) then
Quatity=buynum(i+1)
exit for
end if
next
rsdetail.AddNew 
if Name<>"" then rsdetail("UserId")=Name
rsdetail("OrderNum")=inBillNo
rsdetail("ProdId")=rs("ProdId")
if Quatity="" or Quatity=0 then Quatity=1
rsdetail("ProdUnit")=Quatity
rsdetail("BuyPrice")=rs("PriceList")
rsdetail("pei")=pei
rsdetail("fei")=fei
rsdetail.Update
rs.MoveNext
Wend
rsdetail.close
set rsdetail=nothing
rs.close
set rs=nothing
%>

<HTML><HEAD><TITLE>订单提交预览</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
<link rel="stylesheet" href="list/newhead.css" type="text/css">
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
<center>
<!--#include file="top.asp"-->
  <table width="768"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr> 
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td><TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
          <TBODY>
            <TR> 
              <TD><IMG height=48 src="order/gouwuche/800buy_car_step.gif" width=160></TD>
              <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step1.gif" width=153></TD>
              <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step2.gif" width=153></TD>
              <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step5.gif" width=154></TD>
              <TD><IMG height=48 src="order/gouwuche/800buy_car_step6.gif" 
  width=108></TD>
            </TR>
          </TBODY>
        </TABLE></td>
    </tr>
    <tr> 
      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="241"><img src="order/gouwuche/800buy_car_thank.gif" alt="" width="432" height="37"></td>
            <td class="award"></td>
          </tr>
        </table></td>
    </tr>
  </table>
  
  <table width="768"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr> 
      <td colspan="3">&nbsp;</td>
	  <input type=hidden value="ok" name="confirm">
    </tr>
    <tr> 
      <td width="109">&nbsp;</td>
      <td width="550" align="center"><table width="550" height="50" cellpadding="0" cellspacing="0" class="jiesuan">
          <tr> 
            <td width="565">

			<table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#D1D2D3">
                  <tr bgcolor="#FFFFFF"> 
                    <td width="22%" height="25" align="center">您的定单编号为：</td>
                    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="6%">&nbsp;</td>
                          <td width="94%" height="25"><span class="bold"><%=inBillNo%></span>（查询订单请记住定单号）</td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td width="22%" height="25" align="center">您提交定单时间：</td>
                    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="6%">&nbsp;</td>
                          <td width="94%" height="24"> <%=inBillNo1%></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td width="22%" align="center">订货人信息：</td>
                    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="6%">&nbsp;</td>
                          <td width="94%" height="25">姓名：<%=Recname%></td>
                        </tr>
                        <tr> 
                          <td>&nbsp;</td>
                          <td height="25">地址：<%=Recaddress%></td>
                        </tr>
                        <tr> 
                          <td>&nbsp;</td>
                          <td height="25">邮编：<%=ZipCode%></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td width="22%" height="28" align="center">您订购的商品为：</td>
                    <td height="28" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="6%">&nbsp;</td>
                          <td width="94%" height="25"> <%
call aspsql()
userkou=checkuserkou()
buylist=request.cookies("buyok")("cart")
if trim(request("del"))<>"" then 
buylist=replace(buylist,trim(request("del")),"XXXXXXXX")
response.cookies("buyok")("cart")=buylist
end if
If Request("edit") = "ok" Then
buylist = ""
buyid = Split(Request("ProdId"), ", ")
For I=0 To UBound(buyid)
if i=0 then
buylist = "'" & buyid(I) & "', '"&request(buyid(I))&"'"
else
buylist = buylist & ", '" & buyid(I) & "', '"&request(buyid(I))&"'"
end if
Next
response.cookies("buyok")("cart") = buylist
End If
if buylist="" then
response.cookies("buyok")("total")=0
response.redirect "error.asp?error=007"
response.end
else
Set rs=conn.execute("select * from bproduc where ProdId in ("&buylist&") order by ProdId")
if rs.eof and rs.bof then
response.cookies("buyok")("cart") = ""
response.cookies("buyok")("total")=0
response.redirect "error.asp?error=007"
response.end
end if
end if
%> <TABLE cellSpacing=1 cellPadding=0 width=100% border=0>
                              <TBODY>
                                <%
Sum1 = 0
While Not rs.eof
buynum=split(replace(buylist,"'",""),", ")
for i=0 to ubound(buynum)
if rs("prodid")=buynum(i) then
Quatity=buynum(i+1)
exit for
end if
next
if not isNumeric(Quatity) then Quatity=1
If Quatity <= 0 Then Quatity = 1
Sum1 = Sum1 + csng(rs("PriceList"))*Quatity*checkuserkou()/10
shichangSum = shichangSum + csng(rs("PriceOrigin"))*Quatity*checkuserkou()/10
sum=sum1+fei
sum=FormatNum(sum,2)
%>
                                <TR align=left> 
                                  <TD height="20"> <input type="hidden" name="ProdId2" value="<%=rs("ProdId")%>"> 
                                    <a href='list.asp?ProdId=<%=rs("ProdId")%>' target="_blank"><%=rs("ProdName")%></a></TD>
                                  <TD width="79">￥<font color="#FF0000">&nbsp;<%=FormatNum(rs("PriceList")*checkuserkou()/10,2)%></font>元</TD>
                                  <TD width="50">数量：<%=Quatity%></TD>
                                </TR>
                                <%
rs.MoveNext
Wend
rs.close
set rs=nothing
%>
                              </TBODY>
                            </TABLE></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td rowspan="5" align="center">您的订单金额：</td>
                    <td width="267" height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="33">&nbsp;</td>
                          <td width="285" height="25">商品总计金额：</td>
                        </tr>
                      </table></td>
                    <td width="151" height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="13%">&nbsp;</td>
                          <td width="87%" >￥<font color="#FF0000">&nbsp;<%=formatnum(Sum1,2)%></font>元</td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="33">&nbsp;</td>
                          <td width="285" height="25">您共节省金额</td>
                        </tr>
                      </table></td>
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="13%">&nbsp;</td>
                          <td width="87%" ><SPAN class=zk_cont>￥<font color="#FF0000">&nbsp;<%=FormatNum(shichangsum-sum1,2)%></font>元</SPAN></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="33">&nbsp;</td>
                          <td width="285" height="25">配送金额：</td>
                        </tr>
                      </table></td>
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="13%">&nbsp;</td>
                          <td width="87%" >￥<font color="#FF0000">&nbsp;<%=formatnum(fei,2)%></font>元</td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="33">&nbsp;</td>
                          <td width="285" height="25">配送方式：</td>
                        </tr>
                      </table></td>
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="13%">&nbsp;</td>
                          <td width="87%"><%=pei%></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="33">&nbsp;</td>
                          <td width="285" height="25">需付金额：</td>
                        </tr>
                      </table></td>
                    <td height="28"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="13%">&nbsp;</td>
                          <td width="87%">￥<font color="#FF0000">&nbsp;<b><%=formatnum(Sum,2)%></b></font>元</td>
                        </tr>
                      </table></td>
                  </tr>
                </table></td>
          </tr>
        </table></td>
      <td width="109">&nbsp;</td>
    </tr>
  </table>

<table width="768"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
	

      <td width="109">&nbsp;</td>
      <td height="25">如果您是第一次进行网上支付，请先到银行网站或柜台开通网上支付功能。详细办法可参阅&quot;<a href="/hlp/hlp_payment.htm" target="_blank">支付向导</a>&quot;</td>
    </tr>
    <tr align="center">
        <td colspan="2"><table height="40" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="150" align="center" valign="middle">
			  <%

Set rs_x= conn.Execute("select * from pay") 

    
	 ' 支付提交表单的各项参数如下：

	 ' tid
	 '      商户唯一交易号,xpayconfig.asp文件里的tid替换为自己的商户号即可
	 ' bid
	 '      定单号，
	 ' prc
	 '      订单金额
	 ' card
	 '      默认支付方式
	 ' scard
	 '      支付的支付方式
	 ' actioncode
	 '      交易码	 
	 ' actionparameter 
	 '      业务代码
	 ' ver 
	 '      版本号
	 ' md
	 '      MD5加密串
	 ' url
	 '      商户自定义返回接收支付结果的页面
	 ' pdt
	 '      交易摘要或产品名称	 

	 '********以下几项数据可以不传**************
	 ' type 
	 '      交易类型或产品类型
	 ' username
	 '      购买用户	       
	 ' lang
	 '      语言	
	 ' remark1
	 '      备注
	 ' disableemail
	 '      是否隐藏email
	 ' sitename
	 '      商户网站名称
	 ' siteurl
	 '      商户网站域名



	bid=inBillNo
	prc=sum
	pdt=inBillNo& "号订单在线支付"
	username=Recname
	remark1=Notes
	card="bank"
    
    scard=""
    lang="gb2312"
'===============================================================
'  易付通支付接口2.0应用演示代码.  本演示代码仅作参考!              
'  详细请参考易付通商户接口规范2.0:                                                 
'  本页是设置易付通支付商户交易唯一号、交易密钥和其他配置信息  
'  测试商户交易号tid=86532211 交易密钥key=Lk3fGJb/EAU=                                   
'===============================================================
tid=rs_x("tid")       '商户交易唯一号号，即商户号，请改为你自己的商户号
key=rs_x("key")    '交易密钥，必须跟易付通商户后台设置的相同，否则会验证失败
actioncode="sell"     '交易码,用于标识交易,目前支持sell,custom 等于custom表示用户可以修改支付金额
actionParameter=""    '当 actioncode="sell"和"custom"时 ,此参数为空
ver="2.0"             '版本号,当前系统请使用2.0
sitename=""           '网站名称，多个网站商户使用，在支付网关页面显示，设置为空时读取在我们系统设置的网站名称
siteurl=""            '网站域名，多个网站域名商户使用，在支付网关页面显示，设置为空时读取在我们系统设置的网站域名
disableemail=""       '是否隐藏支付网关页面显示的填写email栏

url=rs_x("url")

    md=md5(key&":"&prc&","&bid&","&tid&","&card&","&scard&","&actioncode&","&actionparameter&","&ver)
                                                            'md为加密数据，加密顺序必须严格按此顺序
%>

			    <form name=confirm action="http://pay.xpay.cn/pay.aspx" method=post target="_blank">
<INPUT TYPE="hidden" name="RecName" value="<%=Recname%>">
<INPUT TYPE="hidden" name="RecPhone" value="<%=RecPhone%>">
<INPUT TYPE="hidden" name="CompPhone" value="<%=CompPhone%>">
<INPUT TYPE="hidden" name="RecAddress" value="<%=Recaddress%>">
<INPUT TYPE="hidden" name="Gettime" value="<%=gettime%>">
<INPUT TYPE="hidden" name="Recmail" value="<%=Recmail%>">
<INPUT TYPE="hidden" name="Zipcode" value="<%=Zipcode%>">
<INPUT TYPE="hidden" name="Province" value="<%=Province%>">
<INPUT TYPE="hidden" name="city" value="<%=city%>">
<INPUT TYPE="hidden" name="Fetch_Mode" value="<%=Fetch_Mode%>">
<INPUT TYPE="hidden" name="RecName2" value="<%=Recname2%>">
<INPUT TYPE="hidden" name="Province2" value="<%=Province2%>">
<INPUT TYPE="hidden" name="city2" value="<%=city2%>">
<INPUT TYPE="hidden" name="RecAddress2" value="<%=Recaddress2%>">
<INPUT TYPE="hidden" name="Zipcode2" value="<%=Zipcode2%>">
<INPUT TYPE="hidden" name="RecPhone2" value="<%=RecPhone2%>">
<INPUT TYPE="hidden" name="Recmail2" value="<%=Recmail2%>">

<INPUT TYPE="hidden" name="Notes" value="<%=Notes%>">
<INPUT TYPE="hidden" name="pei" value="<%=pei%>">
<INPUT TYPE="hidden" name="fei" value="<%=fei%>">
<INPUT TYPE="hidden" name="sum" value="<%=sum%>">
<INPUT TYPE="hidden" name="buylist" value="<%=buylist%>">


<input type=HIDDEN name="tid" 	value="<%=tid%>"> 
<input type=HIDDEN name="bid"   value="<%=bid%>">  	
<input type=HIDDEN name="prc"    value="<%=prc%>"> 	
<input type=HIDDEN name="card" value="<%=card%>">  	
<input type=HIDDEN name="scard" value="<%=scard%>" > 
<input type=HIDDEN name="actioncode" value="<%=actioncode%>">  
<input type=HIDDEN name="actionparameter"  value="<%=actionparameter%>"> 
<input type=HIDDEN name="ver"  value="<%=ver%>">   
<input type=HIDDEN name="md"  value="<%=md%>">  
<input type=HIDDEN name="url"  value="<%=url%>">  
<input type=HIDDEN name="pdt"  value="<%=pdt%>">
<input type=HIDDEN name="username"  value="<%=username%>">    
<input type=HIDDEN name="type"  value="<%=pdttype%>">
<input type=HIDDEN name="lang"  value="<%=lang%>">    
<input type=HIDDEN name="remark1"  value="<%=remark1%>">
<input type=HIDDEN name="disableemail"  value="<%=disableemail%>">   
<input type=HIDDEN name="sitename"  value="<%=sitename%>">   
<input type=HIDDEN name="siteurl"  value="<%=siteurl%>">   

			  <input type="image" src="order/gouwuche/car_zaixian.gif" width="110" height="40" alt="">
			  
			  </form>

			  </td>
			  
			  <% set rs_pay=conn.execute("select * from pay") 
			  
			  if rs_pay("pay1")<>"0" then%>

              <td width="150" align="center" valign="middle">

<%
	alipay_name=inBillNo & "号订单在线支付"
	alipay_body="以下金额（"& sum & "元）已包含配送费用"

        s1           =        "0001"		  '命令码
        s2           =        alipay_name	  '商品名称
        s21          =        alipay_body	  '商品描述
        s3           =        inBillNo		  '订单号
        s4           =        sum		  '金额
        s5           =        "1"		  '支付类型
        s6           =        "1"		  '购买数量
        s7           =        "1"		  '发货方式
        s8           =        "0.00"        	  '邮费
        s9           =        "0.00"        	  '邮费
        s10          =        "true"        	  '只读
        s11          =        notes		  '买家留言
        s12          =        ""		  '买家Email
        s13          =        ucase(RecName)	  '买家姓名
        s14          =        RecAddress	  '买家地址
        s15          =        Zipcode		  '买家邮编
        s16          =        RecPhone		  '买家电话
        s17          =        CompPhone		  '买家手机
        sellerEmail  =        payid		  '卖家EMAIL
	s18    	     =        "2088002028987185"  'partner
        key          =        paykey
	str2CreateAc = "cmd" & s1 & "subject" & s2
	str2CreateAc = str2CreateAc & "body" & s21
	str2CreateAc = str2CreateAc & "order_no" & s3
	str2CreateAc = str2CreateAc & "price" & s4
	str2CreateAc = str2CreateAc & "type" & s5
	str2CreateAc = str2CreateAc & "number" & s6
	str2CreateAc = str2CreateAc & "transport" & s7
	str2CreateAc = str2CreateAc & "ordinary_fee" & s8
	str2CreateAc = str2CreateAc & "express_fee" & s9
	str2CreateAc = str2CreateAc & "readonly" & s10
	str2CreateAc = str2CreateAc & "buyer_msg" & s11
	str2CreateAc = str2CreateAc & "seller" & sellerEmail
	str2CreateAc = str2CreateAc & "buyer" & s12
	str2CreateAc = str2CreateAc & "buyer_name" & s13
	str2CreateAc = str2CreateAc & "buyer_address" & s14
	str2CreateAc = str2CreateAc & "buyer_zipcode" & s15
	str2CreateAc = str2CreateAc & "buyer_tel" & s16
	str2CreateAc = str2CreateAc & "buyer_mobile" & s17
	str2CreateAc = str2CreateAc & "partner" & s18
	str2CreateAc = str2CreateAc & key
	itemURL = "https://www.alipay.com/payto:" & sellerEmail & "?cmd=" & s1
	itemURL = itemURL & "&subject=" & Server.URLEncode(s2)
	itemURL = itemURL & "&body=" & Server.URLEncode(s21)
	itemURL = itemURL & "&order_no=" & s3
	itemURL = itemURL & "&price=" & s4
	itemURL = itemURL & "&type=" & s5
	itemURL = itemURL & "&number=" & s6
	itemURL = itemURL & "&transport=" & s7
	itemURL = itemURL & "&ordinary_fee=" & s8
	itemURL = itemURL & "&express_fee=" & s9
	itemURL = itemURL & "&readonly=" & s10
	itemURL = itemURL & "&buyer_msg=" & s11
	itemURL = itemURL & "&buyer=" & s12
	itemURL = itemURL & "&buyer_name=" & s13
	itemURL = itemURL & "&buyer_address=" & s14
	itemURL = itemURL & "&buyer_zipcode=" & s15
	itemURL = itemURL & "&buyer_tel=" & s16
	itemURL = itemURL & "&buyer_mobile=" & s17
	itemURL = itemURL & "&partner=" & s18
	itemURL = itemURL & "&ac=" & MD5(str2CreateAc)
%>

<form name=confirm1 action="<%=itemURL%>" method=post target="_blank">
<input type="image" src="order/gouwuche/car_zhifubao.gif" width="110" height="40" alt=""> 
<INPUT type=hidden size=8 name=inBillNo value="<%=inBillNo%>">
</form>
</td>
<%end if%>


			  <td width="150" align="center" valign="middle">
			  
  <form name=confirm2 action="fukuan.asp" method=post target="_blank">
<input type="image" src="order/gouwuche/car_qita.gif" width="110" height="40" alt=""> 
</form>
			  
			  </td>
            </tr>
          </table> 
          <INPUT type=hidden size=8 name=inBillNo value="<%=inBillNo%>"></td>
    </tr>
  </table>
	 <!--<tr>
		<td>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
			<tr align="center"> 
			  <td colspan="2"> 
				<input type="submit" value="网上支付">
			  </td>
			</tr>
			<tr align="center"> 
			  <td colspan="2">如果您是第一次进行网上支付，请先到银行网站或柜台开通网上支付功能。详细办法可参阅"<a href="/hlp/hlp_payment.htm" target="_blank">支付向导</a>"</td>
			</tr>			
		  </table>
		</td>
	  </tr>-->
	  <%
set rsadd=server.createobject("adodb.recordset")
sql="select * from bOrderlist"
rsadd.open sql,conn,1,3
rsadd.AddNew 
rsadd("UserId")=Name
rsadd("OrderNum")=inBillNo
rsadd("RecName")=RecName
rsadd("OrderSum")=sum
rsadd("RecPhone")=RecPhone
rsadd("RecAddress")=RecAddress
rsadd("pei")=pei     '配送方式
rsadd("fei")=fei     '配送费用
rsadd("thiskou")=userkou
rsadd("CompPhone")=CompPhone
rsadd("gettime")=Gettime
rsadd("ZipCode")=ZipCode
rsadd("Province")=Province
rsadd("city")=city
rsadd("Fetch_Mode")=Fetch_Mode
rsadd("RecName2")=RecName2
rsadd("Province2")=Province2
rsadd("city2")=city2
rsadd("RecAddress2")=RecAddress2
rsadd("RecPhone2")=RecPhone2
rsadd("ZipCode2")=ZipCode2
rsadd("Recmail2")=Recmail2

rsadd("Recmail")=Recmail
rsadd("Notes")=Notes
rsadd.Update
rsadd.close
set rsadd=nothing
%>
<!--#include file="down.asp"-->
<%
response.cookies("buyok")("cart")=""
response.cookies("buyok")("total")=""
%>

</center>
</BODY>
</HTML>
<%
conn.close
set conn=nothing
%>
