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

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

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

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

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

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

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

// Dynamic selection lists
flawfirmlist.lists["x_Activated[]"] = <?php echo $lawfirm_list->Activated->Lookup->toClientList() ?>;
flawfirmlist.lists["x_Activated[]"].options = <?php echo JsonEncode($lawfirm_list->Activated->options(FALSE, TRUE)) ?>;

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

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

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

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

// Dynamic selection lists
flawfirmlistsrch.lists["x_Activated[]"] = <?php echo $lawfirm_list->Activated->Lookup->toClientList() ?>;
flawfirmlistsrch.lists["x_Activated[]"].options = <?php echo JsonEncode($lawfirm_list->Activated->options(FALSE, TRUE)) ?>;

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

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

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

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

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

// Render list options (header, left)
$lawfirm_list->ListOptions->render("header", "left");
?>
<?php if ($lawfirm->LawFirm->Visible) { // LawFirm ?>
	<?php if ($lawfirm->sortUrl($lawfirm->LawFirm) == "") { ?>
		<th data-name="LawFirm" class="<?php echo $lawfirm->LawFirm->headerCellClass() ?>"><div id="elh_lawfirm_LawFirm" class="lawfirm_LawFirm"><div class="ew-table-header-caption"><?php echo $lawfirm->LawFirm->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LawFirm" class="<?php echo $lawfirm->LawFirm->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $lawfirm->SortUrl($lawfirm->LawFirm) ?>',2);"><div id="elh_lawfirm_LawFirm" class="lawfirm_LawFirm">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $lawfirm->LawFirm->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($lawfirm->LawFirm->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($lawfirm->LawFirm->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($lawfirm->LawFirmEn->Visible) { // LawFirmEn ?>
	<?php if ($lawfirm->sortUrl($lawfirm->LawFirmEn) == "") { ?>
		<th data-name="LawFirmEn" class="<?php echo $lawfirm->LawFirmEn->headerCellClass() ?>"><div id="elh_lawfirm_LawFirmEn" class="lawfirm_LawFirmEn"><div class="ew-table-header-caption"><?php echo $lawfirm->LawFirmEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="LawFirmEn" class="<?php echo $lawfirm->LawFirmEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $lawfirm->SortUrl($lawfirm->LawFirmEn) ?>',2);"><div id="elh_lawfirm_LawFirmEn" class="lawfirm_LawFirmEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $lawfirm->LawFirmEn->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($lawfirm->LawFirmEn->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($lawfirm->LawFirmEn->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($lawfirm->Activated->Visible) { // Activated ?>
	<?php if ($lawfirm->sortUrl($lawfirm->Activated) == "") { ?>
		<th data-name="Activated" class="<?php echo $lawfirm->Activated->headerCellClass() ?>"><div id="elh_lawfirm_Activated" class="lawfirm_Activated"><div class="ew-table-header-caption"><?php echo $lawfirm->Activated->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Activated" class="<?php echo $lawfirm->Activated->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event,'<?php echo $lawfirm->SortUrl($lawfirm->Activated) ?>',2);"><div id="elh_lawfirm_Activated" class="lawfirm_Activated">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $lawfirm->Activated->caption() ?></span><span class="ew-table-header-sort"><?php if ($lawfirm->Activated->getSort() == "ASC") { ?><i class="fa fa-sort-up"></i><?php } elseif ($lawfirm->Activated->getSort() == "DESC") { ?><i class="fa fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$lawfirm_list->ListOptions->render("body", "left", $lawfirm_list->RowCnt);
?>
	<?php if ($lawfirm->LawFirm->Visible) { // LawFirm ?>
		<td data-name="LawFirm"<?php echo $lawfirm->LawFirm->cellAttributes() ?>>
<span id="el<?php echo $lawfirm_list->RowCnt ?>_lawfirm_LawFirm" class="lawfirm_LawFirm">
<span<?php echo $lawfirm->LawFirm->viewAttributes() ?>>
<?php echo $lawfirm->LawFirm->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($lawfirm->LawFirmEn->Visible) { // LawFirmEn ?>
		<td data-name="LawFirmEn"<?php echo $lawfirm->LawFirmEn->cellAttributes() ?>>
<span id="el<?php echo $lawfirm_list->RowCnt ?>_lawfirm_LawFirmEn" class="lawfirm_LawFirmEn">
<span<?php echo $lawfirm->LawFirmEn->viewAttributes() ?>>
<?php echo $lawfirm->LawFirmEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($lawfirm->Activated->Visible) { // Activated ?>
		<td data-name="Activated"<?php echo $lawfirm->Activated->cellAttributes() ?>>
<span id="el<?php echo $lawfirm_list->RowCnt ?>_lawfirm_Activated" class="lawfirm_Activated">
<span<?php echo $lawfirm->Activated->viewAttributes() ?>>
<?php if (ConvertToBool($lawfirm->Activated->CurrentValue)) { ?>
<input type="checkbox" value="<?php echo $lawfirm->Activated->getViewValue() ?>" disabled checked>
<?php } else { ?>
<input type="checkbox" value="<?php echo $lawfirm->Activated->getViewValue() ?>" disabled>
<?php } ?>
</span>
</span>
</td>
	<?php } ?>
<?php

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

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

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

</script>
<?php if (!$lawfirm->isExport()) { ?>
<script>
ew.scrollableTable("gmp_lawfirm", "1250px", "");
</script>
<?php } ?>
<?php } ?>
<?php include_once "footer.php" ?>
<?php
$lawfirm_list->terminate();
?>
