<%@ 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 runat="server">
    <title>OprLog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCss.htm" -->

    <script type="text/javascript">
        //$(document).ready(function(){  的简写  
        jQuery(function($) {       
            
            $("a[rel=Index]").click().fancybox({
                'width'		: 600,
				'height'	: 400,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'type'		: 'iframe',
				'padding': '0'
            });

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

            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 145);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 145);
            });
          
        });
        
    </script>

</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            您的位置：系统数据设置 &gt; 操作日志管理</div>
        <form id="frmOperateList" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="action-field">
                    &nbsp;<asp:LinkButton ID="btnAdmin" runat="server" OnClick="btn_Click">管理员日志</asp:LinkButton>&nbsp;|&nbsp;
                    <asp:LinkButton ID="btnUser" runat="server" CausesValidation="False" OnClick="btn_Click">普通用户日志</asp:LinkButton>
                    
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnClear" runat="server" OnClientClick="return confirm('确实要清空该角色的所有用户操作日志吗？');"
                        OnClick="btn_Click" Text="清空日志数据" CssClass="btn" style="width:180px;"/>
                </div>
            </div>
            <div class="function-bd" style="overflow:auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
            <asp:DataGrid ID="logList" DataKeyField="pkID" CssClass="list-table" 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>
                            <a rel="Index" href="ViewOperationDetail.aspx?ID=<%#Eval("pkID") %>" target="_blank" class="blue">查看信息</a>
                        </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>
</body>
</html>
