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

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

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

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

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

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

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

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

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

// Write your client script here, no need to add script tags.
</script>
<?php $courtgenderv_delete->showPageHeader(); ?>
<?php
$courtgenderv_delete->showMessage();
?>
<form name="fcourtgendervdelete" id="fcourtgendervdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgenderv_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgenderv_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgenderv">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($courtgenderv_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 ($courtgenderv->CourtSortID->Visible) { // CourtSortID ?>
		<th class="<?php echo $courtgenderv->CourtSortID->headerCellClass() ?>"><span id="elh_courtgenderv_CourtSortID" class="courtgenderv_CourtSortID"><?php echo $courtgenderv->CourtSortID->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtSort->Visible) { // CourtSort ?>
		<th class="<?php echo $courtgenderv->CourtSort->headerCellClass() ?>"><span id="elh_courtgenderv_CourtSort" class="courtgenderv_CourtSort"><?php echo $courtgenderv->CourtSort->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtSortEn->Visible) { // CourtSortEn ?>
		<th class="<?php echo $courtgenderv->CourtSortEn->headerCellClass() ?>"><span id="elh_courtgenderv_CourtSortEn" class="courtgenderv_CourtSortEn"><?php echo $courtgenderv->CourtSortEn->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtSortNotes->Visible) { // CourtSortNotes ?>
		<th class="<?php echo $courtgenderv->CourtSortNotes->headerCellClass() ?>"><span id="elh_courtgenderv_CourtSortNotes" class="courtgenderv_CourtSortNotes"><?php echo $courtgenderv->CourtSortNotes->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtGenderID->Visible) { // CourtGenderID ?>
		<th class="<?php echo $courtgenderv->CourtGenderID->headerCellClass() ?>"><span id="elh_courtgenderv_CourtGenderID" class="courtgenderv_CourtGenderID"><?php echo $courtgenderv->CourtGenderID->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtGender->Visible) { // CourtGender ?>
		<th class="<?php echo $courtgenderv->CourtGender->headerCellClass() ?>"><span id="elh_courtgenderv_CourtGender" class="courtgenderv_CourtGender"><?php echo $courtgenderv->CourtGender->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->CourtGenderEn->Visible) { // CourtGenderEn ?>
		<th class="<?php echo $courtgenderv->CourtGenderEn->headerCellClass() ?>"><span id="elh_courtgenderv_CourtGenderEn" class="courtgenderv_CourtGenderEn"><?php echo $courtgenderv->CourtGenderEn->caption() ?></span></th>
<?php } ?>
<?php if ($courtgenderv->Notes->Visible) { // Notes ?>
		<th class="<?php echo $courtgenderv->Notes->headerCellClass() ?>"><span id="elh_courtgenderv_Notes" class="courtgenderv_Notes"><?php echo $courtgenderv->Notes->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$courtgenderv_delete->RecCnt = 0;
$i = 0;
while (!$courtgenderv_delete->Recordset->EOF) {
	$courtgenderv_delete->RecCnt++;
	$courtgenderv_delete->RowCnt++;

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

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

	// Render row
	$courtgenderv_delete->renderRow();
?>
	<tr<?php echo $courtgenderv->rowAttributes() ?>>
<?php if ($courtgenderv->CourtSortID->Visible) { // CourtSortID ?>
		<td<?php echo $courtgenderv->CourtSortID->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtSortID" class="courtgenderv_CourtSortID">
<span<?php echo $courtgenderv->CourtSortID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtSort->Visible) { // CourtSort ?>
		<td<?php echo $courtgenderv->CourtSort->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtSort" class="courtgenderv_CourtSort">
<span<?php echo $courtgenderv->CourtSort->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSort->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtSortEn->Visible) { // CourtSortEn ?>
		<td<?php echo $courtgenderv->CourtSortEn->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtSortEn" class="courtgenderv_CourtSortEn">
<span<?php echo $courtgenderv->CourtSortEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtSortNotes->Visible) { // CourtSortNotes ?>
		<td<?php echo $courtgenderv->CourtSortNotes->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtSortNotes" class="courtgenderv_CourtSortNotes">
<span<?php echo $courtgenderv->CourtSortNotes->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortNotes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtGenderID->Visible) { // CourtGenderID ?>
		<td<?php echo $courtgenderv->CourtGenderID->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtGenderID" class="courtgenderv_CourtGenderID">
<span<?php echo $courtgenderv->CourtGenderID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtGender->Visible) { // CourtGender ?>
		<td<?php echo $courtgenderv->CourtGender->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtGender" class="courtgenderv_CourtGender">
<span<?php echo $courtgenderv->CourtGender->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGender->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->CourtGenderEn->Visible) { // CourtGenderEn ?>
		<td<?php echo $courtgenderv->CourtGenderEn->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_CourtGenderEn" class="courtgenderv_CourtGenderEn">
<span<?php echo $courtgenderv->CourtGenderEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderEn->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($courtgenderv->Notes->Visible) { // Notes ?>
		<td<?php echo $courtgenderv->Notes->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_delete->RowCnt ?>_courtgenderv_Notes" class="courtgenderv_Notes">
<span<?php echo $courtgenderv->Notes->viewAttributes() ?>>
<?php echo $courtgenderv->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$courtgenderv_delete->Recordset->moveNext();
}
$courtgenderv_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 $courtgenderv_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$courtgenderv_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
$courtgenderv_delete->terminate();
?>
