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

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

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

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

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

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

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

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

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

// Filters
fcourtgenderlistsrch.filterList = <?php echo $courtgender_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 (!$courtgender->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($courtgender_list->TotalRecs > 0 && $courtgender_list->ExportOptions->visible()) { ?>
<?php $courtgender_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($courtgender_list->ImportOptions->visible()) { ?>
<?php $courtgender_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($courtgender_list->SearchOptions->visible()) { ?>
<?php $courtgender_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($courtgender_list->FilterOptions->visible()) { ?>
<?php $courtgender_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$courtgender_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$courtgender->isExport() && !$courtgender->CurrentAction) { ?>
<form name="fcourtgenderlistsrch" id="fcourtgenderlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($courtgender_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="fcourtgenderlistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="courtgender">
	<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($courtgender_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($courtgender_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 $courtgender_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($courtgender_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 ($courtgender_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 ($courtgender_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 ($courtgender_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 $courtgender_list->showPageHeader(); ?>
<?php
$courtgender_list->showMessage();
?>
<?php if ($courtgender_list->TotalRecs > 0 || $courtgender->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($courtgender_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> courtgender">
<?php if (!$courtgender->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$courtgender->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courtgender_list->Pager)) $courtgender_list->Pager = new PrevNextPager($courtgender_list->StartRec, $courtgender_list->DisplayRecs, $courtgender_list->TotalRecs, $courtgender_list->AutoHidePager) ?>
<?php if ($courtgender_list->Pager->RecordCount > 0 && $courtgender_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 ($courtgender_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courtgender_list->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courtgender_list->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courtgender_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courtgender_list->pageUrl() ?>start=<?php echo $courtgender_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 ($courtgender_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courtgender_list->pageUrl() ?>start=<?php echo $courtgender_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 $courtgender_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($courtgender_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $courtgender_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $courtgender_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $courtgender_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($courtgender_list->TotalRecs > 0 && (!$courtgender_list->AutoHidePageSizeSelector || $courtgender_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="courtgender">
<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 ($courtgender_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($courtgender_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($courtgender_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($courtgender_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($courtgender_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($courtgender_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($courtgender_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($courtgender_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($courtgender_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($courtgender->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $courtgender_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fcourtgenderlist" id="fcourtgenderlist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courtgender_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courtgender_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courtgender">
<div id="gmp_courtgender" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($courtgender_list->TotalRecs > 0 || $courtgender->isGridEdit()) { ?>
<table id="tbl_courtgenderlist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$courtgender_list->ListOptions->render("header", "left");
?>
<?php if ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
	<?php if ($courtgender->sortUrl($courtgender->CourtSortID) == "") { ?>
		<th data-name="CourtSortID" class="<?php echo $courtgender->CourtSortID->headerCellClass() ?>"><div id="elh_courtgender_CourtSortID" class="courtgender_CourtSortID"><div class="ew-table-header-caption"><?php echo $courtgender->CourtSortID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtSortID" class="<?php echo $courtgender->CourtSortID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgender->SortUrl($courtgender->CourtSortID) ?>',2);"><div id="elh_courtgender_CourtSortID" class="courtgender_CourtSortID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgender->CourtSortID->caption() ?></span><span class="ew-table-header-sort"><?php if ($courtgender->CourtSortID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgender->CourtSortID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
	<?php if ($courtgender->sortUrl($courtgender->CourtGender) == "") { ?>
		<th data-name="CourtGender" class="<?php echo $courtgender->CourtGender->headerCellClass() ?>"><div id="elh_courtgender_CourtGender" class="courtgender_CourtGender"><div class="ew-table-header-caption"><?php echo $courtgender->CourtGender->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtGender" class="<?php echo $courtgender->CourtGender->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgender->SortUrl($courtgender->CourtGender) ?>',2);"><div id="elh_courtgender_CourtGender" class="courtgender_CourtGender">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgender->CourtGender->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgender->CourtGender->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgender->CourtGender->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courtgender->Notes->Visible) { // Notes ?>
	<?php if ($courtgender->sortUrl($courtgender->Notes) == "") { ?>
		<th data-name="Notes" class="<?php echo $courtgender->Notes->headerCellClass() ?>"><div id="elh_courtgender_Notes" class="courtgender_Notes"><div class="ew-table-header-caption"><?php echo $courtgender->Notes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Notes" class="<?php echo $courtgender->Notes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courtgender->SortUrl($courtgender->Notes) ?>',2);"><div id="elh_courtgender_Notes" class="courtgender_Notes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courtgender->Notes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courtgender->Notes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courtgender->Notes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$courtgender_list->ListOptions->render("body", "left", $courtgender_list->RowCnt);
?>
	<?php if ($courtgender->CourtSortID->Visible) { // CourtSortID ?>
		<td data-name="CourtSortID"<?php echo $courtgender->CourtSortID->cellAttributes() ?>>
<span id="el<?php echo $courtgender_list->RowCnt ?>_courtgender_CourtSortID" class="courtgender_CourtSortID">
<span<?php echo $courtgender->CourtSortID->viewAttributes() ?>>
<?php echo $courtgender->CourtSortID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgender->CourtGender->Visible) { // CourtGender ?>
		<td data-name="CourtGender"<?php echo $courtgender->CourtGender->cellAttributes() ?>>
<span id="el<?php echo $courtgender_list->RowCnt ?>_courtgender_CourtGender" class="courtgender_CourtGender">
<span<?php echo $courtgender->CourtGender->viewAttributes() ?>>
<?php echo $courtgender->CourtGender->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courtgender->Notes->Visible) { // Notes ?>
		<td data-name="Notes"<?php echo $courtgender->Notes->cellAttributes() ?>>
<span id="el<?php echo $courtgender_list->RowCnt ?>_courtgender_Notes" class="courtgender_Notes">
<span<?php echo $courtgender->Notes->viewAttributes() ?>>
<?php echo $courtgender->Notes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

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