<?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, "utf-8");

// Create page object
$cases_preview = new cases_preview();

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

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

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

// Page Rendering event
$cases_preview->Page_Render();
?>
<?php $cases_preview->showPageHeader(); ?>
<div class="card ew-grid cases"><!-- .card -->
<?php if ($cases_preview->TotalRecs > 0) { ?>
<div class="<?php if (IsResponsiveLayout()) { ?>table-responsive <?php } ?>card-body ew-grid-middle-panel"><!-- .table-responsive -->
<table class="table ew-table ew-preview-table"><!-- .table -->
	<thead><!-- Table header -->
		<tr class="ew-table-header">
<?php

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

// Render list options (header, left)
$cases_preview->ListOptions->render("header", "left");
?>
<?php if ($cases->ClientID->Visible) { // ClientID ?>
	<?php if ($cases->SortUrl($cases->ClientID) == "") { ?>
		<th class="<?php echo $cases->ClientID->headerCellClass() ?>"><?php echo $cases->ClientID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->ClientID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->ClientID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->ClientID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->ClientID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->ClientID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->LitigantID->Visible) { // LitigantID ?>
	<?php if ($cases->SortUrl($cases->LitigantID) == "") { ?>
		<th class="<?php echo $cases->LitigantID->headerCellClass() ?>"><?php echo $cases->LitigantID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->LitigantID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->LitigantID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->LitigantID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->LitigantID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->LitigantID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->CaseTypeID->Visible) { // CaseTypeID ?>
	<?php if ($cases->SortUrl($cases->CaseTypeID) == "") { ?>
		<th class="<?php echo $cases->CaseTypeID->headerCellClass() ?>"><?php echo $cases->CaseTypeID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->CaseTypeID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->CaseTypeID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->CaseTypeID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->CaseTypeID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->CaseTypeID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->CourtID->Visible) { // CourtID ?>
	<?php if ($cases->SortUrl($cases->CourtID) == "") { ?>
		<th class="<?php echo $cases->CourtID->headerCellClass() ?>"><?php echo $cases->CourtID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->CourtID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->CourtID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->CourtID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->CourtID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->CourtID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->CaseNumber->Visible) { // CaseNumber ?>
	<?php if ($cases->SortUrl($cases->CaseNumber) == "") { ?>
		<th class="<?php echo $cases->CaseNumber->headerCellClass() ?>"><?php echo $cases->CaseNumber->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->CaseNumber->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->CaseNumber->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->CaseNumber->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->CaseNumber->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->CaseNumber->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->FileNumber->Visible) { // FileNumber ?>
	<?php if ($cases->SortUrl($cases->FileNumber) == "") { ?>
		<th class="<?php echo $cases->FileNumber->headerCellClass() ?>"><?php echo $cases->FileNumber->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->FileNumber->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->FileNumber->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->FileNumber->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->FileNumber->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->FileNumber->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->ClientStatusID->Visible) { // ClientStatusID ?>
	<?php if ($cases->SortUrl($cases->ClientStatusID) == "") { ?>
		<th class="<?php echo $cases->ClientStatusID->headerCellClass() ?>"><?php echo $cases->ClientStatusID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->ClientStatusID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->ClientStatusID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->ClientStatusID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->ClientStatusID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->ClientStatusID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->LitigantStatusID->Visible) { // LitigantStatusID ?>
	<?php if ($cases->SortUrl($cases->LitigantStatusID) == "") { ?>
		<th class="<?php echo $cases->LitigantStatusID->headerCellClass() ?>"><?php echo $cases->LitigantStatusID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->LitigantStatusID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->LitigantStatusID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->LitigantStatusID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->LitigantStatusID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->LitigantStatusID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->Notes->Visible) { // Notes ?>
	<?php if ($cases->SortUrl($cases->Notes) == "") { ?>
		<th class="<?php echo $cases->Notes->headerCellClass() ?>"><?php echo $cases->Notes->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->Notes->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->Notes->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->Notes->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->Notes->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->Notes->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->ParentCaseID->Visible) { // ParentCaseID ?>
	<?php if ($cases->SortUrl($cases->ParentCaseID) == "") { ?>
		<th class="<?php echo $cases->ParentCaseID->headerCellClass() ?>"><?php echo $cases->ParentCaseID->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->ParentCaseID->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->ParentCaseID->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->ParentCaseID->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->ParentCaseID->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->ParentCaseID->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->FileNumber2->Visible) { // FileNumber2 ?>
	<?php if ($cases->SortUrl($cases->FileNumber2) == "") { ?>
		<th class="<?php echo $cases->FileNumber2->headerCellClass() ?>"><?php echo $cases->FileNumber2->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->FileNumber2->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->FileNumber2->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->FileNumber2->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->FileNumber2->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->FileNumber2->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->ClientNameConvFiles->Visible) { // ClientNameConvFiles ?>
	<?php if ($cases->SortUrl($cases->ClientNameConvFiles) == "") { ?>
		<th class="<?php echo $cases->ClientNameConvFiles->headerCellClass() ?>"><?php echo $cases->ClientNameConvFiles->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->ClientNameConvFiles->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->ClientNameConvFiles->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->ClientNameConvFiles->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->ClientNameConvFiles->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->ClientNameConvFiles->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->LitigantNameConvFiles->Visible) { // LitigantNameConvFiles ?>
	<?php if ($cases->SortUrl($cases->LitigantNameConvFiles) == "") { ?>
		<th class="<?php echo $cases->LitigantNameConvFiles->headerCellClass() ?>"><?php echo $cases->LitigantNameConvFiles->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->LitigantNameConvFiles->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->LitigantNameConvFiles->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->LitigantNameConvFiles->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->LitigantNameConvFiles->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->LitigantNameConvFiles->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($cases->CaseTypeConvFiles->Visible) { // CaseTypeConvFiles ?>
	<?php if ($cases->SortUrl($cases->CaseTypeConvFiles) == "") { ?>
		<th class="<?php echo $cases->CaseTypeConvFiles->headerCellClass() ?>"><?php echo $cases->CaseTypeConvFiles->caption() ?></th>
	<?php } else { ?>
		<th class="<?php echo $cases->CaseTypeConvFiles->headerCellClass() ?>"><div class="ew-pointer" data-sort="<?php echo $cases->CaseTypeConvFiles->Name ?>" data-sort-order="<?php echo $cases_preview->SortField == $cases->CaseTypeConvFiles->Name && $cases_preview->SortOrder == "ASC" ? "DESC" : "ASC" ?>"><div class="ew-table-header-btn">
		<span class="ew-table-header-caption"><?php echo $cases->CaseTypeConvFiles->caption() ?></span>
		<span class="ew-table-header-sort"><?php if ($cases_preview->SortField == $cases->CaseTypeConvFiles->Name) { ?><?php if ($cases_preview->SortOrder == "ASC") { ?><i class="fa fa-sort-up ew-sort-up"></span><?php } elseif ($cases_preview->SortOrder == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?><?php } ?></span>
	</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$cases_preview->ListOptions->render("header", "right");
?>
		</tr>
	</thead>
	<tbody><!-- Table body -->
<?php
$cases_preview->RecCount = 0;
$cases_preview->RowCnt = 0;
while ($cases_preview->Recordset && !$cases_preview->Recordset->EOF) {

	// Init row class and style
	$cases_preview->RecCount++;
	$cases_preview->RowCnt++;
	$cases_preview->CssStyle = "";
	$cases_preview->loadListRowValues($cases_preview->Recordset);

	// Render row
	$cases_preview->RowType = ROWTYPE_PREVIEW; // Preview record
	$cases_preview->resetAttributes();
	$cases_preview->renderListRow();

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

// Render list options (body, left)
$cases_preview->ListOptions->render("body", "left", $cases_preview->RowCnt);
?>
<?php if ($cases->ClientID->Visible) { // ClientID ?>
		<!-- ClientID -->
		<td<?php echo $cases->ClientID->cellAttributes() ?>>
<span<?php echo $cases->ClientID->viewAttributes() ?>>
<?php if ((!EmptyString($cases->ClientID->getViewValue())) && $cases->ClientID->linkAttributes() <> "") { ?>
<a<?php echo $cases->ClientID->linkAttributes() ?>><?php echo $cases->ClientID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases->ClientID->getViewValue() ?>
<?php } ?>
</span>
</td>
<?php } ?>
<?php if ($cases->LitigantID->Visible) { // LitigantID ?>
		<!-- LitigantID -->
		<td<?php echo $cases->LitigantID->cellAttributes() ?>>
<span<?php echo $cases->LitigantID->viewAttributes() ?>>
<?php if ((!EmptyString($cases->LitigantID->getViewValue())) && $cases->LitigantID->linkAttributes() <> "") { ?>
<a<?php echo $cases->LitigantID->linkAttributes() ?>><?php echo $cases->LitigantID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases->LitigantID->getViewValue() ?>
<?php } ?>
</span>
</td>
<?php } ?>
<?php if ($cases->CaseTypeID->Visible) { // CaseTypeID ?>
		<!-- CaseTypeID -->
		<td<?php echo $cases->CaseTypeID->cellAttributes() ?>>
<span<?php echo $cases->CaseTypeID->viewAttributes() ?>>
<?php echo $cases->CaseTypeID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->CourtID->Visible) { // CourtID ?>
		<!-- CourtID -->
		<td<?php echo $cases->CourtID->cellAttributes() ?>>
<span<?php echo $cases->CourtID->viewAttributes() ?>>
<?php if ((!EmptyString($cases->CourtID->getViewValue())) && $cases->CourtID->linkAttributes() <> "") { ?>
<a<?php echo $cases->CourtID->linkAttributes() ?>><?php echo $cases->CourtID->getViewValue() ?></a>
<?php } else { ?>
<?php echo $cases->CourtID->getViewValue() ?>
<?php } ?>
</span>
</td>
<?php } ?>
<?php if ($cases->CaseNumber->Visible) { // CaseNumber ?>
		<!-- CaseNumber -->
		<td<?php echo $cases->CaseNumber->cellAttributes() ?>>
<span<?php echo $cases->CaseNumber->viewAttributes() ?>>
<?php echo $cases->CaseNumber->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->FileNumber->Visible) { // FileNumber ?>
		<!-- FileNumber -->
		<td<?php echo $cases->FileNumber->cellAttributes() ?>>
<span<?php echo $cases->FileNumber->viewAttributes() ?>>
<?php echo $cases->FileNumber->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->ClientStatusID->Visible) { // ClientStatusID ?>
		<!-- ClientStatusID -->
		<td<?php echo $cases->ClientStatusID->cellAttributes() ?>>
<span<?php echo $cases->ClientStatusID->viewAttributes() ?>>
<?php echo $cases->ClientStatusID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->LitigantStatusID->Visible) { // LitigantStatusID ?>
		<!-- LitigantStatusID -->
		<td<?php echo $cases->LitigantStatusID->cellAttributes() ?>>
<span<?php echo $cases->LitigantStatusID->viewAttributes() ?>>
<?php echo $cases->LitigantStatusID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->Notes->Visible) { // Notes ?>
		<!-- Notes -->
		<td<?php echo $cases->Notes->cellAttributes() ?>>
<span<?php echo $cases->Notes->viewAttributes() ?>>
<?php echo $cases->Notes->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->ParentCaseID->Visible) { // ParentCaseID ?>
		<!-- ParentCaseID -->
		<td<?php echo $cases->ParentCaseID->cellAttributes() ?>>
<span<?php echo $cases->ParentCaseID->viewAttributes() ?>>
<?php echo $cases->ParentCaseID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->FileNumber2->Visible) { // FileNumber2 ?>
		<!-- FileNumber2 -->
		<td<?php echo $cases->FileNumber2->cellAttributes() ?>>
<span<?php echo $cases->FileNumber2->viewAttributes() ?>>
<?php echo $cases->FileNumber2->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->ClientNameConvFiles->Visible) { // ClientNameConvFiles ?>
		<!-- ClientNameConvFiles -->
		<td<?php echo $cases->ClientNameConvFiles->cellAttributes() ?>>
<span<?php echo $cases->ClientNameConvFiles->viewAttributes() ?>>
<?php echo $cases->ClientNameConvFiles->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->LitigantNameConvFiles->Visible) { // LitigantNameConvFiles ?>
		<!-- LitigantNameConvFiles -->
		<td<?php echo $cases->LitigantNameConvFiles->cellAttributes() ?>>
<span<?php echo $cases->LitigantNameConvFiles->viewAttributes() ?>>
<?php echo $cases->LitigantNameConvFiles->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($cases->CaseTypeConvFiles->Visible) { // CaseTypeConvFiles ?>
		<!-- CaseTypeConvFiles -->
		<td<?php echo $cases->CaseTypeConvFiles->cellAttributes() ?>>
<span<?php echo $cases->CaseTypeConvFiles->viewAttributes() ?>>
<?php echo $cases->CaseTypeConvFiles->getViewValue() ?></span>
</td>
<?php } ?>
<?php

// Render list options (body, right)
$cases_preview->ListOptions->render("body", "right", $cases_preview->RowCnt);
?>
	</tr>
<?php
	$cases_preview->Recordset->MoveNext();
}
?>
	</tbody>
</table><!-- /.table -->
</div><!-- /.table-responsive -->
<?php } ?>
<div class="card-footer ew-grid-lower-panel ew-preview-lower-panel"><!-- .card-footer -->
<?php if ($cases_preview->TotalRecs > 0) { ?>
<?php if (!isset($cases_preview->Pager)) $cases_preview->Pager = new PrevNextPager($cases_preview->StartRec, $cases_preview->DisplayRecs, $cases_preview->TotalRecs) ?>
<?php if ($cases_preview->Pager->RecordCount > 0 && $cases_preview->Pager->Visible) { ?>
<div class="ew-pager"><div class="ew-prev-next"><div class="btn-group btn-group-sm ew-btn-group">
<!--first page button-->
	<?php if ($cases_preview->Pager->FirstButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerFirst") ?>" data-start="<?php echo $cases_preview->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 ($cases_preview->Pager->PrevButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerPrevious") ?>" data-start="<?php echo $cases_preview->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 } ?>
<!--next page button-->
	<?php if ($cases_preview->Pager->NextButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerNext") ?>" data-start="<?php echo $cases_preview->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 ($cases_preview->Pager->LastButton->Enabled) { ?>
	<a class="btn btn-default" title="<?php echo $Language->phrase("PagerLast") ?>" data-start="<?php echo $cases_preview->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>
<div class="ew-pager ew-rec">
	<span><?php echo $Language->phrase("Record") ?>&nbsp;<?php echo $cases_preview->Pager->FromIndex ?>&nbsp;<?php echo $Language->phrase("To") ?>&nbsp;<?php echo $cases_preview->Pager->ToIndex ?>&nbsp;<?php echo $Language->phrase("Of") ?>&nbsp;<?php echo $cases_preview->Pager->RecordCount ?></span>
</div>
<?php } ?>
<?php } else { ?>
<div class="ew-detail-count"><?php echo $Language->Phrase("NoRecord") ?></div>
<?php } ?>
<div class="ew-preview-other-options">
<?php
	foreach ($cases_preview->OtherOptions as &$option)
		$option->render("body");
?>
</div>
<div class="clearfix"></div>
</div><!-- /.card-footer -->
</div><!-- /.card -->
<?php
$cases_preview->showPageFooter();
if (DEBUG_ENABLED)
	echo GetDebugMessage();
?>
<?php
if ($cases_preview->Recordset)
	$cases_preview->Recordset->Close();

// Output
$content = ob_get_contents();
ob_end_clean();
echo ConvertToUtf8($content);
?>
<?php
$cases_preview->terminate();
?>
