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

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

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

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

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

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

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

// Dynamic selection lists
fcourtgenderdelete.lists["x_CourtSortID"] = <?php echo $courtgender_delete->CourtSortID->Lookup->toClientList() ?>;
fcourtgenderdelete.lists["x_CourtSortID"].options = <?php echo JsonEncode($courtgender_delete->CourtSortID->lookupOptions()) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php $courtgender_delete->showPageHeader(); ?>
<?php
$courtgender_delete->showMessage();
?>
<form name="fcourtgenderdelete" id="fcourtgenderdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgender_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgender_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgender">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($courtgender_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 ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
		<th class="<?php echo $courtgender->CourtSortID->headerCellClass() ?>"><span id="elh_courtgender_CourtSortID" class="courtgender_CourtSortID"><?php echo $courtgender->CourtSortID->caption() ?></span></th>
<?php } ?>
<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
		<th class="<?php echo $courtgender->CourtGender->headerCellClass() ?>"><span id="elh_courtgender_CourtGender" class="courtgender_CourtGender"><?php echo $courtgender->CourtGender->caption() ?></span></th>
<?php } ?>
<?php if ($courtgender->Notes->Visible) { // Notes ?>
		<th class="<?php echo $courtgender->Notes->headerCellClass() ?>"><span id="elh_courtgender_Notes" class="courtgender_Notes"><?php echo $courtgender->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$courtgender_delete->RecCnt = 0;
$i = 0;
while (!$courtgender_delete->Recordset->EOF) {
	$courtgender_delete->RecCnt++;
	$courtgender_delete->RowCnt++;

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

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

	// Render row
	$courtgender_delete->renderRow();
?>
	<tr<?php echo $courtgender->rowAttributes() ?>>
<?php if ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
		<td<?php echo $courtgender->CourtSortID->cellAttributes() ?>>
<span id="el<?php echo $courtgender_delete->RowCnt ?>_courtgender_CourtSortID" class="courtgender_CourtSortID">
<span<?php echo $courtgender->CourtSortID->viewAttributes() ?>>
<?php echo $courtgender->CourtSortID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
		<td<?php echo $courtgender->CourtGender->cellAttributes() ?>>
<span id="el<?php echo $courtgender_delete->RowCnt ?>_courtgender_CourtGender" class="courtgender_CourtGender">
<span<?php echo $courtgender->CourtGender->viewAttributes() ?>>
<?php echo $courtgender->CourtGender->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgender->Notes->Visible) { // Notes ?>
		<td<?php echo $courtgender->Notes->cellAttributes() ?>>
<span id="el<?php echo $courtgender_delete->RowCnt ?>_courtgender_Notes" class="courtgender_Notes">
<span<?php echo $courtgender->Notes->viewAttributes() ?>>
<?php echo $courtgender->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$courtgender_delete->Recordset->moveNext();
}
$courtgender_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 $courtgender_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$courtgender_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
$courtgender_delete->terminate();
?>
