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

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

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

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

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

// Form object
currentPageID = ew.PAGE_ID = "view";
var femployeepersonview = currentForm = new ew.Form("femployeepersonview", "view");

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

// Dynamic selection lists
femployeepersonview.lists["x_EmployeeID"] = <?php echo $employeeperson_view->EmployeeID->Lookup->toClientList() ?>;
femployeepersonview.lists["x_EmployeeID"].options = <?php echo JsonEncode($employeeperson_view->EmployeeID->lookupOptions()) ?>;
femployeepersonview.lists["x_MaritalStatusID"] = <?php echo $employeeperson_view->MaritalStatusID->Lookup->toClientList() ?>;
femployeepersonview.lists["x_MaritalStatusID"].options = <?php echo JsonEncode($employeeperson_view->MaritalStatusID->lookupOptions()) ?>;

// Form object for search
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$employeeperson->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $employeeperson_view->ExportOptions->render("body") ?>
<?php $employeeperson_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $employeeperson_view->showPageHeader(); ?>
<?php
$employeeperson_view->showMessage();
?>
<?php if (!$employeeperson_view->IsModal) { ?>
<?php if (!$employeeperson->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeeperson_view->Pager)) $employeeperson_view->Pager = new PrevNextPager($employeeperson_view->StartRec, $employeeperson_view->DisplayRecs, $employeeperson_view->TotalRecs, $employeeperson_view->AutoHidePager) ?>
<?php if ($employeeperson_view->Pager->RecordCount > 0 && $employeeperson_view->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 ($employeeperson_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 ($employeeperson_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 $employeeperson_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeeperson_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 ($employeeperson_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 $employeeperson_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="femployeepersonview" id="femployeepersonview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeeperson_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeeperson_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeeperson">
<input type="hidden" name="modal" value="<?php echo (int)$employeeperson_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($employeeperson->EmployeePersonID->Visible) { // EmployeePersonID ?>
	<tr id="r_EmployeePersonID">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_EmployeePersonID"><?php echo $employeeperson->EmployeePersonID->caption() ?></span></td>
		<td data-name="EmployeePersonID"<?php echo $employeeperson->EmployeePersonID->cellAttributes() ?>>
<span id="el_employeeperson_EmployeePersonID">
<span<?php echo $employeeperson->EmployeePersonID->viewAttributes() ?>>
<?php echo $employeeperson->EmployeePersonID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->EmployeeID->Visible) { // EmployeeID ?>
	<tr id="r_EmployeeID">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_EmployeeID"><?php echo $employeeperson->EmployeeID->caption() ?></span></td>
		<td data-name="EmployeeID"<?php echo $employeeperson->EmployeeID->cellAttributes() ?>>
<span id="el_employeeperson_EmployeeID">
<span<?php echo $employeeperson->EmployeeID->viewAttributes() ?>>
<?php echo $employeeperson->EmployeeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->MaritalStatusID->Visible) { // MaritalStatusID ?>
	<tr id="r_MaritalStatusID">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_MaritalStatusID"><?php echo $employeeperson->MaritalStatusID->caption() ?></span></td>
		<td data-name="MaritalStatusID"<?php echo $employeeperson->MaritalStatusID->cellAttributes() ?>>
<span id="el_employeeperson_MaritalStatusID">
<span<?php echo $employeeperson->MaritalStatusID->viewAttributes() ?>>
<?php echo $employeeperson->MaritalStatusID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->CivilStatus23->Visible) { // CivilStatus# ?>
	<tr id="r_CivilStatus23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_CivilStatus23"><?php echo $employeeperson->CivilStatus23->caption() ?></span></td>
		<td data-name="CivilStatus23"<?php echo $employeeperson->CivilStatus23->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatus23">
<span<?php echo $employeeperson->CivilStatus23->viewAttributes() ?>>
<?php echo $employeeperson->CivilStatus23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->CivilStatusPlace->Visible) { // CivilStatusPlace ?>
	<tr id="r_CivilStatusPlace">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_CivilStatusPlace"><?php echo $employeeperson->CivilStatusPlace->caption() ?></span></td>
		<td data-name="CivilStatusPlace"<?php echo $employeeperson->CivilStatusPlace->cellAttributes() ?>>
<span id="el_employeeperson_CivilStatusPlace">
<span<?php echo $employeeperson->CivilStatusPlace->viewAttributes() ?>>
<?php echo $employeeperson->CivilStatusPlace->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->IdCard23->Visible) { // IdCard# ?>
	<tr id="r_IdCard23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_IdCard23"><?php echo $employeeperson->IdCard23->caption() ?></span></td>
		<td data-name="IdCard23"<?php echo $employeeperson->IdCard23->cellAttributes() ?>>
<span id="el_employeeperson_IdCard23">
<span<?php echo $employeeperson->IdCard23->viewAttributes() ?>>
<?php echo $employeeperson->IdCard23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->PracticingProfessionLicense23->Visible) { // PracticingProfessionLicense# ?>
	<tr id="r_PracticingProfessionLicense23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_PracticingProfessionLicense23"><?php echo $employeeperson->PracticingProfessionLicense23->caption() ?></span></td>
		<td data-name="PracticingProfessionLicense23"<?php echo $employeeperson->PracticingProfessionLicense23->cellAttributes() ?>>
<span id="el_employeeperson_PracticingProfessionLicense23">
<span<?php echo $employeeperson->PracticingProfessionLicense23->viewAttributes() ?>>
<?php echo $employeeperson->PracticingProfessionLicense23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->NationalId23->Visible) { // NationalId# ?>
	<tr id="r_NationalId23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_NationalId23"><?php echo $employeeperson->NationalId23->caption() ?></span></td>
		<td data-name="NationalId23"<?php echo $employeeperson->NationalId23->cellAttributes() ?>>
<span id="el_employeeperson_NationalId23">
<span<?php echo $employeeperson->NationalId23->viewAttributes() ?>>
<?php echo $employeeperson->NationalId23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->Nationality1->Visible) { // Nationality1 ?>
	<tr id="r_Nationality1">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality1"><?php echo $employeeperson->Nationality1->caption() ?></span></td>
		<td data-name="Nationality1"<?php echo $employeeperson->Nationality1->cellAttributes() ?>>
<span id="el_employeeperson_Nationality1">
<span<?php echo $employeeperson->Nationality1->viewAttributes() ?>>
<?php echo $employeeperson->Nationality1->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->Nationality2->Visible) { // Nationality2 ?>
	<tr id="r_Nationality2">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality2"><?php echo $employeeperson->Nationality2->caption() ?></span></td>
		<td data-name="Nationality2"<?php echo $employeeperson->Nationality2->cellAttributes() ?>>
<span id="el_employeeperson_Nationality2">
<span<?php echo $employeeperson->Nationality2->viewAttributes() ?>>
<?php echo $employeeperson->Nationality2->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->Nationality3->Visible) { // Nationality3 ?>
	<tr id="r_Nationality3">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_Nationality3"><?php echo $employeeperson->Nationality3->caption() ?></span></td>
		<td data-name="Nationality3"<?php echo $employeeperson->Nationality3->cellAttributes() ?>>
<span id="el_employeeperson_Nationality3">
<span<?php echo $employeeperson->Nationality3->viewAttributes() ?>>
<?php echo $employeeperson->Nationality3->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->DriverLicense23->Visible) { // DriverLicense# ?>
	<tr id="r_DriverLicense23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_DriverLicense23"><?php echo $employeeperson->DriverLicense23->caption() ?></span></td>
		<td data-name="DriverLicense23"<?php echo $employeeperson->DriverLicense23->cellAttributes() ?>>
<span id="el_employeeperson_DriverLicense23">
<span<?php echo $employeeperson->DriverLicense23->viewAttributes() ?>>
<?php echo $employeeperson->DriverLicense23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->Extra23->Visible) { // Extra# ?>
	<tr id="r_Extra23">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_Extra23"><?php echo $employeeperson->Extra23->caption() ?></span></td>
		<td data-name="Extra23"<?php echo $employeeperson->Extra23->cellAttributes() ?>>
<span id="el_employeeperson_Extra23">
<span<?php echo $employeeperson->Extra23->viewAttributes() ?>>
<?php echo $employeeperson->Extra23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeeperson->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $employeeperson_view->TableLeftColumnClass ?>"><span id="elh_employeeperson_Notes"><?php echo $employeeperson->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $employeeperson->Notes->cellAttributes() ?>>
<span id="el_employeeperson_Notes">
<span<?php echo $employeeperson->Notes->viewAttributes() ?>>
<?php echo $employeeperson->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$employeeperson_view->IsModal) { ?>
<?php if (!$employeeperson->isExport()) { ?>
<?php if (!isset($employeeperson_view->Pager)) $employeeperson_view->Pager = new PrevNextPager($employeeperson_view->StartRec, $employeeperson_view->DisplayRecs, $employeeperson_view->TotalRecs, $employeeperson_view->AutoHidePager) ?>
<?php if ($employeeperson_view->Pager->RecordCount > 0 && $employeeperson_view->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 ($employeeperson_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 ($employeeperson_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 $employeeperson_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeeperson_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 ($employeeperson_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeeperson_view->pageUrl() ?>start=<?php echo $employeeperson_view->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 $employeeperson_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$employeeperson_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$employeeperson->isExport()) { ?>
<script>

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

</script>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$employeeperson_view->terminate();
?>
