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

<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>


<%@ Register Src="Modules/mcBottom.ascx" TagName="mcBottom" TagPrefix="uc3" %>

<%@ Register Src="Modules/mcTop.ascx" TagName="mcTop" TagPrefix="uc2" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
  
     <!--#include file="../../inc/head.inc"-->
    <link rel="stylesheet" href="/img/css/standard.css" type="text/css" media="screen, projection, tv" title="Standard" />
   <link rel="stylesheet" href="/img/css/druckversion.css" type="text/css" media="print" />
    <link rel="alternate stylesheet" href="/img/css/druckversion.css" type="text/css" media="print, screen, projection, tv" title="Druckversion" />
 <link href="img/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--     <script src="/fileadmin/js/scripts.js" type="text/javascript"></script> -->
</head>
 
<body><!--  onload="aNeuesFenster();" class="normal"> -->
 
<form id="Form1" method="post" runat="server">

 <uc2:mcTop id="McTop1" runat="server"></uc2:mcTop>
 
<div id="hauptbereich">
 
  <div id="leiste">
    <p></p>
  </div>
 
 
  <div id="aussen">
    <div id="innen">
 
      <div id="menue">
 
        <div id="suche">
         welcome<br><%=user.Name%>
        </div> <!-- ende suche -->
 
	  <uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>  
 
      </div> <!-- ende menue -->
 
      <div id="inhalt">
        <hr class="unsichtbar" /><p id="brotkruemel">

         <%=GetResourceString("WhereYouAre")%><a href="Default.html"><%=GetResourceString("Home")%></a> &raquo;&nbsp;  <a href="MemberCenter.aspx"><%=GetResourceString("MemberCenter")%></a> &raquo;&nbsp;  <%=GetResourceString("MyOrders")%> 
         </p><hr class="unsichtbar" />
        <div class="innen">
        <div style="padding-bottom:10px; float:right">下载查询， 下载编号关键字:<asp:TextBox ID="Tddh" runat="server" Width="280px"></asp:TextBox>
                    <asp:Button ID="Btc" runat="server" OnClick="Btc_Click" Text="查询" /></div>
              
			
										<asp:datagrid id="dgOrderList" runat="server"
											AutoGenerateColumns="False" DataKeyField="OrderID" Width="100%" HorizontalAlign="Center"
											BorderColor="#E0E0E0" BorderWidth="1px" BorderStyle="Solid" >
											<ItemStyle BackColor="White" Height="25px"></ItemStyle>
											<HeaderStyle BackColor="#EDF6FF" Height="35px" CssClass="head"></HeaderStyle>
											<Columns>
												<asp:TemplateColumn HeaderText="下载编号">
													<HeaderStyle HorizontalAlign="Center" Width="110"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center" Height="20px" Width="110"></ItemStyle>
													<ItemTemplate>
														<a href="#" onclick='printOrder(<%# DataBinder.Eval(Container.DataItem, "OrderID") %>)'>
															<b><%# DataBinder.Eval(Container.DataItem, "OrderNo") %></b>
														</a>
													</ItemTemplate>
												</asp:TemplateColumn>
											
												<asp:TemplateColumn HeaderText="优惠名称">
													<HeaderStyle HorizontalAlign="Center" Width="400"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center" Width="400"></ItemStyle>
													<ItemTemplate>
														 <%# getn(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
													</ItemTemplate>
												</asp:TemplateColumn>
											
											
												<asp:TemplateColumn HeaderText="下载状态">
													<HeaderStyle HorizontalAlign="Center" Width="120"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center" Width="120"></ItemStyle>
													<ItemTemplate>
														<%# GetStatus(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="操作">
													<HeaderStyle HorizontalAlign="Center" Width="120"></HeaderStyle>
													<ItemStyle HorizontalAlign="Center" Width="120"></ItemStyle>
													<ItemTemplate>
														<a href="#" onclick='printOrder(<%# DataBinder.Eval(Container.DataItem, "OrderID") %>)'>
															<%=GetResourceString("PollResult")%></a> <a href='OrderFeedback.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>&type=1'>
															<%=GetResourceString("LeaveWord")%></a><%# Gethf(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%> <a href='OrderFeedback.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>&type=2'>
															<%=GetResourceString("Cancel")%></a>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
										</asp:datagrid>
										<script language="javascript">
						function printOrder(oid)
						{
							temp=window.open('OrderPrint.aspx?OrderID='+oid,'shopcat',',scrollbars=yes');
							temp.focus();
						}
										</script>
          <span class="stopFloat"></span>
        </div> <!-- ende innen -->
      </div> <!-- ende inhalt -->
 
    </div>
  </div>
  <span class="stopFloat">
     
  </span>
</div>
 
  <uc3:mcBottom ID="McBottom1" runat="server" />
  </form>
</body>
 
</html>
