<!--#include file="../include/hf_conn.asp" -->
<!--#include file="md5.asp" -->
<HTML><HEAD><TITLE>订单提交成功</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../hf_shop.css" type="text/css">
</HEAD>
<script language=javascript>
window.opener.location.reload()
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
<%
'call aspsql()
call hfvipok_check_path()
Set rs = conn.Execute("select * from pay") 
pay= rs("pay")
xpay_tid=rs("xpay_id")
xpay_key=rs("xpay_key")
xpay_url=rs("xpay_url")
xpay_name=rs("xpay_name")

alipay_id=rs("alipay_id")
alipay_securityCode=rs("alipay_securityCode")

westid=rs("westid")
westback=rs("westback")
chinaid=rs("chinaid")
chinakey=rs("chinakey")
chinaback=rs("chinaback")
pay88id=rs("pay88id")
pay88name=rs("pay88name")
pay88back=rs("pay88back")
paypalid=rs("paypalid")
npsid=rs("npsid")
npsback=rs("npsback")
ipsid=rs("ipsid")
ipsback=rs("ipsback")
set rs=nothing
Name=request.cookies("hfvipok")("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")
Pei=request.form("pei")
Fei=request.form("fei")
sum=request.form("sum")
'buylist=request.form("buylist")
buylist = request.cookies("hfvipok")("cart")
userkou=checkuserkou()
if reg<>"1" and request.cookies("hfvipok")("userid")="" then
response.redirect "../hf_error.asp?error=006"
response.end
end if
if buylist="" then
response.cookies("hfvipok")("cart")=""
response.cookies("hfvipok")("total")=""
response.redirect "../shop_error.asp?error=007"
response.end
end if
if csng(sum)=0 then
response.cookies("hfvipok")("cart")=""
response.cookies("hfvipok")("total")=""
response.redirect "../hf_error.asp?error=007"
response.end
end if
total=FormatNumber(sum,2)
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
set rsadd=server.createobject("adodb.recordset")
sql="select * from hfvip_orderlist"
rsadd.open sql,conn,1,3
rsadd.AddNew 
rsadd("UserId")=Name
rsadd("OrderNum")=inBillNo
rsadd("RecName")=RecName
rsadd("OrderSum")=Total
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("Recmail")=Recmail
rsadd("Notes")=Notes
rsadd.Update
rsadd.close
set rsadd=nothing
Set rs = conn.Execute("select * from hfvip_produc where ProdId in ("&buylist&") order by ProdId")
set rsdetail=server.createobject("adodb.recordset")
sql="select * from hfvip_order"
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
response.cookies("hfvipok")("cart")=""
response.cookies("hfvipok")("total")=""

