<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckoutSucc.aspx.cs" Inherits="web.tuan.CheckoutSucc" %>
<%@ Register TagPrefix="cc1" Namespace="PayPal.Web.Controls" Assembly="PayPal.Web.Controls" %>
<!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>
<title>在线支付 － <%=config.SiteTitle%></title>
<meta name="description" content="<%=config.MetaDescription %>" />
<meta name="keywords" content="<%= config.MetaKeywords %>" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="image/cd.css" rel="stylesheet" type="text/css" />
<script src="image/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="image/jd.js"></script>
		<SCRIPT language="JavaScript">
		function printPage() 
		{
			eval("printOrder" + ".style.display=\"none\";");
			window.print(); 
		}
		</SCRIPT>
		<SCRIPT language="JavaScript">
		function showButton() 
		{
			if(<%=payment.InterfaceID%> == 1)
			{
				eval("onlinePay" + ".style.display=\"none\";");
			}
			else
			{
				eval("onlinePay" + ".style.display=\"\";");
			}
		}
		</SCRIPT>
		<script language="JavaScript">
function GetDiv(sDiv)
{
	var div;
	if (document.getElementById)
		div = document.getElementById(sDiv);
	else if (document.all)
		div = eval("window." + sDiv);
	else if (document.layers)
		div = document.layers[sDiv];
	else
		div = null;

	return div;
}

function HideDiv(sDiv)
{
	d = GetDiv(sDiv);
	if (d)
	{
		if (document.layers) d.visibility = "hide";
		else d.style.visibility = "hidden";
	}
}

function PleaseWait(sDivButton, sDivMessage, sInnerHtml)
{
	HideDiv(sDivButton);
	var d = GetDiv(sDivMessage);
	if (d) d.innerHTML = sInnerHtml;
}
		</script>

</head>
<body>
<asp:literal id="ltrPayment" Runat="server"></asp:literal>
<form id="Form1" method="post" runat="server">
<div class="header clearfix">
<h1 class="lf"><a href="../default.html" target="_blank"><%=config.SiteLogo %></a></h1>	<h2 id="desc"></h2>
	
	<div class="rss rf clearfix">
		<p>输入邮箱地址，订阅每日精品团购!</p>
	
			<div class="lf">
				<input type="text" id="email" datatype="email" require="true" value="" class="txt lf" name="email" />
				
			<asp:Button ID="Bem" runat="server" class="but lf" OnClick="Bem_Click" />
				</div>
				<span class="lf"></span>
		

	</div>
</div>
 
	
  <div class="navWrap"> 
    <div class="wrap clearfix"> 
      <ul class="nav lf">
	<li class="on"><a href="index.aspx">首页</a></li>
					<li class="on"><a href="index.aspx?type=2">团购</a></li>
					<li class="on"><a href="index.aspx?type=4">限时抢购</a></li>
				
					<li class="on"><a href="odate.aspx">往期热卖</a></li>
					<li class="on"><a href="book.aspx">问题答疑</a></li>
					<li class="on"><a href="../HelpListInfo_1.html" target="_blank">帮助中心</a></li>
      </ul>
      <div class="member rf"> 
        <%if (member.MemberID > 0)
    {%>
        <span class="username lf">欢迎你, 
        <%=member.Name%>
        &nbsp;&nbsp;|</span> 
        <div id="menulist"> <a class="top" href="../MemberCenter.aspx" target="_blank">我的会员中心</a> 
          <div class="ml-bottom"> 
            <div class="menu-t"></div>
            <div class="menu-c"> 	<a href="../MytgOrders.aspx" target="_blank">我的团购订单</a>
              <a href="../Mydjqrec.aspx" target="_blank">我的返利</a> <a href="../Mymemb.aspx" target="_blank"> 
              我推荐的会员</a> <a href="../MymembPay.aspx" target="_blank"> 我的提成</a> 
              <a href="../Myget.aspx" target="_blank"> 账户余额</a> <a href="../IndividualInformation.aspx" target="_blank">账户设置</a> 
             <a href="../Logout.aspx" target="_blank">退出</a> 
            </div>
            <div class="menu-b"></div>
          </div>
        </div>
        <%}else{ %>
        <a href="login.aspx">登录</a> | <a href="reg.aspx">注册</a> 
        <%} %>
      </div>
    </div>
  </div>
	<div class="boxWrap m10 clearfix">
