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

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

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

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

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

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

// Form_CustomValidate event
ftmp_errorview.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
ftmp_errorview.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 (!$tmp_error->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $tmp_error_view->ExportOptions->render("body") ?>
<?php $tmp_error_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $tmp_error_view->showPageHeader(); ?>
<?php
$tmp_error_view->showMessage();
?>
<?php if (!$tmp_error_view->IsModal) { ?>
<?php if (!$tmp_error->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($tmp_error_view->Pager)) $tmp_error_view->Pager = new PrevNextPager($tmp_error_view->StartRec, $tmp_error_view->DisplayRecs, $tmp_error_view->TotalRecs, $tmp_error_view->AutoHidePager) ?>
<?php if ($tmp_error_view->Pager->RecordCount > 0 && $tmp_error_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 ($tmp_error_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 ($tmp_error_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 $tmp_error_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($tmp_error_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 ($tmp_error_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 $tmp_error_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="ftmp_errorview" id="ftmp_errorview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($tmp_error_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $tmp_error_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="tmp_error">
<input type="hidden" name="modal" value="<?php echo (int)$tmp_error_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($tmp_error->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $tmp_error_view->TableLeftColumnClass ?>"><span id="elh_tmp_error_id"><?php echo $tmp_error->id->caption() ?></span></td>
		<td data-name="id"<?php echo $tmp_error->id->cellAttributes() ?>>
<span id="el_tmp_error_id">
<span<?php echo $tmp_error->id->viewAttributes() ?>>
<?php echo $tmp_error->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($tmp_error->error_date->Visible) { // error_date ?>
	<tr id="r_error_date">
		<td class="<?php echo $tmp_error_view->TableLeftColumnClass ?>"><span id="elh_tmp_error_error_date"><?php echo $tmp_error->error_date->caption() ?></span></td>
		<td data-name="error_date"<?php echo $tmp_error->error_date->cellAttributes() ?>>
<span id="el_tmp_error_error_date">
<span<?php echo $tmp_error->error_date->viewAttributes() ?>>
<?php echo $tmp_error->error_date->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($tmp_error->error_desc->Visible) { // error_desc ?>
	<tr id="r_error_desc">
		<td class="<?php echo $tmp_error_view->TableLeftColumnClass ?>"><span id="elh_tmp_error_error_desc"><?php echo $tmp_error->error_desc->caption() ?></span></td>
		<td data-name="error_desc"<?php echo $tmp_error->error_desc->cellAttributes() ?>>
<span id="el_tmp_error_error_desc">
<span<?php echo $tmp_error->error_desc->viewAttributes() ?>>
<?php echo $tmp_error->error_desc->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($tmp_error->audit_time->Visible) { // audit_time ?>
	<tr id="r_audit_time">
		<td class="<?php echo $tmp_error_view->TableLeftColumnClass ?>"><span id="elh_tmp_error_audit_time"><?php echo $tmp_error->audit_time->caption() ?></span></td>
		<td data-name="audit_time"<?php echo $tmp_error->audit_time->cellAttributes() ?>>
<span id="el_tmp_error_audit_time">
<span<?php echo $tmp_error->audit_time->viewAttributes() ?>>
<?php echo $tmp_error->audit_time->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$tmp_error_view->IsModal) { ?>
<?php if (!$tmp_error->isExport()) { ?>
<?php if (!isset($tmp_error_view->Pager)) $tmp_error_view->Pager = new PrevNextPager($tmp_error_view->StartRec, $tmp_error_view->DisplayRecs, $tmp_error_view->TotalRecs, $tmp_error_view->AutoHidePager) ?>
<?php if ($tmp_error_view->Pager->RecordCount > 0 && $tmp_error_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 ($tmp_error_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 ($tmp_error_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 $tmp_error_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($tmp_error_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 ($tmp_error_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $tmp_error_view->pageUrl() ?>start=<?php echo $tmp_error_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 $tmp_error_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$tmp_error_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$tmp_error->isExport()) { ?>
<script>

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

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