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

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

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

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

// Page Rendering event
$lawyeraddress_preview->Page_Render();
?>
<?php $lawyeraddress_preview->showPageHeader(); ?>
<div class="card ew-grid lawyeraddress"><!-- .card -->
<?php if ($lawyeraddress_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
$lawyeraddress_preview->renderListOptions();

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

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

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

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

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

// Render list options (body, left)
$lawyeraddress_preview->ListOptions->render("body", "left", $lawyeraddress_preview->RowCnt);
?>
<?php if ($lawyeraddress->LawyerID->Visible) { // LawyerID ?>
		<!-- LawyerID -->
		<td<?php echo $lawyeraddress->LawyerID->cellAttributes() ?>>
<span<?php echo $lawyeraddress->LawyerID->viewAttributes() ?>>
<?php echo $lawyeraddress->LawyerID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->AddressTypeID->Visible) { // AddressTypeID ?>
		<!-- AddressTypeID -->
		<td<?php echo $lawyeraddress->AddressTypeID->cellAttributes() ?>>
<span<?php echo $lawyeraddress->AddressTypeID->viewAttributes() ?>>
<?php echo $lawyeraddress->AddressTypeID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->Address->Visible) { // Address ?>
		<!-- Address -->
		<td<?php echo $lawyeraddress->Address->cellAttributes() ?>>
<span<?php echo $lawyeraddress->Address->viewAttributes() ?>>
<?php echo $lawyeraddress->Address->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->City->Visible) { // City ?>
		<!-- City -->
		<td<?php echo $lawyeraddress->City->cellAttributes() ?>>
<span<?php echo $lawyeraddress->City->viewAttributes() ?>>
<?php echo $lawyeraddress->City->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->Region->Visible) { // Region ?>
		<!-- Region -->
		<td<?php echo $lawyeraddress->Region->cellAttributes() ?>>
<span<?php echo $lawyeraddress->Region->viewAttributes() ?>>
<?php echo $lawyeraddress->Region->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->PostalCode->Visible) { // PostalCode ?>
		<!-- PostalCode -->
		<td<?php echo $lawyeraddress->PostalCode->cellAttributes() ?>>
<span<?php echo $lawyeraddress->PostalCode->viewAttributes() ?>>
<?php echo $lawyeraddress->PostalCode->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->Country->Visible) { // Country ?>
		<!-- Country -->
		<td<?php echo $lawyeraddress->Country->cellAttributes() ?>>
<span<?php echo $lawyeraddress->Country->viewAttributes() ?>>
<?php echo $lawyeraddress->Country->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->Notes->Visible) { // Notes ?>
		<!-- Notes -->
		<td<?php echo $lawyeraddress->Notes->cellAttributes() ?>>
<span<?php echo $lawyeraddress->Notes->viewAttributes() ?>>
<?php echo $lawyeraddress->Notes->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($lawyeraddress->Primary->Visible) { // Primary ?>
		<!-- Primary -->
		<td<?php echo $lawyeraddress->Primary->cellAttributes() ?>>
<span<?php echo $lawyeraddress->Primary->viewAttributes() ?>>
<?php if (ConvertToBool($lawyeraddress->Primary->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $lawyeraddress->Primary->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $lawyeraddress->Primary->getViewValue() ?>" disabled>
<?php } ?>
</span>
</td>
<?php } ?>
<?php

// Render list options (body, right)
$lawyeraddress_preview->ListOptions->render("body", "right", $lawyeraddress_preview->RowCnt);
?>
	</tr>
<?php
	$lawyeraddress_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 ($lawyeraddress_preview->TotalRecs > 0) { ?>
<?php if (!isset($lawyeraddress_preview->Pager)) $lawyeraddress_preview->Pager = new PrevNextPager($lawyeraddress_preview->StartRec, $lawyeraddress_preview->DisplayRecs, $lawyeraddress_preview->TotalRecs) ?>
<?php if ($lawyeraddress_preview->Pager->RecordCount > 0 && $lawyeraddress_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 ($lawyeraddress_preview->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" data-start="<?php echo $lawyeraddress_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 ($lawyeraddress_preview->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" data-start="<?php echo $lawyeraddress_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 ($lawyeraddress_preview->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" data-start="<?php echo $lawyeraddress_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 ($lawyeraddress_preview->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" data-start="<?php echo $lawyeraddress_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 $lawyeraddress_preview->Pager->FromIndex ?>&nbsp;<?php echo $Language->phrase("To") ?>&nbsp;<?php echo $lawyeraddress_preview->Pager->ToIndex ?>&nbsp;<?php echo $Language->phrase("Of") ?>&nbsp;<?php echo $lawyeraddress_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 ($lawyeraddress_preview->OtherOptions as &$option)
		$option->render("body");
?>
</div>
<div class="clearfix"></div>
</div><!-- /.card-footer -->
</div><!-- /.card -->
<?php
$lawyeraddress_preview->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php
if ($lawyeraddress_preview->Recordset)
	$lawyeraddress_preview->Recordset->Close();

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