if pay="1" then
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60><br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br>您的订单号码是：
<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font></td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form action="http://www.WestPay.com.cn/Pay/WestPayReceiveOrderFromMerchant.asp" method="POST" name="SendOrderToWestPay"  target=new>
<input type="hidden" name="MerchantID" value="<%=westid%>">
<input type="hidden" name="PostBackURL" value="<%=westback%>">
<input type="hidden" name="OrderNumber" value="<%=inBillNo%>">
<input type="hidden" name="OrderAmount" value="<%=replace(total,",","")%>">
<input type="submit" name="submit" value="WestPay在线支付">
</form>
</td>
<td align=center  width=50%  height=150>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form>
</td>
</tr>
<tr><td colspan=2 align=center>本站使用西部支付平台，支持国内18家银行60余种银行卡在线实时支付<br><br><a href='http://www.westpay.com.cn'  target="_blank"><img src='../images/pay/westpay.gif' border=0></a>
</td></tr>
</table>
<%
elseif pay="2" then
v_rcvtel=RecPhone 
v_orderemail = Recmail 
v_rcvname =  RecName 
v_rcvaddr =  RecAddress
v_rcvpost = ZipCode
v_moneytype = "0"
v_amount=replace(total,",","")
v_url=chinaback
v_mid =chinaid
v_oid=inBillNo
v_md5info_text = v_amount&v_moneytype&v_oid&v_mid&v_url&chinakey
v_md5info=Ucase(trim(md5(v_md5info_text)))
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form method=post action="https://pay.chinabank.com.cn/select_bank" target=new>
<input type=submit name=v_action value="网银在线实时支付">
<input type="hidden" name="v_md5info" size="100"  value="<%=v_md5info%>">
<input type="hidden" name="v_mid" value="<%=v_mid%>">
<input type="hidden" name="v_oid" value="<%=v_oid%>">
<input type="hidden" name="v_amount" value="<%=v_amount%>">
<input type="hidden" name="v_moneytype"  value="<%=v_moneytype%>">
<input type="hidden" name="v_url" value="<%=v_url%>">
<input type="hidden" name="remark1" value="<%=Notes%>">
<input type="hidden" name="v_rcvtel" value="<%=v_rcvtel%>">
<input type="hidden" name="v_rcvname" value="<%=v_rcvname%>">
<input type="hidden" name="v_rcvaddr" value="<%=v_rcvaddr%>">
<input type="hidden" name="v_rcvpost" value="<%=v_rcvpost%>">
<input type="hidden" name="v_orderemail"  value="<%=v_orderemail%>">
</form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form>
</td></tr>
<tr><td colspan=2 align=center>本站使用“网银在线安全支付平台”，支持国内绝大多数银行卡在线实时支付<br><br><a href='http://www.chinabank.com.cn/rmb_card/cardtype.shtml'  target="_blank"><img src='../images/pay/chinabank.gif' border=0></a></td></tr>
</table>
<%
elseif pay="3" then
purpose=pay88name&"（订单号："&inBillNo&"）"
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<!--pay88.com官方正在升级无组件接口，该接口暂时不能使用，本系统暂使用傻瓜型接口-->
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form method="post" action="https://www.pay88.com/pay.shtml?method=get&userid=<%=pay88id%>&purpose=<%=server.URLEncode(purpose)%>&amount=<%=total%>&mac=none" target=new>
<input type=submit name=action value="PAY88在线支付">
</form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form>
</td></tr>
<tr><td colspan=2 align=center>本站使用“Pay88.com在线支付平台”，支持国内绝大多数银行卡在线实时支付<br><br><a href='http://www.pay88.com'  target="_blank"><img src='../images/pay/pay88.gif' border=0></a></td></tr>
</table>
<%
elseif pay="4" then
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form method="post" action="https://payment.nps.cn/pay/PayCar.jsp" target="_blank">
<input Type="hidden" Name="M_ID" value="<%=npsid%>">	
<input Type="hidden" Name="MODate" value="<%=date+time%>">
<input Type="hidden" Name="MOrderID" value="<%=inBillNo%>">
<input Type="hidden" Name="MOAmount" value="<%=replace(total,",","")%>">
<input Type="hidden" Name="MOCurrency" value="1">
<input Type="hidden" name="M_URL" value="null">
<input Type="hidden" Name="M_Language" value="1">
<input Type="hidden" Name="S_Name" value="<%=RecName%>">
<input Type="hidden" Name="S_Address" value="<%=RecAddress%>">
<input Type="hidden" Name="S_PostCode" value="<%=Zipcode%>">
<input Type="hidden" Name="S_Telephone" value="<%=RecPhone%>">
<input Type="hidden" Name="S_Email" value="<%=Recmail%>">
<input Type="hidden" Name="R_Name" value="null">
<input Type="hidden" Name="R_Address" value="null">
<input Type="hidden" Name="R_PostCode" value="null">
<input Type="hidden" Name="R_Telephone" value="null">
<input Type="hidden" Name="R_Email" value="null">
<input Type="hidden" Name="R_Name" value="null">
<input Type="hidden" Name="R_Address" value="null">
<input Type="hidden" Name="R_PostCode" value="null">
<input Type="hidden" Name="R_Telephone" value="null">
<input Type="hidden" Name="R_Email" value="null">
<input Type="hidden" name="MOComment" value="<%=Notes%>">
<input Type="hidden" Name="State" value="0">
<INPUT type=submit name=action value="NPS 在线支付">
</form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form>
</td></tr>
<tr><td colspan=2 align=center>本站使用NPS在线支付平台，支持国内主流银行卡在线实时支付<br><br><a href='http://www.nps.cn'  target="_blank"><img src='../images/pay/nps.gif' border=0></a></td></tr>
</table>
<%
elseif pay="5" then
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100% >
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！您的站内订单号是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form action="https://www.ips.net.cn/ipay/ipayment.asp" METHOD=POST name="frm1" target=new>
<input type="hidden" name="mer_code" size="16" value="<%=ipsid%>">
<input type="hidden" name="billNo" size="16" value="<%=ipsid&right(inBillNo,6)%>">
<input type="hidden" name="amount" size="16" value="<%=replace(total,",","")%>">
<input type="hidden" name="date" size="16" value="<%=year(now())&right("0"&month(now()),2)&right("0"&day(now()),2)%>">
<input type="hidden" name="merchanturl" value="<%=ipsback%>">
<input type="submit" value="上海环讯IPS在线支付" name="B1">
</form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form></td></tr>
<tr><td colspan=2 align=center>本站使用上海环讯IPS在线支付平台，支持国内主流银行卡在线实时支付<br><br><a href='http://www.nps.cn'  target="_blank"><img src='../images/pay/ips.gif' border=0></a></td></tr>
</table>
<%
elseif pay="6" then
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=new>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<%=paypalid%>">
<input type="hidden" name="item_name" value="<%=sitename%>(Ordernumber:<%=inBillNo%>)">
<input type="hidden" name="amount" value="<%=replace(total,",","")%>">
<input type="hidden" name="item_number" value="<%=inBillNo%>">
<input type="hidden" name="currency_code" value="CNY">
<input type=submit name=action value="PayPal在线支付">
</form>

