<%@ Page Language="c#" Inherits="WebApp.LogInfo" CodeBehind="LogInfo.aspx.cs" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>日志管理</title>
    <meta name="description" content="overview &amp; stats" />

    <!--#include file = "../assets/head.htm" -->
</head>
<body>

    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    主页
                </li>
                <li>系统操作</li>
                <li class="active">操作日志</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->

        <div class="page-content">
            <!-- PAGE CONTENT BEGINS -->
            <form id="frmLogInfo" method="post" runat="server">

                <div class="page-header">
                    <asp:DropDownList ID="ddlLogType" runat="server" >
                    </asp:DropDownList>
                    &nbsp;
                    <asp:Button ID="btnQuery" CssClass="btn btn-sm btn-primary" runat="server" OnClick="btnQuery_Click" Text="查看" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnDeleteAll" CssClass="btn btn-sm btn-primary" runat="server" Text="清除日志" OnClick="btnDeleteAll_Click"></asp:Button>                    
                </div>

                <div class="row">
                    <div class="col-xs-12">

                        <asp:DataGrid ID="logList" DataKeyField="pkID" class="table table-striped table-bordered" AutoGenerateColumns="False" runat="server">
                            <Columns>
                                <asp:BoundColumn DataField="pkID" HeaderText="ID"></asp:BoundColumn>
                                <asp:BoundColumn DataField="operation" HeaderText="操作名称"></asp:BoundColumn>
                                <asp:BoundColumn DataField="operateTime" HeaderText="操作时间"></asp:BoundColumn>
                                <asp:BoundColumn DataField="operateIP" HeaderText="操作机器IP"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="操作">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                            <asp:LinkButton ID="btnView" runat="server" CssClass="FBox" CommandName="View" href='<%# Eval("pkId","ViewLog.aspx?ID={0}")%>' >
										        <i class="ace-icon fa fa-search-plus bigger-130" title="查看信息" ></i>
									        </asp:LinkButton>
								        </div>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                        </asp:DataGrid>

                        <div class="clearfix">
                            <div class="col-xs-12">
                                <asp:Label ID="lblPage" runat="server"></asp:Label>

                            </div>
                        </div>

                    </div>
                </div>

            </form>
            <!-- PAGE CONTENT ENDS -->

        </div>
        <input id="Hidden1" runat="server" type="hidden" />
        
    </div>
    <!--#include file = "../assets/foot.htm" -->
     <script lang="javascript" type="text/javascript">
         jQuery(function ($) {
             //编辑：打开弹出层
             $(".FBox").click().fancybox({
                 autoSize: false,
                 'width': 800,
                 'height': 340,
                 'hideOnOverlayClick': false,
                 'type': 'iframe',
                 'padding': '0'
             });

         });
    </script>
</body>
</html>
