<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Html.Language("LogManagement")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="easyui-layout" data-options="fit:true">
		<div title="<%: Html.Language("LogManagement")%>" data-options="region:'center',border:false">
			<table id="dg" class="easyui-datagrid" style="width:100%; height:auto;"
				data-options="
						toolbar: '#tb',
						border: false,
						singleSelect: false,
						pagination: true,
						pageSize: 20,
						rownumbers: true,
						striped: true,
						sortName: 'Time',
						sortOrder: 'desc',
						fit: true,
						fitColumns: true,
						idField: 'ID',
						frozenColumns: [[
							{ field: 'ID', checkbox: true }
						]],
						url: '/SysSystemLogs/LoadAllByPage/',
						method: 'post'
					">
				<thead>
					<tr>
						<th data-options="field:'Authority',sortable:true">
							<%: Html.Language("OperationModule")%>
						</th>
						<th data-options="field:'Action',sortable:true">
							<%: Html.Language("Action")%>
						</th>
						<th data-options="field:'Detail',width:100, sortable:true">
							<%: Html.Language("Detail")%>
						</th>
						<th data-options="field:'Result',sortable:true">
							<%: Html.Language("Result")%>
						</th>
						<th data-options="field:'Account',sortable:true">
							<%: Html.Language("Operator")%>
						</th>
						<th data-options="field:'IP',sortable:true">
								<%: Html.Language("IP")%>
						</th>
						<th data-options="field:'Time',sortable:true,formatter:$.tools.formatDateTime">
							<%: Html.Language("OperationTime")%> 
						</th>
					</tr>
				</thead>
			</table>
		
		</div>   
    
		<div id="tb" style="position:relative;">
			<span style="padding-left:5px;">
				<%: Html.Language("Module")%>：<input id="selAuthority" class="easyui-combobox" style="width:120px;" data-options="valueField:'ID',textField:'Name',editable:false,url:'/SysAuthority/LoadAll/'" />&nbsp;
				<%: Html.Language("StartDate")%>：<input id="txtStartDate" type="text" class="easyui-datebox" style="width:100px;" data-options="editable:false" />
				<%: Html.Language("EndDate")%>：<input id="txtEndDate" type="text" class="easyui-datebox" style="width:100px;" data-options="editable:false" />
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()"><%: Html.Language("Query")%></a>
			</span>

			<span style="position:absolute;right:10px;">
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="refresh()"><%: Html.Language("Refresh")%></a> 
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="delData()"><%: Html.Language("Delete")%></a>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="clearData()"><%: Html.Language("Empty")%></a>
			</span>
		</div>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<script type="text/javascript" src="/Scripts/sys-system-logs-index.js"></script>
    <% switch ((int)Session["isCN"]){case 1: %>
    <script type="text/javascript" src="/Scripts/en-US.js"></script>
    <% break; case 2: %>
    <script type="text/javascript" src="/Scripts/zh-TW.js"></script>
    <% break;default: %>
    <script type="text/javascript" src="/Scripts/zh-CN.js"></script>
    <% break; } %>
</asp:Content>