<%@ Page language="c#" Codebehind="Checkout.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.Checkout" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/CartHeader.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<!--#include file="../../inc/encoding.inc"-->
		<title>订单确认</title> 
		<!--#include file="../../inc/head.inc"-->
		<script language="javascript" src="<%=webSite %>inc/calendar.js"></script>
		<script src="get_all_regions.aspx?nocopyright=1" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/regions.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/checkout.js" type="text/javascript"></script>
	    <link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/mycart.css" rel="stylesheet" />		
		<script type="text/javascript">
		    //以下变量在checkout.js中用到
			var memberAdvance = <%=member.AdvancePayment %>;
			var cartID = '<%=CartID%>';
			var sid = '<%=sid%>';
			var couponsCode = '<%=couponsCode%>';
			var shopFolder = '<%=ShopFolder %>';
			var extend = '<%=config.html %>';
			var shipFreeType = 0;//免运费方式
			var leastMoney = 9999999;//FreeType为1时用到此变量
			var taxRateGeneral = <%=config.TaxRate.Split('|')[0] %>;//普通发票
			var taxRateVAT = <%=config.TaxRate.Split('|')[1] %>;//增值税发票
			var currencySign = '<%=GetCurrencySign() %>';
			var scoreRate = <%=scoreRate %>;
			var usdScore = <%=usedScore %>;
		</script>
	</HEAD>
	<body>
	    <uc1:Header id="Header1" runat="server"></uc1:Header>
	    <form id="Form1" method="post" runat="server">
	    <input type="hidden" name="regionnames"/>
		    <div class="xp-w clear">
			    <div class="cart_step clear">
					<div style="float:left; margin-right:20px;"><%=config.SiteLogo %></div>
			        <ul>
	                    <li class="outsc">
	                        1.我的购物车
	                    </li>
	                    <li class="outso">
	                        2.选择订单
	                    </li>
	                    <li class="ono">
	                        3.确认订单信息
	                    </li>
	                    <li class="outcs">
	                        4.成功提交订单
	                    </li>
	                </ul>
	            </div>
    			
			    <div class="cartframe clear">
			        <div class="tm">请确认以下信息，然后提交订单</div>
			        <div class="mm">
			            <div class="orderfrm">
			                <div class="itemtitle">选择收货地址</div>
			                <div class="frmborder">
    			                
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin-bottom:5px;">
                                    <%--<colgroup class="Colspan-4 ColColorGray"></colgroup>--%>
                                    <colgroup class="Colspan-auto"></colgroup>
                                    <tr>
                                        <td style=" line-height:28px;">
                                            <%--<%=GetAddress()%>--%>
                                            <%if(dtAddress != null){%>
                                            <script>var addrJson=<%=XpShop.DBUtility.XpShopJson.DtToJSON(dtAddress)%></script>
                                            <%}%>
                                            <!--地址簿开始-->
                                            <%for(int i=0;i<dtAddress.Rows.Count;i++){%>
                                            <input id="shipAddr_<%=i+1%>" type="radio" value="<%=dtAddress.Rows[i]["ReceiverAddressID"]%>" name="shipAddr" no="<%=i%>" />
											<label for="shipAddr_<%=i+1%>"><%=dtAddress.Rows[i]["ReceiverAddress"]%>(收货人：<%=dtAddress.Rows[i]["ReceiverName"]%> 电话：<%=dtAddress.Rows[i]["ReceiverPhone"]%> 邮编：<%=dtAddress.Rows[i]["ReceiverZip"]%>)</label>
											<br/>
											<%}%>
                                            <input type="radio" id="shipAddr_0" name="shipAddr" value="0" /> <label>新增收货地址</label>
                                            <!--地址簿开始-->
                                        </td>
                                    </tr>
                                </table>
                                
			                    <div class="newaddaddr">
			                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin-bottom:5px;">
                                        <tbody>
                                            <tr>
                                                <th><em>*</em>收货人姓名：</th>
                                                <td><asp:textbox id="txtRName" runat="server" CssClass="inputstyle"></asp:textbox><span class="infotips">请填写有效证件上的真实姓名，以免延误按时收到货物</span></td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>手机号码：</th>
                                                <td>
                                                    <asp:textbox id="txtRMobile" runat="server" CssClass="inputstyle"></asp:textbox>
                                                    &nbsp;或者 固定电话：<asp:textbox id="txtRPhone" runat="server" CssClass="inputstyle"></asp:textbox> 用于接收发货通知短信及送货前确认
                                                </td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>地&nbsp;&nbsp;&nbsp;&nbsp;区：</th>
                                                <td>
                                                    <select id="ddlTopAreas" name="ddlTopAreas" ></select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>地&nbsp;&nbsp;&nbsp;&nbsp;址：</th>
                                                <td><span id="choosed_regions"></span>
                                                <asp:textbox id="txtRAddress" runat="server" Columns="50" CssClass="inputstyle"></asp:textbox>
                                                <span class="infotips">格式：街道-小区-门牌号数-楼层-房间</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>电子邮箱：</th>
                                                <td><asp:textbox id="txtREmail" runat="server" CssClass="inputstyle"></asp:textbox> 用来接收订单提醒邮件，便于您及时了解订单状态</td>
                                            </tr>
                                            <tr>
                                                <th>邮政编码：</th>
                                                <td><asp:textbox id="txtRPostalcode" runat="server" CssClass="inputstyle"></asp:textbox> 有助于快速确定送货地址</td>
                                            </tr>                                        
                                            <tr class="recsave" id="saveaddr" style="display:none;">
                                                <th><em>*</em>是&nbsp;否&nbsp;保&nbsp;存：</th>
                                                <td><input id="isSaveAddr" name="isSaveAddr" type="checkbox" value="1" checked="checked" /><span class="infotips">勾选，则保存本次收货地址</span></td>
                                            </tr>
                                        </tbody>
                                    </table>
			                    </div>
                                
                                
                                
			                </div>
			            </div>
			            <!--支付方式开始-->
			            <div class="orderfrm">
			                <div class="itemtitle">选择支付方式</div>
			                <div class="frmborder">                                
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="orderpaystyle">
                                    <%for(int i=0;i<dtPayment.Rows.Count;i++){%>
										<tr class='paytype_<%=dtPayment.Rows[i]["PayTypeID"]%>' style='<%=((int)dtPayment.Rows[i]["PayTypeID"] == 5 || (int)dtPayment.Rows[i]["PayTypeID"]==6) ? "display:none" : ""%>'>
                                            <th><input type="radio" id='rbPayType_<%=i%>' name="rbPayType" value='<%=dtPayment.Rows[i]["PayTypeID"]%>' /> <label for="rbPayType_<%=i%>"><%=dtPayment.Rows[i]["PayTypeName"]%></label></th>
                                        </tr>
                                    <%}%>
                                </table>
                                
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" style=" border:1px #d7d7d7 solid; background:#f1f1f1; margin:5px 0px; display:none;" id="ztdContainer">
                                    <tbody>
                                        <tr>
                                            <td colspan="2" style="padding-left:10px;">选择自提点:</td>
                                        </tr>
                                        <tr id="tmp_ztd" style="display:none;">
                                            <th class="ztdname" style=" padding-left:10px; width:18%;">自提点名称</th>
                                            <td class="ztddetail"><div class="ztdAddr">地址</div><div class="ztdRemark">描述</div></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
			            </div>
			            <!--支付方式结束-->
    			        
    			        
			            <!--配送方式开始-->
			            <div class="orderfrm shipContainer"><%--shipContainer不能少--%>
			                <div class="itemtitle">选择配送方式</div>
			                <div class="frmborder">
			                    <%=GetAD(94)%>
			                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin:5px 0px;" id="shipContainer">                                    
                                    <colgroup class="span-auto"></colgroup>
                                    <tbody>
                                        <tr id="tmp_ship" style="display:none;">
                                            <td style="line-height:20px; padding:6px 0px; color:#696969;">
                                                <div class="shippingwaycss">
                                                <span class="shipname">配送方式名称</span> 运费：<span class="shippricecss">￥<span class="shipprice"></span></span>
                                                </div>
                                                <span class="shipdetail"></span>
                                            </td>
                                        </tr>
                                        <%for(int i=0;i<dtShipping.Rows.Count;i++){%>
                                        <tr id="row_ship_<%=i%>">
                                            <td style="line-height:20px; padding:6px 0px; color:#696969;">
                                                <div class="shippingwaycss">
													<span class="shipname"><input type="radio" price="<%=dtShipping.Rows[i]["price"]%>" value="<%=dtShipping.Rows[i]["shippingid"]%>" name="Shipping" id="ship_<%=i%>"><label for="ship_<%=i%>"><%=dtShipping.Rows[i]["name"]%></label></span> 运费：<span class="shippricecss">￥<span class="shipprice"><%=dtShipping.Rows[i]["price"]%><%=dtShipping.Rows[i]["remark"].ToString()=="" ? "" : ("("+dtShipping.Rows[i]["remark"]+")")%></span></span>
                                                </div>
                                                <span class="shipdetail"><%=dtShipping.Rows[i]["description"]%></span>
                                            </td>
                                        </tr>
                                        <%}%>
                                    </tbody>
                                </table>
			                </div>
			            </div>
			            <!--配送方式结束-->
			            <div class="orderfrm">
			                <div class="itemtitle">选择<%=GetResourceString("DeliverGoodsDate")%></div>
			                <div class="frmborder">
			                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data">
                                    <%--<colgroup class="span-4 ColColorGray"></colgroup>--%>
                                    <colgroup class="span-auto"></colgroup>
                                    <tbody>
                                        <tr>
                                            <th>送货日期：</th>
                                            <td>
                                                <select class="inputstyle" id="ddlDate" name="ddlDate"><option selected="selected" value="0">任意日期</option><option value="1">仅工作日</option><option value="2">仅休息日</option><option value="3">指定日期</option></select>
                                                <div id="specal_day" style="display:none;">
                                                <asp:textbox id="txt_Date" runat="server" ForeColor="ControlDark"></asp:textbox><a id="picktime" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;" onclick="javascript:show_calendar('Form1.txt_Date');" href="javascript:show_calendar('Form1.txt_Date');" border="0"><IMG src="images/imgbtn_Date.jpg" align="absMiddle" border="0"></a>
                                                <span class="infotips">此默认日期及之后的时间可作为有效的送货时间</span>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>时间：</th>
                                            <td>
                                                <select class="inputstyle" id="ddlShippTime" name="ddlShippTime"><option>任意时间段</option><option>上午</option><option>下午</option><option>晚上</option></select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>订单附言：</th>
                                            <td><asp:textbox id="txtRemark" runat="server" Width="400" Height="40px" TextMode="MultiLine"></asp:textbox></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
			            </div>
    			        
			            <!--发票开始-->
			            <div class="orderfrm">
			                <div class="itemtitle"><asp:CheckBox ID="chkInvoice" runat="server" Text="开具发票" /></div>
			                <div class="frmborder" id="invoice" style="display:none;">
			                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin:5px 0px;">
                                    <%--<colgroup class="span-4 ColColorGray"></colgroup>--%>
                                    <colgroup class="span-auto"></colgroup>
                                    <tbody>
                                        <tr>
                                            <th height="25px">发票类型：</th>
                                            <td>
                                                <asp:RadioButton ID="rbtnInvoiceTypeGeneral" GroupName="InvoiceType" runat="server" Text="普通发票" Checked="true"></asp:RadioButton>
                                                <asp:RadioButton ID="rbtnInvoiceTypeVAT" GroupName="InvoiceType" runat="server" Text="增值税发票"></asp:RadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th height="25px">发票抬头：</th>
                                            <td>
                                                <asp:RadioButton ID="rbtnInvoiceHeadPerson" GroupName="InvoiceHead" runat="server" Text="个人" Checked="true"></asp:RadioButton>
                                                <asp:RadioButton ID="rbtnInvoiceHeadCompany" GroupName="InvoiceHead" runat="server" Text="单位"></asp:RadioButton>
                                                <asp:TextBox ID="txtCompanyName" runat="server" Columns="45" style="display:none;"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>发票内容：</th>
                                            <td>
                                                <asp:RadioButton ID="rbtnInvoiceContentDetails" GroupName="InvoiceContent" runat="server" Text="明细" Checked="true"></asp:RadioButton>
                                                <asp:RadioButton ID="rbtnInvoiceContentOther" GroupName="InvoiceContent" runat="server" Text="其它"></asp:RadioButton><br />
                                                <asp:TextBox ID="txtInvoiceContent" TextMode="MultiLine" runat="server" Height="60px" Columns="50" style="padding:5px;display:none;"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
			                </div>
			            </div>
			            <!--发票结束-->
                        
                        <!--优惠券开始-->
                        <div class="orderfrm">
			                <div class="itemtitle">优惠券</div>
			                <div id="couponlist" class="frmborder">
			                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin:5px 0px;">
                                    <colgroup class="span-auto"></colgroup>
                                    <tbody>
                                        <tr>
                                            <%--<th>选择或输入优惠券</th>--%>
                                            <td>
                                        	    <div id="selectCoupons">
                                            	    <span style="font-size:15px; font-weight:bold; margin:10px 0px;">>> 电子优惠券</span><Br /><Br />
                                            	    <asp:RadioButtonList ID="rblCoupons" Runat="server" RepeatDirection="Vertical" RepeatLayout="flow"></asp:RadioButtonList>
                                                </div>
                                                <script type="text/javascript">
                                                    $(document).ready(function(){
                                                        if($("#selectCoupons").find('#rblCoupons').children().length > 0){
                                                         $("#selectCoupons").show();
                                                         }
                                                         else{
                                                            $("#selectCoupons").hide();
                                                         }
                                                    });
                                                </script>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <%--输入优惠券--%>
                                                <div id="coupons"><br />
                                                    <span style="font-size:15px; font-weight:bold; margin:10px 0px;">>> 实体优惠券</span>
                                                    <div style="margin:10px 0px; background-color:white; height:30px; line-height:30px;">
                                                        <br style="line-height:3px;" />
                                                        <input type="text" id="txtCoupons" name="txtCoupons" size="30" />&nbsp;
                                                        <input type="button" id="btnCoupons" name="btnCoupons" value="输入优惠券号码" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
			                </div>
			                <div id="usedcouponinfo" class="frmborder hide">
			                   已使用优惠券：<span id="usedCoupons"></span>&nbsp;&nbsp;抵扣<em id="couponmoney"></em>元&nbsp;&nbsp;&nbsp;&nbsp;<span id="cancelCoupons" class="hand"><u>取消使用优惠券</u></span>
			                </div>
			            </div>
                        <!--优惠券结束-->
    			        
    			        <div class="orderfrm" style="display:none;" id="frmAdvance">
    			            <div class="itemtitle">余额支付</div>
    			            <div class="frmborder">
    			                <input type="checkbox" id="cbAdvPay" name="cbAdvPay" value="1" /> <label>使用余额支付</label>　余额:<label id="advMoney"><%=string.Format("{0:f2}", member.AdvancePayment) %></label>
    			            </div>
    			        </div>
    			        
			            
			            <div class="clear"></div>
			        </div>
		        </div>
		        
    			<div>
    			    <!--商品信息开始-->
		            <div class="orderfrm">
    			        <div class="clear">
    			            <div class="js-itemtitle">
    			                商品清单
    			            </div>
    			            <div class="backmycart"><a href="<%=webSite %>mycart.aspx">返回修改购物车</a></div>
    			        </div>
		                <div class="frmborder" style="padding:0px 0px 10px;">
			                <div style="border:1px #e6e6e6 solid;">
		                        <table class="cart_product" cellspacing="0">
		                            <tbody>
					                    <tr class="title">
					                        <td width="10%">商品编号</td>
					                        <td>商品名称</td>
					                        <td width="10%">价格</td>
					                        <td width="10%">优惠</td>
					                        <td width="10%">赠送积分</td>
					                        <td width="10%">购买数量</td>
					                    </tr>
					                </tbody>
					                <tbody class="hide">
					                    <tr class="item">
					                        <td class="storename" colspan="6">百悦网</td>
					                    </tr>
					                </tbody>
					                <%--套装商品开始--%>
				                    <%for (int i = 0; i < dtSuit.Rows.Count; i++){%>
				                    <tbody id="suitd_<%=dtSuit.Rows[i]["SuitID"] %>">
				                        <tr class="item">
								            <td>-</td>
								            <td class="pname"><img id="suitimg_<%=dtSuit.Rows[i]["SuitID"] %>" class="showsuit hand" src="images/open.gif" /><font color="red">[套装]</font><%=dtSuit.Rows[i]["SuitName"] %><a id="suita_<%=dtSuit.Rows[i]["SuitID"] %>" class="showsuit" href="javascript:void(0);">[查看套装商品]</a></td>
								            <td class="RedWeight">￥<%=string.Format("{0:f2}", dtSuit.Rows[i]["MemberPrice"])%></td>
								            <td>￥<%=string.Format("{0:f2}", dtSuit.Rows[i]["LessMoney"])%></td>
								            <td><%=dtSuit.Rows[i]["Score"]%></td>
								            <td><%=dtSuit.Rows[i]["Quantity"]%></td>
							            </tr>
				                    </tbody>
				                    <tbody id="suit_<%=dtSuit.Rows[i]["SuitID"] %>" class="hide">
				                    <%--遍历套装商品明细开始--%>
				                    <%System.Data.DataRow[] drSuitPdt = dtPdt.Select("suitid=" + dtSuit.Rows[i]["SuitID"].ToString());%>
				                    <%for (int j = 0; j < drSuitPdt.Length; j++){%>
                                        <tr class="item">
								        <td><%=drSuitPdt[j]["ProductNo"]%></td>
								        <td class="pname"><div class="pimg"><a href='<%=webSite %>products/product-<%=drSuitPdt[j]["ProductID"]%>.<%=config.html%>' target="_blank"><img src="<%=webSite %>upload/productimg/<%=drSuitPdt[j]["ImgFolder"]%><%=drSuitPdt[j]["ProductImg"]%>" /></a></div><a href='<%=webSite %>products/product-<%=drSuitPdt[j]["ProductID"]%>.<%=config.html %>' target="_blank"><%=drSuitPdt[j]["ProductName"]%><span style="color:Red;"><%=drSuitPdt[j]["RuleName"].ToString() != "" ? ("(" + drSuitPdt[j]["RuleName"] + ")") : ""%></span><span style="color:Red;"><%=drSuitPdt[j]["remark"]%></span></a></td>
								        <td class="RedWeight">￥<%=string.Format("{0:f2}", drSuitPdt[j]["pmtprice"])%></td>
								        <td>￥<%=string.Format("{0:f2}", drSuitPdt[j]["LessMoney"])%></td>
								        <td>-</td>
								        <td><%=(int)drSuitPdt[j]["Quantity"] / (int)dtSuit.Rows[i]["Quantity"]%>×<%=dtSuit.Rows[i]["Quantity"]%></td>
							        </tr>
				                    <%} %>
				                    <%--遍历套装商品明细结束--%>
				                    </tbody>
				                    <%} %>
				                    <%--套装商品结束--%>
				                    <%--普通商品开始--%>
				                    <%System.Data.DataRow[] drPdt = dtPdt.Select("suitid=0");%>
				                    <%if (drPdt.Length > 0){ %>
				                    <tbody>
				                    <%for (int i = 0; i < drPdt.Length; i++){%>
                                        <tr class="item">
								        <td><%=drPdt[i]["ProductNo"]%></td>
								        <td class="pname">
								            <div class="pimg"><a href='<%=webSite %>products/product-<%=drPdt[i]["ProductID"]%>.<%=config.html%>' target="_blank"><img src="<%=webSite %>upload/productimg/<%=drPdt[i]["ImgFolder"]%><%=drPdt[i]["ProductImg"]%>" /></a></div>
								            <a href='<%=webSite %>products/product-<%=drPdt[i]["ProductID"]%>.<%=config.html %>' target="_blank"><%=drPdt[i]["ProductName"]%><span style="color:Red;"><%=drPdt[i]["RuleName"].ToString() != "" ? ("(" + drPdt[i]["RuleName"] + ")") : ""%></span><span style="color:Red;"><%=drPdt[i]["remark"]%></span></a>
								            <%System.Data.DataRow[] drCoupon = dtSendCoupon.Select("productid="+drPdt[i]["ProductID"].ToString());%>
			                                <%for (int j = 0; j < drCoupon.Length; j++){%>
			                                <div><font color="red">[赠品]</font><%=drCoupon[j]["CouponName"]%><font color="red">× <%=drCoupon[j]["Number"]%>(订单完成后自动发放)</font></div>
			                                <%} %>
								        </td>
								        <td class="RedWeight">￥<%=string.Format("{0:f2}", drPdt[i]["pmtprice"])%></td>
								        <td>￥<%=string.Format("{0:f2}", drPdt[i]["LessMoney"])%></td>
								        <td><%=drPdt[i]["Score"]%></td>
								        <td><%=drPdt[i]["Quantity"]%></td>
							        </tr>
				                    <%} %>
				                    </tbody>
				                    <%} %>
				                    <%--普通商品结束--%>
				                    <%--礼品开始--%>
				                    <%if (dtGift.Rows.Count > 0){%>
				                    <tbody>
							        <%for (int i = 0; i < dtGift.Rows.Count; i++){%>
							        <tr class="item">
								        <td><%=dtGift.Rows[i]["ProductNo"]%></td>
								        <td style="text-align:left;"><a href='<%=webSite %>products/product-<%=dtGift.Rows[i]["ProductID"]%>.<%=config.html %>' target="_blank"><%=dtGift.Rows[i]["ProductName"]%><span style="color:Red;"><%=dtGift.Rows[i]["RuleName"].ToString() != "" ? ("(" + dtGift.Rows[i]["RuleName"] + ")") : ""%></span><span style="color:Red;"><%=dtGift.Rows[i]["giftremark"]%></span></a></td>
								        <td class="RedWeight">￥<%=string.Format("{0:f2}", dtGift.Rows[i]["pmtprice"])%></td>
								        <td>￥<%=string.Format("{0:f2}", dtGift.Rows[i]["LessMoney"])%></td>
								        <td>0</td>
								        <td><%=dtGift.Rows[i]["giftnumber"]%></td>
							        </tr>
							        <%}%>
							        </tbody>
							        <%}%>
							         <%--礼品结束--%>
				                </table> 
			                </div>
                            <div class="clear hide" style="text-align:right; padding:16px 10px 10px; color:#000000; font-weight:normal; zoom:1;">
                                <b><%=GetResourceString("Total")%>: </b><font size="3" color="#ff6600"><span id="total"><%=string.Format("{0:f}",totalmoney) %></span></font>&nbsp;&nbsp;<%--id="total" 在js中用到--%>
                                <b><%=GetResourceString("Weight")%>: </b><span id="totalWeight"><%=string.Format("{0:f2}",totalweight)%></span> Kg&nbsp;&nbsp;
                                <b><%=GetResourceString("Quantity")%>: </b><span id="total_quantity"><%=totalnumber%></span>&nbsp;&nbsp;
                                <% if(config.MarkUnit == 1) {%><b>获得积分: </b><span id="totalScore"><%=totalscore%></span><% }%>&nbsp;&nbsp;
                                <% if(config.MarkUnit == 1) {%><b>消费积分: </b><%=usedScore%><% }%>&nbsp;&nbsp;
                                
                                <div id="favourable" style="float:right;">
                                    <b>原始金额：</b><span id="originaltotal"><%=string.Format("{0:f}",totalmoney+promotionprice) %></span>
                                </div>
                            </div>
		                </div>
		            </div>
		            <!--商品信息结束-->  
		            
			        <!--结算信息开始-->
                    <div class="orderfrm">
			            <div class="clear">
    			            <div class="js-itemtitle">
    			                结算信息
    			            </div>
    			        </div>
		                <div class="frmborder" style="border-bottom:0 none; padding-bottom:10px;">
		                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data" style="margin:5px 0px;text-align:right;">
                                <tbody>
                                    <tr>
                                        <td style="text-align:right;">
                                            商品总金额：<span id="ptotalPrice"><%=string.Format("{0:f2}",totalmoney+promotionprice) %></span>元&nbsp;
                                            + 配送费用：<span id="shipPrice">0</span>元<span id="freeTip" style="color:#ff0000; display:none;">(免运费)</span>&nbsp;
                                            + 发票税金：<span id="taxPrice">0</span>元&nbsp;
                                            - 优惠金额：<span id="pmtPrice"><%=string.Format("{0:f2}",promotionprice) %></span>元&nbsp;
                                            - 积分抵现金：<span id="ScoreAmount">0</span>元&nbsp;
                                            - 优惠券抵扣：<span id="couponPrice">0</span>元&nbsp;                                            
                                            - 余额支付：<span id="advPrice">0</span>元
                                            <br />
                                            <div style="font-weight:bold; font-size:14px; padding:10px 0px 0px; text-align:right;">应付总金额：<span id="lefttotal" class="RedWeight" style="font-size:16px; font-family:Arial;"><%=string.Format("{0:f2}",totalmoney) %></span> 元</div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="hide" style="text-align:right;">
                                            在购物车中可以使用积分抵消部分订单金额：积分与现金兑换比例为<%=scoreRate%>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
		                </div>
		            </div>
                    <!--结算信息结束-->
		            
                    <div id='pleaseWaitButtonDiv2_PleaseWaitButton1'></div>
	                <div id='pleaseWaitButtonDiv_PleaseWaitButton1' style="text-align:right; margin-bottom:10px; margin-top:15px; display:none;"><asp:button id="btnSave" OnClick="btnSave_Click" Runat="server" Text=" " CssClass="btnSave"></asp:button></div>
                    
    			</div>
				    <!--内容结束-->
				    <div style="clear:both;"></div>
			    </div>
		</form>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</HTML>