<%@ Reference Page="~/admin/backup/operate.aspx" %>

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

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>日志管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.htm" -->

    <script language="javascript">
			function showLog(id)
			{
				javascript:showModalDialog("ViewLog.aspx?ID="+id,window, "dialogWidth:500px;dialogHeight:300px;help:no;scroll:no;status:no")
			}
    </script>

</head>
<body>
    <div class="edit-func-box func-box">
        <div class="hd">
            日志查看</div>
        <form id="frmLogInfo" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    日志类型：<asp:DropDownList ID="ddlLogType" runat="server" Width="180px">
                    </asp:DropDownList>
                    &nbsp;<asp:Button ID="btnQuery" CssClass="btn" runat="server" OnClick="btnQuery_Click" Text="查看" />
                </div>
                <!--/search-box-->
                <div class="action-field">
                    <asp:Button ID="btnRefresh" CssClass="btn" runat="server" Text="刷新" OnClick="btnRefresh_Click">
                    </asp:Button>&nbsp;
                    <asp:Button ID="btnDeleteAll" CssClass="btn" runat="server" Text="清除日志" OnClick="btnDeleteAll_Click">
                    </asp:Button>
                </div>
                <!--/action-field-->
            </div>
            <asp:DataGrid ID="logList" DataKeyField="pkID" class="list-table" AutoGenerateColumns="False"
                runat="server" OnItemDataBound="logList_ItemDataBound">
                <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>
                        <ItemTemplate>
                            <asp:LinkButton ID="btnView" runat="server" CommandName="View">查看信息</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
        </div>
        <div class="ft">
            <div class="pagination">
                <asp:Label ID="lblPage" class="list-table" runat="server"></asp:Label>
            </div>
            <!--/action-field-->
        </div>
        <input id="Hidden1" runat="server" type="hidden" />
        </form>
    </div>
</body>
</html>