</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form></td></tr>
<tr><td colspan=2 align=center>本站使用PayPal国际支付平台，安全、方便、实时支付<br><br><a href='http://www.paypal.com'  target="_blank"><img src='../images/pay/paypal.gif' border=0></a></td></tr>
</table>
<%
elseif pay="7" then

'支付宝2.0
	'支付宝不允许金额中带,号，因此先用replace替换金额中的,号

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

	total        =        replace(cstr(formatnumber(total,2)),",","")
        s1           =        "0001"		'命令码
        s2           =        alipay_name	'商品名称
        s21          =        alipay_body	'商品描述
        s3           =        inBillNo		'订单号
        s4           =        total		'金额
        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  =        alipay_id		'卖家EMAIL
        key          =        alipay_securityCode
	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 & 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 & "&ac=" & MD5(str2CreateAc)
%>

<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form method="post" action=<%=itemURL%> target=new><input type=submit  value="使用“支付宝”付款"></form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form></td></tr>
<tr><td colspan=2 align=center>“支付宝”在线支付免手续费，收货满意后卖家才能拿钱，货、款都安全<br><br><a href='http://www.alipay.com'  target="_blank"><img src='../images/pay/alipay.gif' border=0></a></td></tr>
</table>


<%
elseif pay="8" then

tid=xpay_tid
key=xpay_key
actioncode="sell"     '交易码,用于标识交易
actionParameter=""    '当 actioncode="sell" ,此参数为空
ver="2.0"             '版本号,当前系统请使用2.0
if total>=1 then
prc=replace(cstr(formatnumber(total,2)),",","")
else
prc=replace("0"&cstr(formatnumber(total,2)),",","")
end if
bid=inBillNo
card="bank"
scard="bank"
username=RecName
pdt=xpay_name
pdttype=""
lang="gb2312"
remark1=notes
url=xpay_url
md=md5(key&":"&prc&","&bid&","&tid&","&card&","&scard&","&actioncode&","&actionparameter&","&ver)
%>

<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br><font color="#FF3333">恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</font> </td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可选择在线实时支付，或传统的非在线付款方式。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center width=50% height=120>
<form method="get" name="xpaypay" action="http://pay.xpay.cn/Pay.aspx"  target=new>
<input type=HIDDEN name="prc"    value="<%=prc%>"> 	
<input type=HIDDEN name="bid"   value="<%=bid%>"> 
<input type=HIDDEN name="tid" 	value="<%=tid%>">  	
<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="username"  value="<%=username%>">    
<input type=HIDDEN name="pdt"  value="<%=server.urlencode(pdt)%>">
<input type=HIDDEN name="type"  value="<%=server.urlencode(pdttype)%>">
<input type=HIDDEN name="lang"  value="<%=lang%>">    
<input type=HIDDEN name="remark1"  value="<%=remark1%>">    
<input type=HIDDEN name="url"  value="<%=url%>">    
<input type="submit" value="Xpay在线支付" name="submit">
</form>
</td>
<td align=center  width=50%  height=120>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看其它付款方法"></form></td></tr>
<tr><td colspan=2 align=center>本站使用“易付通”安全支付平台，方便、安全、快捷<br><br><a href='http://www.xpay.cn'  target="_blank"><img src='../images/pay/xpay.gif' border=0></a></td></tr>
</table>

