<?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, "utf-8");

// Create page object
$judgeaddress_preview = new judgeaddress_preview();

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

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

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

// Page Rendering event
$judgeaddress_preview->Page_Render();
?>
<?php $judgeaddress_preview->showPageHeader(); ?>
<div class="card ew-grid judgeaddress"><!-- .card -->
<?php if ($judgeaddress_preview->TotalRecs > 0) { ?>
<div class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel"><!-- .table-responsive -->
<table class="table ew-table ew-preview-table"><!-- .table -->
	<thead><!-- Table header -->
		<tr class="ew-table-header">
<?php

// Render list options
$judgeaddress_preview->renderListOptions();

// Render list options (header, left)
$judgeaddress_preview->ListOptions->render("header", "left");
?>
<?php if ($judgeaddress->JudgeID->Visible) { // JudgeID ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->JudgeID) == "") { ?>
		<th class="<?php echo $judgeaddress->JudgeID->headerCellClass() ?>"><?php echo $judgeaddress->JudgeID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->JudgeID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->JudgeID->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->JudgeID->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->JudgeID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->JudgeID->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->AddressTypeID->Visible) { // AddressTypeID ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->AddressTypeID) == "") { ?>
		<th class="<?php echo $judgeaddress->AddressTypeID->headerCellClass() ?>"><?php echo $judgeaddress->AddressTypeID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->AddressTypeID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->AddressTypeID->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->AddressTypeID->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->AddressTypeID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->AddressTypeID->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->Address->Visible) { // Address ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->Address) == "") { ?>
		<th class="<?php echo $judgeaddress->Address->headerCellClass() ?>"><?php echo $judgeaddress->Address->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->Address->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->Address->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->Address->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->Address->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->Address->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->City->Visible) { // City ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->City) == "") { ?>
		<th class="<?php echo $judgeaddress->City->headerCellClass() ?>"><?php echo $judgeaddress->City->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->City->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->City->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->City->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->City->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->City->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->Region->Visible) { // Region ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->Region) == "") { ?>
		<th class="<?php echo $judgeaddress->Region->headerCellClass() ?>"><?php echo $judgeaddress->Region->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->Region->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->Region->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->Region->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->Region->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->Region->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->PostalCode->Visible) { // PostalCode ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->PostalCode) == "") { ?>
		<th class="<?php echo $judgeaddress->PostalCode->headerCellClass() ?>"><?php echo $judgeaddress->PostalCode->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->PostalCode->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->PostalCode->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->PostalCode->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->PostalCode->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->PostalCode->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->Country->Visible) { // Country ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->Country) == "") { ?>
		<th class="<?php echo $judgeaddress->Country->headerCellClass() ?>"><?php echo $judgeaddress->Country->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->Country->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->Country->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->Country->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->Country->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->Country->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->Notes->Visible) { // Notes ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->Notes) == "") { ?>
		<th class="<?php echo $judgeaddress->Notes->headerCellClass() ?>"><?php echo $judgeaddress->Notes->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->Notes->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->Notes->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->Notes->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->Notes->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->Notes->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($judgeaddress->Primary->Visible) { // Primary ?>
	<?php if ($judgeaddress->SortUrl($judgeaddress->Primary) == "") { ?>
		<th class="<?php echo $judgeaddress->Primary->headerCellClass() ?>"><?php echo $judgeaddress->Primary->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $judgeaddress->Primary->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $judgeaddress->Primary->Name ?>" data-sort-order="<?php echo $judgeaddress_preview->SortField == $judgeaddress->Primary->Name && $judgeaddress_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $judgeaddress->Primary->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($judgeaddress_preview->SortField == $judgeaddress->Primary->Name) { ?><?php if ($judgeaddress_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($judgeaddress_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$judgeaddress_preview->ListOptions->render("header", "right");
?>
		</tr>
	</thead>
	<tbody><!-- Table body -->
<?php
$judgeaddress_preview->RecCount = 0;
$judgeaddress_preview->RowCnt = 0;
while ($judgeaddress_preview->Recordset && !$judgeaddress_preview->Recordset->EOF) {

	// Init row class and style
	$judgeaddress_preview->RecCount++;
	$judgeaddress_preview->RowCnt++;
	$judgeaddress_preview->CssStyle = "";
	$judgeaddress_preview->loadListRowValues($judgeaddress_preview->Recordset);

	// Render row
	$judgeaddress_preview->RowType = ROWTYPE_PREVIEW; // Preview record
	$judgeaddress_preview->resetAttributes();
	$judgeaddress_preview->renderListRow();

	// Render list options
	$judgeaddress_preview->renderListOptions();
?>
	<tr<?php echo $judgeaddress_preview->rowAttributes() ?>>
<?php

// Render list options (body, left)
$judgeaddress_preview->ListOptions->render("body", "left", $judgeaddress_preview->RowCnt);
?>
<?php if ($judgeaddress->JudgeID->Visible) { // JudgeID ?>
		<!-- JudgeID -->
		<td<?php echo $judgeaddress->JudgeID->cellAttributes() ?>>
<span<?php echo $judgeaddress->JudgeID->viewAttributes() ?>>
<?php echo $judgeaddress->JudgeID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<!-- AddressTypeID -->
		<td<?php echo $judgeaddress->AddressTypeID->cellAttributes() ?>>
<span<?php echo $judgeaddress->AddressTypeID->viewAttributes() ?>>
<?php echo $judgeaddress->AddressTypeID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->Address->Visible) { // Address ?>
		<!-- Address -->
		<td<?php echo $judgeaddress->Address->cellAttributes() ?>>
<span<?php echo $judgeaddress->Address->viewAttributes() ?>>
<?php echo $judgeaddress->Address->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->City->Visible) { // City ?>
		<!-- City -->
		<td<?php echo $judgeaddress->City->cellAttributes() ?>>
<span<?php echo $judgeaddress->City->viewAttributes() ?>>
<?php echo $judgeaddress->City->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->Region->Visible) { // Region ?>
		<!-- Region -->
		<td<?php echo $judgeaddress->Region->cellAttributes() ?>>
<span<?php echo $judgeaddress->Region->viewAttributes() ?>>
<?php echo $judgeaddress->Region->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->PostalCode->Visible) { // PostalCode ?>
		<!-- PostalCode -->
		<td<?php echo $judgeaddress->PostalCode->cellAttributes() ?>>
<span<?php echo $judgeaddress->PostalCode->viewAttributes() ?>>
<?php echo $judgeaddress->PostalCode->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->Country->Visible) { // Country ?>
		<!-- Country -->
		<td<?php echo $judgeaddress->Country->cellAttributes() ?>>
<span<?php echo $judgeaddress->Country->viewAttributes() ?>>
<?php echo $judgeaddress->Country->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->Notes->Visible) { // Notes ?>
		<!-- Notes -->
		<td<?php echo $judgeaddress->Notes->cellAttributes() ?>>
<span<?php echo $judgeaddress->Notes->viewAttributes() ?>>
<?php echo $judgeaddress->Notes->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($judgeaddress->Primary->Visible) { // Primary ?>
		<!-- Primary -->
		<td<?php echo $judgeaddress->Primary->cellAttributes() ?>>
<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>
</td>
<?php } ?>
<?php

// Render list options (body, right)
$judgeaddress_preview->ListOptions->render("body", "right", $judgeaddress_preview->RowCnt);
?>
	</tr>
<?php
	$judgeaddress_preview->Recordset->MoveNext();
}
?>
	</tbody>
</table><!-- /.table -->
</div><!-- /.table-responsive -->
<?php } ?>
<div class="card-footer ew-grid-lower-panel ew-preview-lower-panel"><!-- .card-footer -->
<?php if ($judgeaddress_preview->TotalRecs > 0) { ?>
<?php if (!isset($judgeaddress_preview->Pager)) $judgeaddress_preview->Pager = new PrevNextPager($judgeaddress_preview->StartRec, $judgeaddress_preview->DisplayRecs, $judgeaddress_preview->TotalRecs) ?>
<?php if ($judgeaddress_preview->Pager->RecordCount > 0 && $judgeaddress_preview->Pager->Visible) { ?>
<div class="ew-pager"><div class="ew-prev-next"><div class="btn-group btn-group-sm ew-btn-group">
<!--first page button-->
	<?php if ($judgeaddress_preview->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" data-start="<?php echo $judgeaddress_preview->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_preview->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" data-start="<?php echo $judgeaddress_preview->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 } ?>
<!--next page button-->
	<?php if ($judgeaddress_preview->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" data-start="<?php echo $judgeaddress_preview->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_preview->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" data-start="<?php echo $judgeaddress_preview->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>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->phrase("Record") ?>&nbsp;<?php echo $judgeaddress_preview->Pager->FromIndex ?>&nbsp;<?php echo $Language->phrase("To") ?>&nbsp;<?php echo $judgeaddress_preview->Pager->ToIndex ?>&nbsp;<?php echo $Language->phrase("Of") ?>&nbsp;<?php echo $judgeaddress_preview->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php } else { ?>
<div class="ew-detail-count"><?php echo $Language->Phrase("NoRecord") ?></div>
<?php } ?>
<div class="ew-preview-other-options">
<?php
	foreach ($judgeaddress_preview->OtherOptions as &$option)
		$option->render("body");
?>
</div>
<div class="clearfix"></div>
</div><!-- /.card-footer -->
</div><!-- /.card -->
<?php
$judgeaddress_preview->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php
if ($judgeaddress_preview->Recordset)
	$judgeaddress_preview->Recordset->Close();

// Output
$content = ob_get_contents();
ob_end_clean();
echo ConvertToUtf8($content);
?>
<?php
$judgeaddress_preview->terminate();
?>
