<?php
namespace PHPMaker2019\project_germanos;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start(); 

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$employeesaccess_list = new employeesaccess_list();

// Run the page
$employeesaccess_list->run();

// Setup login status
SetupLoginStatus();
SetClientVar("login", LoginStatus());

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$employeesaccess_list->Page_Render();
?>
<?php include_once "header.php" ?>
<?php if (!$employeesaccess->isExport()) { ?>
<script>

// Form object
currentPageID = ew.PAGE_ID = "list";
var femployeesaccesslist = currentForm = new ew.Form("femployeesaccesslist", "list");
femployeesaccesslist.formKeyCountName = '<?php echo $employeesaccess_list->FormKeyCountName ?>';

// Form_CustomValidate event
femployeesaccesslist.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!

	// Your custom validation code here, return false if invalid.
	return true;
}

// Use JavaScript validation or not
femployeesaccesslist.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
femployeesaccesslist.lists["x_EmployeeTypeID"] = <?php echo $employeesaccess_list->EmployeeTypeID->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_EmployeeTypeID"].options = <?php echo JsonEncode($employeesaccess_list->EmployeeTypeID->lookupOptions()) ?>;
femployeesaccesslist.lists["x_TitleID"] = <?php echo $employeesaccess_list->TitleID->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_TitleID"].options = <?php echo JsonEncode($employeesaccess_list->TitleID->lookupOptions()) ?>;
femployeesaccesslist.lists["x_ReportsTo"] = <?php echo $employeesaccess_list->ReportsTo->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_ReportsTo"].options = <?php echo JsonEncode($employeesaccess_list->ReportsTo->lookupOptions()) ?>;
femployeesaccesslist.lists["x_UserLevel"] = <?php echo $employeesaccess_list->UserLevel->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_UserLevel"].options = <?php echo JsonEncode($employeesaccess_list->UserLevel->lookupOptions()) ?>;
femployeesaccesslist.lists["x_Activated[]"] = <?php echo $employeesaccess_list->Activated->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_Activated[]"].options = <?php echo JsonEncode($employeesaccess_list->Activated->options(FALSE, TRUE)) ?>;
femployeesaccesslist.lists["x_Type"] = <?php echo $employeesaccess_list->Type->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_Type"].options = <?php echo JsonEncode($employeesaccess_list->Type->options(FALSE, TRUE)) ?>;
femployeesaccesslist.lists["x_Locked[]"] = <?php echo $employeesaccess_list->Locked->Lookup->toClientList() ?>;
femployeesaccesslist.lists["x_Locked[]"].options = <?php echo JsonEncode($employeesaccess_list->Locked->options(FALSE, TRUE)) ?>;

// Form object for search
var femployeesaccesslistsrch = currentSearchForm = new ew.Form("femployeesaccesslistsrch");

// Validate function for search
femployeesaccesslistsrch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";

	// Fire Form_CustomValidate event
	if (!this.Form_CustomValidate(fobj))
		return false;
	return true;
}

// Form_CustomValidate event
femployeesaccesslistsrch.Form_CustomValidate = function(fobj) { // DO NOT CHANGE THIS LINE!

	// Your custom validation code here, return false if invalid.
	return true;
}

// Use JavaScript validation or not
femployeesaccesslistsrch.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
femployeesaccesslistsrch.lists["x_Activated[]"] = <?php echo $employeesaccess_list->Activated->Lookup->toClientList() ?>;
femployeesaccesslistsrch.lists["x_Activated[]"].options = <?php echo JsonEncode($employeesaccess_list->Activated->options(FALSE, TRUE)) ?>;
femployeesaccesslistsrch.lists["x_Type"] = <?php echo $employeesaccess_list->Type->Lookup->toClientList() ?>;
femployeesaccesslistsrch.lists["x_Type"].options = <?php echo JsonEncode($employeesaccess_list->Type->options(FALSE, TRUE)) ?>;
femployeesaccesslistsrch.lists["x_Locked[]"] = <?php echo $employeesaccess_list->Locked->Lookup->toClientList() ?>;
femployeesaccesslistsrch.lists["x_Locked[]"].options = <?php echo JsonEncode($employeesaccess_list->Locked->options(FALSE, TRUE)) ?>;

