<!--#include file="conn.asp"-->
<%
page_title=Eval("order_title"&Language)
page_keywords=Eval("order_keywords"&Language)
page_description=Eval("order_description"&Language)
if page_title="" then
page_title=city_title
page_keywords=city_keywords
page_description=city_description
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=page_title%></title>
<meta name="keywords" content="<%=page_keywords%>" />
<meta name="description" content="<%=page_description%>" />
<!--#include file="top.asp"-->
<!--#include file="header.asp"-->
<link href="<%=filepath%>inc/cart.css" rel="stylesheet" type="text/css">
<script src="../inc/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../inc/jquery.placeholder.min.js" type="text/javascript"></script>
<script src="../inc/jzoshow.js" type="text/javascript"></script>
<script src="../inc/bo.js" type="text/javascript"></script>
<%
submitOK=request("submitOK")
expressId=request("expressId")
dingdan=request("dingdan")
%>

<script type="text/javascript">
//<![CDATA[
$(function(){
	
});

var goToPay = function() {
	$('body,html').animate({scrollTop:0},1000);
	if ($("input[type='radio'][name='payid']:checked").length == 0) {
		alert("请选择支付方式？");
		return;
	}
	$(".link").click(function(){
	$("#payDialog").css("display", "none");
	app.helper.closeBg();
	});
	app.helper.showBg();
	$("#payDialog").css("display", "block");
	$("#paymentForm").submit();
	return;
};
//]]>
</script>

<!-- start middle -->
<div class="headnav">
	<div class="cart-steps">
		<ul>
			<li><span>1.我的购物车</span></li>
			<li><span>2.填写核对订单</span></li>
			<li class="current"><span>3.成功提交订单</span></li>
			<li class="clear"></li>
		</ul>
	</div>
</div>
<div id="content" class="w990">
	<div class="div-con">
				<div class="buyend">
				
<%if submitOK=0 then%>
	<h2>对不起，同一时间重复提交，请稍候再提交！返回<a href="cart.asp">购物车</a> 或 <a href="../index.asp">首页</a></h2>
<%elseif submitOK=3 then%>
	<h2>对不起，您的操作有误，请返回<a href="cart.asp">购物车</a> 或 <a href="../index.asp">首页</a></h2>
<%else
if expressId<>"" then
set rszf=server.CreateObject("adodb.recordset")
rszf.open "select * from com_songhuo where id="&expressId&"",conn,1,1
subject=rszf("subject")
rszf.close
set rszf=nothing
end if
%>

	<h2>
	<i class="icon-success"></i>
	<%if expressId=1 then%>
	您的订单为货到付款，请注意确认收货！
	<%else%>
	<%if submitOK=2 then%>请您及时付款，以便订单尽快处理！<%else%>  您的订单已成功提交，请继续完成支付！<%end if%>
	<%end if%>
	</h2>
	
	<%if expressId=1 then%>
	<p>您的订单号：<a href="orderDetail.asp?dingdan=<%=dingdan%>"><%=dingdan%></a>&nbsp;&nbsp;&nbsp;&nbsp;
	应付金额：<span class="price-bigs"><%=Formatnumber(session("zongji_a"),2,-1,-1,0)%></span>元&nbsp;&nbsp;&nbsp;&nbsp;配送方式：<%=subject%></p>
	<%else%>
	<p>您的订单号：<a href="orderDetail.asp?dingdan=<%=dingdan%>"><%=dingdan%></a>&nbsp;&nbsp;&nbsp;&nbsp;应付金额：<span class="price-big"><%=Formatnumber(session("zongji_a"),2,-1,-1,0)%></span>元&nbsp;&nbsp;&nbsp;&nbsp;配送方式：<%=subject%></p>
	<p>还差一步，请继续完成在线支付（您也可以选择稍后付款，本店将会在24小时保留您的订单）。</p>
	<%end if%>

<%end if%>		
				</div>
				
