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

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

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

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

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

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

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

// Dynamic selection lists
fclients2view.lists["x_ClientTypeID"] = <?php echo $clients2_view->ClientTypeID->Lookup->toClientList() ?>;
fclients2view.lists["x_ClientTypeID"].options = <?php echo JsonEncode($clients2_view->ClientTypeID->lookupOptions()) ?>;
fclients2view.lists["x_ClientGroupID"] = <?php echo $clients2_view->ClientGroupID->Lookup->toClientList() ?>;
fclients2view.lists["x_ClientGroupID"].options = <?php echo JsonEncode($clients2_view->ClientGroupID->lookupOptions()) ?>;
fclients2view.autoSuggests["x_ClientGroupID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fclients2view.lists["x_TitleID"] = <?php echo $clients2_view->TitleID->Lookup->toClientList() ?>;
fclients2view.lists["x_TitleID"].options = <?php echo JsonEncode($clients2_view->TitleID->lookupOptions()) ?>;
fclients2view.lists["x_Gender"] = <?php echo $clients2_view->Gender->Lookup->toClientList() ?>;
fclients2view.lists["x_Gender"].options = <?php echo JsonEncode($clients2_view->Gender->options(FALSE, TRUE)) ?>;

// Form object for search
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$clients2->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $clients2_view->ExportOptions->render("body") ?>
<?php $clients2_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $clients2_view->showPageHeader(); ?>
<?php
$clients2_view->showMessage();
?>
<?php if (!$clients2_view->IsModal) { ?>
<?php if (!$clients2->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($clients2_view->Pager)) $clients2_view->Pager = new PrevNextPager($clients2_view->StartRec, $clients2_view->DisplayRecs, $clients2_view->TotalRecs, $clients2_view->AutoHidePager) ?>
<?php if ($clients2_view->Pager->RecordCount > 0 && $clients2_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 ($clients2_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 ($clients2_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 $clients2_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($clients2_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 ($clients2_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 $clients2_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fclients2view" id="fclients2view" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($clients2_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $clients2_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="clients2">
<input type="hidden" name="modal" value="<?php echo (int)$clients2_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($clients2->ClientID->Visible) { // ClientID ?>
	<tr id="r_ClientID">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_ClientID"><?php echo $clients2->ClientID->caption() ?></span></td>
		<td data-name="ClientID"<?php echo $clients2->ClientID->cellAttributes() ?>>
<span id="el_clients2_ClientID">
<span<?php echo $clients2->ClientID->viewAttributes() ?>>
<?php echo $clients2->ClientID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->ClientTypeID->Visible) { // ClientTypeID ?>
	<tr id="r_ClientTypeID">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_ClientTypeID"><?php echo $clients2->ClientTypeID->caption() ?></span></td>
		<td data-name="ClientTypeID"<?php echo $clients2->ClientTypeID->cellAttributes() ?>>
<span id="el_clients2_ClientTypeID">
<span<?php echo $clients2->ClientTypeID->viewAttributes() ?>>
<?php echo $clients2->ClientTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->ClientGroupID->Visible) { // ClientGroupID ?>
	<tr id="r_ClientGroupID">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_ClientGroupID"><?php echo $clients2->ClientGroupID->caption() ?></span></td>
		<td data-name="ClientGroupID"<?php echo $clients2->ClientGroupID->cellAttributes() ?>>
<span id="el_clients2_ClientGroupID">
<span<?php echo $clients2->ClientGroupID->viewAttributes() ?>>
<?php echo $clients2->ClientGroupID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->WorkNature->Visible) { // WorkNature ?>
	<tr id="r_WorkNature">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_WorkNature"><?php echo $clients2->WorkNature->caption() ?></span></td>
		<td data-name="WorkNature"<?php echo $clients2->WorkNature->cellAttributes() ?>>
<span id="el_clients2_WorkNature">
<span<?php echo $clients2->WorkNature->viewAttributes() ?>>
<?php echo $clients2->WorkNature->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->CompanyName->Visible) { // CompanyName ?>
	<tr id="r_CompanyName">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_CompanyName"><?php echo $clients2->CompanyName->caption() ?></span></td>
		<td data-name="CompanyName"<?php echo $clients2->CompanyName->cellAttributes() ?>>
<span id="el_clients2_CompanyName">
<span<?php echo $clients2->CompanyName->viewAttributes() ?>>
<?php echo $clients2->CompanyName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->TitleID->Visible) { // TitleID ?>
	<tr id="r_TitleID">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_TitleID"><?php echo $clients2->TitleID->caption() ?></span></td>
		<td data-name="TitleID"<?php echo $clients2->TitleID->cellAttributes() ?>>
<span id="el_clients2_TitleID">
<span<?php echo $clients2->TitleID->viewAttributes() ?>>
<?php echo $clients2->TitleID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->FirstName->Visible) { // FirstName ?>
	<tr id="r_FirstName">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_FirstName"><?php echo $clients2->FirstName->caption() ?></span></td>
		<td data-name="FirstName"<?php echo $clients2->FirstName->cellAttributes() ?>>
<span id="el_clients2_FirstName">
<span<?php echo $clients2->FirstName->viewAttributes() ?>>
<?php echo $clients2->FirstName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->MiddleName->Visible) { // MiddleName ?>
	<tr id="r_MiddleName">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_MiddleName"><?php echo $clients2->MiddleName->caption() ?></span></td>
		<td data-name="MiddleName"<?php echo $clients2->MiddleName->cellAttributes() ?>>
<span id="el_clients2_MiddleName">
<span<?php echo $clients2->MiddleName->viewAttributes() ?>>
<?php echo $clients2->MiddleName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->LastName->Visible) { // LastName ?>
	<tr id="r_LastName">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_LastName"><?php echo $clients2->LastName->caption() ?></span></td>
		<td data-name="LastName"<?php echo $clients2->LastName->cellAttributes() ?>>
<span id="el_clients2_LastName">
<span<?php echo $clients2->LastName->viewAttributes() ?>>
<?php echo $clients2->LastName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->PartnersName->Visible) { // PartnersName ?>
	<tr id="r_PartnersName">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_PartnersName"><?php echo $clients2->PartnersName->caption() ?></span></td>
		<td data-name="PartnersName"<?php echo $clients2->PartnersName->cellAttributes() ?>>
<span id="el_clients2_PartnersName">
<span<?php echo $clients2->PartnersName->viewAttributes() ?>>
<?php echo $clients2->PartnersName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->ContactPerson->Visible) { // ContactPerson ?>
	<tr id="r_ContactPerson">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_ContactPerson"><?php echo $clients2->ContactPerson->caption() ?></span></td>
		<td data-name="ContactPerson"<?php echo $clients2->ContactPerson->cellAttributes() ?>>
<span id="el_clients2_ContactPerson">
<span<?php echo $clients2->ContactPerson->viewAttributes() ?>>
<?php echo $clients2->ContactPerson->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->JobTitle->Visible) { // JobTitle ?>
	<tr id="r_JobTitle">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_JobTitle"><?php echo $clients2->JobTitle->caption() ?></span></td>
		<td data-name="JobTitle"<?php echo $clients2->JobTitle->cellAttributes() ?>>
<span id="el_clients2_JobTitle">
<span<?php echo $clients2->JobTitle->viewAttributes() ?>>
<?php echo $clients2->JobTitle->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->Photo->Visible) { // Photo ?>
	<tr id="r_Photo">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_Photo"><?php echo $clients2->Photo->caption() ?></span></td>
		<td data-name="Photo"<?php echo $clients2->Photo->cellAttributes() ?>>
<span id="el_clients2_Photo">
<span>
<?php echo GetFileViewTag($clients2->Photo, $clients2->Photo->getViewValue()) ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->BirthDate->Visible) { // BirthDate ?>
	<tr id="r_BirthDate">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_BirthDate"><?php echo $clients2->BirthDate->caption() ?></span></td>
		<td data-name="BirthDate"<?php echo $clients2->BirthDate->cellAttributes() ?>>
<span id="el_clients2_BirthDate">
<span<?php echo $clients2->BirthDate->viewAttributes() ?>>
<?php echo $clients2->BirthDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_Notes"><?php echo $clients2->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $clients2->Notes->cellAttributes() ?>>
<span id="el_clients2_Notes">
<span<?php echo $clients2->Notes->viewAttributes() ?>>
<?php echo $clients2->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($clients2->Gender->Visible) { // Gender ?>
	<tr id="r_Gender">
		<td class="<?php echo $clients2_view->TableLeftColumnClass ?>"><span id="elh_clients2_Gender"><?php echo $clients2->Gender->caption() ?></span></td>
		<td data-name="Gender"<?php echo $clients2->Gender->cellAttributes() ?>>
<span id="el_clients2_Gender">
<span<?php echo $clients2->Gender->viewAttributes() ?>>
<?php echo $clients2->Gender->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$clients2_view->IsModal) { ?>
<?php if (!$clients2->isExport()) { ?>
<?php if (!isset($clients2_view->Pager)) $clients2_view->Pager = new PrevNextPager($clients2_view->StartRec, $clients2_view->DisplayRecs, $clients2_view->TotalRecs, $clients2_view->AutoHidePager) ?>
<?php if ($clients2_view->Pager->RecordCount > 0 && $clients2_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 ($clients2_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 ($clients2_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 $clients2_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($clients2_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 ($clients2_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $clients2_view->pageUrl() ?>start=<?php echo $clients2_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 $clients2_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$clients2_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$clients2->isExport()) { ?>
<script>

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

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