<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageOperationLog.aspx.cs" Inherits="Web.Wpdcc.ManageOperationLog" %>

<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/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-desktop"></i>
                    <a href="welcome.aspx">主页</a>
                </li>
                <li>查看日志</li>
                <li class="active">
                    <asp:Label ID="lbliname" runat="server" Text="管理员日志"></asp:Label>
                </li>
            </ul>
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="list-func-box func-box">
                        <form id="frmOperateList" method="post" runat="server">
                            <div class="bd">
                                <div class="action-field">
                                    <div class="tabbable">
                                        <div class="function-hd" style="padding: 10px 12px 0px 0;">

                                            <!-- #section:elements.tab.option -->
                                            <ul class="nav nav-tabs tab-color-blue" id="myTab4">
                                                <li id="admin" runat="server">
                                                    <button class="btn btn-primary btn-sm" id="btnAdmin" runat="server" onserverclick="btn_Click">
                                                        <i class="ace-icon fa fa-users"></i>
                                                        管理员日志
                                                    </button>
                                                </li>
                                                &nbsp;&nbsp;
												<li id="user" runat="server">&nbsp;&nbsp;
                                                    <button class="btn btn-primary btn-sm" id="btnUser" runat="server" onserverclick="btn_Click">
                                                        <i class="ace-icon glyphicon glyphicon-user"></i>
                                                        普通用户日志
										
                                                    </button>
                                                </li>
                                                &nbsp;&nbsp;
                                                <li class="pull-right">&nbsp;&nbsp;<asp:Button ID="btnClear" runat="server" OnClientClick="return confirm('确实要清空该角色的所有用户操作日志吗？');"
                                                    OnClick="btn_Click" Text="清空日志数据" CssClass="btn btn-sm btn-primary fr" /></li>
                                            </ul>
                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                        </div>
                                        <%--<asp:LinkButton ID="btnAdmin" runat="server" OnClick="btn_Click">管理员日志</asp:LinkButton>--%>
                                        <%--<asp:LinkButton ID="btnUser" runat="server" CausesValidation="False" OnClick="btn_Click">普通用户日志</asp:LinkButton>--%>
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:DataGrid ID="logList" DataKeyField="pkID" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                        runat="server">
                                        <Columns>
                                            <asp:BoundColumn DataField="pkID" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="operation" HeaderText="操作名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="operationResult" HeaderText="操作结果" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="operationUserName" HeaderText="操作用户" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="operationIP" HeaderText="操作机器IP" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="operationTime" HeaderText="操作时间" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <div class="action-buttons">
                                                        <a href='ViewOperationDetail.aspx?ID=<%#Eval("pkID") %>'  data-toggle="tooltip" data-placement="bottom" title="查看信息" rel="index"><i class="ace-icon fa fa-search bigger-120 blue"></i></a>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                    </asp:DataGrid>
                                    <!--[if lte IE 7]></div><![endif]-->
                                </div>
                                <!--/function-bd-->
                            </div>
                            <div class="ft">
                                <div class="pagination">
                                    <asp:Label ID="lblPage" runat="server"></asp:Label>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
     <script type="text/javascript">
         //$(document).ready(function(){  的简写  
         jQuery(function ($) {

             $("a[rel=index]").click().fancybox({
                 'width': 800,
                 'height': 450,
                 'hideOnOverlayClick': false,
                 'transitionIn': 'elastic',
                 'transitionOut': 'elastic',
                 'type': 'iframe',
                 'padding': '0'
             });

             $("#btnAdmin").hover(function () {
                 $("#btnUser").parent().removeAttr('class');
                 //$(this).removeAttr('Class').attr('Class', 'current');
                 $(this).parent().addClass("active")
             });
             $("#btnUser").hover(function () {
                 $("#btnAdmin").parent().removeAttr('class');
                 //$(this).removeAttr('Class').attr('Class', 'current');
                 $(this).parent().addClass("active")
             });

         });

    </script>
</body>
</html>
