<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_Logs.aspx.cs" Inherits="QiCms.Web.Admin.Admin_Logs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
<form id="TableForm" runat="server">
    <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
            <li class="am-active">日志管理</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold"><span class="am-icon-bars"></span> 日志列表</div>
            </div>

            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <asp:DataGrid ID="LogsGrid" runat="server" OnItemDataBound="LogsGrid_ItemDataBound" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main">
					        <Columns>
                                <asp:TemplateColumn ItemStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
							        <HeaderTemplate>
								        <input onclick="checkFormAll(this.checked)" type="checkbox">
							        </HeaderTemplate>
							        <ItemTemplate>
								        <asp:CheckBox ID="LogChk" runat="server" />
							        </ItemTemplate>
						        </asp:TemplateColumn>
						        <asp:BoundColumn DataField="MemberName" HeaderText="管理员" ItemStyle-Width="20%"></asp:BoundColumn>
						        <asp:BoundColumn DataField="LogContent" HeaderText="评论日期" ItemStyle-Width="20%"></asp:BoundColumn>
						        <asp:BoundColumn DataField="LogIp" HeaderText="登陆IP" ItemStyle-Width="20%"></asp:BoundColumn>
                                <asp:BoundColumn DataField="ExecuteTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="执行时间" ItemStyle-Width="30%"></asp:BoundColumn>
					        </Columns>
				        </asp:DataGrid>
                    <hr>
                    </div>
                </div>
                <div class="am-cf">
                    <div class="am-fr">
                        <ul class="am-pagination tpl-pagination">
                            <%= Pagination %><%= NextPrev %>
                        </ul>
                    </div>
                </div>
                
                <div class="am-text-danger" style="font-size:12px;margin-top: 10px; width: 100%; text-align: center">
				    <asp:Button ID="DeleteBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" Text="删除" onclick="DeleteBtn_Click" />
                    <asp:Button ID="DeleteAllBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" OnClick="DeleteAllBtn_Click" Text="清空日志" />
			    </div>
                <div class="am-text-danger" style="font-size:12px;margin-top: 10px; width: 100%; text-align: center">
				    注意：2日内的管理日志无法删除。
			    </div>
            </div>
            <div class="tpl-alert"></div>
        </div>
    </div>
</form>
</asp:Content>
