<%@ Page Language="C#" AutoEventWireup="true" Inherits="WstWeb.Admin.Admin.admin_AdminManagement_AdminRecord_list"
    CodeBehind="AdminRecord_list.aspx.cs" %>

<%@ 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>
    <title>管理员列表</title>
    <link href="../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctright">
        <div class="map">
            <h3>
                <strong class="left">管理员管理</strong><strong class="right search_icon"><a href="AdminRecord_edit.aspx">
                    添加</a></strong></h3>
        </div>
        <div class="formclum">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
                <tbody>
                    <tr>
                        <td width="100" align="right">
                            管理员名称：
                        </td>
                        <td colspan="3" align="left">
                            <asp:TextBox ID="txt_adminName" CssClass="inp1" runat="server" Width="120"></asp:TextBox>
                            &nbsp;&nbsp;
                            <asp:Button ID="btn_cx" runat="server" Text="" CssClass="button10" OnClick="btn_cx_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="clear">
        </div>
        <div class="form" style="margin-top: 10px;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridView"
                CellPadding="0" CellSpacing="0">
                <Columns>
                    <asp:BoundField DataField="adminName" HeaderText="管理员名字" />
                    <asp:BoundField DataField="adminAccount" HeaderText="管理员帐号" />
                    <asp:BoundField DataField="adminAddTime" HeaderText="添加时间" HtmlEncode="False" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="adminLastloginIP" HeaderText="最后登陆IP" />
                    <asp:BoundField DataField="adminLastLoginTime" HeaderText="最后登陆时间" HtmlEncode="False"
                        DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:TemplateField HeaderText="修改" ItemStyle-Width="40px">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtn_xg" CommandArgument='<%# Eval("adminID") %>' CssClass="bluelk"
                                runat="server" OnCommand="lbtn_xg_Command">[修改]</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ItemStyle-Width="40px">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtn_sc" CommandArgument='<%# Eval("adminID") %>' CssClass="bluelk"
                                Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"
                                runat="server" OnCommand="lbtn_sc_Command"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="page-fenye">
                <webdiyer:AspNetPager ID="AspNetPager1" HorizontalAlign="Center" Font-Bold="true"
                    runat="server" Width="100%" CenterCurrentPageButton="True" OnPageChanging="AspNetPager1_PageChanging"
                    ShowPageIndexBox="Always" FirstPageText="首页" PrevPageText="上一页" NextPageText="下一页"
                    LastPageText="尾页" PageIndexBoxType="TextBox" CurrentPageButtonTextFormatString="{0:[0]}"
                    AlwaysShow="True" ShowNavigationToolTip="True" PageSize="20" CustomInfoHTML="记录总数：%RecordCount%"
                    CustomInfoSectionWidth="200px" ShowCustomInfoSection="Left" CustomInfoStyle="text-valign:middle;margin-right:0px;"
                    CustomInfoClass="bluelk">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