<div class="mainWrap lf">
<div class="sect bor">
 <h2 class="title">在线支付：</h2>
<TABLE cellSpacing="0" cellPadding="0" width="668" border="0">
<TBODY>
					
				</TBODY></TABLE>
			
  <TABLE width="98%" border="0" align="center" cellPadding="1" cellSpacing="0">
    <TBODY>
					<TR>
						<TD> <h2 class="title">套餐信息：</h2>
							
						</TD>
					</TR>
				</TBODY></TABLE>
  <TABLE width="98%" border="1" align="center" cellPadding="0" cellSpacing="0" bordercolor="#DDD" bgcolor="#FFFFFF">
    <TBODY>
      <TR> 
    
        <td width="284" height="33" align="center" bgcolor="#F4F4F4">
          <%=GetResourceString("ProductName")%>
          <BR> </td>
        <td width="99" height="33" align="center" bgcolor="#F4F4F4">
          <%=GetResourceString("Quantity")%>
        </td>
        <td width="98" height="33" align="center" bgcolor="#F4F4F4">
         
                   单价
          </td>
             <td width="98" height="33" align="center" bgcolor="#F4F4F4"><%=GetResourceString("zjf")%></td>
                           <td width="90" align="center" bgcolor="#F4F4F4"> 
                      <%=GetResourceString("zdjq") %>
                      </td>
        <td width="104" height="33" align="center" bgcolor="#F4F4F4">
          <%=GetResourceString("Total")%>
        </td>
    
      </TR>
      <!-- BEGIN row -->
      <asp:repeater id="rptOrderItems" Runat="server"> 
        <ItemTemplate> 
          <TR> 
       
            <td width="334" height="28" align="center" bgcolor="#FFFFFF">
                   
			<a href='showproduct.aspx?productID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>' target=_blank><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a>
          
            </td>
            <td width="99" height="28" align="center" bgcolor="#FFFFFF">
              <%# DataBinder.Eval(Container.DataItem, "Quantity") %>
            </td>
            <td width="98" height="28" align="center" bgcolor="#FFFFFF">
             <%=GetCurrency()%> <%# DataBinder.Eval(Container.DataItem, "UnitPrice","{0:f2}") %>
           
            </td>
                         <td width="98" height="20" align="center" bgcolor="#FFFFFF">                     
              <%# Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) == "0" ? "0点" : "" + Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) + "点"%>
</td>
                  <td width="98" height="20" align="center" bgcolor="#FFFFFF">                     
             <%# Getdj(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) == "0.0000" ? "0元" : "" + Getdj(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString())) + "元"%>
</td>   
            <td width="104" height="28" align="center" bgcolor="#FFFFFF">
             <%=GetCurrency()%> <%# DataBinder.Eval(Container.DataItem, "SubPrice","{0:f2}") %>
            </td>
          
          </TR>
        </ItemTemplate>
      </asp:repeater>
    </TBODY>
  </TABLE>
<br>
    <TABLE width="100%" border="0" align="center" cellPadding="0" cellSpacing="0" bordercolor="#E0E0E0" bgcolor="#FFFFFF">
      <tr>
					<td width="50%" vAlign="top" bgcolor="#FFFFFF">
				  <table width="100%">
            <tr> 
              <td height="28"> 
                <%=GetResourceString("OrderStatus")%>
                ： 
                <%= GetStatus(orderID.ToString()).ToString()%>
              </td>
            </tr>
           
            <tr> 
              <td height="28"> 
                支付方式
                ： 
                <%=GetPaymentName(order.PaymentType)%>
              </td>
            </tr>
            
          </table>
					</td>
