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

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

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

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

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

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

// Form_CustomValidate event
fnotificationsview.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
fnotificationsview.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 (!$notifications->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $notifications_view->ExportOptions->render("body") ?>
<?php $notifications_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $notifications_view->showPageHeader(); ?>
<?php
$notifications_view->showMessage();
?>
<?php if (!$notifications_view->IsModal) { ?>
<?php if (!$notifications->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($notifications_view->Pager)) $notifications_view->Pager = new PrevNextPager($notifications_view->StartRec, $notifications_view->DisplayRecs, $notifications_view->TotalRecs, $notifications_view->AutoHidePager) ?>
<?php if ($notifications_view->Pager->RecordCount > 0 && $notifications_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 ($notifications_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 ($notifications_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 $notifications_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($notifications_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 ($notifications_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 $notifications_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fnotificationsview" id="fnotificationsview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($notifications_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $notifications_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="notifications">
<input type="hidden" name="modal" value="<?php echo (int)$notifications_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($notifications->NotificationID->Visible) { // NotificationID ?>
	<tr id="r_NotificationID">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_NotificationID"><?php echo $notifications->NotificationID->caption() ?></span></td>
		<td data-name="NotificationID"<?php echo $notifications->NotificationID->cellAttributes() ?>>
<span id="el_notifications_NotificationID">
<span<?php echo $notifications->NotificationID->viewAttributes() ?>>
<?php echo $notifications->NotificationID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->CaseNumber->Visible) { // CaseNumber ?>
	<tr id="r_CaseNumber">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_CaseNumber"><?php echo $notifications->CaseNumber->caption() ?></span></td>
		<td data-name="CaseNumber"<?php echo $notifications->CaseNumber->cellAttributes() ?>>
<span id="el_notifications_CaseNumber">
<span<?php echo $notifications->CaseNumber->viewAttributes() ?>>
<?php echo $notifications->CaseNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->FileNumber->Visible) { // FileNumber ?>
	<tr id="r_FileNumber">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_FileNumber"><?php echo $notifications->FileNumber->caption() ?></span></td>
		<td data-name="FileNumber"<?php echo $notifications->FileNumber->cellAttributes() ?>>
<span id="el_notifications_FileNumber">
<span<?php echo $notifications->FileNumber->viewAttributes() ?>>
<?php echo $notifications->FileNumber->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->Notification->Visible) { // Notification ?>
	<tr id="r_Notification">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_Notification"><?php echo $notifications->Notification->caption() ?></span></td>
		<td data-name="Notification"<?php echo $notifications->Notification->cellAttributes() ?>>
<span id="el_notifications_Notification">
<span<?php echo $notifications->Notification->viewAttributes() ?>>
<?php echo $notifications->Notification->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->NotificationDate->Visible) { // NotificationDate ?>
	<tr id="r_NotificationDate">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_NotificationDate"><?php echo $notifications->NotificationDate->caption() ?></span></td>
		<td data-name="NotificationDate"<?php echo $notifications->NotificationDate->cellAttributes() ?>>
<span id="el_notifications_NotificationDate">
<span<?php echo $notifications->NotificationDate->viewAttributes() ?>>
<?php echo $notifications->NotificationDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->NotificationTime->Visible) { // NotificationTime ?>
	<tr id="r_NotificationTime">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_NotificationTime"><?php echo $notifications->NotificationTime->caption() ?></span></td>
		<td data-name="NotificationTime"<?php echo $notifications->NotificationTime->cellAttributes() ?>>
<span id="el_notifications_NotificationTime">
<span<?php echo $notifications->NotificationTime->viewAttributes() ?>>
<?php echo $notifications->NotificationTime->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_Notes"><?php echo $notifications->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $notifications->Notes->cellAttributes() ?>>
<span id="el_notifications_Notes">
<span<?php echo $notifications->Notes->viewAttributes() ?>>
<?php echo $notifications->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($notifications->CaseID->Visible) { // CaseID ?>
	<tr id="r_CaseID">
		<td class="<?php echo $notifications_view->TableLeftColumnClass ?>"><span id="elh_notifications_CaseID"><?php echo $notifications->CaseID->caption() ?></span></td>
		<td data-name="CaseID"<?php echo $notifications->CaseID->cellAttributes() ?>>
<span id="el_notifications_CaseID">
<span<?php echo $notifications->CaseID->viewAttributes() ?>>
<?php echo $notifications->CaseID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$notifications_view->IsModal) { ?>
<?php if (!$notifications->isExport()) { ?>
<?php if (!isset($notifications_view->Pager)) $notifications_view->Pager = new PrevNextPager($notifications_view->StartRec, $notifications_view->DisplayRecs, $notifications_view->TotalRecs, $notifications_view->AutoHidePager) ?>
<?php if ($notifications_view->Pager->RecordCount > 0 && $notifications_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 ($notifications_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 ($notifications_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 $notifications_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($notifications_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 ($notifications_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $notifications_view->pageUrl() ?>start=<?php echo $notifications_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 $notifications_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$notifications_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$notifications->isExport()) { ?>
<script>

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

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