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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search

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

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

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

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

// Render list options (header, left)
$casetypes_list->ListOptions->render("header", "left");
?>
<?php if ($casetypes->CaseType->Visible) { // CaseType ?>
	<?php if ($casetypes->sortUrl($casetypes->CaseType) == "") { ?>
		<th data-name="CaseType" class="<?php echo $casetypes->CaseType->headerCellClass() ?>"><div id="elh_casetypes_CaseType" class="casetypes_CaseType"><div class="ew-table-header-caption"><?php echo $casetypes->CaseType->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseType" class="<?php echo $casetypes->CaseType->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casetypes->SortUrl($casetypes->CaseType) ?>',2);"><div id="elh_casetypes_CaseType" class="casetypes_CaseType">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casetypes->CaseType->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casetypes->CaseType->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casetypes->CaseType->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($casetypes->CaseTypeEn->Visible) { // CaseTypeEn ?>
	<?php if ($casetypes->sortUrl($casetypes->CaseTypeEn) == "") { ?>
		<th data-name="CaseTypeEn" class="<?php echo $casetypes->CaseTypeEn->headerCellClass() ?>"><div id="elh_casetypes_CaseTypeEn" class="casetypes_CaseTypeEn"><div class="ew-table-header-caption"><?php echo $casetypes->CaseTypeEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseTypeEn" class="<?php echo $casetypes->CaseTypeEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casetypes->SortUrl($casetypes->CaseTypeEn) ?>',2);"><div id="elh_casetypes_CaseTypeEn" class="casetypes_CaseTypeEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casetypes->CaseTypeEn->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casetypes->CaseTypeEn->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casetypes->CaseTypeEn->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($casetypes->Notes->Visible) { // Notes ?>
	<?php if ($casetypes->sortUrl($casetypes->Notes) == "") { ?>
		<th data-name="Notes" class="<?php echo $casetypes->Notes->headerCellClass() ?>"><div id="elh_casetypes_Notes" class="casetypes_Notes"><div class="ew-table-header-caption"><?php echo $casetypes->Notes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Notes" class="<?php echo $casetypes->Notes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casetypes->SortUrl($casetypes->Notes) ?>',2);"><div id="elh_casetypes_Notes" class="casetypes_Notes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casetypes->Notes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casetypes->Notes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casetypes->Notes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$casetypes_list->ListOptions->render("body", "left", $casetypes_list->RowCnt);
?>
	<?php if ($casetypes->CaseType->Visible) { // CaseType ?>
		<td data-name="CaseType"<?php echo $casetypes->CaseType->cellAttributes() ?>>
<span id="el<?php echo $casetypes_list->RowCnt ?>_casetypes_CaseType" class="casetypes_CaseType">
<span<?php echo $casetypes->CaseType->viewAttributes() ?>>
<?php echo $casetypes->CaseType->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($casetypes->CaseTypeEn->Visible) { // CaseTypeEn ?>
		<td data-name="CaseTypeEn"<?php echo $casetypes->CaseTypeEn->cellAttributes() ?>>
<span id="el<?php echo $casetypes_list->RowCnt ?>_casetypes_CaseTypeEn" class="casetypes_CaseTypeEn">
<span<?php echo $casetypes->CaseTypeEn->viewAttributes() ?>>
<?php echo $casetypes->CaseTypeEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($casetypes->Notes->Visible) { // Notes ?>
		<td data-name="Notes"<?php echo $casetypes->Notes->cellAttributes() ?>>
<span id="el<?php echo $casetypes_list->RowCnt ?>_casetypes_Notes" class="casetypes_Notes">
<span<?php echo $casetypes->Notes->viewAttributes() ?>>
<?php echo $casetypes->Notes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

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