<td width="50%" bgcolor="#FFFFFF">
  <table width="100%">
            <tr> 
              <td align="right" width="50%"> 
                <%=GetResourceString("ProductPrice")%>
                ：</td>
              <td width="1%"></td>
              <td width="49%"> 
                <%=GetCurrency()%>
                <%=string.Format("{0:f}",order.ProductPrice)%>
               </td>
            </tr>
       
      
            <tr> 
              <td align="right" width="50%"> 
                <%=GetResourceString("TotalPrice")%>
                ：</td>
              <td width="1%"></td>
              <td> 
                <%=GetCurrency()%>
                <%=string.Format("{0:f}",order.TotalPrice)%>
              </td>
            </tr>
            <tr> 
              <td align="right" width="50%"> 
                <%=GetResourceString("UseAdvancePayment")%>
                ：</td>
              <td width="1%" rowspan="2"></td>
              <td> 
                <%=GetCurrency()%>
                <%=string.Format("{0:f}",order.AdvancePayment)%>
              </td>
            </tr>
            <tr> 
              <td align="right">使用代金券：</td>
              <td>  <%=GetCurrency()%>
                <%=string.Format("{0:f}",order.Dxdjq)%></td>
            </tr>
            <tr> 
              <td align="right" width="50%"> 
                <%=GetResourceString("TotalNotPayed")%>
                ：</td>
              <td width="1%"></td>
              <td><font color="red"> 
                <%=GetCurrency()%>
                <%=GetPay()%>
                </font></td>
            </tr>
          </table>
	  </td>
	</tr>
		  </TABLE>
<br>
  
  <table width="98%" align="center">
    <tr>
					<td height="26" bgcolor="F4F4F4"><h2 class="title"><%=GetResourceString("OrderComment")%></h2></td>
	</tr>
				<tr>
					<td><%=order.Remark%></td>
				</tr>
				<tr>
					<td vAlign="middle" align="center" height="20"><cc1:uploadcompletecartbutton id="UploadCompleteCartButton1" runat="server" Visible="False"></cc1:uploadcompletecartbutton><br>
						<br>
						<asp:Label ID="cft" runat="server"></asp:Label>
						<SPAN id="onlinePay" style="display:<%=payOnline %>;">
							<input style="display:<%=payOnline %>;BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 69px; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 22px"
								onclick="frmPay.submit()" type="button" value="<%=GetResourceString("OrderPayOnline")%>">
                            &nbsp; </SPAN><SPAN id="printOrder"><input style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 69px; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 22px"
								onclick="printPage()" type="button" value="<%=GetResourceString("OrderPrint")%>">
          &nbsp;
          <input style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 69px; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 22px"
								onclick="window.close();opener.focus();" type="button" value="<%=GetResourceString("OrderFinish")%>"></SPAN><asp:Label id="lbHidden" runat="server" Visible="False">USD</asp:Label>
					</td>
				</tr>
			</table>
				

</div>
 
</div>
 
<div class="toolWrap rf">
<div class="sidemain mb10 bor">
<h3>账户余额：</h3>
<p>您的帐户余额：<strong class="c1"><%=GetCurrency() %><%=member.AdvancePayment.ToString("0.00") %></strong></p>
</div>
<div class="sidemain mb10 bor">
<h3>代餐券：</h3>
<p>您可使用的代餐券：<strong class="c1"><%=GetCurrency() %><%=member.Djq.ToString("0.00")%></strong></p>
</div>
</div>
 
</div>
 

<div class="footer">
<div class="wrap clearfix">Copyright © 2011 - 2112 <%=config.SiteUrl %> All Rights Reserved
<%=config.SiteName%> 版权所有</div>

</div>
</form>

</body>
</html>

