<%@ Page Title="管理员列表" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="AdminList.aspx.cs" Inherits="Solution.Admin.Contents.AdminList" %>

<%@ Register Assembly="BX.Common" Namespace="Common" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="Form1" runat="server">
        <div class="DivRightCenter">
            <div class="listdiv">
                <div class="grid-title">
                    <div class="grid-title-text">
                        <h4>
                            <span>管理员管理</span>
                        </h4>
                    </div>
                </div>
                <div class="grid-list">
                    <cc1:ExtendedGridView ID="ExtendedGridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="grid" DataSourceID="ObjectDataSource2" ItemName="管理员管理"
                        PageSize="20" CheckBox="False" EnableTheming="False">
                        <Columns>
                            <asp:BoundField DataField="AdminID" HeaderText="ID"
                                SortExpression="AdminID">
                                <ItemStyle Width="50px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Account" HeaderText="账号"
                                SortExpression="Account">
                                <ItemStyle Width="100px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name">
                                <ItemStyle HorizontalAlign="Left" Wrap="False" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemStyle Width="150px" Wrap="False" />
                                <ItemTemplate>
                                    <a href='AdminList.aspx?cmd=delete&id=<%#DataBinder.Eval(Container.DataItem, "AdminID")%>'
                                        onclick="return confirm('确认删除?');">删除</a>&nbsp; <a href='AdminEdit.aspx?cmd=modify&id=<%#DataBinder.Eval(Container.DataItem, "AdminID")%>'>修改</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </cc1:ExtendedGridView>
                </div>
            </div>
            <div class="FormButtonArea">
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" EnablePaging="True"
                    SelectCountMethod="CountAdmin" SelectMethod="ListAdmin" TypeName="Logic.Users"
                    OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                    </SelectParameters>
                </asp:ObjectDataSource>
                &nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="添加管理员" OnClientClick="window.location.href='AdminEdit.aspx';return false;" />&nbsp;&nbsp;
            </div>
        </div>
    </form>
</asp:Content>
