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

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

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

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

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

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

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

// Dynamic selection lists
flitigantaddressdelete.lists["x_LitigantID"] = <?php echo $litigantaddress_delete->LitigantID->Lookup->toClientList() ?>;
flitigantaddressdelete.lists["x_LitigantID"].options = <?php echo JsonEncode($litigantaddress_delete->LitigantID->lookupOptions()) ?>;
flitigantaddressdelete.lists["x_AddressTypeID"] = <?php echo $litigantaddress_delete->AddressTypeID->Lookup->toClientList() ?>;
flitigantaddressdelete.lists["x_AddressTypeID"].options = <?php echo JsonEncode($litigantaddress_delete->AddressTypeID->lookupOptions()) ?>;
flitigantaddressdelete.lists["x_Primary[]"] = <?php echo $litigantaddress_delete->Primary->Lookup->toClientList() ?>;
flitigantaddressdelete.lists["x_Primary[]"].options = <?php echo JsonEncode($litigantaddress_delete->Primary->options(FALSE, TRUE)) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php $litigantaddress_delete->showPageHeader(); ?>
<?php
$litigantaddress_delete->showMessage();
?>
<form name="flitigantaddressdelete" id="flitigantaddressdelete" class="form-inline ew-form ew-delete-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($litigantaddress_delete->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $litigantaddress_delete->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="litigantaddress">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($litigantaddress_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 ($litigantaddress->LitigantID->Visible) { // LitigantID ?>
		<th class="<?php echo $litigantaddress->LitigantID->headerCellClass() ?>"><span id="elh_litigantaddress_LitigantID" class="litigantaddress_LitigantID"><?php echo $litigantaddress->LitigantID->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<th class="<?php echo $litigantaddress->AddressTypeID->headerCellClass() ?>"><span id="elh_litigantaddress_AddressTypeID" class="litigantaddress_AddressTypeID"><?php echo $litigantaddress->AddressTypeID->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->Address->Visible) { // Address ?>
		<th class="<?php echo $litigantaddress->Address->headerCellClass() ?>"><span id="elh_litigantaddress_Address" class="litigantaddress_Address"><?php echo $litigantaddress->Address->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->City->Visible) { // City ?>
		<th class="<?php echo $litigantaddress->City->headerCellClass() ?>"><span id="elh_litigantaddress_City" class="litigantaddress_City"><?php echo $litigantaddress->City->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->Region->Visible) { // Region ?>
		<th class="<?php echo $litigantaddress->Region->headerCellClass() ?>"><span id="elh_litigantaddress_Region" class="litigantaddress_Region"><?php echo $litigantaddress->Region->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->PostalCode->Visible) { // PostalCode ?>
		<th class="<?php echo $litigantaddress->PostalCode->headerCellClass() ?>"><span id="elh_litigantaddress_PostalCode" class="litigantaddress_PostalCode"><?php echo $litigantaddress->PostalCode->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->Country->Visible) { // Country ?>
		<th class="<?php echo $litigantaddress->Country->headerCellClass() ?>"><span id="elh_litigantaddress_Country" class="litigantaddress_Country"><?php echo $litigantaddress->Country->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->Notes->Visible) { // Notes ?>
		<th class="<?php echo $litigantaddress->Notes->headerCellClass() ?>"><span id="elh_litigantaddress_Notes" class="litigantaddress_Notes"><?php echo $litigantaddress->Notes->caption() ?></span></th>
<?php } ?>
<?php if ($litigantaddress->Primary->Visible) { // Primary ?>
		<th class="<?php echo $litigantaddress->Primary->headerCellClass() ?>"><span id="elh_litigantaddress_Primary" class="litigantaddress_Primary"><?php echo $litigantaddress->Primary->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$litigantaddress_delete->RecCnt = 0;
$i = 0;
while (!$litigantaddress_delete->Recordset->EOF) {
	$litigantaddress_delete->RecCnt++;
	$litigantaddress_delete->RowCnt++;

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

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

	// Render row
	$litigantaddress_delete->renderRow();
?>
	<tr<?php echo $litigantaddress->rowAttributes() ?>>
<?php if ($litigantaddress->LitigantID->Visible) { // LitigantID ?>
		<td<?php echo $litigantaddress->LitigantID->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_LitigantID" class="litigantaddress_LitigantID">
<span<?php echo $litigantaddress->LitigantID->viewAttributes() ?>>
<?php echo $litigantaddress->LitigantID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<td<?php echo $litigantaddress->AddressTypeID->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_AddressTypeID" class="litigantaddress_AddressTypeID">
<span<?php echo $litigantaddress->AddressTypeID->viewAttributes() ?>>
<?php echo $litigantaddress->AddressTypeID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->Address->Visible) { // Address ?>
		<td<?php echo $litigantaddress->Address->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_Address" class="litigantaddress_Address">
<span<?php echo $litigantaddress->Address->viewAttributes() ?>>
<?php echo $litigantaddress->Address->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->City->Visible) { // City ?>
		<td<?php echo $litigantaddress->City->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_City" class="litigantaddress_City">
<span<?php echo $litigantaddress->City->viewAttributes() ?>>
<?php echo $litigantaddress->City->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->Region->Visible) { // Region ?>
		<td<?php echo $litigantaddress->Region->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_Region" class="litigantaddress_Region">
<span<?php echo $litigantaddress->Region->viewAttributes() ?>>
<?php echo $litigantaddress->Region->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->PostalCode->Visible) { // PostalCode ?>
		<td<?php echo $litigantaddress->PostalCode->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_PostalCode" class="litigantaddress_PostalCode">
<span<?php echo $litigantaddress->PostalCode->viewAttributes() ?>>
<?php echo $litigantaddress->PostalCode->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->Country->Visible) { // Country ?>
		<td<?php echo $litigantaddress->Country->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_Country" class="litigantaddress_Country">
<span<?php echo $litigantaddress->Country->viewAttributes() ?>>
<?php echo $litigantaddress->Country->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->Notes->Visible) { // Notes ?>
		<td<?php echo $litigantaddress->Notes->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_Notes" class="litigantaddress_Notes">
<span<?php echo $litigantaddress->Notes->viewAttributes() ?>>
<?php echo $litigantaddress->Notes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($litigantaddress->Primary->Visible) { // Primary ?>
		<td<?php echo $litigantaddress->Primary->cellAttributes() ?>>
<span id="el<?php echo $litigantaddress_delete->RowCnt ?>_litigantaddress_Primary" class="litigantaddress_Primary">
<span<?php echo $litigantaddress->Primary->viewAttributes() ?>>
<?php if (ConvertToBool($litigantaddress->Primary->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $litigantaddress->Primary->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $litigantaddress->Primary->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$litigantaddress_delete->Recordset->moveNext();
}
$litigantaddress_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 $litigantaddress_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$litigantaddress_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
$litigantaddress_delete->terminate();
?>