// Filters
femployeesaccesslistsrch.filterList = <?php echo $employeesaccess_list->getFilterList() ?>;
</script>
<script src="phpjs/ewscrolltable.js"></script>
<style type="text/css">
.ew-table-preview-row { /* main table preview row color */
	background-color: #FFFFFF; /* preview row color */
}
.ew-table-preview-row .ew-grid {
	display: table;
}
</style>
<div id="ew-preview" class="d-none"><!-- preview -->
	<div class="ew-nav-tabs"><!-- .ew-nav-tabs -->
		<ul class="nav nav-tabs"></ul>
		<div class="tab-content"><!-- .tab-content -->
			<div class="tab-pane fade active show"></div>
		</div><!-- /.tab-content -->
	</div><!-- /.ew-nav-tabs -->
</div><!-- /preview -->
<script src="phpjs/ewpreview.js"></script>
<script>
ew.PREVIEW_PLACEMENT = ew.CSS_FLIP ? "left" : "right";
ew.PREVIEW_SINGLE_ROW = false;
ew.PREVIEW_OVERLAY = true;
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$employeesaccess->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($employeesaccess_list->TotalRecs > 0 && $employeesaccess_list->ExportOptions->visible()) { ?>
<?php $employeesaccess_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($employeesaccess_list->ImportOptions->visible()) { ?>
<?php $employeesaccess_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($employeesaccess_list->SearchOptions->visible()) { ?>
<?php $employeesaccess_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($employeesaccess_list->FilterOptions->visible()) { ?>
<?php $employeesaccess_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$employeesaccess_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$employeesaccess->isExport() && !$employeesaccess->CurrentAction) { ?>
<form name="femployeesaccesslistsrch" id="femployeesaccesslistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($employeesaccess_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="femployeesaccesslistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="employeesaccess">
	<div class="ew-basic-search">
<?php
if ($SearchError == "")
	$employeesaccess_list->LoadAdvancedSearch(); // Load advanced search

// Render for search
$employeesaccess->RowType = ROWTYPE_SEARCH;

// Render row
$employeesaccess->resetAttributes();
$employeesaccess_list->renderRow();
?>
<div id="xsr_1" class="ew-row d-sm-flex">
<?php if ($employeesaccess->Activated->Visible) { // Activated ?>
	<div id="xsc_Activated" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $employeesaccess->Activated->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_Activated" id="z_Activated" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($employeesaccess->Activated->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="employeesaccess" data-field="x_Activated" name="x_Activated[]" id="x_Activated[]" value="1"<?php echo $selwrk ?><?php echo $employeesaccess->Activated->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_2" class="ew-row d-sm-flex">
<?php if ($employeesaccess->Type->Visible) { // Type ?>
	<div id="xsc_Type" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $employeesaccess->Type->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_Type" id="z_Type" value="="></span>
		<span class="ew-search-field">
<div id="tp_x_Type" class="ew-template"><input type="radio" class="form-check-input" data-table="employeesaccess" data-field="x_Type" data-value-separator="<?php echo $employeesaccess->Type->displayValueSeparatorAttribute() ?>" name="x_Type" id="x_Type" value="{value}"<?php echo $employeesaccess->Type->editAttributes() ?>></div>
<div id="dsl_x_Type" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $employeesaccess->Type->radioButtonListHtml(FALSE, "x_Type") ?>
</div></div>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_3" class="ew-row d-sm-flex">
<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
	<div id="xsc_Locked" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $employeesaccess->Locked->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_Locked" id="z_Locked" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($employeesaccess->Locked->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="employeesaccess" data-field="x_Locked" name="x_Locked[]" id="x_Locked[]" value="1"<?php echo $selwrk ?><?php echo $employeesaccess->Locked->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_4" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo TABLE_BASIC_SEARCH ?>" id="<?php echo TABLE_BASIC_SEARCH ?>" class="form-control" value="<?php echo HtmlEncode($employeesaccess_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" value="<?php echo HtmlEncode($employeesaccess_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $employeesaccess_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($employeesaccess_list->BasicSearch->getType() == "") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this)"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($employeesaccess_list->BasicSearch->getType() == "=") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'=')"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($employeesaccess_list->BasicSearch->getType() == "AND") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'AND')"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($employeesaccess_list->BasicSearch->getType() == "OR") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'OR')"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div>
</div>
</form>
<?php } ?>
<?php } ?>
<?php $employeesaccess_list->showPageHeader(); ?>
<?php
$employeesaccess_list->showMessage();
?>
<?php if ($employeesaccess_list->TotalRecs > 0 || $employeesaccess->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($employeesaccess_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> employeesaccess">
<?php if (!$employeesaccess->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$employeesaccess->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeesaccess_list->Pager)) $employeesaccess_list->Pager = new PrevNextPager($employeesaccess_list->StartRec, $employeesaccess_list->DisplayRecs, $employeesaccess_list->TotalRecs, $employeesaccess_list->AutoHidePager) ?>
<?php if ($employeesaccess_list->Pager->RecordCount > 0 && $employeesaccess_list->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($employeesaccess_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($employeesaccess_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $employeesaccess_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeesaccess_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($employeesaccess_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $employeesaccess_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($employeesaccess_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $employeesaccess_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $employeesaccess_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $employeesaccess_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($employeesaccess_list->TotalRecs > 0 && (!$employeesaccess_list->AutoHidePageSizeSelector || $employeesaccess_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="employeesaccess">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($employeesaccess_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($employeesaccess_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($employeesaccess_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($employeesaccess_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($employeesaccess_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($employeesaccess_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($employeesaccess_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($employeesaccess_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($employeesaccess_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($employeesaccess->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $employeesaccess_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="femployeesaccesslist" id="femployeesaccesslist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeesaccess_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeesaccess_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeesaccess">
<div id="gmp_employeesaccess" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($employeesaccess_list->TotalRecs > 0 || $employeesaccess->isGridEdit()) { ?>
<table id="tbl_employeesaccesslist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$employeesaccess_list->RowType = ROWTYPE_HEADER;

// Render list options
$employeesaccess_list->renderListOptions();

// Render list options (header, left)
$employeesaccess_list->ListOptions->render("header", "left");
?>
<?php if ($employeesaccess->Username->Visible) { // Username ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->Username) == "") { ?>
		<th data-name="Username" class="<?php echo $employeesaccess->Username->headerCellClass() ?>"><div id="elh_employeesaccess_Username" class="employeesaccess_Username"><div class="ew-table-header-caption"><?php echo $employeesaccess->Username->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Username" class="<?php echo $employeesaccess->Username->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->Username) ?>',2);"><div id="elh_employeesaccess_Username" class="employeesaccess_Username">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->Username->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->Username->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->Username->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->Password->Visible) { // Password ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->Password) == "") { ?>
		<th data-name="Password" class="<?php echo $employeesaccess->Password->headerCellClass() ?>"><div id="elh_employeesaccess_Password" class="employeesaccess_Password"><div class="ew-table-header-caption"><?php echo $employeesaccess->Password->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Password" class="<?php echo $employeesaccess->Password->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->Password) ?>',2);"><div id="elh_employeesaccess_Password" class="employeesaccess_Password">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->Password->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->Password->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->Password->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->EmployeeTypeID->Visible) { // EmployeeTypeID ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->EmployeeTypeID) == "") { ?>
		<th data-name="EmployeeTypeID" class="<?php echo $employeesaccess->EmployeeTypeID->headerCellClass() ?>"><div id="elh_employeesaccess_EmployeeTypeID" class="employeesaccess_EmployeeTypeID"><div class="ew-table-header-caption"><?php echo $employeesaccess->EmployeeTypeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EmployeeTypeID" class="<?php echo $employeesaccess->EmployeeTypeID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->EmployeeTypeID) ?>',2);"><div id="elh_employeesaccess_EmployeeTypeID" class="employeesaccess_EmployeeTypeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->EmployeeTypeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->EmployeeTypeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->EmployeeTypeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->TitleID->Visible) { // TitleID ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->TitleID) == "") { ?>
		<th data-name="TitleID" class="<?php echo $employeesaccess->TitleID->headerCellClass() ?>"><div id="elh_employeesaccess_TitleID" class="employeesaccess_TitleID"><div class="ew-table-header-caption"><?php echo $employeesaccess->TitleID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="TitleID" class="<?php echo $employeesaccess->TitleID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->TitleID) ?>',2);"><div id="elh_employeesaccess_TitleID" class="employeesaccess_TitleID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->TitleID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->TitleID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->TitleID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->FirstName->Visible) { // FirstName ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->FirstName) == "") { ?>
		<th data-name="FirstName" class="<?php echo $employeesaccess->FirstName->headerCellClass() ?>"><div id="elh_employeesaccess_FirstName" class="employeesaccess_FirstName"><div class="ew-table-header-caption"><?php echo $employeesaccess->FirstName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="FirstName" class="<?php echo $employeesaccess->FirstName->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->FirstName) ?>',2);"><div id="elh_employeesaccess_FirstName" class="employeesaccess_FirstName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->FirstName->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->FirstName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->FirstName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->MiddleName->Visible) { // MiddleName ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->MiddleName) == "") { ?>
		<th data-name="MiddleName" class="<?php echo $employeesaccess->MiddleName->headerCellClass() ?>"><div id="elh_employeesaccess_MiddleName" class="employeesaccess_MiddleName"><div class="ew-table-header-caption"><?php echo $employeesaccess->MiddleName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="MiddleName" class="<?php echo $employeesaccess->MiddleName->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->MiddleName) ?>',2);"><div id="elh_employeesaccess_MiddleName" class="employeesaccess_MiddleName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->MiddleName->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->MiddleName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->MiddleName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->LastName->Visible) { // LastName ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->LastName) == "") { ?>
		<th data-name="LastName" class="<?php echo $employeesaccess->LastName->headerCellClass() ?>"><div id="elh_employeesaccess_LastName" class="employeesaccess_LastName"><div class="ew-table-header-caption"><?php echo $employeesaccess->LastName->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LastName" class="<?php echo $employeesaccess->LastName->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->LastName) ?>',2);"><div id="elh_employeesaccess_LastName" class="employeesaccess_LastName">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->LastName->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->LastName->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->LastName->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->ReportsTo->Visible) { // ReportsTo ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->ReportsTo) == "") { ?>
		<th data-name="ReportsTo" class="<?php echo $employeesaccess->ReportsTo->headerCellClass() ?>"><div id="elh_employeesaccess_ReportsTo" class="employeesaccess_ReportsTo"><div class="ew-table-header-caption"><?php echo $employeesaccess->ReportsTo->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="ReportsTo" class="<?php echo $employeesaccess->ReportsTo->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->ReportsTo) ?>',2);"><div id="elh_employeesaccess_ReportsTo" class="employeesaccess_ReportsTo">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->ReportsTo->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->ReportsTo->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->ReportsTo->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->UserLevel->Visible) { // UserLevel ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->UserLevel) == "") { ?>
		<th data-name="UserLevel" class="<?php echo $employeesaccess->UserLevel->headerCellClass() ?>"><div id="elh_employeesaccess_UserLevel" class="employeesaccess_UserLevel"><div class="ew-table-header-caption"><?php echo $employeesaccess->UserLevel->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="UserLevel" class="<?php echo $employeesaccess->UserLevel->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->UserLevel) ?>',2);"><div id="elh_employeesaccess_UserLevel" class="employeesaccess_UserLevel">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->UserLevel->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->UserLevel->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->UserLevel->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->Activated->Visible) { // Activated ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->Activated) == "") { ?>
		<th data-name="Activated" class="<?php echo $employeesaccess->Activated->headerCellClass() ?>"><div id="elh_employeesaccess_Activated" class="employeesaccess_Activated"><div class="ew-table-header-caption"><?php echo $employeesaccess->Activated->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Activated" class="<?php echo $employeesaccess->Activated->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->Activated) ?>',2);"><div id="elh_employeesaccess_Activated" class="employeesaccess_Activated">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->Activated->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->Activated->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->Activated->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->Type->Visible) { // Type ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->Type) == "") { ?>
		<th data-name="Type" class="<?php echo $employeesaccess->Type->headerCellClass() ?>"><div id="elh_employeesaccess_Type" class="employeesaccess_Type"><div class="ew-table-header-caption"><?php echo $employeesaccess->Type->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Type" class="<?php echo $employeesaccess->Type->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->Type) ?>',2);"><div id="elh_employeesaccess_Type" class="employeesaccess_Type">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->Type->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->Type->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->Type->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
	<?php if ($employeesaccess->sortUrl($employeesaccess->Locked) == "") { ?>
		<th data-name="Locked" class="<?php echo $employeesaccess->Locked->headerCellClass() ?>"><div id="elh_employeesaccess_Locked" class="employeesaccess_Locked"><div class="ew-table-header-caption"><?php echo $employeesaccess->Locked->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Locked" class="<?php echo $employeesaccess->Locked->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeesaccess->SortUrl($employeesaccess->Locked) ?>',2);"><div id="elh_employeesaccess_Locked" class="employeesaccess_Locked">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeesaccess->Locked->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeesaccess->Locked->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeesaccess->Locked->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$employeesaccess_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($employeesaccess->ExportAll && $employeesaccess->isExport()) {
	$employeesaccess_list->StopRec = $employeesaccess_list->TotalRecs;
} else {

	// Set the last record to display
	if ($employeesaccess_list->TotalRecs > $employeesaccess_list->StartRec + $employeesaccess_list->DisplayRecs - 1)
		$employeesaccess_list->StopRec = $employeesaccess_list->StartRec + $employeesaccess_list->DisplayRecs - 1;
	else
		$employeesaccess_list->StopRec = $employeesaccess_list->TotalRecs;
}
$employeesaccess_list->RecCnt = $employeesaccess_list->StartRec - 1;
if ($employeesaccess_list->Recordset && !$employeesaccess_list->Recordset->EOF) {
	$employeesaccess_list->Recordset->moveFirst();
	$selectLimit = $employeesaccess_list->UseSelectLimit;
	if (!$selectLimit && $employeesaccess_list->StartRec > 1)
		$employeesaccess_list->Recordset->move($employeesaccess_list->StartRec - 1);
} elseif (!$employeesaccess->AllowAddDeleteRow && $employeesaccess_list->StopRec == 0) {
	$employeesaccess_list->StopRec = $employeesaccess->GridAddRowCount;
}

// Initialize aggregate
$employeesaccess->RowType = ROWTYPE_AGGREGATEINIT;
$employeesaccess->resetAttributes();
$employeesaccess_list->renderRow();
while ($employeesaccess_list->RecCnt < $employeesaccess_list->StopRec) {
	$employeesaccess_list->RecCnt++;
	if ($employeesaccess_list->RecCnt >= $employeesaccess_list->StartRec) {
		$employeesaccess_list->RowCnt++;

		// Set up key count
		$employeesaccess_list->KeyCount = $employeesaccess_list->RowIndex;

		// Init row class and style
		$employeesaccess->resetAttributes();
		$employeesaccess->CssClass = "";
		if ($employeesaccess->isGridAdd()) {
		} else {
			$employeesaccess_list->loadRowValues($employeesaccess_list->Recordset); // Load row values
		}
		$employeesaccess->RowType = ROWTYPE_VIEW; // Render view

		// Set up row id / data-rowindex
		$employeesaccess->RowAttrs = array_merge($employeesaccess->RowAttrs, array('data-rowindex'=>$employeesaccess_list->RowCnt, 'id'=>'r' . $employeesaccess_list->RowCnt . '_employeesaccess', 'data-rowtype'=>$employeesaccess->RowType));

		// Render row
		$employeesaccess_list->renderRow();

		// Render list options
		$employeesaccess_list->renderListOptions();
?>
	<tr<?php echo $employeesaccess->rowAttributes() ?>>
<?php

// Render list options (body, left)
$employeesaccess_list->ListOptions->render("body", "left", $employeesaccess_list->RowCnt);
?>
	<?php if ($employeesaccess->Username->Visible) { // Username ?>
		<td data-name="Username"<?php echo $employeesaccess->Username->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_Username" class="employeesaccess_Username">
<span<?php echo $employeesaccess->Username->viewAttributes() ?>>
<?php echo $employeesaccess->Username->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->Password->Visible) { // Password ?>
		<td data-name="Password"<?php echo $employeesaccess->Password->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_Password" class="employeesaccess_Password">
<span<?php echo $employeesaccess->Password->viewAttributes() ?>>
<?php echo $employeesaccess->Password->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->EmployeeTypeID->Visible) { // EmployeeTypeID ?>
		<td data-name="EmployeeTypeID"<?php echo $employeesaccess->EmployeeTypeID->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_EmployeeTypeID" class="employeesaccess_EmployeeTypeID">
<span<?php echo $employeesaccess->EmployeeTypeID->viewAttributes() ?>>
<?php echo $employeesaccess->EmployeeTypeID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->TitleID->Visible) { // TitleID ?>
		<td data-name="TitleID"<?php echo $employeesaccess->TitleID->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_TitleID" class="employeesaccess_TitleID">
<span<?php echo $employeesaccess->TitleID->viewAttributes() ?>>
<?php echo $employeesaccess->TitleID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->FirstName->Visible) { // FirstName ?>
		<td data-name="FirstName"<?php echo $employeesaccess->FirstName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_FirstName" class="employeesaccess_FirstName">
<span<?php echo $employeesaccess->FirstName->viewAttributes() ?>>
<?php echo $employeesaccess->FirstName->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->MiddleName->Visible) { // MiddleName ?>
		<td data-name="MiddleName"<?php echo $employeesaccess->MiddleName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_MiddleName" class="employeesaccess_MiddleName">
<span<?php echo $employeesaccess->MiddleName->viewAttributes() ?>>
<?php echo $employeesaccess->MiddleName->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->LastName->Visible) { // LastName ?>
		<td data-name="LastName"<?php echo $employeesaccess->LastName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_LastName" class="employeesaccess_LastName">
<span<?php echo $employeesaccess->LastName->viewAttributes() ?>>
<?php echo $employeesaccess->LastName->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->ReportsTo->Visible) { // ReportsTo ?>
		<td data-name="ReportsTo"<?php echo $employeesaccess->ReportsTo->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_ReportsTo" class="employeesaccess_ReportsTo">
<span<?php echo $employeesaccess->ReportsTo->viewAttributes() ?>>
<?php echo $employeesaccess->ReportsTo->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->UserLevel->Visible) { // UserLevel ?>
		<td data-name="UserLevel"<?php echo $employeesaccess->UserLevel->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_UserLevel" class="employeesaccess_UserLevel">
<span<?php echo $employeesaccess->UserLevel->viewAttributes() ?>>
<?php echo $employeesaccess->UserLevel->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->Activated->Visible) { // Activated ?>
		<td data-name="Activated"<?php echo $employeesaccess->Activated->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_Activated" class="employeesaccess_Activated">
<span<?php echo $employeesaccess->Activated->viewAttributes() ?>>
<?php if (ConvertToBool($employeesaccess->Activated->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Activated->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Activated->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->Type->Visible) { // Type ?>
		<td data-name="Type"<?php echo $employeesaccess->Type->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_Type" class="employeesaccess_Type">
<span<?php echo $employeesaccess->Type->viewAttributes() ?>>
<?php echo $employeesaccess->Type->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
		<td data-name="Locked"<?php echo $employeesaccess->Locked->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_list->RowCnt ?>_employeesaccess_Locked" class="employeesaccess_Locked">
<span<?php echo $employeesaccess->Locked->viewAttributes() ?>>
<?php if (ConvertToBool($employeesaccess->Locked->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Locked->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Locked->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$employeesaccess_list->ListOptions->render("body", "right", $employeesaccess_list->RowCnt);
?>
	</tr>
<?php
	}
	if (!$employeesaccess->isGridAdd())
		$employeesaccess_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
<?php if (!$employeesaccess->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($employeesaccess_list->Recordset)
	$employeesaccess_list->Recordset->Close();
?>
<?php if (!$employeesaccess->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$employeesaccess->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeesaccess_list->Pager)) $employeesaccess_list->Pager = new PrevNextPager($employeesaccess_list->StartRec, $employeesaccess_list->DisplayRecs, $employeesaccess_list->TotalRecs, $employeesaccess_list->AutoHidePager) ?>
<?php if ($employeesaccess_list->Pager->RecordCount > 0 && $employeesaccess_list->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($employeesaccess_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($employeesaccess_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $employeesaccess_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeesaccess_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($employeesaccess_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeesaccess_list->pageUrl() ?>start=<?php echo $employeesaccess_list->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $employeesaccess_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($employeesaccess_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $employeesaccess_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $employeesaccess_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $employeesaccess_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($employeesaccess_list->TotalRecs > 0 && (!$employeesaccess_list->AutoHidePageSizeSelector || $employeesaccess_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="employeesaccess">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($employeesaccess_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($employeesaccess_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($employeesaccess_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($employeesaccess_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($employeesaccess_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($employeesaccess_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($employeesaccess_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($employeesaccess_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($employeesaccess_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($employeesaccess->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $employeesaccess_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($employeesaccess_list->TotalRecs == 0 && !$employeesaccess->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $employeesaccess_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$employeesaccess_list->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$employeesaccess->isExport()) { ?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php if (!$employeesaccess->isExport()) { ?>
<script>
ew.scrollableTable("gmp_employeesaccess", "1250px", "");
</script>
<?php } ?>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$employeesaccess_list->terminate();
?>
