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

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

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

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

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

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

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

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

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

// Write your client script here, no need to add script tags.
</script>
<?php } ?>
<?php if (!$courtgenderv->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $courtgenderv_view->ExportOptions->render("body") ?>
<?php $courtgenderv_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $courtgenderv_view->showPageHeader(); ?>
<?php
$courtgenderv_view->showMessage();
?>
<?php if (!$courtgenderv_view->IsModal) { ?>
<?php if (!$courtgenderv->isExport()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courtgenderv_view->Pager)) $courtgenderv_view->Pager = new PrevNextPager($courtgenderv_view->StartRec, $courtgenderv_view->DisplayRecs, $courtgenderv_view->TotalRecs, $courtgenderv_view->AutoHidePager) ?>
<?php if ($courtgenderv_view->Pager->RecordCount > 0 && $courtgenderv_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 ($courtgenderv_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 ($courtgenderv_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 $courtgenderv_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgenderv_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 ($courtgenderv_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 $courtgenderv_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
</form>
<?php } ?>
<?php } ?>
<form name="fcourtgendervview" id="fcourtgendervview" class="form-inline ew-form ew-view-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgenderv_view->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgenderv_view->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgenderv">
<input type="hidden" name="modal" value="<?php echo (int)$courtgenderv_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($courtgenderv->CourtSortID->Visible) { // CourtSortID ?>
	<tr id="r_CourtSortID">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtSortID"><?php echo $courtgenderv->CourtSortID->caption() ?></span></td>
		<td data-name="CourtSortID"<?php echo $courtgenderv->CourtSortID->cellAttributes() ?>>
<span id="el_courtgenderv_CourtSortID">
<span<?php echo $courtgenderv->CourtSortID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtSort->Visible) { // CourtSort ?>
	<tr id="r_CourtSort">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtSort"><?php echo $courtgenderv->CourtSort->caption() ?></span></td>
		<td data-name="CourtSort"<?php echo $courtgenderv->CourtSort->cellAttributes() ?>>
<span id="el_courtgenderv_CourtSort">
<span<?php echo $courtgenderv->CourtSort->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSort->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtSortEn->Visible) { // CourtSortEn ?>
	<tr id="r_CourtSortEn">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtSortEn"><?php echo $courtgenderv->CourtSortEn->caption() ?></span></td>
		<td data-name="CourtSortEn"<?php echo $courtgenderv->CourtSortEn->cellAttributes() ?>>
<span id="el_courtgenderv_CourtSortEn">
<span<?php echo $courtgenderv->CourtSortEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtSortNotes->Visible) { // CourtSortNotes ?>
	<tr id="r_CourtSortNotes">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtSortNotes"><?php echo $courtgenderv->CourtSortNotes->caption() ?></span></td>
		<td data-name="CourtSortNotes"<?php echo $courtgenderv->CourtSortNotes->cellAttributes() ?>>
<span id="el_courtgenderv_CourtSortNotes">
<span<?php echo $courtgenderv->CourtSortNotes->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortNotes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtGenderID->Visible) { // CourtGenderID ?>
	<tr id="r_CourtGenderID">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtGenderID"><?php echo $courtgenderv->CourtGenderID->caption() ?></span></td>
		<td data-name="CourtGenderID"<?php echo $courtgenderv->CourtGenderID->cellAttributes() ?>>
<span id="el_courtgenderv_CourtGenderID">
<span<?php echo $courtgenderv->CourtGenderID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtGender->Visible) { // CourtGender ?>
	<tr id="r_CourtGender">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtGender"><?php echo $courtgenderv->CourtGender->caption() ?></span></td>
		<td data-name="CourtGender"<?php echo $courtgenderv->CourtGender->cellAttributes() ?>>
<span id="el_courtgenderv_CourtGender">
<span<?php echo $courtgenderv->CourtGender->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGender->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->CourtGenderEn->Visible) { // CourtGenderEn ?>
	<tr id="r_CourtGenderEn">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_CourtGenderEn"><?php echo $courtgenderv->CourtGenderEn->caption() ?></span></td>
		<td data-name="CourtGenderEn"<?php echo $courtgenderv->CourtGenderEn->cellAttributes() ?>>
<span id="el_courtgenderv_CourtGenderEn">
<span<?php echo $courtgenderv->CourtGenderEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderEn->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($courtgenderv->Notes->Visible) { // Notes ?>
	<tr id="r_Notes">
		<td class="<?php echo $courtgenderv_view->TableLeftColumnClass ?>"><span id="elh_courtgenderv_Notes"><?php echo $courtgenderv->Notes->caption() ?></span></td>
		<td data-name="Notes"<?php echo $courtgenderv->Notes->cellAttributes() ?>>
<span id="el_courtgenderv_Notes">
<span<?php echo $courtgenderv->Notes->viewAttributes() ?>>
<?php echo $courtgenderv->Notes->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php if (!$courtgenderv_view->IsModal) { ?>
<?php if (!$courtgenderv->isExport()) { ?>
<?php if (!isset($courtgenderv_view->Pager)) $courtgenderv_view->Pager = new PrevNextPager($courtgenderv_view->StartRec, $courtgenderv_view->DisplayRecs, $courtgenderv_view->TotalRecs, $courtgenderv_view->AutoHidePager) ?>
<?php if ($courtgenderv_view->Pager->RecordCount > 0 && $courtgenderv_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 ($courtgenderv_view->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 ($courtgenderv_view->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 $courtgenderv_view->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgenderv_view->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 ($courtgenderv_view->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgenderv_view->pageUrl() ?>start=<?php echo $courtgenderv_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 $courtgenderv_view->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<div class="clearfix"></div>
<?php } ?>
<?php } ?>
</form>
<?php
$courtgenderv_view->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$courtgenderv->isExport()) { ?>
<script>

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

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