<?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_delete = new users_access_delete();

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

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

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

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

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

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

// Dynamic selection lists
fusers_accessdelete.lists["x_insert[]"] = <?php echo $users_access_delete->insert->Lookup->toClientList() ?>;
fusers_accessdelete.lists["x_insert[]"].options = <?php echo JsonEncode($users_access_delete->insert->options(FALSE, TRUE)) ?>;
fusers_accessdelete.lists["x_update[]"] = <?php echo $users_access_delete->update->Lookup->toClientList() ?>;
fusers_accessdelete.lists["x_update[]"].options = <?php echo JsonEncode($users_access_delete->update->options(FALSE, TRUE)) ?>;
fusers_accessdelete.lists["x_delete[]"] = <?php echo $users_access_delete->delete->Lookup->toClientList() ?>;
fusers_accessdelete.lists["x_delete[]"].options = <?php echo JsonEncode($users_access_delete->delete->options(FALSE, TRUE)) ?>;
fusers_accessdelete.lists["x_view[]"] = <?php echo $users_access_delete->view->Lookup->toClientList() ?>;
fusers_accessdelete.lists["x_view[]"].options = <?php echo JsonEncode($users_access_delete->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_delete->showPageHeader(); ?>
<?php
$users_access_delete->showMessage();
?>
<form name="fusers_accessdelete" id="fusers_accessdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($users_access_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $users_access_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="users_access">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($users_access_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode($COMPOSITE_KEY_SEPARATOR, $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
	<thead>
	<tr class="ew-table-header">
<?php if ($users_access->usac_id->Visible) { // usac_id ?>
		<th class="<?php echo $users_access->usac_id->headerCellClass() ?>"><span id="elh_users_access_usac_id" class="users_access_usac_id"><?php echo $users_access->usac_id->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->user_id->Visible) { // user_id ?>
		<th class="<?php echo $users_access->user_id->headerCellClass() ?>"><span id="elh_users_access_user_id" class="users_access_user_id"><?php echo $users_access->user_id->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->insert->Visible) { // insert ?>
		<th class="<?php echo $users_access->insert->headerCellClass() ?>"><span id="elh_users_access_insert" class="users_access_insert"><?php echo $users_access->insert->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->update->Visible) { // update ?>
		<th class="<?php echo $users_access->update->headerCellClass() ?>"><span id="elh_users_access_update" class="users_access_update"><?php echo $users_access->update->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->delete->Visible) { // delete ?>
		<th class="<?php echo $users_access->delete->headerCellClass() ?>"><span id="elh_users_access_delete" class="users_access_delete"><?php echo $users_access->delete->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->view->Visible) { // view ?>
		<th class="<?php echo $users_access->view->headerCellClass() ?>"><span id="elh_users_access_view" class="users_access_view"><?php echo $users_access->view->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->campus->Visible) { // campus ?>
		<th class="<?php echo $users_access->campus->headerCellClass() ?>"><span id="elh_users_access_campus" class="users_access_campus"><?php echo $users_access->campus->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->school->Visible) { // school ?>
		<th class="<?php echo $users_access->school->headerCellClass() ?>"><span id="elh_users_access_school" class="users_access_school"><?php echo $users_access->school->caption() ?></span></th>
<?php } ?>
<?php if ($users_access->department->Visible) { // department ?>
		<th class="<?php echo $users_access->department->headerCellClass() ?>"><span id="elh_users_access_department" class="users_access_department"><?php echo $users_access->department->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$users_access_delete->RecCnt = 0;
$i = 0;
while (!$users_access_delete->Recordset->EOF) {
	$users_access_delete->RecCnt++;
	$users_access_delete->RowCnt++;

	// Set row properties
	$users_access->resetAttributes();
	$users_access->RowType = ROWTYPE_VIEW; // View

	// Get the field contents
	$users_access_delete->loadRowValues($users_access_delete->Recordset);

	// Render row
	$users_access_delete->renderRow();
?>
	<tr<?php echo $users_access->rowAttributes() ?>>
<?php if ($users_access->usac_id->Visible) { // usac_id ?>
		<td<?php echo $users_access->usac_id->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->user_id->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->insert->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->update->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->delete->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->view->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->campus->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->school->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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<?php echo $users_access->department->cellAttributes() ?>>
<span id="el<?php echo $users_access_delete->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 } ?>
	</tr>
<?php
	$users_access_delete->Recordset->moveNext();
}
$users_access_delete->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $users_access_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$users_access_delete->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_delete->terminate();
?>
