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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search

var fcourttypelistsrch = currentSearchForm = new ew.Form("fcourttypelistsrch");

// Validate function for search
fcourttypelistsrch.validate = function(fobj) {
	if (!this.validateRequired)
		return true; // Ignore validation
	fobj = fobj || this._form;
	var infix = "";

	// Fire Form_CustomValidate event
	if (!this.Form_CustomValidate(fobj))
		return false;
	return true;
}

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

// Dynamic selection lists
// Filters

fcourttypelistsrch.filterList = <?php echo $courttype_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 (!$courttype->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($courttype_list->TotalRecs > 0 && $courttype_list->ExportOptions->visible()) { ?>
<?php $courttype_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($courttype_list->ImportOptions->visible()) { ?>
<?php $courttype_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($courttype_list->SearchOptions->visible()) { ?>
<?php $courttype_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($courttype_list->FilterOptions->visible()) { ?>
<?php $courttype_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$courttype_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$courttype->isExport() && !$courttype->CurrentAction) { ?>
<form name="fcourttypelistsrch" id="fcourttypelistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<?php $searchPanelClass = ($courttype_list->SearchWhere <> "") ? " show" : " show"; ?>
<div id="fcourttypelistsrch-search-panel" class="ew-search-panel collapse<?php echo $searchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="courttype">
	<div class="ew-basic-search">
<?php
if ($SearchError == "")
	$courttype_list->LoadAdvancedSearch(); // Load advanced search

// Render for search
$courttype->RowType = ROWTYPE_SEARCH;

// Render row
$courttype->resetAttributes();
$courttype_list->renderRow();
?>
<div id="xsr_1" class="ew-row d-sm-flex">
<?php if ($courttype->CourtTypeID->Visible) { // CourtTypeID ?>
	<div id="xsc_CourtTypeID" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $courttype->CourtTypeID->caption() ?></label>
		<span class="ew-search-operator"><?php echo $Language->phrase("=") ?><input type="hidden" name="z_CourtTypeID" id="z_CourtTypeID" value="="></span>
		<span class="ew-search-field">
<input type="text" data-table="courttype" data-field="x_CourtTypeID" name="x_CourtTypeID" id="x_CourtTypeID" placeholder="<?php echo HtmlEncode($courttype->CourtTypeID->getPlaceHolder()) ?>" value="<?php echo $courttype->CourtTypeID->EditValue ?>"<?php echo $courttype->CourtTypeID->editAttributes() ?>>
</span>
	</div>
<?php } ?>
</div>
<div id="xsr_2" 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($courttype_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($courttype_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 $courttype_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($courttype_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 ($courttype_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 ($courttype_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 ($courttype_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 $courttype_list->showPageHeader(); ?>
<?php
$courttype_list->showMessage();
?>
<?php if ($courttype_list->TotalRecs > 0 || $courttype->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($courttype_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> courttype">
<?php if (!$courttype->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$courttype->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php if (!isset($courttype_list->Pager)) $courttype_list->Pager = new PrevNextPager($courttype_list->StartRec, $courttype_list->DisplayRecs, $courttype_list->TotalRecs, $courttype_list->AutoHidePager) ?>
<?php if ($courttype_list->Pager->RecordCount > 0 && $courttype_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 ($courttype_list->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" href="<?php echo $courttype_list->pageUrl() ?>start=<?php echo $courttype_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 ($courttype_list->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" href="<?php echo $courttype_list->pageUrl() ?>start=<?php echo $courttype_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 $courttype_list->Pager->CurrentPage ?>">
<div class="input-group-append">
<!-- next page button -->
	<?php if ($courttype_list->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" href="<?php echo $courttype_list->pageUrl() ?>start=<?php echo $courttype_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 ($courttype_list->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" href="<?php echo $courttype_list->pageUrl() ?>start=<?php echo $courttype_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 $courttype_list->Pager->PageCount ?></span>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if ($courttype_list->Pager->RecordCount > 0) { ?>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->Phrase("Record") ?>&nbsp;<?php echo $courttype_list->Pager->FromIndex ?>&nbsp;<?php echo $Language->Phrase("To") ?>&nbsp;<?php echo $courttype_list->Pager->ToIndex ?>&nbsp;<?php echo $Language->Phrase("Of") ?>&nbsp;<?php echo $courttype_list->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php if ($courttype_list->TotalRecs > 0 && (!$courttype_list->AutoHidePageSizeSelector || $courttype_list->Pager->Visible)) { ?>
<div class="ew-pager">
<input type="hidden" name="t" value="courttype">
<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 ($courttype_list->DisplayRecs == 5) { ?> selected<?php } ?>>5</option>
<option value="10"<?php if ($courttype_list->DisplayRecs == 10) { ?> selected<?php } ?>>10</option>
<option value="20"<?php if ($courttype_list->DisplayRecs == 20) { ?> selected<?php } ?>>20</option>
<option value="30"<?php if ($courttype_list->DisplayRecs == 30) { ?> selected<?php } ?>>30</option>
<option value="40"<?php if ($courttype_list->DisplayRecs == 40) { ?> selected<?php } ?>>40</option>
<option value="50"<?php if ($courttype_list->DisplayRecs == 50) { ?> selected<?php } ?>>50</option>
<option value="100"<?php if ($courttype_list->DisplayRecs == 100) { ?> selected<?php } ?>>100</option>
<option value="200"<?php if ($courttype_list->DisplayRecs == 200) { ?> selected<?php } ?>>200</option>
<option value="500"<?php if ($courttype_list->DisplayRecs == 500) { ?> selected<?php } ?>>500</option>
<option value="ALL"<?php if ($courttype->getRecordsPerPage() == -1) { ?> selected<?php } ?>><?php echo $Language->Phrase("AllRecords") ?></option>
</select>
</div>
<?php } ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $courttype_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fcourttypelist" id="fcourttypelist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($courttype_list->CheckToken) { ?>
<input type="hidden" name="<?php echo TOKEN_NAME ?>" value="<?php echo $courttype_list->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="courttype">
<div id="gmp_courttype" class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel">
<?php if ($courttype_list->TotalRecs > 0 || $courttype->isGridEdit()) { ?>
<table id="tbl_courttypelist" class="table ew-table"><!-- .ew-table ##-->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$courttype_list->ListOptions->render("header", "left");
?>
<?php if ($courttype->CourtTypeID->Visible) { // CourtTypeID ?>
	<?php if ($courttype->sortUrl($courttype->CourtTypeID) == "") { ?>
		<th data-name="CourtTypeID" class="<?php echo $courttype->CourtTypeID->headerCellClass() ?>"><div id="elh_courttype_CourtTypeID" class="courttype_CourtTypeID"><div class="ew-table-header-caption"><?php echo $courttype->CourtTypeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtTypeID" class="<?php echo $courttype->CourtTypeID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courttype->SortUrl($courttype->CourtTypeID) ?>',2);"><div id="elh_courttype_CourtTypeID" class="courttype_CourtTypeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courttype->CourtTypeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($courttype->CourtTypeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courttype->CourtTypeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courttype->CourtType->Visible) { // CourtType ?>
	<?php if ($courttype->sortUrl($courttype->CourtType) == "") { ?>
		<th data-name="CourtType" class="<?php echo $courttype->CourtType->headerCellClass() ?>"><div id="elh_courttype_CourtType" class="courttype_CourtType"><div class="ew-table-header-caption"><?php echo $courttype->CourtType->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtType" class="<?php echo $courttype->CourtType->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courttype->SortUrl($courttype->CourtType) ?>',2);"><div id="elh_courttype_CourtType" class="courttype_CourtType">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courttype->CourtType->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courttype->CourtType->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courttype->CourtType->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($courttype->Notes->Visible) { // Notes ?>
	<?php if ($courttype->sortUrl($courttype->Notes) == "") { ?>
		<th data-name="Notes" class="<?php echo $courttype->Notes->headerCellClass() ?>"><div id="elh_courttype_Notes" class="courttype_Notes"><div class="ew-table-header-caption"><?php echo $courttype->Notes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Notes" class="<?php echo $courttype->Notes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $courttype->SortUrl($courttype->Notes) ?>',2);"><div id="elh_courttype_Notes" class="courttype_Notes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $courttype->Notes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($courttype->Notes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($courttype->Notes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$courttype_list->ListOptions->render("body", "left", $courttype_list->RowCnt);
?>
	<?php if ($courttype->CourtTypeID->Visible) { // CourtTypeID ?>
		<td data-name="CourtTypeID"<?php echo $courttype->CourtTypeID->cellAttributes() ?>>
<span id="el<?php echo $courttype_list->RowCnt ?>_courttype_CourtTypeID" class="courttype_CourtTypeID">
<span<?php echo $courttype->CourtTypeID->viewAttributes() ?>>
<?php echo $courttype->CourtTypeID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courttype->CourtType->Visible) { // CourtType ?>
		<td data-name="CourtType"<?php echo $courttype->CourtType->cellAttributes() ?>>
<span id="el<?php echo $courttype_list->RowCnt ?>_courttype_CourtType" class="courttype_CourtType">
<span<?php echo $courttype->CourtType->viewAttributes() ?>>
<?php echo $courttype->CourtType->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($courttype->Notes->Visible) { // Notes ?>
		<td data-name="Notes"<?php echo $courttype->Notes->cellAttributes() ?>>
<span id="el<?php echo $courttype_list->RowCnt ?>_courttype_Notes" class="courttype_Notes">
<span<?php echo $courttype->Notes->viewAttributes() ?>>
<?php echo $courttype->Notes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

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