<?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_edit = new users_access_edit();

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

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

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

// Page Rendering event
$users_access_edit->Page_Render();
?>
<?php include_once "header.php" ?>
<script>

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

// Validate form
fusers_accessedit.validate = function() {
	if (!this.validateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
	if ($fobj.find("#confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		<?php if ($users_access_edit->usac_id->Required) { ?>
			elm = this.getElements("x" + infix + "_usac_id");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->usac_id->caption(), $users_access->usac_id->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->user_id->Required) { ?>
			elm = this.getElements("x" + infix + "_user_id");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->user_id->caption(), $users_access->user_id->RequiredErrorMessage)) ?>");
		<?php } ?>
			elm = this.getElements("x" + infix + "_user_id");
			if (elm && !ew.checkInteger(elm.value))
				return this.onError(elm, "<?php echo JsEncode($users_access->user_id->errorMessage()) ?>");
		<?php if ($users_access_edit->insert->Required) { ?>
			elm = this.getElements("x" + infix + "_insert[]");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->insert->caption(), $users_access->insert->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->update->Required) { ?>
			elm = this.getElements("x" + infix + "_update[]");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->update->caption(), $users_access->update->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->delete->Required) { ?>
			elm = this.getElements("x" + infix + "_delete[]");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->delete->caption(), $users_access->delete->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->view->Required) { ?>
			elm = this.getElements("x" + infix + "_view[]");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->view->caption(), $users_access->view->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->campus->Required) { ?>
			elm = this.getElements("x" + infix + "_campus");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->campus->caption(), $users_access->campus->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->school->Required) { ?>
			elm = this.getElements("x" + infix + "_school");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->school->caption(), $users_access->school->RequiredErrorMessage)) ?>");
		<?php } ?>
		<?php if ($users_access_edit->department->Required) { ?>
			elm = this.getElements("x" + infix + "_department");
			if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
				return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $users_access->department->caption(), $users_access->department->RequiredErrorMessage)) ?>");
		<?php } ?>

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

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ew.forms[val])
			if (!ew.forms[val].validate())
				return false;
	}
	return true;
}

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

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

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

