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

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

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

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

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

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

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

// Dynamic selection lists
fcaseslookupvlist.lists["x_ClientID"] = <?php echo $caseslookupv_list->ClientID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_ClientID"].options = <?php echo JsonEncode($caseslookupv_list->ClientID->lookupOptions()) ?>;
fcaseslookupvlist.autoSuggests["x_ClientID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcaseslookupvlist.lists["x_LitigantID"] = <?php echo $caseslookupv_list->LitigantID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_LitigantID"].options = <?php echo JsonEncode($caseslookupv_list->LitigantID->lookupOptions()) ?>;
fcaseslookupvlist.autoSuggests["x_LitigantID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcaseslookupvlist.lists["x_CaseTypeID"] = <?php echo $caseslookupv_list->CaseTypeID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_CaseTypeID"].options = <?php echo JsonEncode($caseslookupv_list->CaseTypeID->lookupOptions()) ?>;
fcaseslookupvlist.lists["x_CourtID"] = <?php echo $caseslookupv_list->CourtID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_CourtID"].options = <?php echo JsonEncode($caseslookupv_list->CourtID->lookupOptions()) ?>;
fcaseslookupvlist.autoSuggests["x_CourtID"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
fcaseslookupvlist.lists["x_ClientStatusID"] = <?php echo $caseslookupv_list->ClientStatusID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_ClientStatusID"].options = <?php echo JsonEncode($caseslookupv_list->ClientStatusID->lookupOptions()) ?>;
fcaseslookupvlist.lists["x_LitigantStatusID"] = <?php echo $caseslookupv_list->LitigantStatusID->Lookup->toClientList() ?>;
fcaseslookupvlist.lists["x_LitigantStatusID"].options = <?php echo JsonEncode($caseslookupv_list->LitigantStatusID->lookupOptions()) ?>;

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

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

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

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

// Render list options (header, left)
$caseslookupv_list->ListOptions->render("header", "left");
?>
<?php if ($caseslookupv->ClientID->Visible) { // ClientID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->ClientID) == "") { ?>
		<th data-name="ClientID" class="<?php echo $caseslookupv->ClientID->headerCellClass() ?>" style="min-width: 150px;"><div id="elh_caseslookupv_ClientID" class="caseslookupv_ClientID"><div class="ew-table-header-caption"><?php echo $caseslookupv->ClientID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="ClientID" class="<?php echo $caseslookupv->ClientID->headerCellClass() ?>" style="min-width: 150px;"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->ClientID) ?>',2);"><div id="elh_caseslookupv_ClientID" class="caseslookupv_ClientID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->ClientID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->ClientID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->ClientID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->LitigantID->Visible) { // LitigantID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->LitigantID) == "") { ?>
		<th data-name="LitigantID" class="<?php echo $caseslookupv->LitigantID->headerCellClass() ?>" style="width: 250px; white-space: nowrap;"><div id="elh_caseslookupv_LitigantID" class="caseslookupv_LitigantID"><div class="ew-table-header-caption"><?php echo $caseslookupv->LitigantID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LitigantID" class="<?php echo $caseslookupv->LitigantID->headerCellClass() ?>" style="width: 250px; white-space: nowrap;"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->LitigantID) ?>',2);"><div id="elh_caseslookupv_LitigantID" class="caseslookupv_LitigantID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->LitigantID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->LitigantID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->LitigantID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->CaseTypeID->Visible) { // CaseTypeID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->CaseTypeID) == "") { ?>
		<th data-name="CaseTypeID" class="<?php echo $caseslookupv->CaseTypeID->headerCellClass() ?>" style="min-width: 120px;"><div id="elh_caseslookupv_CaseTypeID" class="caseslookupv_CaseTypeID"><div class="ew-table-header-caption"><?php echo $caseslookupv->CaseTypeID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseTypeID" class="<?php echo $caseslookupv->CaseTypeID->headerCellClass() ?>" style="min-width: 120px;"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->CaseTypeID) ?>',2);"><div id="elh_caseslookupv_CaseTypeID" class="caseslookupv_CaseTypeID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->CaseTypeID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->CaseTypeID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->CaseTypeID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->CourtID->Visible) { // CourtID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->CourtID) == "") { ?>
		<th data-name="CourtID" class="<?php echo $caseslookupv->CourtID->headerCellClass() ?>" style="width: 200px; white-space: nowrap;"><div id="elh_caseslookupv_CourtID" class="caseslookupv_CourtID"><div class="ew-table-header-caption"><?php echo $caseslookupv->CourtID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CourtID" class="<?php echo $caseslookupv->CourtID->headerCellClass() ?>" style="width: 200px; white-space: nowrap;"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->CourtID) ?>',2);"><div id="elh_caseslookupv_CourtID" class="caseslookupv_CourtID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->CourtID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->CourtID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->CourtID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->CaseNumber->Visible) { // CaseNumber ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->CaseNumber) == "") { ?>
		<th data-name="CaseNumber" class="<?php echo $caseslookupv->CaseNumber->headerCellClass() ?>"><div id="elh_caseslookupv_CaseNumber" class="caseslookupv_CaseNumber"><div class="ew-table-header-caption"><?php echo $caseslookupv->CaseNumber->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="CaseNumber" class="<?php echo $caseslookupv->CaseNumber->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->CaseNumber) ?>',2);"><div id="elh_caseslookupv_CaseNumber" class="caseslookupv_CaseNumber">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->CaseNumber->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->CaseNumber->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->CaseNumber->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->FileNumber->Visible) { // FileNumber ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->FileNumber) == "") { ?>
		<th data-name="FileNumber" class="<?php echo $caseslookupv->FileNumber->headerCellClass() ?>"><div id="elh_caseslookupv_FileNumber" class="caseslookupv_FileNumber"><div class="ew-table-header-caption"><?php echo $caseslookupv->FileNumber->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="FileNumber" class="<?php echo $caseslookupv->FileNumber->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->FileNumber) ?>',2);"><div id="elh_caseslookupv_FileNumber" class="caseslookupv_FileNumber">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->FileNumber->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->FileNumber->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->FileNumber->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->EnvelopeNumber) == "") { ?>
		<th data-name="EnvelopeNumber" class="<?php echo $caseslookupv->EnvelopeNumber->headerCellClass() ?>"><div id="elh_caseslookupv_EnvelopeNumber" class="caseslookupv_EnvelopeNumber"><div class="ew-table-header-caption"><?php echo $caseslookupv->EnvelopeNumber->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="EnvelopeNumber" class="<?php echo $caseslookupv->EnvelopeNumber->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->EnvelopeNumber) ?>',2);"><div id="elh_caseslookupv_EnvelopeNumber" class="caseslookupv_EnvelopeNumber">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->EnvelopeNumber->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->EnvelopeNumber->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->EnvelopeNumber->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->ClientStatusID->Visible) { // ClientStatusID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->ClientStatusID) == "") { ?>
		<th data-name="ClientStatusID" class="<?php echo $caseslookupv->ClientStatusID->headerCellClass() ?>"><div id="elh_caseslookupv_ClientStatusID" class="caseslookupv_ClientStatusID"><div class="ew-table-header-caption"><?php echo $caseslookupv->ClientStatusID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="ClientStatusID" class="<?php echo $caseslookupv->ClientStatusID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->ClientStatusID) ?>',2);"><div id="elh_caseslookupv_ClientStatusID" class="caseslookupv_ClientStatusID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->ClientStatusID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->ClientStatusID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->ClientStatusID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($caseslookupv->LitigantStatusID->Visible) { // LitigantStatusID ?>
	<?php if ($caseslookupv->sortUrl($caseslookupv->LitigantStatusID) == "") { ?>
		<th data-name="LitigantStatusID" class="<?php echo $caseslookupv->LitigantStatusID->headerCellClass() ?>"><div id="elh_caseslookupv_LitigantStatusID" class="caseslookupv_LitigantStatusID"><div class="ew-table-header-caption"><?php echo $caseslookupv->LitigantStatusID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LitigantStatusID" class="<?php echo $caseslookupv->LitigantStatusID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $caseslookupv->SortUrl($caseslookupv->LitigantStatusID) ?>',2);"><div id="elh_caseslookupv_LitigantStatusID" class="caseslookupv_LitigantStatusID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $caseslookupv->LitigantStatusID->caption() ?></span><span class="ew-table-header-sort"><?php if ($caseslookupv->LitigantStatusID->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($caseslookupv->LitigantStatusID->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$caseslookupv_list->ListOptions->render("body", "left", $caseslookupv_list->RowCnt);
?>
	<?php if ($caseslookupv->ClientID->Visible) { // ClientID ?>
		<td data-name="ClientID"<?php echo $caseslookupv->ClientID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_ClientID" class="caseslookupv_ClientID">
<span<?php echo $caseslookupv->ClientID->viewAttributes() ?>>
<?php if ((!EmptyString($caseslookupv->ClientID->getViewValue())) && $caseslookupv->ClientID->linkAttributes() <> "") { ?>
<a<?php echo $caseslookupv->ClientID->linkAttributes() ?>><?php echo $caseslookupv->ClientID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $caseslookupv->ClientID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->LitigantID->Visible) { // LitigantID ?>
		<td data-name="LitigantID"<?php echo $caseslookupv->LitigantID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_LitigantID" class="caseslookupv_LitigantID">
<span<?php echo $caseslookupv->LitigantID->viewAttributes() ?>>
<?php if ((!EmptyString($caseslookupv->LitigantID->getViewValue())) && $caseslookupv->LitigantID->linkAttributes() <> "") { ?>
<a<?php echo $caseslookupv->LitigantID->linkAttributes() ?>><?php echo $caseslookupv->LitigantID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $caseslookupv->LitigantID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->CaseTypeID->Visible) { // CaseTypeID ?>
		<td data-name="CaseTypeID"<?php echo $caseslookupv->CaseTypeID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_CaseTypeID" class="caseslookupv_CaseTypeID">
<span<?php echo $caseslookupv->CaseTypeID->viewAttributes() ?>>
<?php echo $caseslookupv->CaseTypeID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->CourtID->Visible) { // CourtID ?>
		<td data-name="CourtID"<?php echo $caseslookupv->CourtID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_CourtID" class="caseslookupv_CourtID">
<span<?php echo $caseslookupv->CourtID->viewAttributes() ?>>
<?php if ((!EmptyString($caseslookupv->CourtID->getViewValue())) && $caseslookupv->CourtID->linkAttributes() <> "") { ?>
<a<?php echo $caseslookupv->CourtID->linkAttributes() ?>><?php echo $caseslookupv->CourtID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $caseslookupv->CourtID->getViewValue() ?>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->CaseNumber->Visible) { // CaseNumber ?>
		<td data-name="CaseNumber"<?php echo $caseslookupv->CaseNumber->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_CaseNumber" class="caseslookupv_CaseNumber">
<span<?php echo $caseslookupv->CaseNumber->viewAttributes() ?>>
<?php echo $caseslookupv->CaseNumber->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->FileNumber->Visible) { // FileNumber ?>
		<td data-name="FileNumber"<?php echo $caseslookupv->FileNumber->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_FileNumber" class="caseslookupv_FileNumber">
<span<?php echo $caseslookupv->FileNumber->viewAttributes() ?>>
<?php echo $caseslookupv->FileNumber->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->EnvelopeNumber->Visible) { // EnvelopeNumber ?>
		<td data-name="EnvelopeNumber"<?php echo $caseslookupv->EnvelopeNumber->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_EnvelopeNumber" class="caseslookupv_EnvelopeNumber">
<span<?php echo $caseslookupv->EnvelopeNumber->viewAttributes() ?>>
<?php echo $caseslookupv->EnvelopeNumber->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->ClientStatusID->Visible) { // ClientStatusID ?>
		<td data-name="ClientStatusID"<?php echo $caseslookupv->ClientStatusID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_ClientStatusID" class="caseslookupv_ClientStatusID">
<span<?php echo $caseslookupv->ClientStatusID->viewAttributes() ?>>
<?php echo $caseslookupv->ClientStatusID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($caseslookupv->LitigantStatusID->Visible) { // LitigantStatusID ?>
		<td data-name="LitigantStatusID"<?php echo $caseslookupv->LitigantStatusID->cellAttributes() ?>>
<span id="el<?php echo $caseslookupv_list->RowCnt ?>_caseslookupv_LitigantStatusID" class="caseslookupv_LitigantStatusID">
<span<?php echo $caseslookupv->LitigantStatusID->viewAttributes() ?>>
<?php echo $caseslookupv->LitigantStatusID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

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