<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="administrator_list.aspx.cs" Inherits="PPFOR.Admin.Sys.administrator_list" Title="管理员列表" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../JS/gridview.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
</script>
<form id="form1" action="administrator_list.aspx" method="post" runat="server">
    <asp:GridView ID="PPFOR_showAdministratorList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="Id"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有添加管理员">
           <Columns>                
             <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectAdministrator" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectAdministrator" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="Id" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="管理员名" DataField="AdminName" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="前台用户名" DataField="UserName" HeaderStyle-Font-Bold="false"/>  
             <asp:BoundField HeaderText="所属角色" DataField="RoleName" HeaderStyle-Font-Bold="false"/>  
             <asp:BoundField HeaderText="最后登录IP" DataField="LastLoginedIP" HeaderStyle-Font-Bold="false"/> 
             <asp:BoundField HeaderText="最后登录时间" DataField="LastLoginedTime" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="登录次数" DataField="LoginedTimes" HeaderStyle-Font-Bold="false"/>
             <asp:TemplateField HeaderText="管理员操作" HeaderStyle-Font-Bold="false">
                <ItemTemplate><%# PPFOR_getActionLinks(Eval("Id"),Eval("IsLocked"))%></ItemTemplate>
             </asp:TemplateField>
            </Columns>
            
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>
      <br />
        <page:PageBar ID="PPFOR_pageBar" runat="server" />
      <br />
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_deleteAdministrator" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteAdministratorClick" />
              <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" onclick="SelectAllRows('<%=form1.ClientID%>',false)"/>
                <script type="text/javascript">
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_deleteAdministrator.ClientID %>","reset1");
                    }
                </script>  
        </td>
        </tr>
      </table>
      <br />
</form>        
</asp:Content>
