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

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

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

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

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

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

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

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

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

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

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

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

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