<?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_view = new employeehr_view();

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

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

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

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

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

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

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

// Form object for search
</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 $employeehr_view->ExportOptions->render("body") ?>
<?php $employeehr_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $employeehr_view->showPageHeader(); ?>
<?php
$employeehr_view->showMessage();
?>
<?php if (!$employeehr_view->IsModal) { ?>
<?php if (!$employeehr->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeehr_view->Pager)) $employeehr_view->Pager = new PrevNextPager($employeehr_view->StartRec, $employeehr_view->DisplayRecs, $employeehr_view->TotalRecs, $employeehr_view->AutoHidePager) ?>
<?php if ($employeehr_view->Pager->RecordCount > 0 && $employeehr_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 ($employeehr_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeehr_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="femployeehrview" id="femployeehrview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeehr_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeehr_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeehr">
<input type="hidden" name="modal" value="<?php echo (int)$employeehr_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($employeehr->EmployeeHrID->Visible) { // EmployeeHrID ?>
	<tr id="r_EmployeeHrID">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_EmployeeHrID"><?php echo $employeehr->EmployeeHrID->caption() ?></span></td>
		<td data-name="EmployeeHrID"<?php echo $employeehr->EmployeeHrID->cellAttributes() ?>>
<span id="el_employeehr_EmployeeHrID">
<span<?php echo $employeehr->EmployeeHrID->viewAttributes() ?>>
<?php echo $employeehr->EmployeeHrID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->EmployeeID->Visible) { // EmployeeID ?>
	<tr id="r_EmployeeID">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_EmployeeID"><?php echo $employeehr->EmployeeID->caption() ?></span></td>
		<td data-name="EmployeeID"<?php echo $employeehr->EmployeeID->cellAttributes() ?>>
<span id="el_employeehr_EmployeeID">
<span<?php echo $employeehr->EmployeeID->viewAttributes() ?>>
<?php echo $employeehr->EmployeeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->JobTitle->Visible) { // JobTitle ?>
	<tr id="r_JobTitle">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_JobTitle"><?php echo $employeehr->JobTitle->caption() ?></span></td>
		<td data-name="JobTitle"<?php echo $employeehr->JobTitle->cellAttributes() ?>>
<span id="el_employeehr_JobTitle">
<span<?php echo $employeehr->JobTitle->viewAttributes() ?>>
<?php echo $employeehr->JobTitle->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->Department->Visible) { // Department ?>
	<tr id="r_Department">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_Department"><?php echo $employeehr->Department->caption() ?></span></td>
		<td data-name="Department"<?php echo $employeehr->Department->cellAttributes() ?>>
<span id="el_employeehr_Department">
<span<?php echo $employeehr->Department->viewAttributes() ?>>
<?php echo $employeehr->Department->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->BranchID->Visible) { // BranchID ?>
	<tr id="r_BranchID">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_BranchID"><?php echo $employeehr->BranchID->caption() ?></span></td>
		<td data-name="BranchID"<?php echo $employeehr->BranchID->cellAttributes() ?>>
<span id="el_employeehr_BranchID">
<span<?php echo $employeehr->BranchID->viewAttributes() ?>>
<?php echo $employeehr->BranchID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->LawFirmID->Visible) { // LawFirmID ?>
	<tr id="r_LawFirmID">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_LawFirmID"><?php echo $employeehr->LawFirmID->caption() ?></span></td>
		<td data-name="LawFirmID"<?php echo $employeehr->LawFirmID->cellAttributes() ?>>
<span id="el_employeehr_LawFirmID">
<span<?php echo $employeehr->LawFirmID->viewAttributes() ?>>
<?php echo $employeehr->LawFirmID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_Notes"><?php echo $employeehr->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $employeehr->Notes->cellAttributes() ?>>
<span id="el_employeehr_Notes">
<span<?php echo $employeehr->Notes->viewAttributes() ?>>
<?php echo $employeehr->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->HireDate->Visible) { // HireDate ?>
	<tr id="r_HireDate">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_HireDate"><?php echo $employeehr->HireDate->caption() ?></span></td>
		<td data-name="HireDate"<?php echo $employeehr->HireDate->cellAttributes() ?>>
<span id="el_employeehr_HireDate">
<span<?php echo $employeehr->HireDate->viewAttributes() ?>>
<?php echo $employeehr->HireDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->EndOfServiceDate->Visible) { // EndOfServiceDate ?>
	<tr id="r_EndOfServiceDate">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_EndOfServiceDate"><?php echo $employeehr->EndOfServiceDate->caption() ?></span></td>
		<td data-name="EndOfServiceDate"<?php echo $employeehr->EndOfServiceDate->cellAttributes() ?>>
<span id="el_employeehr_EndOfServiceDate">
<span<?php echo $employeehr->EndOfServiceDate->viewAttributes() ?>>
<?php echo $employeehr->EndOfServiceDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->SocialSecurity23->Visible) { // SocialSecurity# ?>
	<tr id="r_SocialSecurity23">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_SocialSecurity23"><?php echo $employeehr->SocialSecurity23->caption() ?></span></td>
		<td data-name="SocialSecurity23"<?php echo $employeehr->SocialSecurity23->cellAttributes() ?>>
<span id="el_employeehr_SocialSecurity23">
<span<?php echo $employeehr->SocialSecurity23->viewAttributes() ?>>
<?php echo $employeehr->SocialSecurity23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->Financial23->Visible) { // Financial# ?>
	<tr id="r_Financial23">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_Financial23"><?php echo $employeehr->Financial23->caption() ?></span></td>
		<td data-name="Financial23"<?php echo $employeehr->Financial23->cellAttributes() ?>>
<span id="el_employeehr_Financial23">
<span<?php echo $employeehr->Financial23->viewAttributes() ?>>
<?php echo $employeehr->Financial23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->Extra23->Visible) { // Extra# ?>
	<tr id="r_Extra23">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_Extra23"><?php echo $employeehr->Extra23->caption() ?></span></td>
		<td data-name="Extra23"<?php echo $employeehr->Extra23->cellAttributes() ?>>
<span id="el_employeehr_Extra23">
<span<?php echo $employeehr->Extra23->viewAttributes() ?>>
<?php echo $employeehr->Extra23->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeehr->WorkNature->Visible) { // WorkNature ?>
	<tr id="r_WorkNature">
		<td class="<?php echo $employeehr_view->TableLeftColumnClass ?>"><span id="elh_employeehr_WorkNature"><?php echo $employeehr->WorkNature->caption() ?></span></td>
		<td data-name="WorkNature"<?php echo $employeehr->WorkNature->cellAttributes() ?>>
<span id="el_employeehr_WorkNature">
<span<?php echo $employeehr->WorkNature->viewAttributes() ?>>
<?php echo $employeehr->WorkNature->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$employeehr_view->IsModal) { ?>
<?php if (!$employeehr->isExport()) { ?>
<?php if (!isset($employeehr_view->Pager)) $employeehr_view->Pager = new PrevNextPager($employeehr_view->StartRec, $employeehr_view->DisplayRecs, $employeehr_view->TotalRecs, $employeehr_view->AutoHidePager) ?>
<?php if ($employeehr_view->Pager->RecordCount > 0 && $employeehr_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 ($employeehr_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeehr_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 ($employeehr_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeehr_view->pageUrl() ?>start=<?php echo $employeehr_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 $employeehr_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$employeehr_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$employeehr->isExport()) { ?>
<script>

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

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