Heray-Was-Here
Server : Apache
System : Linux hybrid3195.ca.ns.planethoster.net 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
User : alliancerealtynb ( 1004)
PHP Version : 7.4.33
Disable Function : noop
Directory :  /home/alliancerealtynb/testOLD.alliancerealty.nb.ca/adminAR/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/testOLD.alliancerealty.nb.ca/adminAR/crm_viewlist.php
<?php
namespace PHPMaker2020\Alliance;

// Autoload
include_once "autoload.php";

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	\Delight\Cookie\Session::start(Config("COOKIE_SAMESITE")); // Init session data

// Output buffering
ob_start();
?>
<?php

// Write header
WriteHeader(FALSE);

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

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

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

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

// Page Rendering event
$crm_view_list->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$crm_view_list->isExport()) { ?>
<script>
var fcrm_viewlist, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "list";
	fcrm_viewlist = currentForm = new ew.Form("fcrm_viewlist", "list");
	fcrm_viewlist.formKeyCountName = '<?php echo $crm_view_list->FormKeyCountName ?>';
	loadjs.done("fcrm_viewlist");
});
var fcrm_viewlistsrch;
loadjs.ready("head", function() {

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

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

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

	// Form_CustomValidate
	fcrm_viewlistsrch.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
	fcrm_viewlistsrch.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

	// Dynamic selection lists
	fcrm_viewlistsrch.lists["x_archive"] = <?php echo $crm_view_list->archive->Lookup->toClientList($crm_view_list) ?>;
	fcrm_viewlistsrch.lists["x_archive"].options = <?php echo JsonEncode($crm_view_list->archive->options(FALSE, TRUE)) ?>;

	// Filters
	fcrm_viewlistsrch.filterList = <?php echo $crm_view_list->getFilterList() ?>;
	loadjs.done("fcrm_viewlistsrch");
});
</script>
<script>
loadjs.ready("head", function() {

	// Client script
	// Write your client script here, no need to add script tags.

});
</script>
<?php } ?>
<?php if (!$crm_view_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($crm_view_list->TotalRecords > 0 && $crm_view_list->ExportOptions->visible()) { ?>
<?php $crm_view_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($crm_view_list->ImportOptions->visible()) { ?>
<?php $crm_view_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($crm_view_list->SearchOptions->visible()) { ?>
<?php $crm_view_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($crm_view_list->FilterOptions->visible()) { ?>
<?php $crm_view_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$crm_view_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$crm_view_list->isExport() && !$crm_view->CurrentAction) { ?>
<form name="fcrm_viewlistsrch" id="fcrm_viewlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="fcrm_viewlistsrch-search-panel" class="<?php echo $crm_view_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="crm_view">
	<div class="ew-extended-search">
<?php

// Render search row
$crm_view->RowType = ROWTYPE_SEARCH;
$crm_view->resetAttributes();
$crm_view_list->renderRow();
?>
<?php if ($crm_view_list->last_name->Visible) { // last_name ?>
	<?php
		$crm_view_list->SearchColumnCount++;
		if (($crm_view_list->SearchColumnCount - 1) % $crm_view_list->SearchFieldsPerRow == 0) {
			$crm_view_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_last_name" class="ew-cell form-group">
		<label for="x_last_name" class="ew-search-caption ew-label"><?php echo $crm_view_list->last_name->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_last_name" id="z_last_name" value="LIKE">
</span>
		<span id="el_crm_view_last_name" class="ew-search-field">
<input type="text" data-table="crm_view" data-field="x_last_name" name="x_last_name" id="x_last_name" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($crm_view_list->last_name->getPlaceHolder()) ?>" value="<?php echo $crm_view_list->last_name->EditValue ?>"<?php echo $crm_view_list->last_name->editAttributes() ?>>
</span>
	</div>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->first_name->Visible) { // first_name ?>
	<?php
		$crm_view_list->SearchColumnCount++;
		if (($crm_view_list->SearchColumnCount - 1) % $crm_view_list->SearchFieldsPerRow == 0) {
			$crm_view_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_first_name" class="ew-cell form-group">
		<label for="x_first_name" class="ew-search-caption ew-label"><?php echo $crm_view_list->first_name->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_first_name" id="z_first_name" value="LIKE">
</span>
		<span id="el_crm_view_first_name" class="ew-search-field">
<input type="text" data-table="crm_view" data-field="x_first_name" name="x_first_name" id="x_first_name" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($crm_view_list->first_name->getPlaceHolder()) ?>" value="<?php echo $crm_view_list->first_name->EditValue ?>"<?php echo $crm_view_list->first_name->editAttributes() ?>>
</span>
	</div>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->tel->Visible) { // tel ?>
	<?php
		$crm_view_list->SearchColumnCount++;
		if (($crm_view_list->SearchColumnCount - 1) % $crm_view_list->SearchFieldsPerRow == 0) {
			$crm_view_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_tel" class="ew-cell form-group">
		<label for="x_tel" class="ew-search-caption ew-label"><?php echo $crm_view_list->tel->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_tel" id="z_tel" value="LIKE">
</span>
		<span id="el_crm_view_tel" class="ew-search-field">
<input type="text" data-table="crm_view" data-field="x_tel" name="x_tel" id="x_tel" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($crm_view_list->tel->getPlaceHolder()) ?>" value="<?php echo $crm_view_list->tel->EditValue ?>"<?php echo $crm_view_list->tel->editAttributes() ?>>
</span>
	</div>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->mobile->Visible) { // mobile ?>
	<?php
		$crm_view_list->SearchColumnCount++;
		if (($crm_view_list->SearchColumnCount - 1) % $crm_view_list->SearchFieldsPerRow == 0) {
			$crm_view_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_mobile" class="ew-cell form-group">
		<label for="x_mobile" class="ew-search-caption ew-label"><?php echo $crm_view_list->mobile->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_mobile" id="z_mobile" value="LIKE">
</span>
		<span id="el_crm_view_mobile" class="ew-search-field">
<input type="text" data-table="crm_view" data-field="x_mobile" name="x_mobile" id="x_mobile" size="30" maxlength="100" placeholder="<?php echo HtmlEncode($crm_view_list->mobile->getPlaceHolder()) ?>" value="<?php echo $crm_view_list->mobile->EditValue ?>"<?php echo $crm_view_list->mobile->editAttributes() ?>>
</span>
	</div>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->archive->Visible) { // archive ?>
	<?php
		$crm_view_list->SearchColumnCount++;
		if (($crm_view_list->SearchColumnCount - 1) % $crm_view_list->SearchFieldsPerRow == 0) {
			$crm_view_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_archive" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $crm_view_list->archive->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_archive" id="z_archive" value="=">
</span>
		<span id="el_crm_view_archive" class="ew-search-field">
<div id="tp_x_archive" class="ew-template"><input type="radio" class="custom-control-input" data-table="crm_view" data-field="x_archive" data-value-separator="<?php echo $crm_view_list->archive->displayValueSeparatorAttribute() ?>" name="x_archive" id="x_archive" value="{value}"<?php echo $crm_view_list->archive->editAttributes() ?>></div>
<div id="dsl_x_archive" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $crm_view_list->archive->radioButtonListHtml(FALSE, "x_archive") ?>
</div></div>
</span>
	</div>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
	<?php if ($crm_view_list->SearchColumnCount % $crm_view_list->SearchFieldsPerRow > 0) { ?>
</div>
	<?php } ?>
<div id="xsr_<?php echo $crm_view_list->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
	<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
</div>
	</div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $crm_view_list->showPageHeader(); ?>
<?php
$crm_view_list->showMessage();
?>
<?php if ($crm_view_list->TotalRecords > 0 || $crm_view->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($crm_view_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> crm_view">
<?php if (!$crm_view_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$crm_view_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $crm_view_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $crm_view_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fcrm_viewlist" id="fcrm_viewlist" class="form-inline ew-form ew-list-form" action="<?php echo CurrentPageName() ?>" method="post">
<?php if ($Page->CheckToken) { ?>
<input type="hidden" name="<?php echo Config("TOKEN_NAME") ?>" value="<?php echo $Page->Token ?>">
<?php } ?>
<input type="hidden" name="t" value="crm_view">
<div id="gmp_crm_view" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($crm_view_list->TotalRecords > 0 || $crm_view_list->isGridEdit()) { ?>
<table id="tbl_crm_viewlist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$crm_view_list->ListOptions->render("header", "left");
?>
<?php if ($crm_view_list->last_name->Visible) { // last_name ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->last_name) == "") { ?>
		<th data-name="last_name" class="<?php echo $crm_view_list->last_name->headerCellClass() ?>"><div id="elh_crm_view_last_name" class="crm_view_last_name"><div class="ew-table-header-caption"><?php echo $crm_view_list->last_name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="last_name" class="<?php echo $crm_view_list->last_name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->last_name) ?>', 2);"><div id="elh_crm_view_last_name" class="crm_view_last_name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->last_name->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->last_name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->last_name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->first_name->Visible) { // first_name ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->first_name) == "") { ?>
		<th data-name="first_name" class="<?php echo $crm_view_list->first_name->headerCellClass() ?>"><div id="elh_crm_view_first_name" class="crm_view_first_name"><div class="ew-table-header-caption"><?php echo $crm_view_list->first_name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="first_name" class="<?php echo $crm_view_list->first_name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->first_name) ?>', 2);"><div id="elh_crm_view_first_name" class="crm_view_first_name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->first_name->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->first_name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->first_name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->email1->Visible) { // email1 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->email1) == "") { ?>
		<th data-name="email1" class="<?php echo $crm_view_list->email1->headerCellClass() ?>"><div id="elh_crm_view_email1" class="crm_view_email1"><div class="ew-table-header-caption"><?php echo $crm_view_list->email1->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="email1" class="<?php echo $crm_view_list->email1->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->email1) ?>', 2);"><div id="elh_crm_view_email1" class="crm_view_email1">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->email1->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->email1->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->email1->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->tel->Visible) { // tel ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->tel) == "") { ?>
		<th data-name="tel" class="<?php echo $crm_view_list->tel->headerCellClass() ?>"><div id="elh_crm_view_tel" class="crm_view_tel"><div class="ew-table-header-caption"><?php echo $crm_view_list->tel->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="tel" class="<?php echo $crm_view_list->tel->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->tel) ?>', 2);"><div id="elh_crm_view_tel" class="crm_view_tel">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->tel->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->tel->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->tel->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->mobile->Visible) { // mobile ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->mobile) == "") { ?>
		<th data-name="mobile" class="<?php echo $crm_view_list->mobile->headerCellClass() ?>"><div id="elh_crm_view_mobile" class="crm_view_mobile"><div class="ew-table-header-caption"><?php echo $crm_view_list->mobile->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="mobile" class="<?php echo $crm_view_list->mobile->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->mobile) ?>', 2);"><div id="elh_crm_view_mobile" class="crm_view_mobile">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->mobile->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->mobile->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->mobile->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->owner->Visible) { // owner ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->owner) == "") { ?>
		<th data-name="owner" class="<?php echo $crm_view_list->owner->headerCellClass() ?>"><div id="elh_crm_view_owner" class="crm_view_owner"><div class="ew-table-header-caption"><?php echo $crm_view_list->owner->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="owner" class="<?php echo $crm_view_list->owner->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->owner) ?>', 2);"><div id="elh_crm_view_owner" class="crm_view_owner">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->owner->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->owner->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->owner->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->type->Visible) { // type ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->type) == "") { ?>
		<th data-name="type" class="<?php echo $crm_view_list->type->headerCellClass() ?>"><div id="elh_crm_view_type" class="crm_view_type"><div class="ew-table-header-caption"><?php echo $crm_view_list->type->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="type" class="<?php echo $crm_view_list->type->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->type) ?>', 2);"><div id="elh_crm_view_type" class="crm_view_type">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->type->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->type->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->type->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3091->Visible) { // field_3091 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3091) == "") { ?>
		<th data-name="field_3091" class="<?php echo $crm_view_list->field_3091->headerCellClass() ?>"><div id="elh_crm_view_field_3091" class="crm_view_field_3091"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3091->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3091" class="<?php echo $crm_view_list->field_3091->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3091) ?>', 2);"><div id="elh_crm_view_field_3091" class="crm_view_field_3091">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3091->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3091->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3091->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3090->Visible) { // field_3090 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3090) == "") { ?>
		<th data-name="field_3090" class="<?php echo $crm_view_list->field_3090->headerCellClass() ?>"><div id="elh_crm_view_field_3090" class="crm_view_field_3090"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3090->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3090" class="<?php echo $crm_view_list->field_3090->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3090) ?>', 2);"><div id="elh_crm_view_field_3090" class="crm_view_field_3090">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3090->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3090->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3090->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3088->Visible) { // field_3088 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3088) == "") { ?>
		<th data-name="field_3088" class="<?php echo $crm_view_list->field_3088->headerCellClass() ?>"><div id="elh_crm_view_field_3088" class="crm_view_field_3088"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3088->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3088" class="<?php echo $crm_view_list->field_3088->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3088) ?>', 2);"><div id="elh_crm_view_field_3088" class="crm_view_field_3088">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3088->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3088->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3088->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3187->Visible) { // field_3187 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3187) == "") { ?>
		<th data-name="field_3187" class="<?php echo $crm_view_list->field_3187->headerCellClass() ?>"><div id="elh_crm_view_field_3187" class="crm_view_field_3187"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3187->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3187" class="<?php echo $crm_view_list->field_3187->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3187) ?>', 2);"><div id="elh_crm_view_field_3187" class="crm_view_field_3187">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3187->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3187->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3187->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3188->Visible) { // field_3188 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3188) == "") { ?>
		<th data-name="field_3188" class="<?php echo $crm_view_list->field_3188->headerCellClass() ?>"><div id="elh_crm_view_field_3188" class="crm_view_field_3188"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3188->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3188" class="<?php echo $crm_view_list->field_3188->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3188) ?>', 2);"><div id="elh_crm_view_field_3188" class="crm_view_field_3188">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3188->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3188->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3188->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3183->Visible) { // field_3183 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3183) == "") { ?>
		<th data-name="field_3183" class="<?php echo $crm_view_list->field_3183->headerCellClass() ?>"><div id="elh_crm_view_field_3183" class="crm_view_field_3183"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3183->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3183" class="<?php echo $crm_view_list->field_3183->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3183) ?>', 2);"><div id="elh_crm_view_field_3183" class="crm_view_field_3183">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3183->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3183->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3183->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->field_3184->Visible) { // field_3184 ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->field_3184) == "") { ?>
		<th data-name="field_3184" class="<?php echo $crm_view_list->field_3184->headerCellClass() ?>"><div id="elh_crm_view_field_3184" class="crm_view_field_3184"><div class="ew-table-header-caption"><?php echo $crm_view_list->field_3184->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_3184" class="<?php echo $crm_view_list->field_3184->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->field_3184) ?>', 2);"><div id="elh_crm_view_field_3184" class="crm_view_field_3184">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->field_3184->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->field_3184->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->field_3184->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->archive->Visible) { // archive ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->archive) == "") { ?>
		<th data-name="archive" class="<?php echo $crm_view_list->archive->headerCellClass() ?>"><div id="elh_crm_view_archive" class="crm_view_archive"><div class="ew-table-header-caption"><?php echo $crm_view_list->archive->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="archive" class="<?php echo $crm_view_list->archive->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->archive) ?>', 2);"><div id="elh_crm_view_archive" class="crm_view_archive">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->archive->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->archive->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->archive->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($crm_view_list->Note->Visible) { // Note ?>
	<?php if ($crm_view_list->SortUrl($crm_view_list->Note) == "") { ?>
		<th data-name="Note" class="<?php echo $crm_view_list->Note->headerCellClass() ?>"><div id="elh_crm_view_Note" class="crm_view_Note"><div class="ew-table-header-caption"><?php echo $crm_view_list->Note->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Note" class="<?php echo $crm_view_list->Note->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $crm_view_list->SortUrl($crm_view_list->Note) ?>', 2);"><div id="elh_crm_view_Note" class="crm_view_Note">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $crm_view_list->Note->caption() ?></span><span class="ew-table-header-sort"><?php if ($crm_view_list->Note->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($crm_view_list->Note->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

	// Set the last record to display
	if ($crm_view_list->TotalRecords > $crm_view_list->StartRecord + $crm_view_list->DisplayRecords - 1)
		$crm_view_list->StopRecord = $crm_view_list->StartRecord + $crm_view_list->DisplayRecords - 1;
	else
		$crm_view_list->StopRecord = $crm_view_list->TotalRecords;
}
$crm_view_list->RecordCount = $crm_view_list->StartRecord - 1;
if ($crm_view_list->Recordset && !$crm_view_list->Recordset->EOF) {
	$crm_view_list->Recordset->moveFirst();
	$selectLimit = $crm_view_list->UseSelectLimit;
	if (!$selectLimit && $crm_view_list->StartRecord > 1)
		$crm_view_list->Recordset->move($crm_view_list->StartRecord - 1);
} elseif (!$crm_view->AllowAddDeleteRow && $crm_view_list->StopRecord == 0) {
	$crm_view_list->StopRecord = $crm_view->GridAddRowCount;
}

// Initialize aggregate
$crm_view->RowType = ROWTYPE_AGGREGATEINIT;
$crm_view->resetAttributes();
$crm_view_list->renderRow();
while ($crm_view_list->RecordCount < $crm_view_list->StopRecord) {
	$crm_view_list->RecordCount++;
	if ($crm_view_list->RecordCount >= $crm_view_list->StartRecord) {
		$crm_view_list->RowCount++;

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

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

		// Set up row id / data-rowindex
		$crm_view->RowAttrs->merge(["data-rowindex" => $crm_view_list->RowCount, "id" => "r" . $crm_view_list->RowCount . "_crm_view", "data-rowtype" => $crm_view->RowType]);

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

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

// Render list options (body, left)
$crm_view_list->ListOptions->render("body", "left", $crm_view_list->RowCount);
?>
	<?php if ($crm_view_list->last_name->Visible) { // last_name ?>
		<td data-name="last_name" <?php echo $crm_view_list->last_name->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_last_name">
<span<?php echo $crm_view_list->last_name->viewAttributes() ?>><?php echo $crm_view_list->last_name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->first_name->Visible) { // first_name ?>
		<td data-name="first_name" <?php echo $crm_view_list->first_name->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_first_name">
<span<?php echo $crm_view_list->first_name->viewAttributes() ?>><?php echo $crm_view_list->first_name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->email1->Visible) { // email1 ?>
		<td data-name="email1" <?php echo $crm_view_list->email1->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_email1">
<span<?php echo $crm_view_list->email1->viewAttributes() ?>><?php echo $crm_view_list->email1->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->tel->Visible) { // tel ?>
		<td data-name="tel" <?php echo $crm_view_list->tel->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_tel">
<span<?php echo $crm_view_list->tel->viewAttributes() ?>><?php echo $crm_view_list->tel->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->mobile->Visible) { // mobile ?>
		<td data-name="mobile" <?php echo $crm_view_list->mobile->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_mobile">
<span<?php echo $crm_view_list->mobile->viewAttributes() ?>><?php echo $crm_view_list->mobile->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->owner->Visible) { // owner ?>
		<td data-name="owner" <?php echo $crm_view_list->owner->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_owner">
<span<?php echo $crm_view_list->owner->viewAttributes() ?>><?php echo $crm_view_list->owner->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->type->Visible) { // type ?>
		<td data-name="type" <?php echo $crm_view_list->type->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_type">
<span<?php echo $crm_view_list->type->viewAttributes() ?>><?php echo $crm_view_list->type->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3091->Visible) { // field_3091 ?>
		<td data-name="field_3091" <?php echo $crm_view_list->field_3091->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3091">
<span<?php echo $crm_view_list->field_3091->viewAttributes() ?>><?php echo $crm_view_list->field_3091->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3090->Visible) { // field_3090 ?>
		<td data-name="field_3090" <?php echo $crm_view_list->field_3090->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3090">
<span<?php echo $crm_view_list->field_3090->viewAttributes() ?>><?php echo $crm_view_list->field_3090->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3088->Visible) { // field_3088 ?>
		<td data-name="field_3088" <?php echo $crm_view_list->field_3088->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3088">
<span<?php echo $crm_view_list->field_3088->viewAttributes() ?>><?php echo $crm_view_list->field_3088->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3187->Visible) { // field_3187 ?>
		<td data-name="field_3187" <?php echo $crm_view_list->field_3187->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3187">
<span<?php echo $crm_view_list->field_3187->viewAttributes() ?>><?php echo $crm_view_list->field_3187->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3188->Visible) { // field_3188 ?>
		<td data-name="field_3188" <?php echo $crm_view_list->field_3188->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3188">
<span<?php echo $crm_view_list->field_3188->viewAttributes() ?>><?php echo $crm_view_list->field_3188->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3183->Visible) { // field_3183 ?>
		<td data-name="field_3183" <?php echo $crm_view_list->field_3183->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3183">
<span<?php echo $crm_view_list->field_3183->viewAttributes() ?>><?php echo $crm_view_list->field_3183->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->field_3184->Visible) { // field_3184 ?>
		<td data-name="field_3184" <?php echo $crm_view_list->field_3184->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_field_3184">
<span<?php echo $crm_view_list->field_3184->viewAttributes() ?>><?php echo $crm_view_list->field_3184->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->archive->Visible) { // archive ?>
		<td data-name="archive" <?php echo $crm_view_list->archive->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_archive">
<span<?php echo $crm_view_list->archive->viewAttributes() ?>><?php echo $crm_view_list->archive->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($crm_view_list->Note->Visible) { // Note ?>
		<td data-name="Note" <?php echo $crm_view_list->Note->cellAttributes() ?>>
<span id="el<?php echo $crm_view_list->RowCount ?>_crm_view_Note">
<span<?php echo $crm_view_list->Note->viewAttributes() ?>><?php echo $crm_view_list->Note->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

// Close recordset
if ($crm_view_list->Recordset)
	$crm_view_list->Recordset->Close();
?>
<?php if (!$crm_view_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$crm_view_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $crm_view_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $crm_view_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($crm_view_list->TotalRecords == 0 && !$crm_view->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $crm_view_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$crm_view_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$crm_view_list->isExport()) { ?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php } ?>
<?php include_once "footer.php"; ?>
<?php
$crm_view_list->terminate();
?>

Hry