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

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

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

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

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

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

// Form_CustomValidate event
ffilesview.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
ffilesview.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 (!$files->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $files_view->ExportOptions->render("body") ?>
<?php $files_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $files_view->showPageHeader(); ?>
<?php
$files_view->showMessage();
?>
<?php if (!$files_view->IsModal) { ?>
<?php if (!$files->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($files_view->Pager)) $files_view->Pager = new PrevNextPager($files_view->StartRec, $files_view->DisplayRecs, $files_view->TotalRecs, $files_view->AutoHidePager) ?>
<?php if ($files_view->Pager->RecordCount > 0 && $files_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 ($files_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 ($files_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 $files_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($files_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 ($files_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 $files_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="ffilesview" id="ffilesview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($files_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $files_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="files">
<input type="hidden" name="modal" value="<?php echo (int)$files_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($files->FileID->Visible) { // FileID ?>
	<tr id="r_FileID">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_FileID"><?php echo $files->FileID->caption() ?></span></td>
		<td data-name="FileID"<?php echo $files->FileID->cellAttributes() ?>>
<span id="el_files_FileID">
<span<?php echo $files->FileID->viewAttributes() ?>>
<?php echo $files->FileID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_CaseNumber"><?php echo $files->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $files->CaseNumber->cellAttributes() ?>>
<span id="el_files_CaseNumber">
<span<?php echo $files->CaseNumber->viewAttributes() ?>>
<?php echo $files->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_FileNumber"><?php echo $files->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $files->FileNumber->cellAttributes() ?>>
<span id="el_files_FileNumber">
<span<?php echo $files->FileNumber->viewAttributes() ?>>
<?php echo $files->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
	<tr id="r_EnvelopeNumber">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_EnvelopeNumber"><?php echo $files->EnvelopeNumber->caption() ?></span></td>
		<td data-name="EnvelopeNumber"<?php echo $files->EnvelopeNumber->cellAttributes() ?>>
<span id="el_files_EnvelopeNumber">
<span<?php echo $files->EnvelopeNumber->viewAttributes() ?>>
<?php echo $files->EnvelopeNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->FileLocation->Visible) { // FileLocation ?>
	<tr id="r_FileLocation">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_FileLocation"><?php echo $files->FileLocation->caption() ?></span></td>
		<td data-name="FileLocation"<?php echo $files->FileLocation->cellAttributes() ?>>
<span id="el_files_FileLocation">
<span<?php echo $files->FileLocation->viewAttributes() ?>>
<?php echo $files->FileLocation->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->_Case->Visible) { // Case ?>
	<tr id="r__Case">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files__Case"><?php echo $files->_Case->caption() ?></span></td>
		<td data-name="_Case"<?php echo $files->_Case->cellAttributes() ?>>
<span id="el_files__Case">
<span<?php echo $files->_Case->viewAttributes() ?>>
<?php echo $files->_Case->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->CaseType->Visible) { // CaseType ?>
	<tr id="r_CaseType">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_CaseType"><?php echo $files->CaseType->caption() ?></span></td>
		<td data-name="CaseType"<?php echo $files->CaseType->cellAttributes() ?>>
<span id="el_files_CaseType">
<span<?php echo $files->CaseType->viewAttributes() ?>>
<?php echo $files->CaseType->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->ClientName->Visible) { // ClientName ?>
	<tr id="r_ClientName">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_ClientName"><?php echo $files->ClientName->caption() ?></span></td>
		<td data-name="ClientName"<?php echo $files->ClientName->cellAttributes() ?>>
<span id="el_files_ClientName">
<span<?php echo $files->ClientName->viewAttributes() ?>>
<?php echo $files->ClientName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->LitigantName->Visible) { // LitigantName ?>
	<tr id="r_LitigantName">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_LitigantName"><?php echo $files->LitigantName->caption() ?></span></td>
		<td data-name="LitigantName"<?php echo $files->LitigantName->cellAttributes() ?>>
<span id="el_files_LitigantName">
<span<?php echo $files->LitigantName->viewAttributes() ?>>
<?php echo $files->LitigantName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->CourtName->Visible) { // CourtName ?>
	<tr id="r_CourtName">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_CourtName"><?php echo $files->CourtName->caption() ?></span></td>
		<td data-name="CourtName"<?php echo $files->CourtName->cellAttributes() ?>>
<span id="el_files_CourtName">
<span<?php echo $files->CourtName->viewAttributes() ?>>
<?php echo $files->CourtName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->JudgeName->Visible) { // JudgeName ?>
	<tr id="r_JudgeName">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_JudgeName"><?php echo $files->JudgeName->caption() ?></span></td>
		<td data-name="JudgeName"<?php echo $files->JudgeName->cellAttributes() ?>>
<span id="el_files_JudgeName">
<span<?php echo $files->JudgeName->viewAttributes() ?>>
<?php echo $files->JudgeName->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($files->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $files_view->TableLeftColumnClass ?>"><span id="elh_files_Notes"><?php echo $files->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $files->Notes->cellAttributes() ?>>
<span id="el_files_Notes">
<span<?php echo $files->Notes->viewAttributes() ?>>
<?php echo $files->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$files_view->IsModal) { ?>
<?php if (!$files->isExport()) { ?>
<?php if (!isset($files_view->Pager)) $files_view->Pager = new PrevNextPager($files_view->StartRec, $files_view->DisplayRecs, $files_view->TotalRecs, $files_view->AutoHidePager) ?>
<?php if ($files_view->Pager->RecordCount > 0 && $files_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 ($files_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 ($files_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 $files_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($files_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 ($files_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $files_view->pageUrl() ?>start=<?php echo $files_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 $files_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$files_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$files->isExport()) { ?>
<script>

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

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