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/www/adminAR/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/www/adminAR/listinglist.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
$listing_list = new listing_list();

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

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

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

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

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

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

	// Validate function for search
	flistinglistsrch.validate = function(fobj) {
		if (!this.validateRequired)
			return true; // Ignore validation
		fobj = fobj || this._form;
		var infix = "";
		elm = this.getElements("x" + infix + "_id");
		if (elm && !ew.checkInteger(elm.value))
			return this.onError(elm, "<?php echo JsEncode($listing_list->id->errorMessage()) ?>");

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

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

	// Dynamic selection lists
	flistinglistsrch.lists["x_Address"] = <?php echo $listing_list->Address->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_Address"].options = <?php echo JsonEncode($listing_list->Address->lookupOptions()) ?>;
	flistinglistsrch.autoSuggests["x_Address"] = <?php echo json_encode(["data" => "ajax=autosuggest"]) ?>;
	flistinglistsrch.lists["x_Town"] = <?php echo $listing_list->Town->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_Town"].options = <?php echo JsonEncode($listing_list->Town->options(FALSE, TRUE)) ?>;
	flistinglistsrch.lists["x_property_type"] = <?php echo $listing_list->property_type->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_property_type"].options = <?php echo JsonEncode($listing_list->property_type->options(FALSE, TRUE)) ?>;
	flistinglistsrch.lists["x_Agent"] = <?php echo $listing_list->Agent->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_Agent"].options = <?php echo JsonEncode($listing_list->Agent->options(FALSE, TRUE)) ?>;
	flistinglistsrch.lists["x_finalized"] = <?php echo $listing_list->finalized->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_finalized"].options = <?php echo JsonEncode($listing_list->finalized->options(FALSE, TRUE)) ?>;
	flistinglistsrch.lists["x_Active"] = <?php echo $listing_list->Active->Lookup->toClientList($listing_list) ?>;
	flistinglistsrch.lists["x_Active"].options = <?php echo JsonEncode($listing_list->Active->options(FALSE, TRUE)) ?>;

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

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

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

// Render search row
$listing->RowType = ROWTYPE_SEARCH;
$listing->resetAttributes();
$listing_list->renderRow();
?>
<?php if ($listing_list->id->Visible) { // id ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_id" class="ew-cell form-group">
		<label for="x_id" class="ew-search-caption ew-label"><?php echo $listing_list->id->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_id" id="z_id" value="=">
</span>
		<span id="el_listing_id" class="ew-search-field">
<input type="text" data-table="listing" data-field="x_id" name="x_id" id="x_id" maxlength="11" placeholder="<?php echo HtmlEncode($listing_list->id->getPlaceHolder()) ?>" value="<?php echo $listing_list->id->EditValue ?>"<?php echo $listing_list->id->editAttributes() ?>>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Address->Visible) { // Address ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Address" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $listing_list->Address->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Address" id="z_Address" value="LIKE">
</span>
		<span id="el_listing_Address" class="ew-search-field">
<?php
$onchange = $listing_list->Address->EditAttrs->prepend("onchange", "");
$onchange = ($onchange) ? ' onchange="' . JsEncode($onchange) . '"' : '';
$listing_list->Address->EditAttrs["onchange"] = "";
?>
<span id="as_x_Address">
	<input type="text" class="form-control" name="sv_x_Address" id="sv_x_Address" value="<?php echo RemoveHtml($listing_list->Address->EditValue) ?>" size="30" maxlength="70" placeholder="<?php echo HtmlEncode($listing_list->Address->getPlaceHolder()) ?>" data-placeholder="<?php echo HtmlEncode($listing_list->Address->getPlaceHolder()) ?>"<?php echo $listing_list->Address->editAttributes() ?>>
</span>
<input type="hidden" data-table="listing" data-field="x_Address" data-value-separator="<?php echo $listing_list->Address->displayValueSeparatorAttribute() ?>" name="x_Address" id="x_Address" value="<?php echo HtmlEncode($listing_list->Address->AdvancedSearch->SearchValue) ?>"<?php echo $onchange ?>>
<script>
loadjs.ready(["flistinglistsrch"], function() {
	flistinglistsrch.createAutoSuggest({"id":"x_Address","forceSelect":false});
});
</script>
<?php echo $listing_list->Address->Lookup->getParamTag($listing_list, "p_x_Address") ?>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Town->Visible) { // Town ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Town" class="ew-cell form-group">
		<label for="x_Town" class="ew-search-caption ew-label"><?php echo $listing_list->Town->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Town" id="z_Town" value="LIKE">
</span>
		<span id="el_listing_Town" class="ew-search-field">
<div class="btn-group ew-dropdown-list" role="group">
	<div class="btn-group" role="group">
		<button type="button" class="btn form-control dropdown-toggle ew-dropdown-toggle" aria-haspopup="true" aria-expanded="false"<?php if ($listing_list->Town->ReadOnly) { ?> readonly<?php } else { ?>data-toggle="dropdown"<?php } ?>><?php echo $listing_list->Town->AdvancedSearch->ViewValue ?></button>
		<div id="dsl_x_Town" data-repeatcolumn="1" class="dropdown-menu">
			<div class="ew-items" style="overflow-x: hidden;">
<?php echo $listing_list->Town->radioButtonListHtml(TRUE, "x_Town") ?>
			</div><!-- /.ew-items -->
		</div><!-- /.dropdown-menu -->
		<div id="tp_x_Town" class="ew-template"><input type="radio" class="custom-control-input" data-table="listing" data-field="x_Town" data-value-separator="<?php echo $listing_list->Town->displayValueSeparatorAttribute() ?>" name="x_Town" id="x_Town" value="{value}"<?php echo $listing_list->Town->editAttributes() ?>></div>
	</div><!-- /.btn-group -->
	<?php if (!$listing_list->Town->ReadOnly) { ?>
	<button type="button" class="btn btn-default ew-dropdown-clear" disabled>
		<i class="fas fa-times ew-icon"></i>
	</button>
	<?php } ?>
</div><!-- /.ew-dropdown-list -->
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->property_type->Visible) { // property_type ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_property_type" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $listing_list->property_type->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_property_type" id="z_property_type" value="=">
</span>
		<span id="el_listing_property_type" class="ew-search-field">
<div id="tp_x_property_type" class="ew-template"><input type="radio" class="custom-control-input" data-table="listing" data-field="x_property_type" data-value-separator="<?php echo $listing_list->property_type->displayValueSeparatorAttribute() ?>" name="x_property_type" id="x_property_type" value="{value}"<?php echo $listing_list->property_type->editAttributes() ?>></div>
<div id="dsl_x_property_type" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $listing_list->property_type->radioButtonListHtml(FALSE, "x_property_type") ?>
</div></div>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Agent->Visible) { // Agent ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Agent" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $listing_list->Agent->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Agent" id="z_Agent" value="LIKE">
</span>
		<span id="el_listing_Agent" class="ew-search-field">
<div id="tp_x_Agent" class="ew-template"><input type="radio" class="custom-control-input" data-table="listing" data-field="x_Agent" data-value-separator="<?php echo $listing_list->Agent->displayValueSeparatorAttribute() ?>" name="x_Agent" id="x_Agent" value="{value}"<?php echo $listing_list->Agent->editAttributes() ?>></div>
<div id="dsl_x_Agent" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $listing_list->Agent->radioButtonListHtml(FALSE, "x_Agent") ?>
</div></div>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->finalized->Visible) { // finalized ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_finalized" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $listing_list->finalized->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_finalized" id="z_finalized" value="=">
</span>
		<span id="el_listing_finalized" class="ew-search-field">
<div id="tp_x_finalized" class="ew-template"><input type="radio" class="custom-control-input" data-table="listing" data-field="x_finalized" data-value-separator="<?php echo $listing_list->finalized->displayValueSeparatorAttribute() ?>" name="x_finalized" id="x_finalized" value="{value}"<?php echo $listing_list->finalized->editAttributes() ?>></div>
<div id="dsl_x_finalized" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $listing_list->finalized->radioButtonListHtml(FALSE, "x_finalized") ?>
</div></div>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Active->Visible) { // Active ?>
	<?php
		$listing_list->SearchColumnCount++;
		if (($listing_list->SearchColumnCount - 1) % $listing_list->SearchFieldsPerRow == 0) {
			$listing_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $listing_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Active" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $listing_list->Active->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_Active" id="z_Active" value="=">
</span>
		<span id="el_listing_Active" class="ew-search-field">
<div id="tp_x_Active" class="ew-template"><input type="radio" class="custom-control-input" data-table="listing" data-field="x_Active" data-value-separator="<?php echo $listing_list->Active->displayValueSeparatorAttribute() ?>" name="x_Active" id="x_Active" value="{value}"<?php echo $listing_list->Active->editAttributes() ?>></div>
<div id="dsl_x_Active" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $listing_list->Active->radioButtonListHtml(FALSE, "x_Active") ?>
</div></div>
</span>
	</div>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
	<?php if ($listing_list->SearchColumnCount % $listing_list->SearchFieldsPerRow > 0) { ?>
</div>
	<?php } ?>
<div id="xsr_<?php echo $listing_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 $listing_list->showPageHeader(); ?>
<?php
$listing_list->showMessage();
?>
<?php if ($listing_list->TotalRecords > 0 || $listing->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($listing_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> listing">
<?php if (!$listing_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$listing_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $listing_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $listing_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="flistinglist" id="flistinglist" 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="listing">
<div id="gmp_listing" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($listing_list->TotalRecords > 0 || $listing_list->isGridEdit()) { ?>
<table id="tbl_listinglist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$listing_list->ListOptions->render("header", "left");
?>
<?php if ($listing_list->id->Visible) { // id ?>
	<?php if ($listing_list->SortUrl($listing_list->id) == "") { ?>
		<th data-name="id" class="<?php echo $listing_list->id->headerCellClass() ?>"><div id="elh_listing_id" class="listing_id"><div class="ew-table-header-caption"><?php echo $listing_list->id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id" class="<?php echo $listing_list->id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->id) ?>', 2);"><div id="elh_listing_id" class="listing_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->id->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->id->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->id->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Address->Visible) { // Address ?>
	<?php if ($listing_list->SortUrl($listing_list->Address) == "") { ?>
		<th data-name="Address" class="<?php echo $listing_list->Address->headerCellClass() ?>"><div id="elh_listing_Address" class="listing_Address"><div class="ew-table-header-caption"><?php echo $listing_list->Address->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Address" class="<?php echo $listing_list->Address->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Address) ?>', 2);"><div id="elh_listing_Address" class="listing_Address">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Address->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Address->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Address->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Town->Visible) { // Town ?>
	<?php if ($listing_list->SortUrl($listing_list->Town) == "") { ?>
		<th data-name="Town" class="<?php echo $listing_list->Town->headerCellClass() ?>"><div id="elh_listing_Town" class="listing_Town"><div class="ew-table-header-caption"><?php echo $listing_list->Town->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Town" class="<?php echo $listing_list->Town->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Town) ?>', 2);"><div id="elh_listing_Town" class="listing_Town">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Town->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Town->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Town->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Owner->Visible) { // Owner ?>
	<?php if ($listing_list->SortUrl($listing_list->Owner) == "") { ?>
		<th data-name="Owner" class="<?php echo $listing_list->Owner->headerCellClass() ?>"><div id="elh_listing_Owner" class="listing_Owner"><div class="ew-table-header-caption"><?php echo $listing_list->Owner->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Owner" class="<?php echo $listing_list->Owner->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Owner) ?>', 2);"><div id="elh_listing_Owner" class="listing_Owner">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Owner->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Owner->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Owner->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->property_type->Visible) { // property_type ?>
	<?php if ($listing_list->SortUrl($listing_list->property_type) == "") { ?>
		<th data-name="property_type" class="<?php echo $listing_list->property_type->headerCellClass() ?>"><div id="elh_listing_property_type" class="listing_property_type"><div class="ew-table-header-caption"><?php echo $listing_list->property_type->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="property_type" class="<?php echo $listing_list->property_type->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->property_type) ?>', 2);"><div id="elh_listing_property_type" class="listing_property_type">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->property_type->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->property_type->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->property_type->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Visit->Visible) { // Visit ?>
	<?php if ($listing_list->SortUrl($listing_list->Visit) == "") { ?>
		<th data-name="Visit" class="<?php echo $listing_list->Visit->headerCellClass() ?>"><div id="elh_listing_Visit" class="listing_Visit"><div class="ew-table-header-caption"><?php echo $listing_list->Visit->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Visit" class="<?php echo $listing_list->Visit->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Visit) ?>', 2);"><div id="elh_listing_Visit" class="listing_Visit">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Visit->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Visit->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Visit->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Agent->Visible) { // Agent ?>
	<?php if ($listing_list->SortUrl($listing_list->Agent) == "") { ?>
		<th data-name="Agent" class="<?php echo $listing_list->Agent->headerCellClass() ?>"><div id="elh_listing_Agent" class="listing_Agent"><div class="ew-table-header-caption"><?php echo $listing_list->Agent->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Agent" class="<?php echo $listing_list->Agent->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Agent) ?>', 2);"><div id="elh_listing_Agent" class="listing_Agent">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Agent->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Agent->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Agent->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->MLS->Visible) { // MLS ?>
	<?php if ($listing_list->SortUrl($listing_list->MLS) == "") { ?>
		<th data-name="MLS" class="<?php echo $listing_list->MLS->headerCellClass() ?>"><div id="elh_listing_MLS" class="listing_MLS"><div class="ew-table-header-caption"><?php echo $listing_list->MLS->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="MLS" class="<?php echo $listing_list->MLS->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->MLS) ?>', 2);"><div id="elh_listing_MLS" class="listing_MLS">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->MLS->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->MLS->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->MLS->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->PrintFrEn->Visible) { // PrintFrEn ?>
	<?php if ($listing_list->SortUrl($listing_list->PrintFrEn) == "") { ?>
		<th data-name="PrintFrEn" class="<?php echo $listing_list->PrintFrEn->headerCellClass() ?>"><div id="elh_listing_PrintFrEn" class="listing_PrintFrEn"><div class="ew-table-header-caption"><?php echo $listing_list->PrintFrEn->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="PrintFrEn" class="<?php echo $listing_list->PrintFrEn->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->PrintFrEn) ?>', 2);"><div id="elh_listing_PrintFrEn" class="listing_PrintFrEn">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->PrintFrEn->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->PrintFrEn->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->PrintFrEn->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Photos->Visible) { // Photos ?>
	<?php if ($listing_list->SortUrl($listing_list->Photos) == "") { ?>
		<th data-name="Photos" class="<?php echo $listing_list->Photos->headerCellClass() ?>"><div id="elh_listing_Photos" class="listing_Photos"><div class="ew-table-header-caption"><?php echo $listing_list->Photos->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Photos" class="<?php echo $listing_list->Photos->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Photos) ?>', 2);"><div id="elh_listing_Photos" class="listing_Photos">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Photos->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Photos->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Photos->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->NewDays->Visible) { // NewDays ?>
	<?php if ($listing_list->SortUrl($listing_list->NewDays) == "") { ?>
		<th data-name="NewDays" class="<?php echo $listing_list->NewDays->headerCellClass() ?>"><div id="elh_listing_NewDays" class="listing_NewDays"><div class="ew-table-header-caption"><?php echo $listing_list->NewDays->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="NewDays" class="<?php echo $listing_list->NewDays->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->NewDays) ?>', 2);"><div id="elh_listing_NewDays" class="listing_NewDays">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->NewDays->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->NewDays->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->NewDays->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->SoldDate->Visible) { // SoldDate ?>
	<?php if ($listing_list->SortUrl($listing_list->SoldDate) == "") { ?>
		<th data-name="SoldDate" class="<?php echo $listing_list->SoldDate->headerCellClass() ?>"><div id="elh_listing_SoldDate" class="listing_SoldDate"><div class="ew-table-header-caption"><?php echo $listing_list->SoldDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="SoldDate" class="<?php echo $listing_list->SoldDate->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->SoldDate) ?>', 2);"><div id="elh_listing_SoldDate" class="listing_SoldDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->SoldDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->SoldDate->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->SoldDate->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->finalized->Visible) { // finalized ?>
	<?php if ($listing_list->SortUrl($listing_list->finalized) == "") { ?>
		<th data-name="finalized" class="<?php echo $listing_list->finalized->headerCellClass() ?>"><div id="elh_listing_finalized" class="listing_finalized"><div class="ew-table-header-caption"><?php echo $listing_list->finalized->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="finalized" class="<?php echo $listing_list->finalized->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->finalized) ?>', 2);"><div id="elh_listing_finalized" class="listing_finalized">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->finalized->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->finalized->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->finalized->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($listing_list->Active->Visible) { // Active ?>
	<?php if ($listing_list->SortUrl($listing_list->Active) == "") { ?>
		<th data-name="Active" class="<?php echo $listing_list->Active->headerCellClass() ?>"><div id="elh_listing_Active" class="listing_Active"><div class="ew-table-header-caption"><?php echo $listing_list->Active->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Active" class="<?php echo $listing_list->Active->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->Active) ?>', 2);"><div id="elh_listing_Active" class="listing_Active">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->Active->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->Active->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->Active->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$listing_list->ListOptions->render("body", "left", $listing_list->RowCount);
?>
	<?php if ($listing_list->id->Visible) { // id ?>
		<td data-name="id" <?php echo $listing_list->id->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_id">
<span<?php echo $listing_list->id->viewAttributes() ?>><?php echo $listing_list->id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Address->Visible) { // Address ?>
		<td data-name="Address" <?php echo $listing_list->Address->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Address">
<span<?php echo $listing_list->Address->viewAttributes() ?>><?php echo $listing_list->Address->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Town->Visible) { // Town ?>
		<td data-name="Town" <?php echo $listing_list->Town->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Town">
<span<?php echo $listing_list->Town->viewAttributes() ?>><?php echo $listing_list->Town->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Owner->Visible) { // Owner ?>
		<td data-name="Owner" <?php echo $listing_list->Owner->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Owner">
<span<?php echo $listing_list->Owner->viewAttributes() ?>><?php echo $listing_list->Owner->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->property_type->Visible) { // property_type ?>
		<td data-name="property_type" <?php echo $listing_list->property_type->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_property_type">
<span<?php echo $listing_list->property_type->viewAttributes() ?>><?php echo $listing_list->property_type->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Visit->Visible) { // Visit ?>
		<td data-name="Visit" <?php echo $listing_list->Visit->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Visit">
<span<?php echo $listing_list->Visit->viewAttributes() ?>><?php echo $listing_list->Visit->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Agent->Visible) { // Agent ?>
		<td data-name="Agent" <?php echo $listing_list->Agent->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Agent">
<span<?php echo $listing_list->Agent->viewAttributes() ?>><?php echo $listing_list->Agent->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->MLS->Visible) { // MLS ?>
		<td data-name="MLS" <?php echo $listing_list->MLS->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_MLS">
<span<?php echo $listing_list->MLS->viewAttributes() ?>><?php echo $listing_list->MLS->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->PrintFrEn->Visible) { // PrintFrEn ?>
		<td data-name="PrintFrEn" <?php echo $listing_list->PrintFrEn->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_PrintFrEn">
<span<?php echo $listing_list->PrintFrEn->viewAttributes() ?>><?php echo $listing_list->PrintFrEn->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Photos->Visible) { // Photos ?>
		<td data-name="Photos" <?php echo $listing_list->Photos->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Photos">
<span<?php echo $listing_list->Photos->viewAttributes() ?>><?php echo $listing_list->Photos->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->NewDays->Visible) { // NewDays ?>
		<td data-name="NewDays" <?php echo $listing_list->NewDays->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_NewDays">
<span<?php echo $listing_list->NewDays->viewAttributes() ?>><?php echo $listing_list->NewDays->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->SoldDate->Visible) { // SoldDate ?>
		<td data-name="SoldDate" <?php echo $listing_list->SoldDate->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_SoldDate">
<span<?php echo $listing_list->SoldDate->viewAttributes() ?>><?php echo $listing_list->SoldDate->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->finalized->Visible) { // finalized ?>
		<td data-name="finalized" <?php echo $listing_list->finalized->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_finalized">
<span<?php echo $listing_list->finalized->viewAttributes() ?>><?php echo $listing_list->finalized->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($listing_list->Active->Visible) { // Active ?>
		<td data-name="Active" <?php echo $listing_list->Active->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_Active">
<span<?php echo $listing_list->Active->viewAttributes() ?>><?php echo $listing_list->Active->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

// Close recordset
if ($listing_list->Recordset)
	$listing_list->Recordset->Close();
?>
<?php if (!$listing_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$listing_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $listing_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $listing_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($listing_list->TotalRecords == 0 && !$listing->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $listing_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$listing_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$listing_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
$listing_list->terminate();
?>

Hry