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

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

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

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

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

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

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

// Dynamic selection lists
// Form object for search

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

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

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

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

// Render list options (header, left)
$casestatus_list->ListOptions->render("header", "left");
?>
<?php if ($casestatus->CaseStatus->Visible) { // CaseStatus ?>
	<?php if ($casestatus->sortUrl($casestatus->CaseStatus) == "") { ?>
		<th data-name="CaseStatus" class="<?php echo $casestatus->CaseStatus->headerCellClass() ?>"><div id="elh_casestatus_CaseStatus" class="casestatus_CaseStatus"><div class="ew-table-header-caption"><?php echo $casestatus->CaseStatus->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseStatus" class="<?php echo $casestatus->CaseStatus->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casestatus->SortUrl($casestatus->CaseStatus) ?>',2);"><div id="elh_casestatus_CaseStatus" class="casestatus_CaseStatus">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casestatus->CaseStatus->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casestatus->CaseStatus->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casestatus->CaseStatus->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($casestatus->CaseStatusEn->Visible) { // CaseStatusEn ?>
	<?php if ($casestatus->sortUrl($casestatus->CaseStatusEn) == "") { ?>
		<th data-name="CaseStatusEn" class="<?php echo $casestatus->CaseStatusEn->headerCellClass() ?>"><div id="elh_casestatus_CaseStatusEn" class="casestatus_CaseStatusEn"><div class="ew-table-header-caption"><?php echo $casestatus->CaseStatusEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseStatusEn" class="<?php echo $casestatus->CaseStatusEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casestatus->SortUrl($casestatus->CaseStatusEn) ?>',2);"><div id="elh_casestatus_CaseStatusEn" class="casestatus_CaseStatusEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casestatus->CaseStatusEn->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casestatus->CaseStatusEn->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casestatus->CaseStatusEn->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($casestatus->Notes->Visible) { // Notes ?>
	<?php if ($casestatus->sortUrl($casestatus->Notes) == "") { ?>
		<th data-name="Notes" class="<?php echo $casestatus->Notes->headerCellClass() ?>"><div id="elh_casestatus_Notes" class="casestatus_Notes"><div class="ew-table-header-caption"><?php echo $casestatus->Notes->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Notes" class="<?php echo $casestatus->Notes->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $casestatus->SortUrl($casestatus->Notes) ?>',2);"><div id="elh_casestatus_Notes" class="casestatus_Notes">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $casestatus->Notes->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($casestatus->Notes->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($casestatus->Notes->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$casestatus_list->ListOptions->render("body", "left", $casestatus_list->RowCnt);
?>
	<?php if ($casestatus->CaseStatus->Visible) { // CaseStatus ?>
		<td data-name="CaseStatus"<?php echo $casestatus->CaseStatus->cellAttributes() ?>>
<span id="el<?php echo $casestatus_list->RowCnt ?>_casestatus_CaseStatus" class="casestatus_CaseStatus">
<span<?php echo $casestatus->CaseStatus->viewAttributes() ?>>
<?php echo $casestatus->CaseStatus->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($casestatus->CaseStatusEn->Visible) { // CaseStatusEn ?>
		<td data-name="CaseStatusEn"<?php echo $casestatus->CaseStatusEn->cellAttributes() ?>>
<span id="el<?php echo $casestatus_list->RowCnt ?>_casestatus_CaseStatusEn" class="casestatus_CaseStatusEn">
<span<?php echo $casestatus->CaseStatusEn->viewAttributes() ?>>
<?php echo $casestatus->CaseStatusEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($casestatus->Notes->Visible) { // Notes ?>
		<td data-name="Notes"<?php echo $casestatus->Notes->cellAttributes() ?>>
<span id="el<?php echo $casestatus_list->RowCnt ?>_casestatus_Notes" class="casestatus_Notes">
<span<?php echo $casestatus->Notes->viewAttributes() ?>>
<?php echo $casestatus->Notes->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

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