<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SimonMasterPage.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 data-options="region:'north',border:false" style="overflow:hidden;height:30px;">
			<div class="toolbar" style="position:relative;">
				<span style="padding-left:5px;">
					<label><%: Html.Language("Module")%>：</label>
						<input id="selAuthority" class="easyui-combobox" style="width:120px;" 
							data-options="
								panelWidth:160,
								valueField:'ID',
								textField:'Name',
								editable:false,
								url:'/SysAuthority/LoadAll/'" 
						/>&nbsp;
					<label><%: Html.Language("StartDate")%>：</label><input id="txtStartDate" type="text" class="easyui-datebox" style="width:100px;" data-options="editable:false" />
					<label><%: Html.Language("EndDate")%>：</label><input id="txtEndDate" type="text" class="easyui-datebox" style="width:100px;" data-options="editable:false" />
                    <label><%: Html.Language("Keyword")%>：</label><input id="txtKeyword" class="easyui-validatebox" style="width: 120px;" />
					<a href="javascript:void(0)" class="toolbar-button tb-icon-search" onclick="query()"><%: Html.Language("Query")%></a> 
				</span>

				<span style="position:absolute;right:10px;">
					<a href="javascript:void(0)" class="toolbar-button tb-icon-refresh" onclick="refresh()"><%: Html.Language("Refresh")%></a> 
					<a href="javascript:void(0)" class="toolbar-button tb-icon-remove" onclick="delData()"><%: Html.Language("Delete")%></a>
					<a href="javascript:void(0)" class="toolbar-button tb-icon-clear" onclick="clearData()"><%: Html.Language("Empty")%></a>
				</span>
			</div>
		</div>
		<div 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,
                        pageList: [20, 50, 100, 200],
						rownumbers: true,
						striped: true,
						sortName: 'Time',
						sortOrder: 'desc',
						fit: true,
						fitColumns: true,
						idField: 'ID',
                        nowrap:true,
						frozenColumns: [[
							{ field: 'ID', checkbox: true }
						]],
						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,formatter:detailFormatter">
							<%: 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>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<style type="text/css">
		.toolbar label {
			font-size:12px;	
		}
	</style>
	<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>
