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

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

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

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

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

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

// Form_CustomValidate event
fmaritalstatusview.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
fmaritalstatusview.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 (!$maritalstatus->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $maritalstatus_view->ExportOptions->render("body") ?>
<?php $maritalstatus_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $maritalstatus_view->showPageHeader(); ?>
<?php
$maritalstatus_view->showMessage();
?>
<?php if (!$maritalstatus_view->IsModal) { ?>
<?php if (!$maritalstatus->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($maritalstatus_view->Pager)) $maritalstatus_view->Pager = new PrevNextPager($maritalstatus_view->StartRec, $maritalstatus_view->DisplayRecs, $maritalstatus_view->TotalRecs, $maritalstatus_view->AutoHidePager) ?>
<?php if ($maritalstatus_view->Pager->RecordCount > 0 && $maritalstatus_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 ($maritalstatus_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 ($maritalstatus_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 $maritalstatus_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($maritalstatus_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 ($maritalstatus_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 $maritalstatus_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fmaritalstatusview" id="fmaritalstatusview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($maritalstatus_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $maritalstatus_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="maritalstatus">
<input type="hidden" name="modal" value="<?php echo (int)$maritalstatus_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($maritalstatus->MaritalStatusID->Visible) { // MaritalStatusID ?>
	<tr id="r_MaritalStatusID">
		<td class="<?php echo $maritalstatus_view->TableLeftColumnClass ?>"><span id="elh_maritalstatus_MaritalStatusID"><?php echo $maritalstatus->MaritalStatusID->caption() ?></span></td>
		<td data-name="MaritalStatusID"<?php echo $maritalstatus->MaritalStatusID->cellAttributes() ?>>
<span id="el_maritalstatus_MaritalStatusID">
<span<?php echo $maritalstatus->MaritalStatusID->viewAttributes() ?>>
<?php echo $maritalstatus->MaritalStatusID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($maritalstatus->MaritalStatus->Visible) { // MaritalStatus ?>
	<tr id="r_MaritalStatus">
		<td class="<?php echo $maritalstatus_view->TableLeftColumnClass ?>"><span id="elh_maritalstatus_MaritalStatus"><?php echo $maritalstatus->MaritalStatus->caption() ?></span></td>
		<td data-name="MaritalStatus"<?php echo $maritalstatus->MaritalStatus->cellAttributes() ?>>
<span id="el_maritalstatus_MaritalStatus">
<span<?php echo $maritalstatus->MaritalStatus->viewAttributes() ?>>
<?php echo $maritalstatus->MaritalStatus->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($maritalstatus->MaritalStatusEn->Visible) { // MaritalStatusEn ?>
	<tr id="r_MaritalStatusEn">
		<td class="<?php echo $maritalstatus_view->TableLeftColumnClass ?>"><span id="elh_maritalstatus_MaritalStatusEn"><?php echo $maritalstatus->MaritalStatusEn->caption() ?></span></td>
		<td data-name="MaritalStatusEn"<?php echo $maritalstatus->MaritalStatusEn->cellAttributes() ?>>
<span id="el_maritalstatus_MaritalStatusEn">
<span<?php echo $maritalstatus->MaritalStatusEn->viewAttributes() ?>>
<?php echo $maritalstatus->MaritalStatusEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($maritalstatus->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $maritalstatus_view->TableLeftColumnClass ?>"><span id="elh_maritalstatus_Notes"><?php echo $maritalstatus->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $maritalstatus->Notes->cellAttributes() ?>>
<span id="el_maritalstatus_Notes">
<span<?php echo $maritalstatus->Notes->viewAttributes() ?>>
<?php echo $maritalstatus->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$maritalstatus_view->IsModal) { ?>
<?php if (!$maritalstatus->isExport()) { ?>
<?php if (!isset($maritalstatus_view->Pager)) $maritalstatus_view->Pager = new PrevNextPager($maritalstatus_view->StartRec, $maritalstatus_view->DisplayRecs, $maritalstatus_view->TotalRecs, $maritalstatus_view->AutoHidePager) ?>
<?php if ($maritalstatus_view->Pager->RecordCount > 0 && $maritalstatus_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 ($maritalstatus_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 ($maritalstatus_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 $maritalstatus_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($maritalstatus_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 ($maritalstatus_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $maritalstatus_view->pageUrl() ?>start=<?php echo $maritalstatus_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 $maritalstatus_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$maritalstatus_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$maritalstatus->isExport()) { ?>
<script>

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

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