// Write your client script here, no need to add script tags.
</script>
<?php $users_access_edit->showPageHeader(); ?>
<?php
$users_access_edit->showMessage();
?>
<?php if (!$users_access_edit->IsModal) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($users_access_edit->Pager)) $users_access_edit->Pager = new PrevNextPager($users_access_edit->StartRec, $users_access_edit->DisplayRecs, $users_access_edit->TotalRecs, $users_access_edit->AutoHidePager) ?>
<?php if ($users_access_edit->Pager->RecordCount > 0 && $users_access_edit->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_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($users_access_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<form name="fusers_accessedit" id="fusers_accessedit" class="<?php echo $users_access_edit->FormClassName ?>" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($users_access_edit->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $users_access_edit->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="users_access">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$users_access_edit->IsModal ?>">
<?php if (!$users_access_edit->IsMobileOrModal) { ?>
<div class="ew-desktop"><!-- desktop -->
<?php } ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
<div class="ew-edit-div"><!-- page* -->
<?php } else { ?>
<table id="tbl_users_accessedit" class="table table-striped table-sm ew-desktop-table"><!-- table* -->
<?php } ?>
<?php if ($users_access->usac_id->Visible) { // usac_id ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_usac_id" class="form-group row">
		<label id="elh_users_access_usac_id" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->usac_id->caption() ?><?php echo ($users_access->usac_id->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->usac_id->cellAttributes() ?>>
<span id="el_users_access_usac_id">
<span<?php echo $users_access->usac_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($users_access->usac_id->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="users_access" data-field="x_usac_id" name="x_usac_id" id="x_usac_id" value="<?php echo HtmlEncode($users_access->usac_id->CurrentValue) ?>">
<?php echo $users_access->usac_id->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_usac_id">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_usac_id"><?php echo $users_access->usac_id->caption() ?><?php echo ($users_access->usac_id->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->usac_id->cellAttributes() ?>>
<span id="el_users_access_usac_id">
<span<?php echo $users_access->usac_id->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?php echo RemoveHtml($users_access->usac_id->EditValue) ?>"></span>
</span>
<input type="hidden" data-table="users_access" data-field="x_usac_id" name="x_usac_id" id="x_usac_id" value="<?php echo HtmlEncode($users_access->usac_id->CurrentValue) ?>">
<?php echo $users_access->usac_id->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->user_id->Visible) { // user_id ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_user_id" class="form-group row">
		<label id="elh_users_access_user_id" for="x_user_id" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->user_id->caption() ?><?php echo ($users_access->user_id->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->user_id->cellAttributes() ?>>
<span id="el_users_access_user_id">
<input type="text" data-table="users_access" data-field="x_user_id" name="x_user_id" id="x_user_id" size="30" placeholder="<?php echo HtmlEncode($users_access->user_id->getPlaceHolder()) ?>" value="<?php echo $users_access->user_id->EditValue ?>"<?php echo $users_access->user_id->editAttributes() ?>>
</span>
<?php echo $users_access->user_id->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_user_id">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_user_id"><?php echo $users_access->user_id->caption() ?><?php echo ($users_access->user_id->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->user_id->cellAttributes() ?>>
<span id="el_users_access_user_id">
<input type="text" data-table="users_access" data-field="x_user_id" name="x_user_id" id="x_user_id" size="30" placeholder="<?php echo HtmlEncode($users_access->user_id->getPlaceHolder()) ?>" value="<?php echo $users_access->user_id->EditValue ?>"<?php echo $users_access->user_id->editAttributes() ?>>
</span>
<?php echo $users_access->user_id->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->insert->Visible) { // insert ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_insert" class="form-group row">
		<label id="elh_users_access_insert" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->insert->caption() ?><?php echo ($users_access->insert->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->insert->cellAttributes() ?>>
<span id="el_users_access_insert">
<?php
$selwrk = (ConvertToBool($users_access->insert->CurrentValue)) ? " 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>
<?php echo $users_access->insert->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_insert">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_insert"><?php echo $users_access->insert->caption() ?><?php echo ($users_access->insert->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->insert->cellAttributes() ?>>
<span id="el_users_access_insert">
<?php
$selwrk = (ConvertToBool($users_access->insert->CurrentValue)) ? " 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>
<?php echo $users_access->insert->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->update->Visible) { // update ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_update" class="form-group row">
		<label id="elh_users_access_update" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->update->caption() ?><?php echo ($users_access->update->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->update->cellAttributes() ?>>
<span id="el_users_access_update">
<?php
$selwrk = (ConvertToBool($users_access->update->CurrentValue)) ? " 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>
<?php echo $users_access->update->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_update">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_update"><?php echo $users_access->update->caption() ?><?php echo ($users_access->update->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->update->cellAttributes() ?>>
<span id="el_users_access_update">
<?php
$selwrk = (ConvertToBool($users_access->update->CurrentValue)) ? " 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>
<?php echo $users_access->update->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->delete->Visible) { // delete ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_delete" class="form-group row">
		<label id="elh_users_access_delete" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->delete->caption() ?><?php echo ($users_access->delete->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->delete->cellAttributes() ?>>
<span id="el_users_access_delete">
<?php
$selwrk = (ConvertToBool($users_access->delete->CurrentValue)) ? " 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>
<?php echo $users_access->delete->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_delete">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_delete"><?php echo $users_access->delete->caption() ?><?php echo ($users_access->delete->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->delete->cellAttributes() ?>>
<span id="el_users_access_delete">
<?php
$selwrk = (ConvertToBool($users_access->delete->CurrentValue)) ? " 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>
<?php echo $users_access->delete->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->view->Visible) { // view ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_view" class="form-group row">
		<label id="elh_users_access_view" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->view->caption() ?><?php echo ($users_access->view->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->view->cellAttributes() ?>>
<span id="el_users_access_view">
<?php
$selwrk = (ConvertToBool($users_access->view->CurrentValue)) ? " 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>
<?php echo $users_access->view->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_view">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_view"><?php echo $users_access->view->caption() ?><?php echo ($users_access->view->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->view->cellAttributes() ?>>
<span id="el_users_access_view">
<?php
$selwrk = (ConvertToBool($users_access->view->CurrentValue)) ? " 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>
<?php echo $users_access->view->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->campus->Visible) { // campus ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_campus" class="form-group row">
		<label id="elh_users_access_campus" for="x_campus" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->campus->caption() ?><?php echo ($users_access->campus->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->campus->cellAttributes() ?>>
<span id="el_users_access_campus">
<input type="text" data-table="users_access" data-field="x_campus" name="x_campus" id="x_campus" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->campus->getPlaceHolder()) ?>" value="<?php echo $users_access->campus->EditValue ?>"<?php echo $users_access->campus->editAttributes() ?>>
</span>
<?php echo $users_access->campus->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_campus">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_campus"><?php echo $users_access->campus->caption() ?><?php echo ($users_access->campus->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->campus->cellAttributes() ?>>
<span id="el_users_access_campus">
<input type="text" data-table="users_access" data-field="x_campus" name="x_campus" id="x_campus" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->campus->getPlaceHolder()) ?>" value="<?php echo $users_access->campus->EditValue ?>"<?php echo $users_access->campus->editAttributes() ?>>
</span>
<?php echo $users_access->campus->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->school->Visible) { // school ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_school" class="form-group row">
		<label id="elh_users_access_school" for="x_school" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->school->caption() ?><?php echo ($users_access->school->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->school->cellAttributes() ?>>
<span id="el_users_access_school">
<input type="text" data-table="users_access" data-field="x_school" name="x_school" id="x_school" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->school->getPlaceHolder()) ?>" value="<?php echo $users_access->school->EditValue ?>"<?php echo $users_access->school->editAttributes() ?>>
</span>
<?php echo $users_access->school->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_school">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_school"><?php echo $users_access->school->caption() ?><?php echo ($users_access->school->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->school->cellAttributes() ?>>
<span id="el_users_access_school">
<input type="text" data-table="users_access" data-field="x_school" name="x_school" id="x_school" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->school->getPlaceHolder()) ?>" value="<?php echo $users_access->school->EditValue ?>"<?php echo $users_access->school->editAttributes() ?>>
</span>
<?php echo $users_access->school->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access->department->Visible) { // department ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
	<div id="r_department" class="form-group row">
		<label id="elh_users_access_department" for="x_department" class="<?php echo $users_access_edit->LeftColumnClass ?>"><?php echo $users_access->department->caption() ?><?php echo ($users_access->department->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $users_access_edit->RightColumnClass ?>"><div<?php echo $users_access->department->cellAttributes() ?>>
<span id="el_users_access_department">
<input type="text" data-table="users_access" data-field="x_department" name="x_department" id="x_department" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->department->getPlaceHolder()) ?>" value="<?php echo $users_access->department->EditValue ?>"<?php echo $users_access->department->editAttributes() ?>>
</span>
<?php echo $users_access->department->CustomMsg ?></div></div>
	</div>
<?php } else { ?>
	<tr id="r_department">
		<td class="<?php echo $users_access_edit->TableLeftColumnClass ?>"><span id="elh_users_access_department"><?php echo $users_access->department->caption() ?><?php echo ($users_access->department->Required) ? $Language->phrase("FieldRequiredIndicator") : "" ?></span></td>
		<td<?php echo $users_access->department->cellAttributes() ?>>
<span id="el_users_access_department">
<input type="text" data-table="users_access" data-field="x_department" name="x_department" id="x_department" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($users_access->department->getPlaceHolder()) ?>" value="<?php echo $users_access->department->EditValue ?>"<?php echo $users_access->department->editAttributes() ?>>
</span>
<?php echo $users_access->department->CustomMsg ?></td>
	</tr>
<?php } ?>
<?php } ?>
<?php if ($users_access_edit->IsMobileOrModal) { ?>
</div><!-- /page* -->
<?php } else { ?>
</table><!-- /table* -->
<?php } ?>
<?php if (!$users_access_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $users_access_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $users_access_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
<?php if (!$users_access_edit->IsMobileOrModal) { ?>
</div><!-- /desktop -->
<?php } ?>
<?php if (!$users_access_edit->IsModal) { ?>
<?php if (!isset($users_access_edit->Pager)) $users_access_edit->Pager = new PrevNextPager($users_access_edit->StartRec, $users_access_edit->DisplayRecs, $users_access_edit->TotalRecs, $users_access_edit->AutoHidePager) ?>
<?php if ($users_access_edit->Pager->RecordCount > 0 && $users_access_edit->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_edit->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($users_access_edit->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $users_access_edit->pageUrl() ?>start=<?php echo $users_access_edit->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_edit->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
</form>
<?php
$users_access_edit->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<script>

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

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