<%@ Page language="c#" Codebehind="OrderPrint.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.OrderPrint_aspx" %>
<%@ 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>
<HEAD>
<!--#include file="inc/head.inc"-->
<SCRIPT language="JavaScript">
		function printPage() 
		{
			eval("printOrder" + ".style.display=\"none\";");
			window.print(); 
		}
		</SCRIPT>
</HEAD>
<body MS_POSITIONING="GridLayout" style="background:#FFFFFF">
<asp:literal id="ltrPayment" Runat="server"></asp:literal>
<form id="Form1" method="post" runat="server">
  <div class="twidth">
    <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
      <TBODY>
        <TR>
          <TD vAlign="middle" width="3%"><STRONG><BR>
            </STRONG> </TD>
          <TD vAlign="middle" align="center" width="30%"><%=config.SiteLogo%> </TD>
          <TD class="body-shoptitle" vAlign="middle" align="center" width="67%"><%=GetResourceString("OrderNo")%>：<%=order.OrderNo%><br>
            <%=GetResourceString("OrderTime")%>：<%=order.OrderTime%>
            <%if(order.ShipTime!=""){%>
            <BR>
            <%=GetResourceString("DeliverGoodsDate")%>：<%=order.ShipTime%>
            <%}%>
          </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
      <TBODY>
        <TR>
          <TD>&nbsp;</TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing="0" cellPadding="1" width="100%" border="0">
      <TBODY>
        <TR>
          <TD><STRONG><%=GetResourceString("OrderInfo")%></STRONG>
            <HR noShade SIZE="1">
          </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing="3" cellPadding="3" width="100%" border="0">
      <TBODY>
        <TR>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="64" height="26"><%=GetResourceString("NO.")%></TD>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="left" width="284" height="26"><%=GetResourceString("OrderEmail_ProductName")%><BR>
          </TD>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="99" height="26"><%=GetResourceString("OrderEmail_Quantity")%></TD>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="98" height="26"><%=GetResourceString("OrderEmail_UnitPrice")%><BR>
          </TD>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="98" height="26"><%=GetResourceString("FittingsPrice")%><BR>
          </TD>
          <TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="104" height="26"><%=GetResourceString("SumPrice")%></TD>
          <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
							align="center" width="130"><%=GetResourceString("DiscountOrNot")%></td>
        </TR>
        <!-- BEGIN row -->
        <asp:repeater id="rptOrderItems" Runat="server">
          <ItemTemplate>
            <TR>
              <TD noWrap align="center" width="64" height="20"><%# DataBinder.Eval(Container.DataItem, "ProductID") %></TD>
              <TD align="left" width="334" height="20"><%# DataBinder.Eval(Container.DataItem, "ProductName") %><br>
                <%# GetItemNames(DataBinder.Eval(Container.DataItem, "OrderProductID").ToString()) %></TD>
              <TD align="center" width="99" height="20"><%# DataBinder.Eval(Container.DataItem, "Quantity") %></TD>
              <TD align="center" width="98" height="20"><%# DataBinder.Eval(Container.DataItem, "UnitPrice","{0:c2}") %></TD>
              <TD align="center" width="98" height="20"><%# DataBinder.Eval(Container.DataItem, "ItemsPrice","{0:c2}") %></TD>
              <TD align="center" width="104" height="20"><%# DataBinder.Eval(Container.DataItem, "SubPrice","{0:c2}") %></TD>
              <TD width="80" align="center"><%# DataBinder.Eval(Container.DataItem, "IsDiscount").ToString() == "1" ? "是" : "否" %></TD>
            </TR>
          </ItemTemplate>
        </asp:repeater>
        <TR>
          <TD align="center" width="64">&nbsp;</TD>
          <TD width="334">&nbsp;</TD>
          <TD width="98">&nbsp;</TD>
          <TD width="99">&nbsp;</TD>
          <TD width="104">&nbsp;</TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing="0" cellPadding="2" width="100%" border="0">
      <tr>
        <td vAlign="top" width="50%"><table width="100%">
            <tr>
              <td><%=GetResourceString("OrderStatus")%>：<%=orderStatus%></td>
            </tr>
            <tr>
              <td><%=GetResourceString("ShippingWay")%>：<%=GetShippingName(order.ShippingType)%></td>
            </tr>
            <tr>
              <td><%=GetResourceString("PaymentInfo")%>：<%=GetPaymentName(order.PaymentType)%></td>
            </tr>
          </table></td>
        <td width="50%"><table width="100%">
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("ProductPrice")%>：</td>
              <td width="10%"></td>
              <td><%=string.Format("{0:c}",order.ProductPrice)%> ( <%=order.Discount%>% )</td>
            </tr>
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("OrderEmail_CustomItemPrice")%>：</td>
              <td width="10%"></td>
              <td><%=string.Format("{0:c}",order.CustomItemPrice)%></td>
            </tr>
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("OrderEmail_ShipPrice")%>：</td>
              <td width="10%"></td>
              <td><%=string.Format("{0:c}",order.ShipPrice)%></td>
            </tr>
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("OrderEmail_TotalPrice")%>：</td>
              <td width="10%"></td>
              <td><%=string.Format("{0:c}",order.TotalPrice)%></td>
            </tr>
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("OrderEmail_AdvancePayment")%>：</td>
              <td width="10%"></td>
              <td><%=string.Format("{0:c}",order.AdvancePayment)%></td>
            </tr>
            <tr>
              <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
									align="right" width="50%"><%=GetResourceString("OrderEmail_Pay")%>：</td>
              <td width="10%"></td>
              <td><font color="red"><%=GetPay()%></font></td>
            </tr>
          </table></td>
      </tr>
    </TABLE>
    <TABLE cellSpacing="3" cellPadding="3" width="100%" border="0">
      <tr>
        <td><STRONG><%=GetResourceString("BuyerInfo")%></STRONG></td>
        <td><STRONG><%=GetResourceString("ReceiverInfo")%></STRONG></td>
      </tr>
      <tr>
        <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
						width="50%"><table>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_BuyerName")%>：</td>
              <td><%=order.BuyerName%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_BuyerAccount")%>：</td>
              <td><%=GetMemberName(order.MemberID)%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Phone")%>：</td>
              <td><%=order.BuyerPhone%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Email")%>：</td>
              <td><%=order.BuyerEmail%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_BuyerAddress")%>：</td>
              <td><%=order.BuyerAddress%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Postalcode")%>：</td>
              <td><%=order.BuyerPostalcode%></td>
            </tr>
          </table></td>
        <td style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"
						width="50%"><table>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_ReceiverName")%>：</td>
              <td><%=order.ReceiverName%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Phone")%>：</td>
              <td><%=order.ReceiverPhone%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Email")%>：</td>
              <td><%=order.ReceiverEmail%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_ReceiverAddress")%>：</td>
              <td><%=order.ReceiverAddress%></td>
            </tr>
            <tr>
              <td align="right"><%=GetResourceString("OrderEmail_Postalcode")%>：</td>
              <td><%=order.ReceiverPostalcode%></td>
            </tr>
            <tr>
              <td align="right"></td>
              <td></td>
            </tr>
          </table></td>
      </tr>
    </TABLE>
    <table width="100%">
      <tr>
        <td><STRONG><%=GetResourceString("OrderComment")%></STRONG></td>
      </tr>
      <tr>
        <td><%=order.Remark%></td>
      </tr>
      <tr>
        <td height="20" align="center" valign="middle"><%if(!(order.PayStatus > 0)){%>
          <%if(Getbool(payment.InterfaceID)) {%>
          <cc1:uploadcompletecartbutton id="UploadCompleteCartButton1" runat="server" Visible="False"></cc1:uploadcompletecartbutton>
          <br>
          <asp:Label id="lbHidden" runat="server" Visible="False">USD</asp:Label>
          <br>
          <SPAN id="onlinePay">
          <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="frmPay.submit()" type="button" value="在线支付">
          </SPAN>
          <%}}%>
          <SPAN id="printOrder">
          <input type="button" onClick="printPage()" value="打 印" 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">
          </SPAN></td>
      </tr>
    </table>
  </div>
</form>
</body>
</HTML>
