<?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_list = new users_access_list();

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

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

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

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

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

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

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

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

// Validate function for search
fusers_accesslistsrch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";

	// Fire Form_CustomValidate event
	if (!this.Form_CustomValidate(fobj))
		return false;
	return true;
}

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

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

// Filters
fusers_accesslistsrch.filterList = <?php echo $users_access_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 (!$users_access->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($users_access_list->TotalRecs > 0 && $users_access_list->ExportOptions->visible()) { ?>
<?php $users_access_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($users_access_list->ImportOptions->visible()) { ?>
<?php $users_access_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($users_access_list->SearchOptions->visible()) { ?>
<?php $users_access_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($users_access_list->FilterOptions->visible()) { ?>
<?php $users_access_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$users_access_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$users_access->isExport() && !$users_access->CurrentAction) { ?>
<form name="fusers_accesslistsrch" id="fusers_accesslistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($users_access_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="fusers_accesslistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="users_access">
	<div class="ew-basic-search">
<?php
if ($SearchError == "")
	$users_access_list->LoadAdvancedSearch(); // Load advanced search

// Render for search
$users_access->RowType = ROWTYPE_SEARCH;

// Render row
$users_access->resetAttributes();
$users_access_list->renderRow();
?>
<div id="xsr_1" class="ew-row d-sm-flex">
<?php if ($users_access->insert->Visible) { // insert ?>
	<div id="xsc_insert" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $users_access->insert->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_insert" id="z_insert" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($users_access->insert->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="users_access" data-field="x_insert" name="x_insert[]" id="x_insert[]" value="1"<?php echo $selwrk ?><?php echo $users_access->insert->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_2" class="ew-row d-sm-flex">
<?php if ($users_access->update->Visible) { // update ?>
	<div id="xsc_update" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $users_access->update->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_update" id="z_update" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($users_access->update->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="users_access" data-field="x_update" name="x_update[]" id="x_update[]" value="1"<?php echo $selwrk ?><?php echo $users_access->update->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_3" class="ew-row d-sm-flex">
<?php if ($users_access->delete->Visible) { // delete ?>
	<div id="xsc_delete" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $users_access->delete->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_delete" id="z_delete" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($users_access->delete->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="users_access" data-field="x_delete" name="x_delete[]" id="x_delete[]" value="1"<?php echo $selwrk ?><?php echo $users_access->delete->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_4" class="ew-row d-sm-flex">
<?php if ($users_access->view->Visible) { // view ?>
	<div id="xsc_view" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $users_access->view->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_view" id="z_view" value="="></span>
		<span class="ew-search-field">
<?php
$selwrk = (ConvertToBool($users_access->view->AdvancedSearch->SearchValue)) ? " checked" : "";
?>
<input type="checkbox" data-table="users_access" data-field="x_view" name="x_view[]" id="x_view[]" value="1"<?php echo $selwrk ?><?php echo $users_access->view->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_5" 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($users_access_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($users_access_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 $users_access_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($users_access_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 ($users_access_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 ($users_access_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 ($users_access_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 $users_access_list->showPageHeader(); ?>
<?php
$users_access_list->showMessage();
?>
<?php if ($users_access_list->TotalRecs > 0 || $users_access->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($users_access_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> users_access">
<?php if (!$users_access->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$users_access->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($users_access_list->Pager)) $users_access_list->Pager = new PrevNextPager($users_access_list->StartRec, $users_access_list->DisplayRecs, $users_access_list->TotalRecs, $users_access_list->AutoHidePager) ?>
<?php if ($users_access_list->Pager->RecordCount > 0 && $users_access_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 ($users_access_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $users_access_list->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $users_access_list->pageUrl() ?>start=<?php echo $users_access_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 $users_access_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($users_access_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $users_access_list->pageUrl() ?>start=<?php echo $users_access_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 ($users_access_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $users_access_list->pageUrl() ?>start=<?php echo $users_access_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 $users_access_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($users_access_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $users_access_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $users_access_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $users_access_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($users_access_list->TotalRecs > 0 && (!$users_access_list->AutoHidePageSizeSelector || $users_access_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="users_access">
<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 ($users_access_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($users_access_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($users_access_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($users_access_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($users_access_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($users_access_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($users_access_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($users_access_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($users_access_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($users_access->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $users_access_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fusers_accesslist" id="fusers_accesslist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($users_access_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $users_access_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="users_access">
<div id="gmp_users_access" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($users_access_list->TotalRecs > 0 || $users_access->isGridEdit()) { ?>
<table id="tbl_users_accesslist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$users_access_list->ListOptions->render("header", "left");
?>
<?php if ($users_access->usac_id->Visible) { // usac_id ?>
	<?php if ($users_access->sortUrl($users_access->usac_id) == "") { ?>
		<th data-name="usac_id" class="<?php echo $users_access->usac_id->headerCellClass() ?>"><div id="elh_users_access_usac_id" class="users_access_usac_id"><div class="ew-table-header-caption"><?php echo $users_access->usac_id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="usac_id" class="<?php echo $users_access->usac_id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->usac_id) ?>',2);"><div id="elh_users_access_usac_id" class="users_access_usac_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->usac_id->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->usac_id->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->usac_id->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->user_id->Visible) { // user_id ?>
	<?php if ($users_access->sortUrl($users_access->user_id) == "") { ?>
		<th data-name="user_id" class="<?php echo $users_access->user_id->headerCellClass() ?>"><div id="elh_users_access_user_id" class="users_access_user_id"><div class="ew-table-header-caption"><?php echo $users_access->user_id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="user_id" class="<?php echo $users_access->user_id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->user_id) ?>',2);"><div id="elh_users_access_user_id" class="users_access_user_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->user_id->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->user_id->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->user_id->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->insert->Visible) { // insert ?>
	<?php if ($users_access->sortUrl($users_access->insert) == "") { ?>
		<th data-name="insert" class="<?php echo $users_access->insert->headerCellClass() ?>"><div id="elh_users_access_insert" class="users_access_insert"><div class="ew-table-header-caption"><?php echo $users_access->insert->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="insert" class="<?php echo $users_access->insert->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->insert) ?>',2);"><div id="elh_users_access_insert" class="users_access_insert">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->insert->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->insert->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->insert->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->update->Visible) { // update ?>
	<?php if ($users_access->sortUrl($users_access->update) == "") { ?>
		<th data-name="update" class="<?php echo $users_access->update->headerCellClass() ?>"><div id="elh_users_access_update" class="users_access_update"><div class="ew-table-header-caption"><?php echo $users_access->update->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="update" class="<?php echo $users_access->update->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->update) ?>',2);"><div id="elh_users_access_update" class="users_access_update">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->update->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->update->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->update->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->delete->Visible) { // delete ?>
	<?php if ($users_access->sortUrl($users_access->delete) == "") { ?>
		<th data-name="delete" class="<?php echo $users_access->delete->headerCellClass() ?>"><div id="elh_users_access_delete" class="users_access_delete"><div class="ew-table-header-caption"><?php echo $users_access->delete->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="delete" class="<?php echo $users_access->delete->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->delete) ?>',2);"><div id="elh_users_access_delete" class="users_access_delete">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->delete->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->delete->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->delete->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->view->Visible) { // view ?>
	<?php if ($users_access->sortUrl($users_access->view) == "") { ?>
		<th data-name="view" class="<?php echo $users_access->view->headerCellClass() ?>"><div id="elh_users_access_view" class="users_access_view"><div class="ew-table-header-caption"><?php echo $users_access->view->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="view" class="<?php echo $users_access->view->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->view) ?>',2);"><div id="elh_users_access_view" class="users_access_view">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->view->caption() ?></span><span class="ew-table-header-sort"><?php if ($users_access->view->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->view->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->campus->Visible) { // campus ?>
	<?php if ($users_access->sortUrl($users_access->campus) == "") { ?>
		<th data-name="campus" class="<?php echo $users_access->campus->headerCellClass() ?>"><div id="elh_users_access_campus" class="users_access_campus"><div class="ew-table-header-caption"><?php echo $users_access->campus->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="campus" class="<?php echo $users_access->campus->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->campus) ?>',2);"><div id="elh_users_access_campus" class="users_access_campus">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->campus->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($users_access->campus->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->campus->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->school->Visible) { // school ?>
	<?php if ($users_access->sortUrl($users_access->school) == "") { ?>
		<th data-name="school" class="<?php echo $users_access->school->headerCellClass() ?>"><div id="elh_users_access_school" class="users_access_school"><div class="ew-table-header-caption"><?php echo $users_access->school->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="school" class="<?php echo $users_access->school->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->school) ?>',2);"><div id="elh_users_access_school" class="users_access_school">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->school->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($users_access->school->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->school->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($users_access->department->Visible) { // department ?>
	<?php if ($users_access->sortUrl($users_access->department) == "") { ?>
		<th data-name="department" class="<?php echo $users_access->department->headerCellClass() ?>"><div id="elh_users_access_department" class="users_access_department"><div class="ew-table-header-caption"><?php echo $users_access->department->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="department" class="<?php echo $users_access->department->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $users_access->SortUrl($users_access->department) ?>',2);"><div id="elh_users_access_department" class="users_access_department">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $users_access->department->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($users_access->department->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($users_access->department->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$users_access_list->ListOptions->render("body", "left", $users_access_list->RowCnt);
?>
	<?php if ($users_access->usac_id->Visible) { // usac_id ?>
		<td data-name="usac_id"<?php echo $users_access->usac_id->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_usac_id" class="users_access_usac_id">
<span<?php echo $users_access->usac_id->viewAttributes() ?>>
<?php echo $users_access->usac_id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($users_access->user_id->Visible) { // user_id ?>
		<td data-name="user_id"<?php echo $users_access->user_id->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_user_id" class="users_access_user_id">
<span<?php echo $users_access->user_id->viewAttributes() ?>>
<?php echo $users_access->user_id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($users_access->insert->Visible) { // insert ?>
		<td data-name="insert"<?php echo $users_access->insert->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_insert" class="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>
	<?php } ?>
	<?php if ($users_access->update->Visible) { // update ?>
		<td data-name="update"<?php echo $users_access->update->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_update" class="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>
	<?php } ?>
	<?php if ($users_access->delete->Visible) { // delete ?>
		<td data-name="delete"<?php echo $users_access->delete->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_delete" class="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>
	<?php } ?>
	<?php if ($users_access->view->Visible) { // view ?>
		<td data-name="view"<?php echo $users_access->view->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_view" class="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>
	<?php } ?>
	<?php if ($users_access->campus->Visible) { // campus ?>
		<td data-name="campus"<?php echo $users_access->campus->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_campus" class="users_access_campus">
<span<?php echo $users_access->campus->viewAttributes() ?>>
<?php echo $users_access->campus->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($users_access->school->Visible) { // school ?>
		<td data-name="school"<?php echo $users_access->school->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_school" class="users_access_school">
<span<?php echo $users_access->school->viewAttributes() ?>>
<?php echo $users_access->school->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($users_access->department->Visible) { // department ?>
		<td data-name="department"<?php echo $users_access->department->cellAttributes() ?>>
<span id="el<?php echo $users_access_list->RowCnt ?>_users_access_department" class="users_access_department">
<span<?php echo $users_access->department->viewAttributes() ?>>
<?php echo $users_access->department->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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