<?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_view = new litigantaddress_view();

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

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

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

// Page Rendering event
$litigantaddress_view->Page_Render();
?>
<?php include_once "header.php" ?>
<?php if (!$litigantaddress->isExport()) { ?>
<script>

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

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

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

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

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$litigantaddress->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $litigantaddress_view->ExportOptions->render("body") ?>
<?php $litigantaddress_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $litigantaddress_view->showPageHeader(); ?>
<?php
$litigantaddress_view->showMessage();
?>
<?php if (!$litigantaddress_view->IsModal) { ?>
<?php if (!$litigantaddress->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($litigantaddress_view->Pager)) $litigantaddress_view->Pager = new PrevNextPager($litigantaddress_view->StartRec, $litigantaddress_view->DisplayRecs, $litigantaddress_view->TotalRecs, $litigantaddress_view->AutoHidePager) ?>
<?php if ($litigantaddress_view->Pager->RecordCount > 0 && $litigantaddress_view->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($litigantaddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($litigantaddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $litigantaddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($litigantaddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($litigantaddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $litigantaddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="flitigantaddressview" id="flitigantaddressview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($litigantaddress_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $litigantaddress_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="litigantaddress">
<input type="hidden" name="modal" value="<?php echo (int)$litigantaddress_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($litigantaddress->LitigantID->Visible) { // LitigantID ?>
	<tr id="r_LitigantID">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_LitigantID"><?php echo $litigantaddress->LitigantID->caption() ?></span></td>
		<td data-name="LitigantID"<?php echo $litigantaddress->LitigantID->cellAttributes() ?>>
<span id="el_litigantaddress_LitigantID">
<span<?php echo $litigantaddress->LitigantID->viewAttributes() ?>>
<?php echo $litigantaddress->LitigantID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->AddressTypeID->Visible) { // AddressTypeID ?>
	<tr id="r_AddressTypeID">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_AddressTypeID"><?php echo $litigantaddress->AddressTypeID->caption() ?></span></td>
		<td data-name="AddressTypeID"<?php echo $litigantaddress->AddressTypeID->cellAttributes() ?>>
<span id="el_litigantaddress_AddressTypeID">
<span<?php echo $litigantaddress->AddressTypeID->viewAttributes() ?>>
<?php echo $litigantaddress->AddressTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->Address->Visible) { // Address ?>
	<tr id="r_Address">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_Address"><?php echo $litigantaddress->Address->caption() ?></span></td>
		<td data-name="Address"<?php echo $litigantaddress->Address->cellAttributes() ?>>
<span id="el_litigantaddress_Address">
<span<?php echo $litigantaddress->Address->viewAttributes() ?>>
<?php echo $litigantaddress->Address->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->City->Visible) { // City ?>
	<tr id="r_City">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_City"><?php echo $litigantaddress->City->caption() ?></span></td>
		<td data-name="City"<?php echo $litigantaddress->City->cellAttributes() ?>>
<span id="el_litigantaddress_City">
<span<?php echo $litigantaddress->City->viewAttributes() ?>>
<?php echo $litigantaddress->City->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->Region->Visible) { // Region ?>
	<tr id="r_Region">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_Region"><?php echo $litigantaddress->Region->caption() ?></span></td>
		<td data-name="Region"<?php echo $litigantaddress->Region->cellAttributes() ?>>
<span id="el_litigantaddress_Region">
<span<?php echo $litigantaddress->Region->viewAttributes() ?>>
<?php echo $litigantaddress->Region->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->PostalCode->Visible) { // PostalCode ?>
	<tr id="r_PostalCode">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_PostalCode"><?php echo $litigantaddress->PostalCode->caption() ?></span></td>
		<td data-name="PostalCode"<?php echo $litigantaddress->PostalCode->cellAttributes() ?>>
<span id="el_litigantaddress_PostalCode">
<span<?php echo $litigantaddress->PostalCode->viewAttributes() ?>>
<?php echo $litigantaddress->PostalCode->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->Country->Visible) { // Country ?>
	<tr id="r_Country">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_Country"><?php echo $litigantaddress->Country->caption() ?></span></td>
		<td data-name="Country"<?php echo $litigantaddress->Country->cellAttributes() ?>>
<span id="el_litigantaddress_Country">
<span<?php echo $litigantaddress->Country->viewAttributes() ?>>
<?php echo $litigantaddress->Country->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_Notes"><?php echo $litigantaddress->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $litigantaddress->Notes->cellAttributes() ?>>
<span id="el_litigantaddress_Notes">
<span<?php echo $litigantaddress->Notes->viewAttributes() ?>>
<?php echo $litigantaddress->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantaddress->Primary->Visible) { // Primary ?>
	<tr id="r_Primary">
		<td class="<?php echo $litigantaddress_view->TableLeftColumnClass ?>"><span id="elh_litigantaddress_Primary"><?php echo $litigantaddress->Primary->caption() ?></span></td>
		<td data-name="Primary"<?php echo $litigantaddress->Primary->cellAttributes() ?>>
<span id="el_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>
	</tr>
<?php } ?>
</table>
<?php if (!$litigantaddress_view->IsModal) { ?>
<?php if (!$litigantaddress->isExport()) { ?>
<?php if (!isset($litigantaddress_view->Pager)) $litigantaddress_view->Pager = new PrevNextPager($litigantaddress_view->StartRec, $litigantaddress_view->DisplayRecs, $litigantaddress_view->TotalRecs, $litigantaddress_view->AutoHidePager) ?>
<?php if ($litigantaddress_view->Pager->RecordCount > 0 && $litigantaddress_view->Pager->Visible) { ?>
<div class="ew-pager">
<span><?php echo $Language->Phrase("Page") ?>&nbsp;</span>
<div class="ew-prev-next"><div class="input-group input-group-sm">
<div class="input-group-prepend">
<!-- first page button -->
	<?php if ($litigantaddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->FirstButton->Start ?>"><i class="icon-first ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerFirst") ?>"><i class="icon-first ew-icon"></i></a>
	<?php } ?>
<!-- previous page button -->
	<?php if ($litigantaddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->PrevButton->Start ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerPrevious") ?>"><i class="icon-prev ew-icon"></i></a>
	<?php } ?>
</div>
<!-- current page number -->
	<input class="form-control" type="text" name="<?php echo TABLE_PAGE_NO ?>" value="<?php echo $litigantaddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($litigantaddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->NextButton->Start ?>"><i class="icon-next ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerNext") ?>"><i class="icon-next ew-icon"></i></a>
	<?php } ?>
<!-- last page button -->
	<?php if ($litigantaddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $litigantaddress_view->pageUrl() ?>start=<?php echo $litigantaddress_view->Pager->LastButton->Start ?>"><i class="icon-last ew-icon"></i></a>
	<?php } else { ?>
	<a class="btn btn-default disabled" title="<?php echo $Language->phrase("PagerLast") ?>"><i class="icon-last ew-icon"></i></a>
	<?php } ?>
</div>
</div>
</div>
<span>&nbsp;<?php echo $Language->Phrase("of") ?>&nbsp;<?php echo $litigantaddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$litigantaddress_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$litigantaddress->isExport()) { ?>
<script>

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$litigantaddress_view->terminate();
?>
