<%@ page language="C#" autoeventwireup="true" inherits="Admin_Orders_Order_List, Huibo.Net" enableviewstatemac="false" enableEventValidation="false" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxCalendar" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 id="Head1" runat="server">
    <title>查看修改商品</title>
    <link href="../style/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p>
                            订单管理</p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True"
                        EnableScriptLocalization="True">
                    </asp:ScriptManager>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center">
                                <div class="DLBoder">
                                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="DLBodertd" style="vertical-align: middle; height: 30px; text-align: left;">
                                                &nbsp;<asp:Label ID="Label4" runat="server" Text="用户注册名："></asp:Label>
                                                <asp:TextBox ID="username" runat="server" Width="100px"></asp:TextBox>
                                                <asp:Label ID="Label6" runat="server" Text="订单号："></asp:Label>
                                                <asp:TextBox ID="goods" runat="server" Width="100px"></asp:TextBox>
                                                <asp:Label ID="Label11" runat="server" Text="收货人姓名："></asp:Label>
                                                <asp:TextBox ID="recepit" runat="server" Width="100px"></asp:TextBox>
                                                <asp:Label ID="Label12" runat="server" Text="订单状态："></asp:Label>
                                                <asp:DropDownList ID="state" runat="server" Width="100px">
                                                    <asp:ListItem Value="">全部订单状态</asp:ListItem>
                                                    <asp:ListItem Value="2">待处理订单</asp:ListItem>
                                                    <asp:ListItem Value="3">已通知汇款订单</asp:ListItem>
                                                    <asp:ListItem Value="4">已收到款订单</asp:ListItem>
                                                    <asp:ListItem Value="5">已发货订单</asp:ListItem>
                                                    <asp:ListItem Value="6">已收到货订单</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="DLBodertd" style="vertical-align: middle; height: 30px; text-align: left;">
                                                &nbsp;<asp:Label ID="Label13" runat="server" Text="订单日期：从"></asp:Label>
                                                <asp:TextBox runat="server" ID="AjaxDateFrom" />
                                                <asp:ImageButton runat="Server" ID="CalendarAjaxFrom" CssClass="MarginTop" ImageUrl="~/Admin/images/Calendar.gif"
                                                    AlternateText="Click to show calendar" />
                                                <AjaxCalendar:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="CalendarAjaxFrom"
                                                    TargetControlID="AjaxDateFrom">
                                                </AjaxCalendar:CalendarExtender>
                                                <asp:Label ID="Label14" runat="server" Text="--至--"></asp:Label>
                                                <asp:TextBox runat="server" ID="AjaxDateTo" />
                                                <asp:ImageButton runat="Server" ID="CalendarAjaxTo" CssClass="MarginTop" ImageUrl="~/Admin/images/Calendar.gif"
                                                    AlternateText="Click to show calendar" />
                                                <AjaxCalendar:CalendarExtender ID="CalendarExtender2" runat="server" PopupButtonID="CalendarAjaxTo"
                                                    TargetControlID="AjaxDateTo">
                                                </AjaxCalendar:CalendarExtender>
                                                <asp:Button ID="query" runat="server" Text="查 找" Height="22px" Width="50px" OnClick="query_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="height: 15px;">
                                </div>
                                <div class="DLBoder">
                                    <asp:DataList ID="OrderList" runat="server" Width="100%" OnItemDataBound="OrderList_ItemDataBound">
                                        <HeaderTemplate>
                                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr style="height: 25px;">
                                                    <td class="DLBodertd" style="width: 15%;">
                                                        订单号
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        用户注册名
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        收货人姓名
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        金额总计
                                                    </td>
                                                    <td class="DLBodertd" style="width: 8%;">
                                                        付款方式
                                                    </td>
                                                    <td class="DLBodertd" style="width: 12%;">
                                                        收货方式
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        下单时间
                                                    </td>
                                                    <td class="DLBodertd" style="width: 10%;">
                                                        订单状态
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style="height: 25px;">
                                                <td class="DLBodertd">
                                                    <a title="查询订单" href="" onclick="javascript:window.open('Order_Details.aspx?OrderGoods=<%# DataBinder.Eval(Container, "DataItem.goods")%>&username=<%# DataBinder.Eval(Container, "DataItem.username")%>','','width=710,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;">
                                                        <%# DataBinder.Eval(Container, "DataItem.goods")%>
                                                    </a>
                                                </td>
                                                <td class="DLBodertd">
                                                    <%--<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.username")%>'></asp:Label>--%>
                                                    <a href='../User/Edit_User.aspx?id=<%# DataBinder.Eval(Container, "DataItem.userid")%>'
                                                        title="查看用户信息">
                                                        <%# DataBinder.Eval(Container, "DataItem.username")%>
                                                    </a>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.recepit")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    ￥<asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.paids")%>'></asp:Label>元
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="paymethord" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.paymethord")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="deliverymethord" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.deliverymethord")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="Label10" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.actiondate")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="state" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.state")%>'></asp:Label>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:DataList>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="text-decoration: none; height:30px; vertical-align:middle;" align="center">
                                <webdiyer:AspNetPager ID="Pager" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                    PrevPageText="上一页" runat="server" HorizontalAlign="Center" OnPageChanged="Pager_PageChanged"
                                    Width="100%" SubmitButtonText="跳转" ShowBoxThreshold="1" AlwaysShow="True">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
