<%@ Page Language="C#" MasterPageFile="~/Includes/Member.master" AutoEventWireup="true" CodeFile="Order_List.aspx.cs" Inherits="Order_List" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr> 
            <td bgcolor="#EAF8FD" align="center"><b><font color="#0099cc">我的订单</font></b></td>
          </tr>
          <tr> 
            <td align="center" valign="top">
                 <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1" >
                  <tr bgcolor=#f1f1f1 align=center>
                    <td width=20%  >订单号</td>
                    <td width=20% >下单时间</td>
                    <td width=15% >订单总额</td>
                    <td width=10% >订单状态</td>
                    <td width=10% >操作</td>
                  </tr>
                  </table>
                <asp:Repeater ID="orderrepeater" runat="server" OnItemDataBound="orderrepeater_ItemDataBound" OnItemCommand="orderrepeater_ItemCommand">
                   <ItemTemplate>
                       <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1" >
                          <tr bgcolor=#f1f1f1 align=center>
                            <td width=20%  >
                                
                                <a href='Order_Detail.aspx?oid=<%#Eval("orderid") %>' target="_blank">
                                  <asp:Literal runat="server" ID="orderidliteal" Text='<%#Eval("orderid") %>'></asp:Literal>
                                  
                                </a>
                            </td>
                            <td width=20% >
                                <%#Eval("ordertime").ToString() %>
                            </td>
                            <td width=15% >
                               <asp:Label runat="server" ID="orderpricelabel" Text='<%#Eval("orderprice").ToString() %>'></asp:Label>
                                
                            </td>
                            <td width=10% >
                                 <asp:Label runat="server" ID="statecode" Text='<%#Eval("state") %>' Visible="false"></asp:Label>
                                <asp:Label runat="server" ID="statelabel"></asp:Label>
                            </td>
                            <td width=10% >
                               <asp:LinkButton runat="server" ID="opratelinkbutton" CausesValidation="false" CommandName="canelorder" Text="取消订单"></asp:LinkButton>
                            </td>
                          </tr>
                          </table>
                   </ItemTemplate>
                </asp:Repeater>
            </td>
          </tr>
        </table>
         <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f1f1f1" >
         <tr bgcolor="#ffffff">
           <td height=30 colspan=5 align=center >订单数：<font color=red> <asp:Label runat="server" ID="ordercountlabel"></asp:Label> </font>　订单总额：<font color=red> <asp:Label runat="server" ID="pricecountlabel"></asp:Label> </font> 元　</td>
        </tr>
       </table>
</asp:Content>

