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

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

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

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

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

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

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

// Dynamic selection lists
flawyeraddressview.lists["x_LawyerID"] = <?php echo $lawyeraddress_view->LawyerID->Lookup->toClientList() ?>;
flawyeraddressview.lists["x_LawyerID"].options = <?php echo JsonEncode($lawyeraddress_view->LawyerID->lookupOptions()) ?>;
flawyeraddressview.lists["x_AddressTypeID"] = <?php echo $lawyeraddress_view->AddressTypeID->Lookup->toClientList() ?>;
flawyeraddressview.lists["x_AddressTypeID"].options = <?php echo JsonEncode($lawyeraddress_view->AddressTypeID->lookupOptions()) ?>;
flawyeraddressview.lists["x_Primary[]"] = <?php echo $lawyeraddress_view->Primary->Lookup->toClientList() ?>;
flawyeraddressview.lists["x_Primary[]"].options = <?php echo JsonEncode($lawyeraddress_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 (!$lawyeraddress->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $lawyeraddress_view->ExportOptions->render("body") ?>
<?php $lawyeraddress_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $lawyeraddress_view->showPageHeader(); ?>
<?php
$lawyeraddress_view->showMessage();
?>
<?php if (!$lawyeraddress_view->IsModal) { ?>
<?php if (!$lawyeraddress->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($lawyeraddress_view->Pager)) $lawyeraddress_view->Pager = new PrevNextPager($lawyeraddress_view->StartRec, $lawyeraddress_view->DisplayRecs, $lawyeraddress_view->TotalRecs, $lawyeraddress_view->AutoHidePager) ?>
<?php if ($lawyeraddress_view->Pager->RecordCount > 0 && $lawyeraddress_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 ($lawyeraddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 ($lawyeraddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 $lawyeraddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($lawyeraddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 ($lawyeraddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 $lawyeraddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="flawyeraddressview" id="flawyeraddressview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($lawyeraddress_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $lawyeraddress_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="lawyeraddress">
<input type="hidden" name="modal" value="<?php echo (int)$lawyeraddress_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($lawyeraddress->LawyerID->Visible) { // LawyerID ?>
	<tr id="r_LawyerID">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_LawyerID"><?php echo $lawyeraddress->LawyerID->caption() ?></span></td>
		<td data-name="LawyerID"<?php echo $lawyeraddress->LawyerID->cellAttributes() ?>>
<span id="el_lawyeraddress_LawyerID">
<span<?php echo $lawyeraddress->LawyerID->viewAttributes() ?>>
<?php echo $lawyeraddress->LawyerID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->AddressTypeID->Visible) { // AddressTypeID ?>
	<tr id="r_AddressTypeID">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_AddressTypeID"><?php echo $lawyeraddress->AddressTypeID->caption() ?></span></td>
		<td data-name="AddressTypeID"<?php echo $lawyeraddress->AddressTypeID->cellAttributes() ?>>
<span id="el_lawyeraddress_AddressTypeID">
<span<?php echo $lawyeraddress->AddressTypeID->viewAttributes() ?>>
<?php echo $lawyeraddress->AddressTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->Address->Visible) { // Address ?>
	<tr id="r_Address">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_Address"><?php echo $lawyeraddress->Address->caption() ?></span></td>
		<td data-name="Address"<?php echo $lawyeraddress->Address->cellAttributes() ?>>
<span id="el_lawyeraddress_Address">
<span<?php echo $lawyeraddress->Address->viewAttributes() ?>>
<?php echo $lawyeraddress->Address->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->City->Visible) { // City ?>
	<tr id="r_City">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_City"><?php echo $lawyeraddress->City->caption() ?></span></td>
		<td data-name="City"<?php echo $lawyeraddress->City->cellAttributes() ?>>
<span id="el_lawyeraddress_City">
<span<?php echo $lawyeraddress->City->viewAttributes() ?>>
<?php echo $lawyeraddress->City->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->Region->Visible) { // Region ?>
	<tr id="r_Region">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_Region"><?php echo $lawyeraddress->Region->caption() ?></span></td>
		<td data-name="Region"<?php echo $lawyeraddress->Region->cellAttributes() ?>>
<span id="el_lawyeraddress_Region">
<span<?php echo $lawyeraddress->Region->viewAttributes() ?>>
<?php echo $lawyeraddress->Region->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->PostalCode->Visible) { // PostalCode ?>
	<tr id="r_PostalCode">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_PostalCode"><?php echo $lawyeraddress->PostalCode->caption() ?></span></td>
		<td data-name="PostalCode"<?php echo $lawyeraddress->PostalCode->cellAttributes() ?>>
<span id="el_lawyeraddress_PostalCode">
<span<?php echo $lawyeraddress->PostalCode->viewAttributes() ?>>
<?php echo $lawyeraddress->PostalCode->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->Country->Visible) { // Country ?>
	<tr id="r_Country">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_Country"><?php echo $lawyeraddress->Country->caption() ?></span></td>
		<td data-name="Country"<?php echo $lawyeraddress->Country->cellAttributes() ?>>
<span id="el_lawyeraddress_Country">
<span<?php echo $lawyeraddress->Country->viewAttributes() ?>>
<?php echo $lawyeraddress->Country->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_Notes"><?php echo $lawyeraddress->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $lawyeraddress->Notes->cellAttributes() ?>>
<span id="el_lawyeraddress_Notes">
<span<?php echo $lawyeraddress->Notes->viewAttributes() ?>>
<?php echo $lawyeraddress->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($lawyeraddress->Primary->Visible) { // Primary ?>
	<tr id="r_Primary">
		<td class="<?php echo $lawyeraddress_view->TableLeftColumnClass ?>"><span id="elh_lawyeraddress_Primary"><?php echo $lawyeraddress->Primary->caption() ?></span></td>
		<td data-name="Primary"<?php echo $lawyeraddress->Primary->cellAttributes() ?>>
<span id="el_lawyeraddress_Primary">
<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>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$lawyeraddress_view->IsModal) { ?>
<?php if (!$lawyeraddress->isExport()) { ?>
<?php if (!isset($lawyeraddress_view->Pager)) $lawyeraddress_view->Pager = new PrevNextPager($lawyeraddress_view->StartRec, $lawyeraddress_view->DisplayRecs, $lawyeraddress_view->TotalRecs, $lawyeraddress_view->AutoHidePager) ?>
<?php if ($lawyeraddress_view->Pager->RecordCount > 0 && $lawyeraddress_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 ($lawyeraddress_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 ($lawyeraddress_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 $lawyeraddress_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($lawyeraddress_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 ($lawyeraddress_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $lawyeraddress_view->pageUrl() ?>start=<?php echo $lawyeraddress_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 $lawyeraddress_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$lawyeraddress_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$lawyeraddress->isExport()) { ?>
<script>

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

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