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

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

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

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

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

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

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

// Dynamic selection lists
fhearingsview.lists["x_CaseID"] = <?php echo $hearings_view->CaseID->Lookup->toClientList() ?>;
fhearingsview.lists["x_CaseID"].options = <?php echo JsonEncode($hearings_view->CaseID->lookupOptions()) ?>;
fhearingsview.autoSuggests["x_CaseID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fhearingsview.lists["x_LawyerID"] = <?php echo $hearings_view->LawyerID->Lookup->toClientList() ?>;
fhearingsview.lists["x_LawyerID"].options = <?php echo JsonEncode($hearings_view->LawyerID->lookupOptions()) ?>;
fhearingsview.lists["x_JudgeID"] = <?php echo $hearings_view->JudgeID->Lookup->toClientList() ?>;
fhearingsview.lists["x_JudgeID"].options = <?php echo JsonEncode($hearings_view->JudgeID->lookupOptions()) ?>;
fhearingsview.lists["x_CourtID"] = <?php echo $hearings_view->CourtID->Lookup->toClientList() ?>;
fhearingsview.lists["x_CourtID"].options = <?php echo JsonEncode($hearings_view->CourtID->lookupOptions()) ?>;
fhearingsview.autoSuggests["x_CourtID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;

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

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$hearings->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $hearings_view->ExportOptions->render("body") ?>
<?php $hearings_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $hearings_view->showPageHeader(); ?>
<?php
$hearings_view->showMessage();
?>
<?php if (!$hearings_view->IsModal) { ?>
<?php if (!$hearings->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($hearings_view->Pager)) $hearings_view->Pager = new PrevNextPager($hearings_view->StartRec, $hearings_view->DisplayRecs, $hearings_view->TotalRecs, $hearings_view->AutoHidePager) ?>
<?php if ($hearings_view->Pager->RecordCount > 0 && $hearings_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 ($hearings_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 ($hearings_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 $hearings_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($hearings_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 ($hearings_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 $hearings_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fhearingsview" id="fhearingsview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($hearings_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $hearings_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="hearings">
<input type="hidden" name="modal" value="<?php echo (int)$hearings_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($hearings->HearingID->Visible) { // HearingID ?>
	<tr id="r_HearingID">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_HearingID"><?php echo $hearings->HearingID->caption() ?></span></td>
		<td data-name="HearingID"<?php echo $hearings->HearingID->cellAttributes() ?>>
<span id="el_hearings_HearingID">
<span<?php echo $hearings->HearingID->viewAttributes() ?>>
<?php echo $hearings->HearingID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->CaseID->Visible) { // CaseID ?>
	<tr id="r_CaseID">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_CaseID"><?php echo $hearings->CaseID->caption() ?></span></td>
		<td data-name="CaseID"<?php echo $hearings->CaseID->cellAttributes() ?>>
<span id="el_hearings_CaseID">
<span<?php echo $hearings->CaseID->viewAttributes() ?>>
<?php echo $hearings->CaseID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->HearingDate->Visible) { // HearingDate ?>
	<tr id="r_HearingDate">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_HearingDate"><?php echo $hearings->HearingDate->caption() ?></span></td>
		<td data-name="HearingDate"<?php echo $hearings->HearingDate->cellAttributes() ?>>
<span id="el_hearings_HearingDate">
<span<?php echo $hearings->HearingDate->viewAttributes() ?>>
<?php echo $hearings->HearingDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->HearingTime->Visible) { // HearingTime ?>
	<tr id="r_HearingTime">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_HearingTime"><?php echo $hearings->HearingTime->caption() ?></span></td>
		<td data-name="HearingTime"<?php echo $hearings->HearingTime->cellAttributes() ?>>
<span id="el_hearings_HearingTime">
<span<?php echo $hearings->HearingTime->viewAttributes() ?>>
<?php echo $hearings->HearingTime->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->NextHearingDate->Visible) { // NextHearingDate ?>
	<tr id="r_NextHearingDate">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_NextHearingDate"><?php echo $hearings->NextHearingDate->caption() ?></span></td>
		<td data-name="NextHearingDate"<?php echo $hearings->NextHearingDate->cellAttributes() ?>>
<span id="el_hearings_NextHearingDate">
<span<?php echo $hearings->NextHearingDate->viewAttributes() ?>>
<?php echo $hearings->NextHearingDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->NextHearingTime->Visible) { // NextHearingTime ?>
	<tr id="r_NextHearingTime">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_NextHearingTime"><?php echo $hearings->NextHearingTime->caption() ?></span></td>
		<td data-name="NextHearingTime"<?php echo $hearings->NextHearingTime->cellAttributes() ?>>
<span id="el_hearings_NextHearingTime">
<span<?php echo $hearings->NextHearingTime->viewAttributes() ?>>
<?php echo $hearings->NextHearingTime->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->Hearing->Visible) { // Hearing ?>
	<tr id="r_Hearing">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_Hearing"><?php echo $hearings->Hearing->caption() ?></span></td>
		<td data-name="Hearing"<?php echo $hearings->Hearing->cellAttributes() ?>>
<span id="el_hearings_Hearing">
<span<?php echo $hearings->Hearing->viewAttributes() ?>>
<?php echo $hearings->Hearing->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_Notes"><?php echo $hearings->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $hearings->Notes->cellAttributes() ?>>
<span id="el_hearings_Notes">
<span<?php echo $hearings->Notes->viewAttributes() ?>>
<?php echo $hearings->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->LawyerID->Visible) { // LawyerID ?>
	<tr id="r_LawyerID">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_LawyerID"><?php echo $hearings->LawyerID->caption() ?></span></td>
		<td data-name="LawyerID"<?php echo $hearings->LawyerID->cellAttributes() ?>>
<span id="el_hearings_LawyerID">
<span<?php echo $hearings->LawyerID->viewAttributes() ?>>
<?php echo $hearings->LawyerID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->JudgeID->Visible) { // JudgeID ?>
	<tr id="r_JudgeID">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_JudgeID"><?php echo $hearings->JudgeID->caption() ?></span></td>
		<td data-name="JudgeID"<?php echo $hearings->JudgeID->cellAttributes() ?>>
<span id="el_hearings_JudgeID">
<span<?php echo $hearings->JudgeID->viewAttributes() ?>>
<?php echo $hearings->JudgeID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_FileNumber"><?php echo $hearings->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $hearings->FileNumber->cellAttributes() ?>>
<span id="el_hearings_FileNumber">
<span<?php echo $hearings->FileNumber->viewAttributes() ?>>
<?php echo $hearings->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_CaseNumber"><?php echo $hearings->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $hearings->CaseNumber->cellAttributes() ?>>
<span id="el_hearings_CaseNumber">
<span<?php echo $hearings->CaseNumber->viewAttributes() ?>>
<?php echo $hearings->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hearings->CourtID->Visible) { // CourtID ?>
	<tr id="r_CourtID">
		<td class="<?php echo $hearings_view->TableLeftColumnClass ?>"><span id="elh_hearings_CourtID"><?php echo $hearings->CourtID->caption() ?></span></td>
		<td data-name="CourtID"<?php echo $hearings->CourtID->cellAttributes() ?>>
<span id="el_hearings_CourtID">
<span<?php echo $hearings->CourtID->viewAttributes() ?>>
<?php echo $hearings->CourtID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$hearings_view->IsModal) { ?>
<?php if (!$hearings->isExport()) { ?>
<?php if (!isset($hearings_view->Pager)) $hearings_view->Pager = new PrevNextPager($hearings_view->StartRec, $hearings_view->DisplayRecs, $hearings_view->TotalRecs, $hearings_view->AutoHidePager) ?>
<?php if ($hearings_view->Pager->RecordCount > 0 && $hearings_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 ($hearings_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 ($hearings_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 $hearings_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($hearings_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 ($hearings_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $hearings_view->pageUrl() ?>start=<?php echo $hearings_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 $hearings_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$hearings_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$hearings->isExport()) { ?>
<script>

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

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