<%if expressId<>1 and submitOK<>0 then%>
			<h3>选择支付方式</h3>
			<div class="hr"></div>
			<div class="w35" style="margin-left: 78px;">
				<form id="paymentForm" name="paymentForm" action="checkout.asp" method="post" target="_blank">
				<input type="hidden" id="orderId" name="orderId" value="<%=dingdan%>">
				<div class="payinline" style="margin-left: 50px;">
					<div class="bankPayName">
						<strong>第三方平台支付：</strong>
					</div>
					<div class="bankSelMiddle">
						<ul>
						<%if ali_pay=1 then%>
							<li><input id="ALIPAY" name="payid" type="radio" value="ALIPAY">
								<label for="ALIPAY"><img id="imgid" src="images/bank_52.gif" alt="支付宝"></label>
							</li>
						<%end if%>
						<%if ten_pay=1 then%>
							<li><input id="TENPAY" name="payid" type="radio" value="TENPAY">
								<label for="TENPAY"><img id="imgid" src="images/bank_53.gif" alt="财付通"></label>
							</li>
							<%end if%>
							<%if bill_pay=1 then%>
							<li><input id="TENPAY" name="payid" type="radio" value="BillPAY">
								<label for="TENPAY"><img id="imgid" src="images/bank_54.gif" alt="快钱"></label>
							</li>
							<%end if%>
						</ul>
					</div>


					<!--
					<div class="bankPayName">
						<strong>其它银行支付：</strong>
					</div>
					<div class="bankSelMiddle">
						<ul>
							<li>
								<input id="ICBCB2C" name="payid" type="radio" value="ICBCB2C"> 
								<label for="ICBCB2C"><img id="imgid" src="images/bank_02.gif" alt="中国工商银行"></label>
							</li>
	
							<li><input id="CMB" name="payid" type="radio" value="CMB">
								<label for="CMB"><img id="imgid" src="images/bank_03.gif" alt="招商银行"></label></li>
	
							<li><input id="CCB" name="payid" type="radio" value="CCB">
								<label for="CCB"><img id="imgid" src="images/bank_04.gif" alt="中国建设银行"></label></li>
	
							<li><input id="BOCB2C" name="payid" type="radio" value="BOCB2C"><label for="BOCB2C"> <img id="imgid" src="images/bank_05.gif" alt="中国银行"></label></li>
	
							<li style="display: none"><input id="ABC" name="payid" type="radio" value="ABC">
								<label for="ABC"><img id="imgid" src="images/bank_06.gif" alt="中国农业银行"></label></li>
	
							<li><input id="COMM" name="payid" type="radio" value="COMM"><label for="COMM"> <img id="imgid" src="images/bank_07.gif" alt="交通银行"></label></li>
	
							<li><input id="SPDB" name="payid" type="radio" value="SPDB"><label for="SPDB"> <img id="imgid" src="images/bank_08.gif" alt="浦发银行"></label></li>
	
							<li><input id="GDB" name="payid" type="radio" value="GDB">
								<label for="GDB"><img id="imgid" src="images/bank_09.gif" alt="广发银行"></label></li>
	
							<li><input id="CITIC" name="payid" type="radio" value="CITIC"><label for="CITIC"> <img id="imgid" src="images/bank_10.gif" alt="中信银行"></label></li>
	
							<li><input id="CEBBANK" name="payid" type="radio" value="CEBBANK"> <label for="CEBBANK"><img id="imgid" src="images/bank_11.gif" alt="中国光大银行"></label></li>
	
							<li><input id="CIB" name="payid" type="radio" value="CIB">
								<label for="CIB"><img id="imgid" src="images/bank_12.gif" alt="兴业银行"></label></li>
	
							<li><input id="SPABANK-1" name="payid" type="radio" value="SPABANK">
								<label for="SPABANK-1"><img id="imgid" src="images/bank_13.gif" alt="深圳发展银行"></label></li>
	
							<li><input id="CMBC" name="payid" type="radio" value="CMBC"><label for="CMBC"> <img id="imgid" src="images/bank_14.gif" alt="中国民生银行"></label></li>
	
							<li><input id="HZCBB2C" name="payid" type="radio" value="HZCBB2C"> <label for="HZCBB2C"><img id="imgid" src="images/bank_15.gif" alt="杭州银行"></label></li>
	
							<li><input id="SHBANK" name="payid" type="radio" value="SHBANK"> <label for="SHBANK"><img id="imgid" src="images/bank_16.gif" alt="上海银行"></label></li>
	
							<li><input id="NBBANK" name="payid" type="radio" value="NBBANK"><label for="NBBANK"> <img id="imgid" src="images/bank_17.gif" alt="宁波银行"></label></li>
	
							<li><input id="SPABANK" name="payid" type="radio" value="SPABANK"> <label for="SPABANK"><img id="imgid" src="images/bank_18.gif" alt="深圳平安银行"></label></li>
	
							<li><input id="BJRCB" name="payid" type="radio" value="BJRCB"> <label for="BJRCB"><img id="imgid" src="images/bank_19.gif" alt="北京农村商业银行"></label></li>
	
							<li><input id="ICBCBTB" name="payid" type="radio" value="ICBCBTB"> <label for="ICBCBTB"><img id="imgid" src="images/bank_20.gif" alt="中国工商银行(企业)"></label>
							</li>
	
							<li><input id="CCBBTB" name="payid" type="radio" value="CCBBTB"> <label for="CCBBTB"><img id="imgid" src="images/bank_21.gif" alt="中国建设银行(企业)"></label>
							</li>
	
							<li><input id="SPDBB2B" name="payid" type="radio" value="SPDBB2B"><label for="SPDBB2B"> <img id="imgid" src="images/bank_22.gif" alt="浦发银行(企业)"></label></li>
	
							<li style="display: none"><input id="ABCBTB" name="payid" type="radio" value="ABCBTB"><label for="ABCBTB"> <img id="imgid" src="images/bank_23.gif" alt="中国农业银行(企业)"></label>
							</li>
	
							<li><input id="FDB" name="payid" type="radio" value="FDB">
								<label for="FDB"><img id="imgid" src="images/bank_24.gif" alt="富滇银行"></label></li>
	
							<li><input id="PSBC-DEBIT" name="payid" type="radio" value="PSBC-DEBIT"> <label for="PSBC-DEBIT"><img id="imgid" src="images/bank_25.gif" alt="中国邮政储蓄银行"></label></li>
						</ul>
					</div>
					-->
				</div>
			</form></div>
			<div class="buyfoot">
				<p>
					<a href="javascript:void(0)" onclick="goToPay();" class="btn-pay">立即支付</a>
				</p>
				<p>
					<span>&gt; 支付成功后，您可以：</span> <a href="orderDetail.asp?dingdan=<%=dingdan%>"><i class="icon-look"></i>查看订单状态</a>
					<a href="../index.asp"><i class="icon-cart"></i>继续购物</a>
				</p>
			</div>
<%end if%>	

	</div>
</div>
<!--end middle-->
	
	
   <div class="clear"></div>
   
  <div id="bg" class="bg" style="display: none;"></div>
	<iframe id="popIframe" class="popIframe" frameborder="0"></iframe>
	<div id="loadingTip" class="loadingTip" style="display: none;">
		数据处理中...
	</div> 
	
   <div id="payDialog" class="dialog" style="display: none; ">
    <div class="dgwrap">
        <div class="icocontent">
            <i class="icon-alert"></i>
            <strong>请你在新打开的支付平台页面上完成付款。</strong>
            <p class="payhint">付款前请不要关闭此窗口。<br>完成付款后请根据您的情况点击下面的按钮。</p>
            <div class="btncon">
                <a href="orderDetail.asp?dingdan=<%=dingdan%>" class="btn-pay"><span>已完成付款</span></a>
                <a href="#" class="link"><span>付款遇到问题，返回重新支付</span></a>
            </div>
        </div>
        
    </div>
</div>
<!--#include file="foot.asp"--> 

