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

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

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

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

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

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

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

// Dynamic selection lists
flitigantcontactview.lists["x_LitigantID"] = <?php echo $litigantcontact_view->LitigantID->Lookup->toClientList() ?>;
flitigantcontactview.lists["x_LitigantID"].options = <?php echo JsonEncode($litigantcontact_view->LitigantID->lookupOptions()) ?>;
flitigantcontactview.lists["x_ContactTypeID"] = <?php echo $litigantcontact_view->ContactTypeID->Lookup->toClientList() ?>;
flitigantcontactview.lists["x_ContactTypeID"].options = <?php echo JsonEncode($litigantcontact_view->ContactTypeID->lookupOptions()) ?>;
flitigantcontactview.lists["x_Primary[]"] = <?php echo $litigantcontact_view->Primary->Lookup->toClientList() ?>;
flitigantcontactview.lists["x_Primary[]"].options = <?php echo JsonEncode($litigantcontact_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 (!$litigantcontact->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $litigantcontact_view->ExportOptions->render("body") ?>
<?php $litigantcontact_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $litigantcontact_view->showPageHeader(); ?>
<?php
$litigantcontact_view->showMessage();
?>
<?php if (!$litigantcontact_view->IsModal) { ?>
<?php if (!$litigantcontact->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($litigantcontact_view->Pager)) $litigantcontact_view->Pager = new PrevNextPager($litigantcontact_view->StartRec, $litigantcontact_view->DisplayRecs, $litigantcontact_view->TotalRecs, $litigantcontact_view->AutoHidePager) ?>
<?php if ($litigantcontact_view->Pager->RecordCount > 0 && $litigantcontact_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 ($litigantcontact_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 ($litigantcontact_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 $litigantcontact_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($litigantcontact_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 ($litigantcontact_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 $litigantcontact_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="flitigantcontactview" id="flitigantcontactview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($litigantcontact_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $litigantcontact_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="litigantcontact">
<input type="hidden" name="modal" value="<?php echo (int)$litigantcontact_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($litigantcontact->LitigantID->Visible) { // LitigantID ?>
	<tr id="r_LitigantID">
		<td class="<?php echo $litigantcontact_view->TableLeftColumnClass ?>"><span id="elh_litigantcontact_LitigantID"><?php echo $litigantcontact->LitigantID->caption() ?></span></td>
		<td data-name="LitigantID"<?php echo $litigantcontact->LitigantID->cellAttributes() ?>>
<span id="el_litigantcontact_LitigantID">
<span<?php echo $litigantcontact->LitigantID->viewAttributes() ?>>
<?php echo $litigantcontact->LitigantID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantcontact->ContactTypeID->Visible) { // ContactTypeID ?>
	<tr id="r_ContactTypeID">
		<td class="<?php echo $litigantcontact_view->TableLeftColumnClass ?>"><span id="elh_litigantcontact_ContactTypeID"><?php echo $litigantcontact->ContactTypeID->caption() ?></span></td>
		<td data-name="ContactTypeID"<?php echo $litigantcontact->ContactTypeID->cellAttributes() ?>>
<span id="el_litigantcontact_ContactTypeID">
<span<?php echo $litigantcontact->ContactTypeID->viewAttributes() ?>>
<?php echo $litigantcontact->ContactTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantcontact->Contact->Visible) { // Contact ?>
	<tr id="r_Contact">
		<td class="<?php echo $litigantcontact_view->TableLeftColumnClass ?>"><span id="elh_litigantcontact_Contact"><?php echo $litigantcontact->Contact->caption() ?></span></td>
		<td data-name="Contact"<?php echo $litigantcontact->Contact->cellAttributes() ?>>
<span id="el_litigantcontact_Contact">
<span<?php echo $litigantcontact->Contact->viewAttributes() ?>>
<?php echo $litigantcontact->Contact->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantcontact->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $litigantcontact_view->TableLeftColumnClass ?>"><span id="elh_litigantcontact_Notes"><?php echo $litigantcontact->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $litigantcontact->Notes->cellAttributes() ?>>
<span id="el_litigantcontact_Notes">
<span<?php echo $litigantcontact->Notes->viewAttributes() ?>>
<?php echo $litigantcontact->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($litigantcontact->Primary->Visible) { // Primary ?>
	<tr id="r_Primary">
		<td class="<?php echo $litigantcontact_view->TableLeftColumnClass ?>"><span id="elh_litigantcontact_Primary"><?php echo $litigantcontact->Primary->caption() ?></span></td>
		<td data-name="Primary"<?php echo $litigantcontact->Primary->cellAttributes() ?>>
<span id="el_litigantcontact_Primary">
<span<?php echo $litigantcontact->Primary->viewAttributes() ?>>
<?php if (ConvertToBool($litigantcontact->Primary->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $litigantcontact->Primary->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $litigantcontact->Primary->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$litigantcontact_view->IsModal) { ?>
<?php if (!$litigantcontact->isExport()) { ?>
<?php if (!isset($litigantcontact_view->Pager)) $litigantcontact_view->Pager = new PrevNextPager($litigantcontact_view->StartRec, $litigantcontact_view->DisplayRecs, $litigantcontact_view->TotalRecs, $litigantcontact_view->AutoHidePager) ?>
<?php if ($litigantcontact_view->Pager->RecordCount > 0 && $litigantcontact_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 ($litigantcontact_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 ($litigantcontact_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 $litigantcontact_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($litigantcontact_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 ($litigantcontact_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $litigantcontact_view->pageUrl() ?>start=<?php echo $litigantcontact_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 $litigantcontact_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$litigantcontact_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$litigantcontact->isExport()) { ?>
<script>

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

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