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

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

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

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

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

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

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

// Dynamic selection lists
fjudgeaddressdelete.lists["x_JudgeID"] = <?php echo $judgeaddress_delete->JudgeID->Lookup->toClientList() ?>;
fjudgeaddressdelete.lists["x_JudgeID"].options = <?php echo JsonEncode($judgeaddress_delete->JudgeID->lookupOptions()) ?>;
fjudgeaddressdelete.lists["x_AddressTypeID"] = <?php echo $judgeaddress_delete->AddressTypeID->Lookup->toClientList() ?>;
fjudgeaddressdelete.lists["x_AddressTypeID"].options = <?php echo JsonEncode($judgeaddress_delete->AddressTypeID->lookupOptions()) ?>;
fjudgeaddressdelete.lists["x_Primary[]"] = <?php echo $judgeaddress_delete->Primary->Lookup->toClientList() ?>;
fjudgeaddressdelete.lists["x_Primary[]"].options = <?php echo JsonEncode($judgeaddress_delete->Primary->options(FALSE, TRUE)) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php $judgeaddress_delete->showPageHeader(); ?>
<?php
$judgeaddress_delete->showMessage();
?>
<form name="fjudgeaddressdelete" id="fjudgeaddressdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($judgeaddress_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $judgeaddress_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="judgeaddress">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($judgeaddress_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 ($judgeaddress->JudgeID->Visible) { // JudgeID ?>
		<th class="<?php echo $judgeaddress->JudgeID->headerCellClass() ?>"><span id="elh_judgeaddress_JudgeID" class="judgeaddress_JudgeID"><?php echo $judgeaddress->JudgeID->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<th class="<?php echo $judgeaddress->AddressTypeID->headerCellClass() ?>"><span id="elh_judgeaddress_AddressTypeID" class="judgeaddress_AddressTypeID"><?php echo $judgeaddress->AddressTypeID->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->Address->Visible) { // Address ?>
		<th class="<?php echo $judgeaddress->Address->headerCellClass() ?>"><span id="elh_judgeaddress_Address" class="judgeaddress_Address"><?php echo $judgeaddress->Address->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->City->Visible) { // City ?>
		<th class="<?php echo $judgeaddress->City->headerCellClass() ?>"><span id="elh_judgeaddress_City" class="judgeaddress_City"><?php echo $judgeaddress->City->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->Region->Visible) { // Region ?>
		<th class="<?php echo $judgeaddress->Region->headerCellClass() ?>"><span id="elh_judgeaddress_Region" class="judgeaddress_Region"><?php echo $judgeaddress->Region->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->PostalCode->Visible) { // PostalCode ?>
		<th class="<?php echo $judgeaddress->PostalCode->headerCellClass() ?>"><span id="elh_judgeaddress_PostalCode" class="judgeaddress_PostalCode"><?php echo $judgeaddress->PostalCode->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->Country->Visible) { // Country ?>
		<th class="<?php echo $judgeaddress->Country->headerCellClass() ?>"><span id="elh_judgeaddress_Country" class="judgeaddress_Country"><?php echo $judgeaddress->Country->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->Notes->Visible) { // Notes ?>
		<th class="<?php echo $judgeaddress->Notes->headerCellClass() ?>"><span id="elh_judgeaddress_Notes" class="judgeaddress_Notes"><?php echo $judgeaddress->Notes->caption() ?></span></th>
<?php } ?>
<?php if ($judgeaddress->Primary->Visible) { // Primary ?>
		<th class="<?php echo $judgeaddress->Primary->headerCellClass() ?>"><span id="elh_judgeaddress_Primary" class="judgeaddress_Primary"><?php echo $judgeaddress->Primary->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$judgeaddress_delete->RecCnt = 0;
$i = 0;
while (!$judgeaddress_delete->Recordset->EOF) {
	$judgeaddress_delete->RecCnt++;
	$judgeaddress_delete->RowCnt++;

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

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

	// Render row
	$judgeaddress_delete->renderRow();
?>
	<tr<?php echo $judgeaddress->rowAttributes() ?>>
<?php if ($judgeaddress->JudgeID->Visible) { // JudgeID ?>
		<td<?php echo $judgeaddress->JudgeID->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_JudgeID" class="judgeaddress_JudgeID">
<span<?php echo $judgeaddress->JudgeID->viewAttributes() ?>>
<?php echo $judgeaddress->JudgeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<td<?php echo $judgeaddress->AddressTypeID->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_AddressTypeID" class="judgeaddress_AddressTypeID">
<span<?php echo $judgeaddress->AddressTypeID->viewAttributes() ?>>
<?php echo $judgeaddress->AddressTypeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->Address->Visible) { // Address ?>
		<td<?php echo $judgeaddress->Address->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_Address" class="judgeaddress_Address">
<span<?php echo $judgeaddress->Address->viewAttributes() ?>>
<?php echo $judgeaddress->Address->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->City->Visible) { // City ?>
		<td<?php echo $judgeaddress->City->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_City" class="judgeaddress_City">
<span<?php echo $judgeaddress->City->viewAttributes() ?>>
<?php echo $judgeaddress->City->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->Region->Visible) { // Region ?>
		<td<?php echo $judgeaddress->Region->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_Region" class="judgeaddress_Region">
<span<?php echo $judgeaddress->Region->viewAttributes() ?>>
<?php echo $judgeaddress->Region->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->PostalCode->Visible) { // PostalCode ?>
		<td<?php echo $judgeaddress->PostalCode->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_PostalCode" class="judgeaddress_PostalCode">
<span<?php echo $judgeaddress->PostalCode->viewAttributes() ?>>
<?php echo $judgeaddress->PostalCode->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->Country->Visible) { // Country ?>
		<td<?php echo $judgeaddress->Country->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_Country" class="judgeaddress_Country">
<span<?php echo $judgeaddress->Country->viewAttributes() ?>>
<?php echo $judgeaddress->Country->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->Notes->Visible) { // Notes ?>
		<td<?php echo $judgeaddress->Notes->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_Notes" class="judgeaddress_Notes">
<span<?php echo $judgeaddress->Notes->viewAttributes() ?>>
<?php echo $judgeaddress->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($judgeaddress->Primary->Visible) { // Primary ?>
		<td<?php echo $judgeaddress->Primary->cellAttributes() ?>>
<span id="el<?php echo $judgeaddress_delete->RowCnt ?>_judgeaddress_Primary" class="judgeaddress_Primary">
<span<?php echo $judgeaddress->Primary->viewAttributes() ?>>
<?php if (ConvertToBool($judgeaddress->Primary->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $judgeaddress->Primary->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $judgeaddress->Primary->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$judgeaddress_delete->Recordset->moveNext();
}
$judgeaddress_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 $judgeaddress_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$judgeaddress_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
$judgeaddress_delete->terminate();
?>
