<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="OrderPrint.aspx.cs" Inherits="web.OrderPrint" %>

<%@ Register TagPrefix="cc1" Namespace="PayPal.Web.Controls" Assembly="PayPal.Web.Controls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
	<link href="img/css/base.css" rel="stylesheet" type="text/css" media="all" />

<link href="img/css/index.css" rel="stylesheet" type="text/css" media="all" />
<link href="img/css/style.css" rel="stylesheet" type="text/css" media="all" />
		<SCRIPT language="JavaScript">
		function printPage() 
		{
			eval("printOrder" + ".style.display=\"none\";");
			window.print(); 
		}
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
	<asp:literal id="ltrPayment" Runat="server"></asp:literal>
		<form id="Form1" method="post" runat="server">
		
  <div style="width:680px;"> <br>
    <br>
    <TABLE cellSpacing="0" cellPadding="0" width="780" border="0">
      <TBODY>
					<TR>
						<TD vAlign="middle" width="3%"><STRONG><BR>
							</STRONG>
						</TD>
						<TD vAlign="middle" align="center" width="2%">
							
						</TD>
						
          <TD class="body-shoptitle" vAlign="middle" align="center" width="95%"> 
            <%=GetResourceString("OrderNo")%>
            ： 
            <%=order.OrderNo%>
            ；
            <%=GetResourceString("OrderTime")%>
            ： 
            <%=order.OrderTime%>
            <%if(order.ShipTime!=""){%>
            <%=GetResourceString("DeliverGoodsDate")%>
            ： 
            <%=order.ShipTime%>
            <%}%>
          </TD>
					</TR>
				</TBODY>
			</TABLE>
			<TABLE cellSpacing="0" cellPadding="0" width="680" border="0">
  <TBODY>
					<TR>
						<TD>&nbsp;</TD>
					</TR>
				</TBODY>
			</TABLE>
			
    <TABLE cellSpacing="0" cellPadding="1" width="780" border="0">
      <TBODY>
					<TR>
						<TD><STRONG>1、<%=GetResourceString("OrderInfo")%></STRONG>
							<HR noShade SIZE="1">
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			
    <TABLE cellSpacing="3" cellPadding="3" width="780" border="0">
      <TBODY>
        <TR> 
          <TD style="BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; BORDER-BOTTOM: #CCCCCC 1px solid"
							align="left" width="334" height="26">&nbsp;&nbsp;&nbsp;&nbsp; 
            <%=GetResourceString("OrderEmail_ProductName")%>
          </TD>
          <td width="98" height="33" align="center" style="BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; BORDER-BOTTOM: #CCCCCC 1px solid"> 
            <%=GetResourceString("zjf")%>
          </td>
        </TR>
        <!-- BEGIN row -->
        <asp:repeater id="rptOrderItems" Runat="server"> 
          <ItemTemplate> 
            <TR> 
              <TD align="left" width="334" height="8"> 
                <%# DataBinder.Eval(Container.DataItem, "ProductName") %>
              </TD>
              <td width="98" height="8" align="center" bgcolor="#FFFFFF"> 
                <%# Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) == "0" ? "0点" : "" + Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) + "点"%>
              </td>
            </TR>
            <TR> 
              <TD height="9" colspan="2" align="left"><hr width="99%" size="1">
                短信内容：&nbsp; 
                <%# getdx(DataBinder.Eval(Container.DataItem, "ProductID").ToString(), DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
                <hr width="99%" size="1"> </TD>
            </TR>
          </ItemTemplate>
        </asp:repeater>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing="0" cellPadding="2" width="780" border="0">
      <tr>
					<td vAlign="top" width="50%">
						<table width="100%">
            <tr> 
              <td >所属店铺 ：<a href="company/company_<%=order.Sjid%>.html" target="_blank"><%= GetCom(order.Sjid)%> ( 查看 )</a>
               </td>
            </tr>
            <tr> 
              <td > 
                <%=GetResourceString("OrderStatus")%>
                ： 
                <%= GetStatus(orderID.ToString()).ToString()%>
              </td>
            </tr>
           
            <tr> 
              <td> 
                <%=GetResourceString("OrderEmail_BuyerAccount")%>
                ： 
                <%=GetMemberName(order.MemberID)%>
              </td>
            </tr>
            <tr> 
              <td> 
                <%=GetResourceString("OrderEmail_Phone")%>
                ： 
                <%=order.BuyerPhone%>
              
              </td>
            </tr>
    
          </table>
					</td>
					
				</tr>
			</TABLE>

    <table width="780">

				<tr>
					<td height="20" align="center" valign="middle">
					<%if(!(order.PayStatus > 0)){%>
					<%if(Getbool(payment.InterfaceID)) {%>
					<asp:Label ID="cft" runat="server"></asp:Label>
					<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="display:<%=payOnline %>;BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; WIDTH: 69px; BORDER-BOTTOM: #CCCCCC 1px solid; HEIGHT: 22px"
								onclick="frmPay.submit()" type="button" value="在线支付"></SPAN>
								<%}}%>
					<SPAN id="printOrder"><input type="button" onClick="printPage()" value="打 印" style="BORDER-RIGHT: #CCCCCC 1px solid; BORDER-TOP: #CCCCCC 1px solid; BORDER-LEFT: #CCCCCC 1px solid; WIDTH: 69px; BORDER-BOTTOM: #CCCCCC 1px solid; HEIGHT: 22px"></SPAN></td>
				</tr>
			</table></div>
		</form>
	</body>
</HTML>