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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search

</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php $employeetype_delete->showPageHeader(); ?>
<?php
$employeetype_delete->showMessage();
?>
<form name="femployeetypedelete" id="femployeetypedelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($employeetype_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $employeetype_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="employeetype">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($employeetype_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 ($employeetype->EmployeeType->Visible) { // EmployeeType ?>
		<th class="<?php echo $employeetype->EmployeeType->headerCellClass() ?>"><span id="elh_employeetype_EmployeeType" class="employeetype_EmployeeType"><?php echo $employeetype->EmployeeType->caption() ?></span></th>
<?php } ?>
<?php if ($employeetype->EmployeeTypeEn->Visible) { // EmployeeTypeEn ?>
		<th class="<?php echo $employeetype->EmployeeTypeEn->headerCellClass() ?>"><span id="elh_employeetype_EmployeeTypeEn" class="employeetype_EmployeeTypeEn"><?php echo $employeetype->EmployeeTypeEn->caption() ?></span></th>
<?php } ?>
<?php if ($employeetype->Notes->Visible) { // Notes ?>
		<th class="<?php echo $employeetype->Notes->headerCellClass() ?>"><span id="elh_employeetype_Notes" class="employeetype_Notes"><?php echo $employeetype->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$employeetype_delete->RecCnt = 0;
$i = 0;
while (!$employeetype_delete->Recordset->EOF) {
	$employeetype_delete->RecCnt++;
	$employeetype_delete->RowCnt++;

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

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

	// Render row
	$employeetype_delete->renderRow();
?>
	<tr<?php echo $employeetype->rowAttributes() ?>>
<?php if ($employeetype->EmployeeType->Visible) { // EmployeeType ?>
		<td<?php echo $employeetype->EmployeeType->cellAttributes() ?>>
<span id="el<?php echo $employeetype_delete->RowCnt ?>_employeetype_EmployeeType" class="employeetype_EmployeeType">
<span<?php echo $employeetype->EmployeeType->viewAttributes() ?>>
<?php echo $employeetype->EmployeeType->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeetype->EmployeeTypeEn->Visible) { // EmployeeTypeEn ?>
		<td<?php echo $employeetype->EmployeeTypeEn->cellAttributes() ?>>
<span id="el<?php echo $employeetype_delete->RowCnt ?>_employeetype_EmployeeTypeEn" class="employeetype_EmployeeTypeEn">
<span<?php echo $employeetype->EmployeeTypeEn->viewAttributes() ?>>
<?php echo $employeetype->EmployeeTypeEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($employeetype->Notes->Visible) { // Notes ?>
		<td<?php echo $employeetype->Notes->cellAttributes() ?>>
<span id="el<?php echo $employeetype_delete->RowCnt ?>_employeetype_Notes" class="employeetype_Notes">
<span<?php echo $employeetype->Notes->viewAttributes() ?>>
<?php echo $employeetype->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$employeetype_delete->Recordset->moveNext();
}
$employeetype_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 $employeetype_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$employeetype_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
$employeetype_delete->terminate();
?>
