<%@ Page Language="C#" MasterPageFile="../MainPage.master" AutoEventWireup="true" Inherits="PPFOR.Admin.Sys.administrator_log" Title="管理员日志" Codebehind="administrator_log.aspx.cs" %>
<%@ 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_log.aspx" method="post" runat="server">
    <asp:GridView ID="PPFOR_showAdministratorLogList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" AutoGenerateColumns="False"  DataKeyNames="Id"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有管理员登录日志" >
           <Columns>                
             <asp:TemplateField ShowHeader="False" >
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectAdministratorLog" runat="server" ></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectAdministratorLog" runat="server" ></asp:CheckBox>
                 </ItemTemplate>
                 <HeaderStyle HorizontalAlign="Center" />
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="Id" HeaderStyle-Font-Bold="false"/>
             <asp:HyperLinkField HeaderText="管理员名" DataTextField="AdminName" DataNavigateUrlFormatString="administrator.aspx?name={0}" DataNavigateUrlFields="AdminName" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="管理员登录IP" DataField="AdminLoginedIP">
                 <HeaderStyle Font-Bold="False" />
             </asp:BoundField>
             <asp:BoundField HeaderText="操作系统" DataField="AdminLoginedSystem">
                 <HeaderStyle Font-Bold="False" />
             </asp:BoundField>
             <asp:BoundField HeaderText="是否成功登录" DataField="AdminIsSuccessed">
                 <HeaderStyle Font-Bold="False" />
             </asp:BoundField>
             <asp:BoundField HeaderText="登录时间" DataField="AdminLoginedTime">
                 <HeaderStyle Font-Bold="False" />
             </asp:BoundField>
            </Columns>
            
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="False" BackColor="White"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="False" ForeColor="Black" />
             <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_deleteAdministratorLog" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteAdministratorLogClick"  />
              <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_deleteAdministratorLog.ClientID %>","reset1");
                    }
                </script>
        </td>
        </tr>
      </table>
      <br />
</form>        
</asp:Content>