<%
else
%>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=100%>
<tr><td align="center" valign="middle" height=60>
<br><br>恭喜，订单提交成功！请记下您的订单号，以便日后查询。<br><br>您的订单号码是：<b><%=inBillNo%></b>&nbsp;&nbsp;&nbsp;&nbsp;本次交易金额为：<b><%=total%></b>元</td></tr>
<tr><td align="center" valign="middle"  height=60>只有付款成功后，才能完成本次交易。您可通过邮局、银行柜台或网上银行办理付款。<br>我们在确认收到您的款项后，会按您的订单中填写的资料给您发货。</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" align="center" valign=absmiddle width=450>
<tr><td align=center  width=50%  height=150>
<form method="post" action="../fukuan.asp" target=new><input type=submit  value="查看付款方法"></form></td>
<td align=center  width=50%  height=150>
<form method="post" action="../main.asp" target=new><input type=submit  value="返回网站首页"></form>
</td></tr>
<tr><td align=center colspan=2>付款后请尽快与我们联系，以便我们及时查帐并为您发货。<br></td></tr>
</table>
<%
end if
Set rs = conn.Execute("select * from shopsetup") 
jmail=rs("jmail")
adm_mail=rs("adm_mail")
mailyesorno=rs("mailyesorno")
mailserver=rs("mailserver")
mailname=rs("mailname")
mailpassword=rs("mailpassword")
rs.close
set rs=nothing
if mailyesorno=1 then
dim msg
CLStr=Chr(13) & Chr(10)
if jmail=0 then
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = adm_mail
objMail.From =mailname
objMail.Subject ="订单通知("&inBillNo&")"
objMail.Body = Name&"("&RecName&")在"&sitename&"("&siteurl&")提交新订单，订单号："&inBillNo&"，订单金额："&Total
objMail.Send
Set objMail = Nothing
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = Recmail
objMail.From =mailname
objMail.Subject ="订单通知("&inBillNo&")"
objMail.Body = Name&"("&RecName&")在"&sitename&"("&siteurl&")提交新订单，订单号："&inBillNo&"，订单金额："&Total
objMail.Send
Set objMail = Nothing
else
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = mailname
msg.MailServerPassword = mailpassword   
msg.From = mailname
msg.FromName = sitename
msg.AddRecipient adm_mail
msg.Subject = "飞来一张新订单("&inBillNo&")"
msg.Body = Name&"("&RecName&")在"&sitename&"("&siteurl&")提交新订单，订单号："&inBillNo&"，订单金额："&Total
msg.Send (mailserver)
msg.close
set msg = nothing
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = mailname
msg.MailServerPassword = mailpassword   
msg.From = mailname
msg.FromName = sitename
msg.AddRecipient Recmail
msg.Subject = "订单通知("&inBillNo&")"
msg.Body = Name&"("&RecName&")在"&sitename&"("&siteurl&")提交新订单，订单号："&inBillNo&"，订单金额："&Total
msg.Send (mailserver)
msg.close
set msg = nothing
end if
end if
conn.close
set conn=nothing
%>
</body></HTML>
<!--
★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
★                                                                  ★
☆ （请保留此处版权信息，这些内容并不会对您的网站运行有任何影响）   ☆
★                                                                  ★
☆                韩枫企业网站管理系统 V 3.0　春节版                ☆
★                                                                  ★
☆  版权所有: www.hfvip.com                                         ☆
★                                                                  ★
☆  程序制作: 韩枫　　　　                                          ☆
★            email:web@hfvip.com                                   ★
☆            Tel:13751131689    QQ:1239968                         ☆
★                                                                  ★
☆  相关网址: http://www.hfvip.com      http://www.hfvip.net        ☆
★                                                                  ★
☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
-->
