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

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

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

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

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

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

// Form_CustomValidate event
fcasetypesdelete.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
fcasetypesdelete.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 $casetypes_delete->showPageHeader(); ?>
<?php
$casetypes_delete->showMessage();
?>
<form name="fcasetypesdelete" id="fcasetypesdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($casetypes_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $casetypes_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="casetypes">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($casetypes_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 ($casetypes->CaseType->Visible) { // CaseType ?>
		<th class="<?php echo $casetypes->CaseType->headerCellClass() ?>"><span id="elh_casetypes_CaseType" class="casetypes_CaseType"><?php echo $casetypes->CaseType->caption() ?></span></th>
<?php } ?>
<?php if ($casetypes->CaseTypeEn->Visible) { // CaseTypeEn ?>
		<th class="<?php echo $casetypes->CaseTypeEn->headerCellClass() ?>"><span id="elh_casetypes_CaseTypeEn" class="casetypes_CaseTypeEn"><?php echo $casetypes->CaseTypeEn->caption() ?></span></th>
<?php } ?>
<?php if ($casetypes->Notes->Visible) { // Notes ?>
		<th class="<?php echo $casetypes->Notes->headerCellClass() ?>"><span id="elh_casetypes_Notes" class="casetypes_Notes"><?php echo $casetypes->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$casetypes_delete->RecCnt = 0;
$i = 0;
while (!$casetypes_delete->Recordset->EOF) {
	$casetypes_delete->RecCnt++;
	$casetypes_delete->RowCnt++;

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

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

	// Render row
	$casetypes_delete->renderRow();
?>
	<tr<?php echo $casetypes->rowAttributes() ?>>
<?php if ($casetypes->CaseType->Visible) { // CaseType ?>
		<td<?php echo $casetypes->CaseType->cellAttributes() ?>>
<span id="el<?php echo $casetypes_delete->RowCnt ?>_casetypes_CaseType" class="casetypes_CaseType">
<span<?php echo $casetypes->CaseType->viewAttributes() ?>>
<?php echo $casetypes->CaseType->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($casetypes->CaseTypeEn->Visible) { // CaseTypeEn ?>
		<td<?php echo $casetypes->CaseTypeEn->cellAttributes() ?>>
<span id="el<?php echo $casetypes_delete->RowCnt ?>_casetypes_CaseTypeEn" class="casetypes_CaseTypeEn">
<span<?php echo $casetypes->CaseTypeEn->viewAttributes() ?>>
<?php echo $casetypes->CaseTypeEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($casetypes->Notes->Visible) { // Notes ?>
		<td<?php echo $casetypes->Notes->cellAttributes() ?>>
<span id="el<?php echo $casetypes_delete->RowCnt ?>_casetypes_Notes" class="casetypes_Notes">
<span<?php echo $casetypes->Notes->viewAttributes() ?>>
<?php echo $casetypes->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$casetypes_delete->Recordset->moveNext();
}
$casetypes_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 $casetypes_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$casetypes_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
$casetypes_delete->terminate();
?>
