<form method="post" id="AdminLogForm" action="index.php?ToDo=systemLog" onsubmit="return SearchAdminLog(this)">
	<input type="hidden" name="AdminSortURL" id="AdminSortURL" value="index.php?ToDo=administratorLogGrid{{ SortURL|safe }}" />
	<input type="hidden" name="CurrentTab" id="CurrentTab2" value="{{ CurrentTab|safe }}" />
	
	<table id="AdminLogOptions" class="IntroTable" 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="ConfirmDeleteSelectedAdmin()" {{ DisableDelete|safe }}  />
				<input type="button" name="DeleteAll" value="{% lang 'DeleteAll' %}" class="btn btn-primary" onclick="ConfirmDeleteAllAdmin()" {{ DisableDelete|safe }}  />
			</td>
			
			<td align="right" nowrap="nowrap" style="padding-top: 10px;">
				<select name="userid" id="adminUserId" onchange="SearchAdminLog(this)" class="form-control">
					<option value="0">{% lang 'AllAdministrators' %}</option>
					{{ AdministratorList|safe }}
				</select>
			</td>
			
			<td width="1" style="padding-left: 5px; padding-top: 10px;">
				<input type="submit" value="Buscar" class="btn btn-primary" />
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;</td>
			<td align="right">
				<a href="index.php?ToDo=systemLog&amp;CurrentTab=1" onclick="ClearAdminSearchResults(this); return false;" style="display: {{ HideClearAdminResults|safe }}" id="AdminSearchClearButton">{% lang 'ClearResults' %}</a>
			</td>
			<td>&nbsp;</td>
		</tr>
	</table>
	
	<div class="table-responsive">
	<table class="GridPanel SortableGrid table table-striped" id="AdminLogGrid">
		<tr align="right">
			<td colspan="6" class="PagingNav">
				{{ Nav|safe }}
			</td>
		</tr>

		<tr>
			<th align="center" width="1"><input type="checkbox" onclick="$(this).parents('form').find('input[type=checkbox]').attr('checked', this.checked);"></th>
			<th>&nbsp;</th>
			<th>
				{% lang 'Username' %}
				{{ SortLinksName|safe }}
			</th>
			<th>{% lang 'Action' %}</th>
			<th>
				{% lang 'Date' %}
				{{ SortLinksDate|safe }}
			</th>
			<th>
				{% lang 'IPAddress' %}
				{{ SortLinksIP|safe }}
			</th>
		</tr>
		{{ LogGrid|safe }}
		
		<tr align="right">
			<td colspan="6" style="padding:6px 0px 6px 0px" class="PagingNav">
				{{ Nav|safe }}
			</td>
		</tr>
	</table>
	</div>
</form>