<%@ page language="C#" autoeventwireup="true" inherits="Admin_order_orderList, App_Web_ga0php1i" enableEventValidation="false" theme="theme1" stylesheettheme="theme1" %>

<!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 runat="server">
    <title>PassionCMS2</title>

    <script language="javascript" src="../../JScript.js" type="text/javascript"></script>

</head>
<body bgcolor="#DBEAF5">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td background="../images/Top_line_3.gif" height="2">
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="Table4" style="background-color: #3390C6;">
                        <tr>
                            <td height="27" width="20">
                            </td>
                            <td width="80" align="center" background='../images/Menu_selected_bg.gif'>
                                <a href="#">订单列表</a>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td width="10">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td background="../images/Sub_menu_bg.gif" height="24">
                    <table class="O" cellspacing="0" cellpadding="0" width="100%" border="0" id="Table6">
                        <tbody>
                            <tr>
                                <td width="20">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="10">
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td width="3%">
                </td>
                <td>
                    <asp:GridView ID="gvList" DataKeyNames="ID" AutoGenerateColumns="false" runat="server"
                        OnRowDataBound="gvList_RowDataBound" OnRowCommand="gvList_RowCommand" SkinID="gridviewSkin1">
                        <Columns>
                            <asp:TemplateField HeaderText="序号">
                                <HeaderStyle Width="40" />
                                <ItemStyle HorizontalAlign="Left" />
                                <ItemTemplate>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Right" Wrap="false" Width="30px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="订单号" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:HyperLink runat="server" ID="HL" Text='<%# DataBinder.Eval(Container.DataItem,"orderID") %>'
                                        NavigateUrl='<%# "orderDetailList.aspx?orderID=" + DataBinder.Eval(Container.DataItem,"ID") %>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="姓名" DataField="RealName" ItemStyle-HorizontalAlign="Center" />
                            <asp:TemplateField HeaderText="E-Mail" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <a href="mailto://<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Email",""))%>"
                                        target="_blank" style="text-decoration: underline; color: Blue;">
                                        <asp:Label ID="lblEmail" runat="server" Text='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Email",""))%>'></asp:Label></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="下单时间" DataField="orderTime" ItemStyle-HorizontalAlign="Center" />
                            <asp:TemplateField HeaderText="总价" ItemStyle-HorizontalAlign="right" HeaderStyle-HorizontalAlign="right">
                                <ItemTemplate>
                                    <%# DataBinder.Eval(Container.DataItem, "allprice", "{0:c}")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="状态" ItemStyle-HorizontalAlign="right" HeaderStyle-HorizontalAlign="right">
                                <ItemTemplate>
                                    <asp:LinkButton ID="appLB" runat="server" CommandName="app" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") + "#" + DataBinder.Eval(Container.DataItem,"Appearance")%>'
                                        Text=' <%# DataBinder.Eval(Container.DataItem, "Appearance") %>'></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <HeaderStyle Width="100" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="delLB" runat="server" CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") + "#" + DataBinder.Eval(Container.DataItem,"Appearance") %>'
                                        Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td width="3%">
                </td>
            </tr>
            <tr height="5">
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="3%">
                </td>
                <td>
                    <table style="border: 0px; width: 100%;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="text-align: left; height: 25px;">
                                &nbsp;
                            </td>
                            <td style="text-align: right; height: 25px;">
                                <asp:Label ID="lblListInfo" runat="server"></asp:Label>
                                &nbsp; 每页<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                                    <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                    <asp:ListItem Value="20" Text="20"></asp:ListItem>
                                    <asp:ListItem Value="50" Text="50"></asp:ListItem>
                                    <asp:ListItem Value="100" Text="100"></asp:ListItem>
                                </asp:DropDownList>条
                                <asp:LinkButton ID="lbFirst" runat="server" Text="首页" OnClick="lb_Click"></asp:LinkButton>
                                <asp:LinkButton ID="lbForward" runat="server" Text="上一页" OnClick="lb_Click"></asp:LinkButton>
                                <asp:LinkButton ID="lbNext" runat="server" Text="下一页" OnClick="lb_Click"></asp:LinkButton>
                                <asp:LinkButton ID="lbLast" runat="server" Text="尾页" OnClick="lb_Click"></asp:LinkButton>
                                跳至<asp:TextBox ID="txtToPageNo" runat="server" MaxLength="6" Width="38px"></asp:TextBox>页
                                <asp:Button ID="btnGo" runat="server" OnClick="btnGo_Click" Text="GO" />
                            </td>
                            <td align="right">
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="3%">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
