<?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_list = new courtgenderv_list();

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

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

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

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

// Form object
currentPageID = ew.PAGE_ID = "list";
var fcourtgendervlist = currentForm = new ew.Form("fcourtgendervlist", "list");
fcourtgendervlist.formKeyCountName = '<?php echo $courtgenderv_list->FormKeyCountName ?>';

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

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

// Form object for search
var fcourtgendervlistsrch = currentSearchForm = new ew.Form("fcourtgendervlistsrch");

// Filters
fcourtgendervlistsrch.filterList = <?php echo $courtgenderv_list->getFilterList() ?>;
</script>
<script src="phpjs/ewscrolltable.js"></script>
<style type="text/css">
.ew-table-preview-row { /* main table preview row color */
	background-color: #FFFFFF; /* preview row color */
}
.ew-table-preview-row .ew-grid {
	display: table;
}
</style>
<div id="ew-preview" class="d-none"><!-- preview -->
	<div class="ew-nav-tabs"><!-- .ew-nav-tabs -->
		<ul class="nav nav-tabs"></ul>
		<div class="tab-content"><!-- .tab-content -->
			<div class="tab-pane fade active show"></div>
		</div><!-- /.tab-content -->
	</div><!-- /.ew-nav-tabs -->
</div><!-- /preview -->
<script src="phpjs/ewpreview.js"></script>
<script>
ew.PREVIEW_PLACEMENT = ew.CSS_FLIP ? "left" : "right";
ew.PREVIEW_SINGLE_ROW = false;
ew.PREVIEW_OVERLAY = true;
</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 if ($courtgenderv_list->TotalRecs > 0 && $courtgenderv_list->ExportOptions->visible()) { ?>
<?php $courtgenderv_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($courtgenderv_list->ImportOptions->visible()) { ?>
<?php $courtgenderv_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($courtgenderv_list->SearchOptions->visible()) { ?>
<?php $courtgenderv_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($courtgenderv_list->FilterOptions->visible()) { ?>
<?php $courtgenderv_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$courtgenderv_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$courtgenderv->isExport() && !$courtgenderv->CurrentAction) { ?>
<form name="fcourtgendervlistsrch" id="fcourtgendervlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($courtgenderv_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="fcourtgendervlistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="courtgenderv">
	<div class="ew-basic-search">
<div id="xsr_1" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo TABLE_BASIC_SEARCH ?>" id="<?php echo TABLE_BASIC_SEARCH ?>" class="form-control" value="<?php echo HtmlEncode($courtgenderv_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" id="<?php echo TABLE_BASIC_SEARCH_TYPE ?>" value="<?php echo HtmlEncode($courtgenderv_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $courtgenderv_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($courtgenderv_list->BasicSearch->getType() == "") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this)"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($courtgenderv_list->BasicSearch->getType() == "=") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'=')"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($courtgenderv_list->BasicSearch->getType() == "AND") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'AND')"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($courtgenderv_list->BasicSearch->getType() == "OR") echo " active"; ?>" href="javascript:void(0);" onclick="ew.setSearchType(this,'OR')"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div>
</div>
</form>
<?php } ?>
<?php } ?>
<?php $courtgenderv_list->showPageHeader(); ?>
<?php
$courtgenderv_list->showMessage();
?>
<?php if ($courtgenderv_list->TotalRecs > 0 || $courtgenderv->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($courtgenderv_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> courtgenderv">
<?php if (!$courtgenderv->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$courtgenderv->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courtgenderv_list->Pager)) $courtgenderv_list->Pager = new PrevNextPager($courtgenderv_list->StartRec, $courtgenderv_list->DisplayRecs, $courtgenderv_list->TotalRecs, $courtgenderv_list->AutoHidePager) ?>
<?php if ($courtgenderv_list->Pager->RecordCount > 0 && $courtgenderv_list->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_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgenderv_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($courtgenderv_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $courtgenderv_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $courtgenderv_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $courtgenderv_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($courtgenderv_list->TotalRecs > 0 && (!$courtgenderv_list->AutoHidePageSizeSelector || $courtgenderv_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="courtgenderv">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($courtgenderv_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($courtgenderv_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($courtgenderv_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($courtgenderv_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($courtgenderv_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($courtgenderv_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($courtgenderv_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($courtgenderv_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($courtgenderv_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($courtgenderv->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $courtgenderv_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fcourtgendervlist" id="fcourtgendervlist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgenderv_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgenderv_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgenderv">
<div id="gmp_courtgenderv" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($courtgenderv_list->TotalRecs > 0 || $courtgenderv->isGridEdit()) { ?>
<table id="tbl_courtgendervlist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$courtgenderv_list->RowType = ROWTYPE_HEADER;

// Render list options
$courtgenderv_list->renderListOptions();

// Render list options (header, left)
$courtgenderv_list->ListOptions->render("header", "left");
?>
<?php if ($courtgenderv->CourtSortID->Visible) { // CourtSortID ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtSortID) == "") { ?>
		<th data-name="CourtSortID" class="<?php echo $courtgenderv->CourtSortID->headerCellClass() ?>"><div id="elh_courtgenderv_CourtSortID" class="courtgenderv_CourtSortID"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtSortID" class="<?php echo $courtgenderv->CourtSortID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtSortID) ?>',2);"><div id="elh_courtgenderv_CourtSortID" class="courtgenderv_CourtSortID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortID->caption() ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtSortID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtSortID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtSort->Visible) { // CourtSort ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtSort) == "") { ?>
		<th data-name="CourtSort" class="<?php echo $courtgenderv->CourtSort->headerCellClass() ?>"><div id="elh_courtgenderv_CourtSort" class="courtgenderv_CourtSort"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtSort->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtSort" class="<?php echo $courtgenderv->CourtSort->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtSort) ?>',2);"><div id="elh_courtgenderv_CourtSort" class="courtgenderv_CourtSort">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtSort->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtSort->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtSort->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtSortEn->Visible) { // CourtSortEn ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtSortEn) == "") { ?>
		<th data-name="CourtSortEn" class="<?php echo $courtgenderv->CourtSortEn->headerCellClass() ?>"><div id="elh_courtgenderv_CourtSortEn" class="courtgenderv_CourtSortEn"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtSortEn" class="<?php echo $courtgenderv->CourtSortEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtSortEn) ?>',2);"><div id="elh_courtgenderv_CourtSortEn" class="courtgenderv_CourtSortEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortEn->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtSortEn->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtSortEn->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtSortNotes->Visible) { // CourtSortNotes ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtSortNotes) == "") { ?>
		<th data-name="CourtSortNotes" class="<?php echo $courtgenderv->CourtSortNotes->headerCellClass() ?>"><div id="elh_courtgenderv_CourtSortNotes" class="courtgenderv_CourtSortNotes"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortNotes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtSortNotes" class="<?php echo $courtgenderv->CourtSortNotes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtSortNotes) ?>',2);"><div id="elh_courtgenderv_CourtSortNotes" class="courtgenderv_CourtSortNotes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtSortNotes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtSortNotes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtSortNotes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtGenderID->Visible) { // CourtGenderID ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtGenderID) == "") { ?>
		<th data-name="CourtGenderID" class="<?php echo $courtgenderv->CourtGenderID->headerCellClass() ?>"><div id="elh_courtgenderv_CourtGenderID" class="courtgenderv_CourtGenderID"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtGenderID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtGenderID" class="<?php echo $courtgenderv->CourtGenderID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtGenderID) ?>',2);"><div id="elh_courtgenderv_CourtGenderID" class="courtgenderv_CourtGenderID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtGenderID->caption() ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtGenderID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtGenderID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtGender->Visible) { // CourtGender ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtGender) == "") { ?>
		<th data-name="CourtGender" class="<?php echo $courtgenderv->CourtGender->headerCellClass() ?>"><div id="elh_courtgenderv_CourtGender" class="courtgenderv_CourtGender"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtGender->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtGender" class="<?php echo $courtgenderv->CourtGender->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtGender) ?>',2);"><div id="elh_courtgenderv_CourtGender" class="courtgenderv_CourtGender">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtGender->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtGender->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtGender->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->CourtGenderEn->Visible) { // CourtGenderEn ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->CourtGenderEn) == "") { ?>
		<th data-name="CourtGenderEn" class="<?php echo $courtgenderv->CourtGenderEn->headerCellClass() ?>"><div id="elh_courtgenderv_CourtGenderEn" class="courtgenderv_CourtGenderEn"><div class="ew-table-header-caption"><?php echo $courtgenderv->CourtGenderEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtGenderEn" class="<?php echo $courtgenderv->CourtGenderEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->CourtGenderEn) ?>',2);"><div id="elh_courtgenderv_CourtGenderEn" class="courtgenderv_CourtGenderEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->CourtGenderEn->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->CourtGenderEn->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->CourtGenderEn->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgenderv->Notes->Visible) { // Notes ?>
	<?php if ($courtgenderv->sortUrl($courtgenderv->Notes) == "") { ?>
		<th data-name="Notes" class="<?php echo $courtgenderv->Notes->headerCellClass() ?>"><div id="elh_courtgenderv_Notes" class="courtgenderv_Notes"><div class="ew-table-header-caption"><?php echo $courtgenderv->Notes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Notes" class="<?php echo $courtgenderv->Notes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgenderv->SortUrl($courtgenderv->Notes) ?>',2);"><div id="elh_courtgenderv_Notes" class="courtgenderv_Notes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgenderv->Notes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgenderv->Notes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgenderv->Notes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$courtgenderv_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($courtgenderv->ExportAll && $courtgenderv->isExport()) {
	$courtgenderv_list->StopRec = $courtgenderv_list->TotalRecs;
} else {

	// Set the last record to display
	if ($courtgenderv_list->TotalRecs > $courtgenderv_list->StartRec + $courtgenderv_list->DisplayRecs - 1)
		$courtgenderv_list->StopRec = $courtgenderv_list->StartRec + $courtgenderv_list->DisplayRecs - 1;
	else
		$courtgenderv_list->StopRec = $courtgenderv_list->TotalRecs;
}
$courtgenderv_list->RecCnt = $courtgenderv_list->StartRec - 1;
if ($courtgenderv_list->Recordset && !$courtgenderv_list->Recordset->EOF) {
	$courtgenderv_list->Recordset->moveFirst();
	$selectLimit = $courtgenderv_list->UseSelectLimit;
	if (!$selectLimit && $courtgenderv_list->StartRec > 1)
		$courtgenderv_list->Recordset->move($courtgenderv_list->StartRec - 1);
} elseif (!$courtgenderv->AllowAddDeleteRow && $courtgenderv_list->StopRec == 0) {
	$courtgenderv_list->StopRec = $courtgenderv->GridAddRowCount;
}

// Initialize aggregate
$courtgenderv->RowType = ROWTYPE_AGGREGATEINIT;
$courtgenderv->resetAttributes();
$courtgenderv_list->renderRow();
while ($courtgenderv_list->RecCnt < $courtgenderv_list->StopRec) {
	$courtgenderv_list->RecCnt++;
	if ($courtgenderv_list->RecCnt >= $courtgenderv_list->StartRec) {
		$courtgenderv_list->RowCnt++;

		// Set up key count
		$courtgenderv_list->KeyCount = $courtgenderv_list->RowIndex;

		// Init row class and style
		$courtgenderv->resetAttributes();
		$courtgenderv->CssClass = "";
		if ($courtgenderv->isGridAdd()) {
		} else {
			$courtgenderv_list->loadRowValues($courtgenderv_list->Recordset); // Load row values
		}
		$courtgenderv->RowType = ROWTYPE_VIEW; // Render view

		// Set up row id / data-rowindex
		$courtgenderv->RowAttrs = array_merge($courtgenderv->RowAttrs, array('data-rowindex'=>$courtgenderv_list->RowCnt, 'id'=>'r' . $courtgenderv_list->RowCnt . '_courtgenderv', 'data-rowtype'=>$courtgenderv->RowType));

		// Render row
		$courtgenderv_list->renderRow();

		// Render list options
		$courtgenderv_list->renderListOptions();
?>
	<tr<?php echo $courtgenderv->rowAttributes() ?>>
<?php

// Render list options (body, left)
$courtgenderv_list->ListOptions->render("body", "left", $courtgenderv_list->RowCnt);
?>
	<?php if ($courtgenderv->CourtSortID->Visible) { // CourtSortID ?>
		<td data-name="CourtSortID"<?php echo $courtgenderv->CourtSortID->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtSortID" class="courtgenderv_CourtSortID">
<span<?php echo $courtgenderv->CourtSortID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtSort->Visible) { // CourtSort ?>
		<td data-name="CourtSort"<?php echo $courtgenderv->CourtSort->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtSort" class="courtgenderv_CourtSort">
<span<?php echo $courtgenderv->CourtSort->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSort->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtSortEn->Visible) { // CourtSortEn ?>
		<td data-name="CourtSortEn"<?php echo $courtgenderv->CourtSortEn->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtSortEn" class="courtgenderv_CourtSortEn">
<span<?php echo $courtgenderv->CourtSortEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtSortNotes->Visible) { // CourtSortNotes ?>
		<td data-name="CourtSortNotes"<?php echo $courtgenderv->CourtSortNotes->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtSortNotes" class="courtgenderv_CourtSortNotes">
<span<?php echo $courtgenderv->CourtSortNotes->viewAttributes() ?>>
<?php echo $courtgenderv->CourtSortNotes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtGenderID->Visible) { // CourtGenderID ?>
		<td data-name="CourtGenderID"<?php echo $courtgenderv->CourtGenderID->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtGenderID" class="courtgenderv_CourtGenderID">
<span<?php echo $courtgenderv->CourtGenderID->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtGender->Visible) { // CourtGender ?>
		<td data-name="CourtGender"<?php echo $courtgenderv->CourtGender->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtGender" class="courtgenderv_CourtGender">
<span<?php echo $courtgenderv->CourtGender->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGender->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->CourtGenderEn->Visible) { // CourtGenderEn ?>
		<td data-name="CourtGenderEn"<?php echo $courtgenderv->CourtGenderEn->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_CourtGenderEn" class="courtgenderv_CourtGenderEn">
<span<?php echo $courtgenderv->CourtGenderEn->viewAttributes() ?>>
<?php echo $courtgenderv->CourtGenderEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgenderv->Notes->Visible) { // Notes ?>
		<td data-name="Notes"<?php echo $courtgenderv->Notes->cellAttributes() ?>>
<span id="el<?php echo $courtgenderv_list->RowCnt ?>_courtgenderv_Notes" class="courtgenderv_Notes">
<span<?php echo $courtgenderv->Notes->viewAttributes() ?>>
<?php echo $courtgenderv->Notes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$courtgenderv_list->ListOptions->render("body", "right", $courtgenderv_list->RowCnt);
?>
	</tr>
<?php
	}
	if (!$courtgenderv->isGridAdd())
		$courtgenderv_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
<?php if (!$courtgenderv->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($courtgenderv_list->Recordset)
	$courtgenderv_list->Recordset->Close();
?>
<?php if (!$courtgenderv->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$courtgenderv->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courtgenderv_list->Pager)) $courtgenderv_list->Pager = new PrevNextPager($courtgenderv_list->StartRec, $courtgenderv_list->DisplayRecs, $courtgenderv_list->TotalRecs, $courtgenderv_list->AutoHidePager) ?>
<?php if ($courtgenderv_list->Pager->RecordCount > 0 && $courtgenderv_list->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_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgenderv_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgenderv_list->pageUrl() ?>start=<?php echo $courtgenderv_list->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_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($courtgenderv_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $courtgenderv_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $courtgenderv_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $courtgenderv_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($courtgenderv_list->TotalRecs > 0 && (!$courtgenderv_list->AutoHidePageSizeSelector || $courtgenderv_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="courtgenderv">
<select name="<?php echo TABLE_REC_PER_PAGE ?>" class="form-control form-control-sm ew-tooltip" title="<?php echo $Language->phrase("RecordsPerPage") ?>" onchange="this.form.submit();">
<option value="5"<?php if ($courtgenderv_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($courtgenderv_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($courtgenderv_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($courtgenderv_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($courtgenderv_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($courtgenderv_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($courtgenderv_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($courtgenderv_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($courtgenderv_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($courtgenderv->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $courtgenderv_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($courtgenderv_list->TotalRecs == 0 && !$courtgenderv->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $courtgenderv_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$courtgenderv_list->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php if (!$courtgenderv->isExport()) { ?>
<script>

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

</script>
<?php if (!$courtgenderv->isExport()) { ?>
<script>
ew.scrollableTable("gmp_courtgenderv", "", "");
</script>
<?php } ?>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$courtgenderv_list->terminate();
?>
