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

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

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

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

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

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

// Form_CustomValidate event
fcourtgenderview.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
fcourtgenderview.validateRequired = <?php echo json_encode(CLIENT_VALIDATE) ?>;

// Dynamic selection lists
fcourtgenderview.lists["x_CourtSortID"] = <?php echo $courtgender_view->CourtSortID->Lookup->toClientList() ?>;
fcourtgenderview.lists["x_CourtSortID"].options = <?php echo JsonEncode($courtgender_view->CourtSortID->lookupOptions()) ?>;

// Form object for search
</script>
<script>

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$courtgender->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $courtgender_view->ExportOptions->render("body") ?>
<?php $courtgender_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $courtgender_view->showPageHeader(); ?>
<?php
$courtgender_view->showMessage();
?>
<?php if (!$courtgender_view->IsModal) { ?>
<?php if (!$courtgender->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courtgender_view->Pager)) $courtgender_view->Pager = new PrevNextPager($courtgender_view->StartRec, $courtgender_view->DisplayRecs, $courtgender_view->TotalRecs, $courtgender_view->AutoHidePager) ?>
<?php if ($courtgender_view->Pager->RecordCount > 0 && $courtgender_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 ($courtgender_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgender_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fcourtgenderview" id="fcourtgenderview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgender_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgender_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgender">
<input type="hidden" name="modal" value="<?php echo (int)$courtgender_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($courtgender->CourtGenderID->Visible) { // CourtGenderID ?>
	<tr id="r_CourtGenderID">
		<td class="<?php echo $courtgender_view->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtGenderID"><?php echo $courtgender->CourtGenderID->caption() ?></span></td>
		<td data-name="CourtGenderID"<?php echo $courtgender->CourtGenderID->cellAttributes() ?>>
<span id="el_courtgender_CourtGenderID">
<span<?php echo $courtgender->CourtGenderID->viewAttributes() ?>>
<?php echo $courtgender->CourtGenderID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
	<tr id="r_CourtSortID">
		<td class="<?php echo $courtgender_view->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtSortID"><?php echo $courtgender->CourtSortID->caption() ?></span></td>
		<td data-name="CourtSortID"<?php echo $courtgender->CourtSortID->cellAttributes() ?>>
<span id="el_courtgender_CourtSortID">
<span<?php echo $courtgender->CourtSortID->viewAttributes() ?>>
<?php echo $courtgender->CourtSortID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
	<tr id="r_CourtGender">
		<td class="<?php echo $courtgender_view->TableLeftColumnClass ?>"><span id="elh_courtgender_CourtGender"><?php echo $courtgender->CourtGender->caption() ?></span></td>
		<td data-name="CourtGender"<?php echo $courtgender->CourtGender->cellAttributes() ?>>
<span id="el_courtgender_CourtGender">
<span<?php echo $courtgender->CourtGender->viewAttributes() ?>>
<?php echo $courtgender->CourtGender->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgender->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $courtgender_view->TableLeftColumnClass ?>"><span id="elh_courtgender_Notes"><?php echo $courtgender->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $courtgender->Notes->cellAttributes() ?>>
<span id="el_courtgender_Notes">
<span<?php echo $courtgender->Notes->viewAttributes() ?>>
<?php echo $courtgender->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$courtgender_view->IsModal) { ?>
<?php if (!$courtgender->isExport()) { ?>
<?php if (!isset($courtgender_view->Pager)) $courtgender_view->Pager = new PrevNextPager($courtgender_view->StartRec, $courtgender_view->DisplayRecs, $courtgender_view->TotalRecs, $courtgender_view->AutoHidePager) ?>
<?php if ($courtgender_view->Pager->RecordCount > 0 && $courtgender_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 ($courtgender_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgender_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgender_view->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$courtgender_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$courtgender->isExport()) { ?>
<script>

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

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