<?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
$employeehr_list = new employeehr_list();

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

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

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

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

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

// Form_CustomValidate event
femployeehrlist.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
femployeehrlist.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
femployeehrlist.lists["x_EmployeeID"] = <?php echo $employeehr_list->EmployeeID->Lookup->toClientList() ?>;
femployeehrlist.lists["x_EmployeeID"].options = <?php echo JsonEncode($employeehr_list->EmployeeID->lookupOptions()) ?>;
femployeehrlist.lists["x_BranchID"] = <?php echo $employeehr_list->BranchID->Lookup->toClientList() ?>;
femployeehrlist.lists["x_BranchID"].options = <?php echo JsonEncode($employeehr_list->BranchID->lookupOptions()) ?>;
femployeehrlist.lists["x_LawFirmID"] = <?php echo $employeehr_list->LawFirmID->Lookup->toClientList() ?>;
femployeehrlist.lists["x_LawFirmID"].options = <?php echo JsonEncode($employeehr_list->LawFirmID->lookupOptions()) ?>;

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

// Filters
femployeehrlistsrch.filterList = <?php echo $employeehr_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 (!$employeehr->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($employeehr_list->TotalRecs > 0 && $employeehr_list->ExportOptions->visible()) { ?>
<?php $employeehr_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($employeehr_list->ImportOptions->visible()) { ?>
<?php $employeehr_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($employeehr_list->SearchOptions->visible()) { ?>
<?php $employeehr_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($employeehr_list->FilterOptions->visible()) { ?>
<?php $employeehr_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if (!$employeehr->isExport() || EXPORT_MASTER_RECORD && $employeehr->isExport("print")) { ?>
<?php
if ($employeehr_list->DbMasterFilter <> "" && $employeehr->getCurrentMasterTable() == "employees") {
	if ($employeehr_list->MasterRecordExists) {
		include_once "employeesmaster.php";
	}
}
?>
<?php } ?>
<?php
$employeehr_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$employeehr->isExport() && !$employeehr->CurrentAction) { ?>
<form name="femployeehrlistsrch" id="femployeehrlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($employeehr_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="femployeehrlistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="employeehr">
	<div class="ew-basic-search">
<div id="xsr_1" 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($employeehr_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($employeehr_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 $employeehr_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($employeehr_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 ($employeehr_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 ($employeehr_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 ($employeehr_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 $employeehr_list->showPageHeader(); ?>
<?php
$employeehr_list->showMessage();
?>
<?php if ($employeehr_list->TotalRecs > 0 || $employeehr->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($employeehr_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> employeehr">
<?php if (!$employeehr->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$employeehr->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeehr_list->Pager)) $employeehr_list->Pager = new PrevNextPager($employeehr_list->StartRec, $employeehr_list->DisplayRecs, $employeehr_list->TotalRecs, $employeehr_list->AutoHidePager) ?>
<?php if ($employeehr_list->Pager->RecordCount > 0 && $employeehr_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 ($employeehr_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeehr_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($employeehr_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $employeehr_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $employeehr_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $employeehr_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($employeehr_list->TotalRecs > 0 && (!$employeehr_list->AutoHidePageSizeSelector || $employeehr_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="employeehr">
<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 ($employeehr_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($employeehr_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($employeehr_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($employeehr_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($employeehr_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($employeehr_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($employeehr_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($employeehr_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($employeehr_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($employeehr->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $employeehr_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="femployeehrlist" id="femployeehrlist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeehr_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeehr_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeehr">
<?php if ($employeehr->getCurrentMasterTable() == "employees" && $employeehr->CurrentAction) { ?>
<input type="hidden" name="<?php echo TABLE_SHOW_MASTER ?>" value="employees">
<input type="hidden" name="fk_EmployeeID" value="<?php echo $employeehr->EmployeeID->getSessionValue() ?>">
<?php } ?>
<div id="gmp_employeehr" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($employeehr_list->TotalRecs > 0 || $employeehr->isGridEdit()) { ?>
<table id="tbl_employeehrlist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$employeehr_list->ListOptions->render("header", "left");
?>
<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
	<?php if ($employeehr->sortUrl($employeehr->EmployeeID) == "") { ?>
		<th data-name="EmployeeID" class="<?php echo $employeehr->EmployeeID->headerCellClass() ?>"><div id="elh_employeehr_EmployeeID" class="employeehr_EmployeeID"><div class="ew-table-header-caption"><?php echo $employeehr->EmployeeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EmployeeID" class="<?php echo $employeehr->EmployeeID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->EmployeeID) ?>',2);"><div id="elh_employeehr_EmployeeID" class="employeehr_EmployeeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->EmployeeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->EmployeeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->EmployeeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
	<?php if ($employeehr->sortUrl($employeehr->JobTitle) == "") { ?>
		<th data-name="JobTitle" class="<?php echo $employeehr->JobTitle->headerCellClass() ?>"><div id="elh_employeehr_JobTitle" class="employeehr_JobTitle"><div class="ew-table-header-caption"><?php echo $employeehr->JobTitle->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="JobTitle" class="<?php echo $employeehr->JobTitle->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->JobTitle) ?>',2);"><div id="elh_employeehr_JobTitle" class="employeehr_JobTitle">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->JobTitle->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->JobTitle->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->JobTitle->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Department->Visible) { // Department ?>
	<?php if ($employeehr->sortUrl($employeehr->Department) == "") { ?>
		<th data-name="Department" class="<?php echo $employeehr->Department->headerCellClass() ?>"><div id="elh_employeehr_Department" class="employeehr_Department"><div class="ew-table-header-caption"><?php echo $employeehr->Department->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Department" class="<?php echo $employeehr->Department->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->Department) ?>',2);"><div id="elh_employeehr_Department" class="employeehr_Department">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Department->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Department->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Department->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
	<?php if ($employeehr->sortUrl($employeehr->BranchID) == "") { ?>
		<th data-name="BranchID" class="<?php echo $employeehr->BranchID->headerCellClass() ?>"><div id="elh_employeehr_BranchID" class="employeehr_BranchID"><div class="ew-table-header-caption"><?php echo $employeehr->BranchID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="BranchID" class="<?php echo $employeehr->BranchID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->BranchID) ?>',2);"><div id="elh_employeehr_BranchID" class="employeehr_BranchID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->BranchID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->BranchID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->BranchID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
	<?php if ($employeehr->sortUrl($employeehr->LawFirmID) == "") { ?>
		<th data-name="LawFirmID" class="<?php echo $employeehr->LawFirmID->headerCellClass() ?>"><div id="elh_employeehr_LawFirmID" class="employeehr_LawFirmID"><div class="ew-table-header-caption"><?php echo $employeehr->LawFirmID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LawFirmID" class="<?php echo $employeehr->LawFirmID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->LawFirmID) ?>',2);"><div id="elh_employeehr_LawFirmID" class="employeehr_LawFirmID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->LawFirmID->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->LawFirmID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->LawFirmID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
	<?php if ($employeehr->sortUrl($employeehr->HireDate) == "") { ?>
		<th data-name="HireDate" class="<?php echo $employeehr->HireDate->headerCellClass() ?>"><div id="elh_employeehr_HireDate" class="employeehr_HireDate"><div class="ew-table-header-caption"><?php echo $employeehr->HireDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="HireDate" class="<?php echo $employeehr->HireDate->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->HireDate) ?>',2);"><div id="elh_employeehr_HireDate" class="employeehr_HireDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->HireDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->HireDate->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->HireDate->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
	<?php if ($employeehr->sortUrl($employeehr->EndOfServiceDate) == "") { ?>
		<th data-name="EndOfServiceDate" class="<?php echo $employeehr->EndOfServiceDate->headerCellClass() ?>"><div id="elh_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate"><div class="ew-table-header-caption"><?php echo $employeehr->EndOfServiceDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EndOfServiceDate" class="<?php echo $employeehr->EndOfServiceDate->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->EndOfServiceDate) ?>',2);"><div id="elh_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->EndOfServiceDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($employeehr->EndOfServiceDate->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->EndOfServiceDate->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
	<?php if ($employeehr->sortUrl($employeehr->SocialSecurity23) == "") { ?>
		<th data-name="SocialSecurity23" class="<?php echo $employeehr->SocialSecurity23->headerCellClass() ?>"><div id="elh_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23"><div class="ew-table-header-caption"><?php echo $employeehr->SocialSecurity23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="SocialSecurity23" class="<?php echo $employeehr->SocialSecurity23->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->SocialSecurity23) ?>',2);"><div id="elh_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->SocialSecurity23->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->SocialSecurity23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->SocialSecurity23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
	<?php if ($employeehr->sortUrl($employeehr->Financial23) == "") { ?>
		<th data-name="Financial23" class="<?php echo $employeehr->Financial23->headerCellClass() ?>"><div id="elh_employeehr_Financial23" class="employeehr_Financial23"><div class="ew-table-header-caption"><?php echo $employeehr->Financial23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Financial23" class="<?php echo $employeehr->Financial23->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->Financial23) ?>',2);"><div id="elh_employeehr_Financial23" class="employeehr_Financial23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Financial23->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Financial23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Financial23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
	<?php if ($employeehr->sortUrl($employeehr->Extra23) == "") { ?>
		<th data-name="Extra23" class="<?php echo $employeehr->Extra23->headerCellClass() ?>"><div id="elh_employeehr_Extra23" class="employeehr_Extra23"><div class="ew-table-header-caption"><?php echo $employeehr->Extra23->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Extra23" class="<?php echo $employeehr->Extra23->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->Extra23) ?>',2);"><div id="elh_employeehr_Extra23" class="employeehr_Extra23">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->Extra23->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->Extra23->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->Extra23->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
	<?php if ($employeehr->sortUrl($employeehr->WorkNature) == "") { ?>
		<th data-name="WorkNature" class="<?php echo $employeehr->WorkNature->headerCellClass() ?>"><div id="elh_employeehr_WorkNature" class="employeehr_WorkNature"><div class="ew-table-header-caption"><?php echo $employeehr->WorkNature->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="WorkNature" class="<?php echo $employeehr->WorkNature->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $employeehr->SortUrl($employeehr->WorkNature) ?>',2);"><div id="elh_employeehr_WorkNature" class="employeehr_WorkNature">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $employeehr->WorkNature->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($employeehr->WorkNature->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($employeehr->WorkNature->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$employeehr_list->ListOptions->render("body", "left", $employeehr_list->RowCnt);
?>
	<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
		<td data-name="EmployeeID"<?php echo $employeehr->EmployeeID->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_EmployeeID" class="employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<?php echo $employeehr->EmployeeID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
		<td data-name="JobTitle"<?php echo $employeehr->JobTitle->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_JobTitle" class="employeehr_JobTitle">
<span<?php echo $employeehr->JobTitle->viewAttributes() ?>>
<?php echo $employeehr->JobTitle->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->Department->Visible) { // Department ?>
		<td data-name="Department"<?php echo $employeehr->Department->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_Department" class="employeehr_Department">
<span<?php echo $employeehr->Department->viewAttributes() ?>>
<?php echo $employeehr->Department->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
		<td data-name="BranchID"<?php echo $employeehr->BranchID->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_BranchID" class="employeehr_BranchID">
<span<?php echo $employeehr->BranchID->viewAttributes() ?>>
<?php echo $employeehr->BranchID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
		<td data-name="LawFirmID"<?php echo $employeehr->LawFirmID->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_LawFirmID" class="employeehr_LawFirmID">
<span<?php echo $employeehr->LawFirmID->viewAttributes() ?>>
<?php echo $employeehr->LawFirmID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
		<td data-name="HireDate"<?php echo $employeehr->HireDate->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_HireDate" class="employeehr_HireDate">
<span<?php echo $employeehr->HireDate->viewAttributes() ?>>
<?php echo $employeehr->HireDate->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
		<td data-name="EndOfServiceDate"<?php echo $employeehr->EndOfServiceDate->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_EndOfServiceDate" class="employeehr_EndOfServiceDate">
<span<?php echo $employeehr->EndOfServiceDate->viewAttributes() ?>>
<?php echo $employeehr->EndOfServiceDate->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
		<td data-name="SocialSecurity23"<?php echo $employeehr->SocialSecurity23->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_SocialSecurity23" class="employeehr_SocialSecurity23">
<span<?php echo $employeehr->SocialSecurity23->viewAttributes() ?>>
<?php echo $employeehr->SocialSecurity23->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
		<td data-name="Financial23"<?php echo $employeehr->Financial23->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_Financial23" class="employeehr_Financial23">
<span<?php echo $employeehr->Financial23->viewAttributes() ?>>
<?php echo $employeehr->Financial23->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
		<td data-name="Extra23"<?php echo $employeehr->Extra23->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_Extra23" class="employeehr_Extra23">
<span<?php echo $employeehr->Extra23->viewAttributes() ?>>
<?php echo $employeehr->Extra23->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
		<td data-name="WorkNature"<?php echo $employeehr->WorkNature->cellAttributes() ?>>
<span id="el<?php echo $employeehr_list->RowCnt ?>_employeehr_WorkNature" class="employeehr_WorkNature">
<span<?php echo $employeehr->WorkNature->viewAttributes() ?>>
<?php echo $employeehr->WorkNature->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

// Close recordset
if ($employeehr_list->Recordset)
	$employeehr_list->Recordset->Close();
?>
<?php if (!$employeehr->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$employeehr->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeehr_list->Pager)) $employeehr_list->Pager = new PrevNextPager($employeehr_list->StartRec, $employeehr_list->DisplayRecs, $employeehr_list->TotalRecs, $employeehr_list->AutoHidePager) ?>
<?php if ($employeehr_list->Pager->RecordCount > 0 && $employeehr_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 ($employeehr_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeehr_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeehr_list->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($employeehr_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $employeehr_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $employeehr_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $employeehr_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($employeehr_list->TotalRecs > 0 && (!$employeehr_list->AutoHidePageSizeSelector || $employeehr_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="employeehr">
<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 ($employeehr_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($employeehr_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($employeehr_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($employeehr_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($employeehr_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($employeehr_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($employeehr_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($employeehr_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($employeehr_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($employeehr->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $employeehr_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($employeehr_list->TotalRecs == 0 && !$employeehr->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $employeehr_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$employeehr_list->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$employeehr->isExport()) { ?>
<script>

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

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