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

<%
call aspsql()
Name=request.cookies("buyok")("userid")
Recname=request.form("Recname")
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")
RecPhone2=request.form("RecPhone2")
Recmail2=request.form("Recmail2")
Zipcode2=request.form("ZipCode2")

RecPhone=request.form("RecPhone")
Pay_Mode1=request.form("Pay_Mode")
CompPhone=request.form("CompPhone")
Recaddress=request.form("Recaddress")
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><%=sum%></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">
			  <%
'*******************************************
'文件名：SendOrder.asp
'主要功能：该示范程序主要完成将商户订单信息提交至云网支付网关的功能
'版本：v1.6（Build2005-05-24）
'描述：假设商户的订单系统都已完成，本页面主要是帮助商户按照云网支付网关要求的格式将订单信息提交至云网支付@网的支付接口，进行支付操作
'版权所有：北京云网无限网络技术有限公司
'技术支持联系方式：86-010-84853768/69 转技术部
'*******************************************
Set rs_c= conn.Execute("select * from pay") 

'---订单信息---
	Dim c_mid			'商户编号，在申请商户成功后即可获得，可以在申请商户成功的邮件中获取该编号
	Dim c_order			'商户网站生成的订单号，不能重复
	Dim c_name			'商户订单中的收货人姓名
	Dim c_address		'商户订单中的收货人地址
	Dim c_tel			'商户订单中的收货人电话
	Dim c_post			'商户订单中的收货人邮编
	Dim c_email			'商户订单中的收货人Email
	Dim c_orderamount	'商户订单总金额
	Dim c_ymd			'商户订单的产生日期，格式为"yyyymmdd"，如20050102
	Dim c_moneytype		'支付币种，0为人民币
	Dim c_retflag		'商户订单支付成功后是否需要返回商户指定的文件，0：不用返回 1：需要返回
	Dim c_paygate		'如果在商户网站选择银行则设置该值，具体值可参见《云网支付@网技术接口手册》附录一；如果来云网支付@网选择银行此项为空值。
	Dim c_returl		'如果c_retflag为1时，该值代表支付成功后返回的文件的路径
	Dim c_memo1			'商户需要在支付结果通知中转发的商户参数一
	Dim c_memo2			'商户需要在支付结果通知中转发的商户参数二
	Dim c_signstr		'商户对订单信息进行MD5签名后的字符串
	Dim c_pass			'支付密钥，请登录商户管理后台，在帐户信息->基本信息->安全信息中的支付密钥项
	Dim notifytype		'0普通通知方式/1服务器通知方式，空值为普通通知方式
	Dim c_language		'对启用了国际卡支付时，可使用该值定义消费者在银行支付时的页面语种，值为：0银行页面显示为中文/1银行页面显示为英文

	c_mid		= rs_c("c_mid")
	c_order	=  inBillNo
	c_name		= Recname
	c_address	= Recaddress
	c_tel		= RecPhone
	c_post		= Zipcode
	c_email		= Recmail
	c_orderamount	= sum
	c_ymd		= 20 & yy & mm & dd
	c_moneytype	= "0"
	c_retflag	= "1"
	c_paygate	= ""
	c_returl	= rs_c("c_returl")	'该地址为商户接收云网支付结果通知的页面，请提交完整文件名
	c_memo1		= "ABCDE"
	c_memo2		= "12345"
	c_pass		= rs_c("c_pass")
	notifytype	= "0"
	c_language	= "0"

	srcStr = c_mid & c_order & c_orderamount & c_ymd & c_moneytype & c_retflag & c_returl & c_paygate & c_memo1 & c_memo2 & notifytype & c_language & c_pass
	'说明：如果您想指定支付方式(c_paygate)的值时，需要先让用户选择支付方式，然后再根据用户选择的结果在这里进行MD5加密，也就是说，此时，本页面应该拆分为两个页面，分为两个步骤完成。
	
'---对订单信息进行MD5加密
	c_signstr	= MD5(srcStr)

%>

  <form name=confirm action="https://www.cncard.net/purchase/getorder.asp" 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="c_mid" value="<%=c_mid%>"> 
                                        <input type="hidden" name="c_order" value="<%=c_order%>"> 
                                        <input type="hidden" name="c_name" value="<%=c_name%>"> 
                                        <input type="hidden" name="c_address" value="<%=c_address%>"> 
                                        <input type="hidden" name="c_tel" value="<%=c_tel%>"> 
                                        <input type="hidden" name="c_post" value="<%=c_post%>"> 
                                        <input type="hidden" name="c_email" value="<%=c_email%>"> 
                                        <input type="hidden" name="c_orderamount" value="<%=c_orderamount%>"> 
                                        <input type="hidden" name="c_ymd" value="<%=c_ymd%>"> 
                                        <input type="hidden" name="c_moneytype" value="<%=c_moneytype%>"> 
                                        <input type="hidden" name="c_retflag" value="<%=c_retflag%>"> 
                                        <input type="hidden" name="c_paygate" value="<%=c_paygate%>"> 
                                        <input type="hidden" name="c_returl" value="<%=c_returl%>"> 
                                        <input type="hidden" name="c_memo1" value="<%=c_memo1%>"> 
                                        <input type="hidden" name="c_memo2" value="<%=c_memo2%>"> 
                                        <input type="hidden" name="c_language" value="<%=c_language%>"> 
                                        <input type="hidden" name="notifytype" value="<%=notifytype%>"> 
                                        <input type="hidden" name="c_signstr" value="<%=c_signstr%>"> 
                <input name="image" type="image" src="order/gouwuche/car_zaixian.gif" alt="" width="110" height="40"> 
              </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 name="image" type="image" src="order/gouwuche/car_zhifubao.gif" alt="" width="110" height="40"> 
                <INPUT type=hidden size=8 name=inBillNo2 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
%>
