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

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

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

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

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

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

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

// Dynamic selection lists
fcases2view.lists["x_ClientID"] = <?php echo $cases2_view->ClientID->Lookup->toClientList() ?>;
fcases2view.lists["x_ClientID"].options = <?php echo JsonEncode($cases2_view->ClientID->lookupOptions()) ?>;
fcases2view.autoSuggests["x_ClientID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcases2view.lists["x_LitigantID"] = <?php echo $cases2_view->LitigantID->Lookup->toClientList() ?>;
fcases2view.lists["x_LitigantID"].options = <?php echo JsonEncode($cases2_view->LitigantID->lookupOptions()) ?>;
fcases2view.autoSuggests["x_LitigantID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcases2view.lists["x_CaseTypeID"] = <?php echo $cases2_view->CaseTypeID->Lookup->toClientList() ?>;
fcases2view.lists["x_CaseTypeID"].options = <?php echo JsonEncode($cases2_view->CaseTypeID->lookupOptions()) ?>;
fcases2view.lists["x_CourtID"] = <?php echo $cases2_view->CourtID->Lookup->toClientList() ?>;
fcases2view.lists["x_CourtID"].options = <?php echo JsonEncode($cases2_view->CourtID->lookupOptions()) ?>;
fcases2view.autoSuggests["x_CourtID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcases2view.lists["x_ClientStatusID"] = <?php echo $cases2_view->ClientStatusID->Lookup->toClientList() ?>;
fcases2view.lists["x_ClientStatusID"].options = <?php echo JsonEncode($cases2_view->ClientStatusID->lookupOptions()) ?>;
fcases2view.lists["x_LitigantStatusID"] = <?php echo $cases2_view->LitigantStatusID->Lookup->toClientList() ?>;
fcases2view.lists["x_LitigantStatusID"].options = <?php echo JsonEncode($cases2_view->LitigantStatusID->lookupOptions()) ?>;
fcases2view.lists["x_CaseSortID"] = <?php echo $cases2_view->CaseSortID->Lookup->toClientList() ?>;
fcases2view.lists["x_CaseSortID"].options = <?php echo JsonEncode($cases2_view->CaseSortID->lookupOptions()) ?>;
fcases2view.lists["x_CaseStatusID"] = <?php echo $cases2_view->CaseStatusID->Lookup->toClientList() ?>;
fcases2view.lists["x_CaseStatusID"].options = <?php echo JsonEncode($cases2_view->CaseStatusID->lookupOptions()) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$cases2->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $cases2_view->ExportOptions->render("body") ?>
<?php $cases2_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $cases2_view->showPageHeader(); ?>
<?php
$cases2_view->showMessage();
?>
<?php if (!$cases2_view->IsModal) { ?>
<?php if (!$cases2->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($cases2_view->Pager)) $cases2_view->Pager = new PrevNextPager($cases2_view->StartRec, $cases2_view->DisplayRecs, $cases2_view->TotalRecs, $cases2_view->AutoHidePager) ?>
<?php if ($cases2_view->Pager->RecordCount > 0 && $cases2_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 ($cases2_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 ($cases2_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 $cases2_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($cases2_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 ($cases2_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 $cases2_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fcases2view" id="fcases2view" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($cases2_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $cases2_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="cases2">
<input type="hidden" name="modal" value="<?php echo (int)$cases2_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($cases2->CaseID->Visible) { // CaseID ?>
	<tr id="r_CaseID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseID"><?php echo $cases2->CaseID->caption() ?></span></td>
		<td data-name="CaseID"<?php echo $cases2->CaseID->cellAttributes() ?>>
<span id="el_cases2_CaseID" data-page="1">
<span<?php echo $cases2->CaseID->viewAttributes() ?>>
<?php echo $cases2->CaseID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->ClientID->Visible) { // ClientID ?>
	<tr id="r_ClientID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_ClientID"><?php echo $cases2->ClientID->caption() ?></span></td>
		<td data-name="ClientID"<?php echo $cases2->ClientID->cellAttributes() ?>>
<span id="el_cases2_ClientID" data-page="1">
<span<?php echo $cases2->ClientID->viewAttributes() ?>>
<?php if ((!EmptyString($cases2->ClientID->getViewValue())) && $cases2->ClientID->linkAttributes() <> "") { ?>
<a<?php echo $cases2->ClientID->linkAttributes() ?>><?php echo $cases2->ClientID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases2->ClientID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->LitigantID->Visible) { // LitigantID ?>
	<tr id="r_LitigantID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_LitigantID"><?php echo $cases2->LitigantID->caption() ?></span></td>
		<td data-name="LitigantID"<?php echo $cases2->LitigantID->cellAttributes() ?>>
<span id="el_cases2_LitigantID" data-page="1">
<span<?php echo $cases2->LitigantID->viewAttributes() ?>>
<?php if ((!EmptyString($cases2->LitigantID->getViewValue())) && $cases2->LitigantID->linkAttributes() <> "") { ?>
<a<?php echo $cases2->LitigantID->linkAttributes() ?>><?php echo $cases2->LitigantID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases2->LitigantID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CaseTypeID->Visible) { // CaseTypeID ?>
	<tr id="r_CaseTypeID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseTypeID"><?php echo $cases2->CaseTypeID->caption() ?></span></td>
		<td data-name="CaseTypeID"<?php echo $cases2->CaseTypeID->cellAttributes() ?>>
<span id="el_cases2_CaseTypeID" data-page="1">
<span<?php echo $cases2->CaseTypeID->viewAttributes() ?>>
<?php echo $cases2->CaseTypeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CourtID->Visible) { // CourtID ?>
	<tr id="r_CourtID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CourtID"><?php echo $cases2->CourtID->caption() ?></span></td>
		<td data-name="CourtID"<?php echo $cases2->CourtID->cellAttributes() ?>>
<span id="el_cases2_CourtID" data-page="1">
<span<?php echo $cases2->CourtID->viewAttributes() ?>>
<?php if ((!EmptyString($cases2->CourtID->getViewValue())) && $cases2->CourtID->linkAttributes() <> "") { ?>
<a<?php echo $cases2->CourtID->linkAttributes() ?>><?php echo $cases2->CourtID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases2->CourtID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseNumber"><?php echo $cases2->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $cases2->CaseNumber->cellAttributes() ?>>
<span id="el_cases2_CaseNumber" data-page="1">
<span<?php echo $cases2->CaseNumber->viewAttributes() ?>>
<?php echo $cases2->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_FileNumber"><?php echo $cases2->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $cases2->FileNumber->cellAttributes() ?>>
<span id="el_cases2_FileNumber" data-page="1">
<span<?php echo $cases2->FileNumber->viewAttributes() ?>>
<?php echo $cases2->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->ClientStatusID->Visible) { // ClientStatusID ?>
	<tr id="r_ClientStatusID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_ClientStatusID"><?php echo $cases2->ClientStatusID->caption() ?></span></td>
		<td data-name="ClientStatusID"<?php echo $cases2->ClientStatusID->cellAttributes() ?>>
<span id="el_cases2_ClientStatusID" data-page="1">
<span<?php echo $cases2->ClientStatusID->viewAttributes() ?>>
<?php echo $cases2->ClientStatusID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->LitigantStatusID->Visible) { // LitigantStatusID ?>
	<tr id="r_LitigantStatusID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_LitigantStatusID"><?php echo $cases2->LitigantStatusID->caption() ?></span></td>
		<td data-name="LitigantStatusID"<?php echo $cases2->LitigantStatusID->cellAttributes() ?>>
<span id="el_cases2_LitigantStatusID" data-page="1">
<span<?php echo $cases2->LitigantStatusID->viewAttributes() ?>>
<?php echo $cases2->LitigantStatusID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CaseSortID->Visible) { // CaseSortID ?>
	<tr id="r_CaseSortID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseSortID"><?php echo $cases2->CaseSortID->caption() ?></span></td>
		<td data-name="CaseSortID"<?php echo $cases2->CaseSortID->cellAttributes() ?>>
<span id="el_cases2_CaseSortID" data-page="1">
<span<?php echo $cases2->CaseSortID->viewAttributes() ?>>
<?php echo $cases2->CaseSortID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CaseStatusID->Visible) { // CaseStatusID ?>
	<tr id="r_CaseStatusID">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseStatusID"><?php echo $cases2->CaseStatusID->caption() ?></span></td>
		<td data-name="CaseStatusID"<?php echo $cases2->CaseStatusID->cellAttributes() ?>>
<span id="el_cases2_CaseStatusID" data-page="1">
<span<?php echo $cases2->CaseStatusID->viewAttributes() ?>>
<?php echo $cases2->CaseStatusID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->CaseRegisteredDate->Visible) { // CaseRegisteredDate ?>
	<tr id="r_CaseRegisteredDate">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_CaseRegisteredDate"><?php echo $cases2->CaseRegisteredDate->caption() ?></span></td>
		<td data-name="CaseRegisteredDate"<?php echo $cases2->CaseRegisteredDate->cellAttributes() ?>>
<span id="el_cases2_CaseRegisteredDate" data-page="1">
<span<?php echo $cases2->CaseRegisteredDate->viewAttributes() ?>>
<?php echo $cases2->CaseRegisteredDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->_Case->Visible) { // Case ?>
	<tr id="r__Case">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2__Case"><?php echo $cases2->_Case->caption() ?></span></td>
		<td data-name="_Case"<?php echo $cases2->_Case->cellAttributes() ?>>
<span id="el_cases2__Case" data-page="1">
<span<?php echo $cases2->_Case->viewAttributes() ?>>
<?php echo $cases2->_Case->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_Notes"><?php echo $cases2->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $cases2->Notes->cellAttributes() ?>>
<span id="el_cases2_Notes" data-page="1">
<span<?php echo $cases2->Notes->viewAttributes() ?>>
<?php echo $cases2->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($cases2->FileLocation->Visible) { // FileLocation ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $cases2_view->TableLeftColumnClass ?>"><span id="elh_cases2_FileLocation"><?php echo $cases2->FileLocation->caption() ?></span></td>
		<td data-name="FileLocation"<?php echo $cases2->FileLocation->cellAttributes() ?>>
<span id="el_cases2_FileLocation" data-page="1">
<span<?php echo $cases2->FileLocation->viewAttributes() ?>>
<?php echo $cases2->FileLocation->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$cases2_view->IsModal) { ?>
<?php if (!$cases2->isExport()) { ?>
<?php if (!isset($cases2_view->Pager)) $cases2_view->Pager = new PrevNextPager($cases2_view->StartRec, $cases2_view->DisplayRecs, $cases2_view->TotalRecs, $cases2_view->AutoHidePager) ?>
<?php if ($cases2_view->Pager->RecordCount > 0 && $cases2_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 ($cases2_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 ($cases2_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 $cases2_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($cases2_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 ($cases2_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $cases2_view->pageUrl() ?>start=<?php echo $cases2_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 $cases2_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$cases2_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$cases2->isExport()) { ?>
<script>

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

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