<?php
namespace PHPMaker2019\project_germanos;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start(); 

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$employeesaccess_delete = new employeesaccess_delete();

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

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

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

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

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

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

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

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

// Write your client script here, no need to add script tags.
</script>
<?php $employeesaccess_delete->showPageHeader(); ?>
<?php
$employeesaccess_delete->showMessage();
?>
<form name="femployeesaccessdelete" id="femployeesaccessdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeesaccess_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeesaccess_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeesaccess">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($employeesaccess_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 ($employeesaccess->Username->Visible) { // Username ?>
		<th class="<?php echo $employeesaccess->Username->headerCellClass() ?>"><span id="elh_employeesaccess_Username" class="employeesaccess_Username"><?php echo $employeesaccess->Username->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->Password->Visible) { // Password ?>
		<th class="<?php echo $employeesaccess->Password->headerCellClass() ?>"><span id="elh_employeesaccess_Password" class="employeesaccess_Password"><?php echo $employeesaccess->Password->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->EmployeeTypeID->Visible) { // EmployeeTypeID ?>
		<th class="<?php echo $employeesaccess->EmployeeTypeID->headerCellClass() ?>"><span id="elh_employeesaccess_EmployeeTypeID" class="employeesaccess_EmployeeTypeID"><?php echo $employeesaccess->EmployeeTypeID->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->TitleID->Visible) { // TitleID ?>
		<th class="<?php echo $employeesaccess->TitleID->headerCellClass() ?>"><span id="elh_employeesaccess_TitleID" class="employeesaccess_TitleID"><?php echo $employeesaccess->TitleID->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->FirstName->Visible) { // FirstName ?>
		<th class="<?php echo $employeesaccess->FirstName->headerCellClass() ?>"><span id="elh_employeesaccess_FirstName" class="employeesaccess_FirstName"><?php echo $employeesaccess->FirstName->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->MiddleName->Visible) { // MiddleName ?>
		<th class="<?php echo $employeesaccess->MiddleName->headerCellClass() ?>"><span id="elh_employeesaccess_MiddleName" class="employeesaccess_MiddleName"><?php echo $employeesaccess->MiddleName->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->LastName->Visible) { // LastName ?>
		<th class="<?php echo $employeesaccess->LastName->headerCellClass() ?>"><span id="elh_employeesaccess_LastName" class="employeesaccess_LastName"><?php echo $employeesaccess->LastName->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->ReportsTo->Visible) { // ReportsTo ?>
		<th class="<?php echo $employeesaccess->ReportsTo->headerCellClass() ?>"><span id="elh_employeesaccess_ReportsTo" class="employeesaccess_ReportsTo"><?php echo $employeesaccess->ReportsTo->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->UserLevel->Visible) { // UserLevel ?>
		<th class="<?php echo $employeesaccess->UserLevel->headerCellClass() ?>"><span id="elh_employeesaccess_UserLevel" class="employeesaccess_UserLevel"><?php echo $employeesaccess->UserLevel->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->Activated->Visible) { // Activated ?>
		<th class="<?php echo $employeesaccess->Activated->headerCellClass() ?>"><span id="elh_employeesaccess_Activated" class="employeesaccess_Activated"><?php echo $employeesaccess->Activated->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->Type->Visible) { // Type ?>
		<th class="<?php echo $employeesaccess->Type->headerCellClass() ?>"><span id="elh_employeesaccess_Type" class="employeesaccess_Type"><?php echo $employeesaccess->Type->caption() ?></span></th>
<?php } ?>
<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
		<th class="<?php echo $employeesaccess->Locked->headerCellClass() ?>"><span id="elh_employeesaccess_Locked" class="employeesaccess_Locked"><?php echo $employeesaccess->Locked->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$employeesaccess_delete->RecCnt = 0;
$i = 0;
while (!$employeesaccess_delete->Recordset->EOF) {
	$employeesaccess_delete->RecCnt++;
	$employeesaccess_delete->RowCnt++;

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

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

	// Render row
	$employeesaccess_delete->renderRow();
?>
	<tr<?php echo $employeesaccess->rowAttributes() ?>>
<?php if ($employeesaccess->Username->Visible) { // Username ?>
		<td<?php echo $employeesaccess->Username->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_Username" class="employeesaccess_Username">
<span<?php echo $employeesaccess->Username->viewAttributes() ?>>
<?php echo $employeesaccess->Username->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->Password->Visible) { // Password ?>
		<td<?php echo $employeesaccess->Password->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_Password" class="employeesaccess_Password">
<span<?php echo $employeesaccess->Password->viewAttributes() ?>>
<?php echo $employeesaccess->Password->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->EmployeeTypeID->Visible) { // EmployeeTypeID ?>
		<td<?php echo $employeesaccess->EmployeeTypeID->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_EmployeeTypeID" class="employeesaccess_EmployeeTypeID">
<span<?php echo $employeesaccess->EmployeeTypeID->viewAttributes() ?>>
<?php echo $employeesaccess->EmployeeTypeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->TitleID->Visible) { // TitleID ?>
		<td<?php echo $employeesaccess->TitleID->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_TitleID" class="employeesaccess_TitleID">
<span<?php echo $employeesaccess->TitleID->viewAttributes() ?>>
<?php echo $employeesaccess->TitleID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->FirstName->Visible) { // FirstName ?>
		<td<?php echo $employeesaccess->FirstName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_FirstName" class="employeesaccess_FirstName">
<span<?php echo $employeesaccess->FirstName->viewAttributes() ?>>
<?php echo $employeesaccess->FirstName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->MiddleName->Visible) { // MiddleName ?>
		<td<?php echo $employeesaccess->MiddleName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_MiddleName" class="employeesaccess_MiddleName">
<span<?php echo $employeesaccess->MiddleName->viewAttributes() ?>>
<?php echo $employeesaccess->MiddleName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->LastName->Visible) { // LastName ?>
		<td<?php echo $employeesaccess->LastName->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_LastName" class="employeesaccess_LastName">
<span<?php echo $employeesaccess->LastName->viewAttributes() ?>>
<?php echo $employeesaccess->LastName->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->ReportsTo->Visible) { // ReportsTo ?>
		<td<?php echo $employeesaccess->ReportsTo->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_ReportsTo" class="employeesaccess_ReportsTo">
<span<?php echo $employeesaccess->ReportsTo->viewAttributes() ?>>
<?php echo $employeesaccess->ReportsTo->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->UserLevel->Visible) { // UserLevel ?>
		<td<?php echo $employeesaccess->UserLevel->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_UserLevel" class="employeesaccess_UserLevel">
<span<?php echo $employeesaccess->UserLevel->viewAttributes() ?>>
<?php echo $employeesaccess->UserLevel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->Activated->Visible) { // Activated ?>
		<td<?php echo $employeesaccess->Activated->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_Activated" class="employeesaccess_Activated">
<span<?php echo $employeesaccess->Activated->viewAttributes() ?>>
<?php if (ConvertToBool($employeesaccess->Activated->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Activated->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Activated->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->Type->Visible) { // Type ?>
		<td<?php echo $employeesaccess->Type->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_Type" class="employeesaccess_Type">
<span<?php echo $employeesaccess->Type->viewAttributes() ?>>
<?php echo $employeesaccess->Type->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeesaccess->Locked->Visible) { // Locked ?>
		<td<?php echo $employeesaccess->Locked->cellAttributes() ?>>
<span id="el<?php echo $employeesaccess_delete->RowCnt ?>_employeesaccess_Locked" class="employeesaccess_Locked">
<span<?php echo $employeesaccess->Locked->viewAttributes() ?>>
<?php if (ConvertToBool($employeesaccess->Locked->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Locked->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $employeesaccess->Locked->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$employeesaccess_delete->Recordset->moveNext();
}
$employeesaccess_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 $employeesaccess_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$employeesaccess_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
$employeesaccess_delete->terminate();
?>
