<form method="post" id="LogForm" action="index.php?ToDo=systemLog" onsubmit="return SearchSystemLog(this);">
	<input type="hidden" name="SortURL" id="SortURL" value="index.php?ToDo=systemLogGrid{{ SortURL|safe }}" />
	<input type="hidden" name="CurrentTab" id="CurrentTab1" value="{{ CurrentTab|safe }}" />
	<table id="SystemLogOptions" class="IntroTable hidden-xs" cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<td class="Intro" style="padding-top: 10px;">
				<input type="button" name="IndexDeleteButton" value="{% lang 'DeleteSelected' %}" id="IndexDeleteButton" class="btn btn-primary" onclick="ConfirmDeleteSelected()" {{ DisableDelete|safe }}  />
				<input type="button" name="DeleteAll" value="{% lang 'DeleteAll' %}" class="btn btn-primary" onclick="ConfirmDeleteAll()" {{ DisableDelete|safe }}  />
			</td>
			<td align="right" nowrap="nowrap" style="padding-top: 10px;">
				<select name="severity" id="logSeverity" class="form-control" style="width: auto; display: inline">
					<option value="0">{% lang 'LogAllSeverities' %}</option>
					<option value="1" {{ Severity1Selected|safe }}>{% lang 'LogSeverity1' %}</option>
					<option value="2" {{ Severity2Selected|safe }}>{% lang 'LogSeverity2' %}</option>
					<option value="3" {{ Severity3Selected|safe }}>{% lang 'LogSeverity3' %}</option>
					<option value="4" {{ Severity4Selected|safe }}>{% lang 'LogSeverity4' %}</option>
				</select>
				&nbsp;
				<select name="logtype" id="logType" class="form-control" style="width: auto; display: inline">
					<option value="">{% lang 'LogAllTypes' %}</option>
					{{ LogSearchTypeSelect|safe }}
				</select>
				&nbsp;
				<input type="text" id="logSummary" class="form-control" style="width: auto; display: inline" value="{{ SummaryValue|safe }}" size="20" />
			</td>
			<td width="1" style="padding-left: 5px;">
				<input type="submit" value="Buscar" class="btn btn-primary" style="position: relative; top: 5px" />
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td align="right">
				<a href="index.php?ToDo=systemLog" style="display: {{ HideClearResults|safe }}" id="SearchClearButton" onclick="return ClearSystemResults(this);">{% lang 'ClearResults' %}</a>
			</td>
			<td>&nbsp;</td>
		</tr>
	</table>

	<div class="visible-xs">
		<input type="button" name="IndexDeleteButton" value="{% lang 'DeleteSelected' %}" id="IndexDeleteButton" class="btn btn-primary" onclick="ConfirmDeleteSelected()" {{ DisableDelete|safe }}  />
		<input type="button" name="DeleteAll" value="{% lang 'DeleteAll' %}" class="btn btn-primary" onclick="ConfirmDeleteAll()" {{ DisableDelete|safe }}  />
		<hr>
		<select name="severity" id="logSeverity" class="form-control" style="width: 195px; display: inline">
			<option value="0">{% lang 'LogAllSeverities' %}</option>
			<option value="1" {{ Severity1Selected|safe }}>{% lang 'LogSeverity1' %}</option>
			<option value="2" {{ Severity2Selected|safe }}>{% lang 'LogSeverity2' %}</option>
			<option value="3" {{ Severity3Selected|safe }}>{% lang 'LogSeverity3' %}</option>
			<option value="4" {{ Severity4Selected|safe }}>{% lang 'LogSeverity4' %}</option>
		</select>

		<select name="logtype" id="logType" class="form-control" style="width: 170px; display: inline">
			<option value="">{% lang 'LogAllTypes' %}</option>
			{{ LogSearchTypeSelect|safe }}
		</select>

		<input type="text" id="logSummary" class="form-control" style="display: inline; margin-top: 10px; width: 79%; margin-bottom: 20px;" value="{{ SummaryValue|safe }}" size="20" />
		<input type="submit" value="Buscar" class="btn btn-primary"/>
	</div>
	<div class="table-responsive">
	<table class="GridPanel SortableGrid table table-striped" cellspacing="1" cellpadding="2" border="0" style="width:100%;">
		<tr align="right">
			<td colspan="8" style="padding:6px 0px 6px 0px" class="PagingNav">
				{{ Nav|safe }}
			</td>
		</tr>

		<thead>
		<tr>
			<th align="center" width="1"><input type="checkbox" onclick="$(this).parents('form').find('input[type=checkbox]').attr('checked', this.checked);"></th>
			<th colspan="2">
				{% lang 'LogSeverity' %} &nbsp;
				{{ SortLinksSeverity|safe }}
			</th>
			<th>&nbsp;</th>
			<th width="100">
				{% lang 'LogType' %} &nbsp;
				{{ SortLinksType|safe }}
			</th>
			<th width="130">
				{% lang 'LogModule' %} &nbsp;
				{{ SortLinksModule|safe }}
			</th>
			<th>
				{% lang 'LogSummary' %} &nbsp;
				{{ SortLinksSummary|safe }}
			</th>
			<th>
				{% lang 'Date' %} &nbsp;
				{{ SortLinksDate|safe }}
			</th>
		</tr>
		<thead>
		{{ LogGrid|safe }}
		<tr align="right">
			<td colspan="8" style="padding:6px 0px 6px 0px" class="PagingNav">
				{{ Nav|safe }}
			</td>
		</tr>
	</table>
	</div>
</form>