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

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

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

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

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

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

// Form_CustomValidate event
fcomplaintsview.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
fcomplaintsview.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 (!$complaints->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $complaints_view->ExportOptions->render("body") ?>
<?php $complaints_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $complaints_view->showPageHeader(); ?>
<?php
$complaints_view->showMessage();
?>
<?php if (!$complaints_view->IsModal) { ?>
<?php if (!$complaints->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($complaints_view->Pager)) $complaints_view->Pager = new PrevNextPager($complaints_view->StartRec, $complaints_view->DisplayRecs, $complaints_view->TotalRecs, $complaints_view->AutoHidePager) ?>
<?php if ($complaints_view->Pager->RecordCount > 0 && $complaints_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 ($complaints_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 ($complaints_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 $complaints_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($complaints_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 ($complaints_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 $complaints_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fcomplaintsview" id="fcomplaintsview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($complaints_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $complaints_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="complaints">
<input type="hidden" name="modal" value="<?php echo (int)$complaints_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($complaints->ComplaintID->Visible) { // ComplaintID ?>
	<tr id="r_ComplaintID">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_ComplaintID"><?php echo $complaints->ComplaintID->caption() ?></span></td>
		<td data-name="ComplaintID"<?php echo $complaints->ComplaintID->cellAttributes() ?>>
<span id="el_complaints_ComplaintID">
<span<?php echo $complaints->ComplaintID->viewAttributes() ?>>
<?php echo $complaints->ComplaintID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_CaseNumber"><?php echo $complaints->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $complaints->CaseNumber->cellAttributes() ?>>
<span id="el_complaints_CaseNumber">
<span<?php echo $complaints->CaseNumber->viewAttributes() ?>>
<?php echo $complaints->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_FileNumber"><?php echo $complaints->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $complaints->FileNumber->cellAttributes() ?>>
<span id="el_complaints_FileNumber">
<span<?php echo $complaints->FileNumber->viewAttributes() ?>>
<?php echo $complaints->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->ComplaintDate->Visible) { // ComplaintDate ?>
	<tr id="r_ComplaintDate">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_ComplaintDate"><?php echo $complaints->ComplaintDate->caption() ?></span></td>
		<td data-name="ComplaintDate"<?php echo $complaints->ComplaintDate->cellAttributes() ?>>
<span id="el_complaints_ComplaintDate">
<span<?php echo $complaints->ComplaintDate->viewAttributes() ?>>
<?php echo $complaints->ComplaintDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->Complaint->Visible) { // Complaint ?>
	<tr id="r_Complaint">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_Complaint"><?php echo $complaints->Complaint->caption() ?></span></td>
		<td data-name="Complaint"<?php echo $complaints->Complaint->cellAttributes() ?>>
<span id="el_complaints_Complaint">
<span<?php echo $complaints->Complaint->viewAttributes() ?>>
<?php echo $complaints->Complaint->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->CaseID->Visible) { // CaseID ?>
	<tr id="r_CaseID">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_CaseID"><?php echo $complaints->CaseID->caption() ?></span></td>
		<td data-name="CaseID"<?php echo $complaints->CaseID->cellAttributes() ?>>
<span id="el_complaints_CaseID">
<span<?php echo $complaints->CaseID->viewAttributes() ?>>
<?php echo $complaints->CaseID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($complaints->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $complaints_view->TableLeftColumnClass ?>"><span id="elh_complaints_Notes"><?php echo $complaints->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $complaints->Notes->cellAttributes() ?>>
<span id="el_complaints_Notes">
<span<?php echo $complaints->Notes->viewAttributes() ?>>
<?php echo $complaints->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$complaints_view->IsModal) { ?>
<?php if (!$complaints->isExport()) { ?>
<?php if (!isset($complaints_view->Pager)) $complaints_view->Pager = new PrevNextPager($complaints_view->StartRec, $complaints_view->DisplayRecs, $complaints_view->TotalRecs, $complaints_view->AutoHidePager) ?>
<?php if ($complaints_view->Pager->RecordCount > 0 && $complaints_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 ($complaints_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 ($complaints_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 $complaints_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($complaints_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 ($complaints_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $complaints_view->pageUrl() ?>start=<?php echo $complaints_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 $complaints_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$complaints_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$complaints->isExport()) { ?>
<script>

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

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