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

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

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

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

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

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

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

// Dynamic selection lists
fjudgeaddressview.lists["x_JudgeID"] = <?php echo $judgeaddress_view->JudgeID->Lookup->toClientList() ?>;
fjudgeaddressview.lists["x_JudgeID"].options = <?php echo JsonEncode($judgeaddress_view->JudgeID->lookupOptions()) ?>;
fjudgeaddressview.lists["x_AddressTypeID"] = <?php echo $judgeaddress_view->AddressTypeID->Lookup->toClientList() ?>;
fjudgeaddressview.lists["x_AddressTypeID"].options = <?php echo JsonEncode($judgeaddress_view->AddressTypeID->lookupOptions()) ?>;
fjudgeaddressview.lists["x_Primary[]"] = <?php echo $judgeaddress_view->Primary->Lookup->toClientList() ?>;
fjudgeaddressview.lists["x_Primary[]"].options = <?php echo JsonEncode($judgeaddress_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 (!$judgeaddress->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $judgeaddress_view->ExportOptions->render("body") ?>
<?php $judgeaddress_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $judgeaddress_view->showPageHeader(); ?>
<?php
$judgeaddress_view->showMessage();
?>
<?php if (!$judgeaddress_view->IsModal) { ?>
<?php if (!$judgeaddress->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($judgeaddress_view->Pager)) $judgeaddress_view->Pager = new PrevNextPager($judgeaddress_view->StartRec, $judgeaddress_view->DisplayRecs, $judgeaddress_view->TotalRecs, $judgeaddress_view->AutoHidePager) ?>
<?php if ($judgeaddress_view->Pager->RecordCount > 0 && $judgeaddress_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 ($judgeaddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 ($judgeaddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 $judgeaddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($judgeaddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 ($judgeaddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 $judgeaddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fjudgeaddressview" id="fjudgeaddressview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($judgeaddress_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $judgeaddress_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="judgeaddress">
<input type="hidden" name="modal" value="<?php echo (int)$judgeaddress_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($judgeaddress->JudgeID->Visible) { // JudgeID ?>
	<tr id="r_JudgeID">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_JudgeID"><?php echo $judgeaddress->JudgeID->caption() ?></span></td>
		<td data-name="JudgeID"<?php echo $judgeaddress->JudgeID->cellAttributes() ?>>
<span id="el_judgeaddress_JudgeID">
<span<?php echo $judgeaddress->JudgeID->viewAttributes() ?>>
<?php echo $judgeaddress->JudgeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->AddressTypeID->Visible) { // AddressTypeID ?>
	<tr id="r_AddressTypeID">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_AddressTypeID"><?php echo $judgeaddress->AddressTypeID->caption() ?></span></td>
		<td data-name="AddressTypeID"<?php echo $judgeaddress->AddressTypeID->cellAttributes() ?>>
<span id="el_judgeaddress_AddressTypeID">
<span<?php echo $judgeaddress->AddressTypeID->viewAttributes() ?>>
<?php echo $judgeaddress->AddressTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->Address->Visible) { // Address ?>
	<tr id="r_Address">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_Address"><?php echo $judgeaddress->Address->caption() ?></span></td>
		<td data-name="Address"<?php echo $judgeaddress->Address->cellAttributes() ?>>
<span id="el_judgeaddress_Address">
<span<?php echo $judgeaddress->Address->viewAttributes() ?>>
<?php echo $judgeaddress->Address->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->City->Visible) { // City ?>
	<tr id="r_City">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_City"><?php echo $judgeaddress->City->caption() ?></span></td>
		<td data-name="City"<?php echo $judgeaddress->City->cellAttributes() ?>>
<span id="el_judgeaddress_City">
<span<?php echo $judgeaddress->City->viewAttributes() ?>>
<?php echo $judgeaddress->City->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->Region->Visible) { // Region ?>
	<tr id="r_Region">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_Region"><?php echo $judgeaddress->Region->caption() ?></span></td>
		<td data-name="Region"<?php echo $judgeaddress->Region->cellAttributes() ?>>
<span id="el_judgeaddress_Region">
<span<?php echo $judgeaddress->Region->viewAttributes() ?>>
<?php echo $judgeaddress->Region->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->PostalCode->Visible) { // PostalCode ?>
	<tr id="r_PostalCode">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_PostalCode"><?php echo $judgeaddress->PostalCode->caption() ?></span></td>
		<td data-name="PostalCode"<?php echo $judgeaddress->PostalCode->cellAttributes() ?>>
<span id="el_judgeaddress_PostalCode">
<span<?php echo $judgeaddress->PostalCode->viewAttributes() ?>>
<?php echo $judgeaddress->PostalCode->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->Country->Visible) { // Country ?>
	<tr id="r_Country">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_Country"><?php echo $judgeaddress->Country->caption() ?></span></td>
		<td data-name="Country"<?php echo $judgeaddress->Country->cellAttributes() ?>>
<span id="el_judgeaddress_Country">
<span<?php echo $judgeaddress->Country->viewAttributes() ?>>
<?php echo $judgeaddress->Country->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_Notes"><?php echo $judgeaddress->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $judgeaddress->Notes->cellAttributes() ?>>
<span id="el_judgeaddress_Notes">
<span<?php echo $judgeaddress->Notes->viewAttributes() ?>>
<?php echo $judgeaddress->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($judgeaddress->Primary->Visible) { // Primary ?>
	<tr id="r_Primary">
		<td class="<?php echo $judgeaddress_view->TableLeftColumnClass ?>"><span id="elh_judgeaddress_Primary"><?php echo $judgeaddress->Primary->caption() ?></span></td>
		<td data-name="Primary"<?php echo $judgeaddress->Primary->cellAttributes() ?>>
<span id="el_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>
	</tr>
<?php } ?>
</table>
<?php if (!$judgeaddress_view->IsModal) { ?>
<?php if (!$judgeaddress->isExport()) { ?>
<?php if (!isset($judgeaddress_view->Pager)) $judgeaddress_view->Pager = new PrevNextPager($judgeaddress_view->StartRec, $judgeaddress_view->DisplayRecs, $judgeaddress_view->TotalRecs, $judgeaddress_view->AutoHidePager) ?>
<?php if ($judgeaddress_view->Pager->RecordCount > 0 && $judgeaddress_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 ($judgeaddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 ($judgeaddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 $judgeaddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($judgeaddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 ($judgeaddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $judgeaddress_view->pageUrl() ?>start=<?php echo $judgeaddress_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 $judgeaddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$judgeaddress_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$judgeaddress->isExport()) { ?>
<script>

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

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