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

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

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

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

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

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

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

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

// Form object for search
</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 $employeesaccess_view->ExportOptions->render("body") ?>
<?php $employeesaccess_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $employeesaccess_view->showPageHeader(); ?>
<?php
$employeesaccess_view->showMessage();
?>
<?php if (!$employeesaccess_view->IsModal) { ?>
<?php if (!$employeesaccess->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($employeesaccess_view->Pager)) $employeesaccess_view->Pager = new PrevNextPager($employeesaccess_view->StartRec, $employeesaccess_view->DisplayRecs, $employeesaccess_view->TotalRecs, $employeesaccess_view->AutoHidePager) ?>
<?php if ($employeesaccess_view->Pager->RecordCount > 0 && $employeesaccess_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 ($employeesaccess_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 ($employeesaccess_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 $employeesaccess_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeesaccess_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 ($employeesaccess_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 $employeesaccess_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="femployeesaccessview" id="femployeesaccessview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeesaccess_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeesaccess_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeesaccess">
<input type="hidden" name="modal" value="<?php echo (int)$employeesaccess_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($employeesaccess->EmployeeID->Visible) { // EmployeeID ?>
	<tr id="r_EmployeeID">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_EmployeeID"><?php echo $employeesaccess->EmployeeID->caption() ?></span></td>
		<td data-name="EmployeeID"<?php echo $employeesaccess->EmployeeID->cellAttributes() ?>>
<span id="el_employeesaccess_EmployeeID">
<span<?php echo $employeesaccess->EmployeeID->viewAttributes() ?>>
<?php echo $employeesaccess->EmployeeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->Username->Visible) { // Username ?>
	<tr id="r_Username">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_Username"><?php echo $employeesaccess->Username->caption() ?></span></td>
		<td data-name="Username"<?php echo $employeesaccess->Username->cellAttributes() ?>>
<span id="el_employeesaccess_Username">
<span<?php echo $employeesaccess->Username->viewAttributes() ?>>
<?php echo $employeesaccess->Username->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->Password->Visible) { // Password ?>
	<tr id="r_Password">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_Password"><?php echo $employeesaccess->Password->caption() ?></span></td>
		<td data-name="Password"<?php echo $employeesaccess->Password->cellAttributes() ?>>
<span id="el_employeesaccess_Password">
<span<?php echo $employeesaccess->Password->viewAttributes() ?>>
<?php echo $employeesaccess->Password->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->EmployeeTypeID->Visible) { // EmployeeTypeID ?>
	<tr id="r_EmployeeTypeID">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_EmployeeTypeID"><?php echo $employeesaccess->EmployeeTypeID->caption() ?></span></td>
		<td data-name="EmployeeTypeID"<?php echo $employeesaccess->EmployeeTypeID->cellAttributes() ?>>
<span id="el_employeesaccess_EmployeeTypeID">
<span<?php echo $employeesaccess->EmployeeTypeID->viewAttributes() ?>>
<?php echo $employeesaccess->EmployeeTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->TitleID->Visible) { // TitleID ?>
	<tr id="r_TitleID">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_TitleID"><?php echo $employeesaccess->TitleID->caption() ?></span></td>
		<td data-name="TitleID"<?php echo $employeesaccess->TitleID->cellAttributes() ?>>
<span id="el_employeesaccess_TitleID">
<span<?php echo $employeesaccess->TitleID->viewAttributes() ?>>
<?php echo $employeesaccess->TitleID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->FirstName->Visible) { // FirstName ?>
	<tr id="r_FirstName">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_FirstName"><?php echo $employeesaccess->FirstName->caption() ?></span></td>
		<td data-name="FirstName"<?php echo $employeesaccess->FirstName->cellAttributes() ?>>
<span id="el_employeesaccess_FirstName">
<span<?php echo $employeesaccess->FirstName->viewAttributes() ?>>
<?php echo $employeesaccess->FirstName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->MiddleName->Visible) { // MiddleName ?>
	<tr id="r_MiddleName">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_MiddleName"><?php echo $employeesaccess->MiddleName->caption() ?></span></td>
		<td data-name="MiddleName"<?php echo $employeesaccess->MiddleName->cellAttributes() ?>>
<span id="el_employeesaccess_MiddleName">
<span<?php echo $employeesaccess->MiddleName->viewAttributes() ?>>
<?php echo $employeesaccess->MiddleName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->LastName->Visible) { // LastName ?>
	<tr id="r_LastName">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_LastName"><?php echo $employeesaccess->LastName->caption() ?></span></td>
		<td data-name="LastName"<?php echo $employeesaccess->LastName->cellAttributes() ?>>
<span id="el_employeesaccess_LastName">
<span<?php echo $employeesaccess->LastName->viewAttributes() ?>>
<?php echo $employeesaccess->LastName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->_Email->Visible) { // Email ?>
	<tr id="r__Email">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess__Email"><?php echo $employeesaccess->_Email->caption() ?></span></td>
		<td data-name="_Email"<?php echo $employeesaccess->_Email->cellAttributes() ?>>
<span id="el_employeesaccess__Email">
<span<?php echo $employeesaccess->_Email->viewAttributes() ?>>
<?php echo $employeesaccess->_Email->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->ReportsTo->Visible) { // ReportsTo ?>
	<tr id="r_ReportsTo">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_ReportsTo"><?php echo $employeesaccess->ReportsTo->caption() ?></span></td>
		<td data-name="ReportsTo"<?php echo $employeesaccess->ReportsTo->cellAttributes() ?>>
<span id="el_employeesaccess_ReportsTo">
<span<?php echo $employeesaccess->ReportsTo->viewAttributes() ?>>
<?php echo $employeesaccess->ReportsTo->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->UserLevel->Visible) { // UserLevel ?>
	<tr id="r_UserLevel">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_UserLevel"><?php echo $employeesaccess->UserLevel->caption() ?></span></td>
		<td data-name="UserLevel"<?php echo $employeesaccess->UserLevel->cellAttributes() ?>>
<span id="el_employeesaccess_UserLevel">
<span<?php echo $employeesaccess->UserLevel->viewAttributes() ?>>
<?php echo $employeesaccess->UserLevel->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->Type->Visible) { // Type ?>
	<tr id="r_Type">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_Type"><?php echo $employeesaccess->Type->caption() ?></span></td>
		<td data-name="Type"<?php echo $employeesaccess->Type->cellAttributes() ?>>
<span id="el_employeesaccess_Type">
<span<?php echo $employeesaccess->Type->viewAttributes() ?>>
<?php echo $employeesaccess->Type->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
	<tr id="r_Locked">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_Locked"><?php echo $employeesaccess->Locked->caption() ?></span></td>
		<td data-name="Locked"<?php echo $employeesaccess->Locked->cellAttributes() ?>>
<span id="el_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>
	</tr>
<?php } ?>
<?php if ($employeesaccess->Profile->Visible) { // Profile ?>
	<tr id="r_Profile">
		<td class="<?php echo $employeesaccess_view->TableLeftColumnClass ?>"><span id="elh_employeesaccess_Profile"><?php echo $employeesaccess->Profile->caption() ?></span></td>
		<td data-name="Profile"<?php echo $employeesaccess->Profile->cellAttributes() ?>>
<span id="el_employeesaccess_Profile">
<span<?php echo $employeesaccess->Profile->viewAttributes() ?>>
<?php echo $employeesaccess->Profile->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$employeesaccess_view->IsModal) { ?>
<?php if (!$employeesaccess->isExport()) { ?>
<?php if (!isset($employeesaccess_view->Pager)) $employeesaccess_view->Pager = new PrevNextPager($employeesaccess_view->StartRec, $employeesaccess_view->DisplayRecs, $employeesaccess_view->TotalRecs, $employeesaccess_view->AutoHidePager) ?>
<?php if ($employeesaccess_view->Pager->RecordCount > 0 && $employeesaccess_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 ($employeesaccess_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 ($employeesaccess_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 $employeesaccess_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($employeesaccess_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 ($employeesaccess_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $employeesaccess_view->pageUrl() ?>start=<?php echo $employeesaccess_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 $employeesaccess_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$employeesaccess_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$employeesaccess->isExport()) { ?>
<script>

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

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