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

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

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

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

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

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

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

// Dynamic selection lists
fusers_accessview.lists["x_insert[]"] = <?php echo $users_access_view->insert->Lookup->toClientList() ?>;
fusers_accessview.lists["x_insert[]"].options = <?php echo JsonEncode($users_access_view->insert->options(FALSE, TRUE)) ?>;
fusers_accessview.lists["x_update[]"] = <?php echo $users_access_view->update->Lookup->toClientList() ?>;
fusers_accessview.lists["x_update[]"].options = <?php echo JsonEncode($users_access_view->update->options(FALSE, TRUE)) ?>;
fusers_accessview.lists["x_delete[]"] = <?php echo $users_access_view->delete->Lookup->toClientList() ?>;
fusers_accessview.lists["x_delete[]"].options = <?php echo JsonEncode($users_access_view->delete->options(FALSE, TRUE)) ?>;
fusers_accessview.lists["x_view[]"] = <?php echo $users_access_view->view->Lookup->toClientList() ?>;
fusers_accessview.lists["x_view[]"].options = <?php echo JsonEncode($users_access_view->view->options(FALSE, TRUE)) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$users_access->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $users_access_view->ExportOptions->render("body") ?>
<?php $users_access_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $users_access_view->showPageHeader(); ?>
<?php
$users_access_view->showMessage();
?>
<?php if (!$users_access_view->IsModal) { ?>
<?php if (!$users_access->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($users_access_view->Pager)) $users_access_view->Pager = new PrevNextPager($users_access_view->StartRec, $users_access_view->DisplayRecs, $users_access_view->TotalRecs, $users_access_view->AutoHidePager) ?>
<?php if ($users_access_view->Pager->RecordCount > 0 && $users_access_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 ($users_access_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 $users_access_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($users_access_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 $users_access_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fusers_accessview" id="fusers_accessview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($users_access_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $users_access_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="users_access">
<input type="hidden" name="modal" value="<?php echo (int)$users_access_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($users_access->usac_id->Visible) { // usac_id ?>
	<tr id="r_usac_id">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_usac_id"><?php echo $users_access->usac_id->caption() ?></span></td>
		<td data-name="usac_id"<?php echo $users_access->usac_id->cellAttributes() ?>>
<span id="el_users_access_usac_id">
<span<?php echo $users_access->usac_id->viewAttributes() ?>>
<?php echo $users_access->usac_id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->user_id->Visible) { // user_id ?>
	<tr id="r_user_id">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_user_id"><?php echo $users_access->user_id->caption() ?></span></td>
		<td data-name="user_id"<?php echo $users_access->user_id->cellAttributes() ?>>
<span id="el_users_access_user_id">
<span<?php echo $users_access->user_id->viewAttributes() ?>>
<?php echo $users_access->user_id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->insert->Visible) { // insert ?>
	<tr id="r_insert">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_insert"><?php echo $users_access->insert->caption() ?></span></td>
		<td data-name="insert"<?php echo $users_access->insert->cellAttributes() ?>>
<span id="el_users_access_insert">
<span<?php echo $users_access->insert->viewAttributes() ?>>
<?php if (ConvertToBool($users_access->insert->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $users_access->insert->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $users_access->insert->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->update->Visible) { // update ?>
	<tr id="r_update">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_update"><?php echo $users_access->update->caption() ?></span></td>
		<td data-name="update"<?php echo $users_access->update->cellAttributes() ?>>
<span id="el_users_access_update">
<span<?php echo $users_access->update->viewAttributes() ?>>
<?php if (ConvertToBool($users_access->update->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $users_access->update->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $users_access->update->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->delete->Visible) { // delete ?>
	<tr id="r_delete">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_delete"><?php echo $users_access->delete->caption() ?></span></td>
		<td data-name="delete"<?php echo $users_access->delete->cellAttributes() ?>>
<span id="el_users_access_delete">
<span<?php echo $users_access->delete->viewAttributes() ?>>
<?php if (ConvertToBool($users_access->delete->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $users_access->delete->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $users_access->delete->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->view->Visible) { // view ?>
	<tr id="r_view">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_view"><?php echo $users_access->view->caption() ?></span></td>
		<td data-name="view"<?php echo $users_access->view->cellAttributes() ?>>
<span id="el_users_access_view">
<span<?php echo $users_access->view->viewAttributes() ?>>
<?php if (ConvertToBool($users_access->view->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $users_access->view->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $users_access->view->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->campus->Visible) { // campus ?>
	<tr id="r_campus">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_campus"><?php echo $users_access->campus->caption() ?></span></td>
		<td data-name="campus"<?php echo $users_access->campus->cellAttributes() ?>>
<span id="el_users_access_campus">
<span<?php echo $users_access->campus->viewAttributes() ?>>
<?php echo $users_access->campus->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->school->Visible) { // school ?>
	<tr id="r_school">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_school"><?php echo $users_access->school->caption() ?></span></td>
		<td data-name="school"<?php echo $users_access->school->cellAttributes() ?>>
<span id="el_users_access_school">
<span<?php echo $users_access->school->viewAttributes() ?>>
<?php echo $users_access->school->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($users_access->department->Visible) { // department ?>
	<tr id="r_department">
		<td class="<?php echo $users_access_view->TableLeftColumnClass ?>"><span id="elh_users_access_department"><?php echo $users_access->department->caption() ?></span></td>
		<td data-name="department"<?php echo $users_access->department->cellAttributes() ?>>
<span id="el_users_access_department">
<span<?php echo $users_access->department->viewAttributes() ?>>
<?php echo $users_access->department->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$users_access_view->IsModal) { ?>
<?php if (!$users_access->isExport()) { ?>
<?php if (!isset($users_access_view->Pager)) $users_access_view->Pager = new PrevNextPager($users_access_view->StartRec, $users_access_view->DisplayRecs, $users_access_view->TotalRecs, $users_access_view->AutoHidePager) ?>
<?php if ($users_access_view->Pager->RecordCount > 0 && $users_access_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 ($users_access_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 $users_access_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($users_access_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $users_access_view->pageUrl() ?>start=<?php echo $users_access_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 $users_access_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$users_access_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$users_access->isExport()) { ?>
<script>

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

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