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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search

</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$agenda->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $agenda_view->ExportOptions->render("body") ?>
<?php $agenda_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $agenda_view->showPageHeader(); ?>
<?php
$agenda_view->showMessage();
?>
<?php if (!$agenda_view->IsModal) { ?>
<?php if (!$agenda->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($agenda_view->Pager)) $agenda_view->Pager = new PrevNextPager($agenda_view->StartRec, $agenda_view->DisplayRecs, $agenda_view->TotalRecs, $agenda_view->AutoHidePager) ?>
<?php if ($agenda_view->Pager->RecordCount > 0 && $agenda_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 ($agenda_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 $agenda_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($agenda_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 $agenda_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fagendaview" id="fagendaview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($agenda_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $agenda_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="agenda">
<input type="hidden" name="modal" value="<?php echo (int)$agenda_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($agenda->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_CaseNumber"><?php echo $agenda->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $agenda->CaseNumber->cellAttributes() ?>>
<span id="el_agenda_CaseNumber">
<span<?php echo $agenda->CaseNumber->viewAttributes() ?>>
<?php echo $agenda->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_FileNumber"><?php echo $agenda->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $agenda->FileNumber->cellAttributes() ?>>
<span id="el_agenda_FileNumber">
<span<?php echo $agenda->FileNumber->viewAttributes() ?>>
<?php echo $agenda->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
	<tr id="r_EnvelopeNumber">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_EnvelopeNumber"><?php echo $agenda->EnvelopeNumber->caption() ?></span></td>
		<td data-name="EnvelopeNumber"<?php echo $agenda->EnvelopeNumber->cellAttributes() ?>>
<span id="el_agenda_EnvelopeNumber">
<span<?php echo $agenda->EnvelopeNumber->viewAttributes() ?>>
<?php echo $agenda->EnvelopeNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->FileLocation->Visible) { // FileLocation ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_FileLocation"><?php echo $agenda->FileLocation->caption() ?></span></td>
		<td data-name="FileLocation"<?php echo $agenda->FileLocation->cellAttributes() ?>>
<span id="el_agenda_FileLocation">
<span<?php echo $agenda->FileLocation->viewAttributes() ?>>
<?php echo $agenda->FileLocation->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->_Case->Visible) { // Case ?>
	<tr id="r__Case">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda__Case"><?php echo $agenda->_Case->caption() ?></span></td>
		<td data-name="_Case"<?php echo $agenda->_Case->cellAttributes() ?>>
<span id="el_agenda__Case">
<span<?php echo $agenda->_Case->viewAttributes() ?>>
<?php echo $agenda->_Case->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->CaseEn->Visible) { // CaseEn ?>
	<tr id="r_CaseEn">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_CaseEn"><?php echo $agenda->CaseEn->caption() ?></span></td>
		<td data-name="CaseEn"<?php echo $agenda->CaseEn->cellAttributes() ?>>
<span id="el_agenda_CaseEn">
<span<?php echo $agenda->CaseEn->viewAttributes() ?>>
<?php echo $agenda->CaseEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->CaseType->Visible) { // CaseType ?>
	<tr id="r_CaseType">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_CaseType"><?php echo $agenda->CaseType->caption() ?></span></td>
		<td data-name="CaseType"<?php echo $agenda->CaseType->cellAttributes() ?>>
<span id="el_agenda_CaseType">
<span<?php echo $agenda->CaseType->viewAttributes() ?>>
<?php echo $agenda->CaseType->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->ClientName->Visible) { // ClientName ?>
	<tr id="r_ClientName">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_ClientName"><?php echo $agenda->ClientName->caption() ?></span></td>
		<td data-name="ClientName"<?php echo $agenda->ClientName->cellAttributes() ?>>
<span id="el_agenda_ClientName">
<span<?php echo $agenda->ClientName->viewAttributes() ?>>
<?php echo $agenda->ClientName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->LitigantName->Visible) { // LitigantName ?>
	<tr id="r_LitigantName">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_LitigantName"><?php echo $agenda->LitigantName->caption() ?></span></td>
		<td data-name="LitigantName"<?php echo $agenda->LitigantName->cellAttributes() ?>>
<span id="el_agenda_LitigantName">
<span<?php echo $agenda->LitigantName->viewAttributes() ?>>
<?php echo $agenda->LitigantName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($agenda->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $agenda_view->TableLeftColumnClass ?>"><span id="elh_agenda_Notes"><?php echo $agenda->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $agenda->Notes->cellAttributes() ?>>
<span id="el_agenda_Notes">
<span<?php echo $agenda->Notes->viewAttributes() ?>>
<?php echo $agenda->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$agenda_view->IsModal) { ?>
<?php if (!$agenda->isExport()) { ?>
<?php if (!isset($agenda_view->Pager)) $agenda_view->Pager = new PrevNextPager($agenda_view->StartRec, $agenda_view->DisplayRecs, $agenda_view->TotalRecs, $agenda_view->AutoHidePager) ?>
<?php if ($agenda_view->Pager->RecordCount > 0 && $agenda_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 ($agenda_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 $agenda_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($agenda_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 ($agenda_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $agenda_view->pageUrl() ?>start=<?php echo $agenda_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 $agenda_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$agenda_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$agenda->isExport()) { ?>
<script>

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

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