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/wp_property_noteslist.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
$wp_property_notes_list = new wp_property_notes_list();

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

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

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

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

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

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

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

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

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

	// Dynamic selection lists
	fwp_property_noteslistsrch.lists["x_OwnerID"] = <?php echo $wp_property_notes_list->OwnerID->Lookup->toClientList($wp_property_notes_list) ?>;
	fwp_property_noteslistsrch.lists["x_OwnerID"].options = <?php echo JsonEncode($wp_property_notes_list->OwnerID->lookupOptions()) ?>;
	fwp_property_noteslistsrch.lists["x_AgentID"] = <?php echo $wp_property_notes_list->AgentID->Lookup->toClientList($wp_property_notes_list) ?>;
	fwp_property_noteslistsrch.lists["x_AgentID"].options = <?php echo JsonEncode($wp_property_notes_list->AgentID->options(FALSE, TRUE)) ?>;

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

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

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

// Render search row
$wp_property_notes->RowType = ROWTYPE_SEARCH;
$wp_property_notes->resetAttributes();
$wp_property_notes_list->renderRow();
?>
<?php if ($wp_property_notes_list->NoteDate->Visible) { // NoteDate ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_NoteDate" class="ew-cell form-group">
		<label for="x_NoteDate" class="ew-search-caption ew-label"><?php echo $wp_property_notes_list->NoteDate->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_NoteDate" id="z_NoteDate" value="=">
</span>
		<span id="el_wp_property_notes_NoteDate" class="ew-search-field">
<input type="text" data-table="wp_property_notes" data-field="x_NoteDate" name="x_NoteDate" id="x_NoteDate" maxlength="10" placeholder="<?php echo HtmlEncode($wp_property_notes_list->NoteDate->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_list->NoteDate->EditValue ?>"<?php echo $wp_property_notes_list->NoteDate->editAttributes() ?>>
<?php if (!$wp_property_notes_list->NoteDate->ReadOnly && !$wp_property_notes_list->NoteDate->Disabled && !isset($wp_property_notes_list->NoteDate->EditAttrs["readonly"]) && !isset($wp_property_notes_list->NoteDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_property_noteslistsrch", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_property_noteslistsrch", "x_NoteDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
	</div>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Address->Visible) { // Address ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Address" class="ew-cell form-group">
		<label for="x_Address" class="ew-search-caption ew-label"><?php echo $wp_property_notes_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_wp_property_notes_Address" class="ew-search-field">
<input type="text" data-table="wp_property_notes" data-field="x_Address" name="x_Address" id="x_Address" size="30" maxlength="50" placeholder="<?php echo HtmlEncode($wp_property_notes_list->Address->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_list->Address->EditValue ?>"<?php echo $wp_property_notes_list->Address->editAttributes() ?>>
</span>
	</div>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Town->Visible) { // Town ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_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 $wp_property_notes_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_wp_property_notes_Town" class="ew-search-field">
<input type="text" data-table="wp_property_notes" data-field="x_Town" name="x_Town" id="x_Town" size="30" maxlength="35" placeholder="<?php echo HtmlEncode($wp_property_notes_list->Town->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_list->Town->EditValue ?>"<?php echo $wp_property_notes_list->Town->editAttributes() ?>>
</span>
	</div>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->OwnerID->Visible) { // OwnerID ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_OwnerID" class="ew-cell form-group">
		<label for="x_OwnerID" class="ew-search-caption ew-label"><?php echo $wp_property_notes_list->OwnerID->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_OwnerID" id="z_OwnerID" value="=">
</span>
		<span id="el_wp_property_notes_OwnerID" class="ew-search-field">
<input type="text" data-table="wp_property_notes" data-field="x_OwnerID" name="x_OwnerID" id="x_OwnerID" size="30" placeholder="<?php echo HtmlEncode($wp_property_notes_list->OwnerID->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_list->OwnerID->EditValue ?>"<?php echo $wp_property_notes_list->OwnerID->editAttributes() ?>>
<?php echo $wp_property_notes_list->OwnerID->Lookup->getParamTag($wp_property_notes_list, "p_x_OwnerID") ?>
</span>
	</div>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->AgentID->Visible) { // AgentID ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_AgentID" class="ew-cell form-group">
		<label for="x_AgentID" class="ew-search-caption ew-label"><?php echo $wp_property_notes_list->AgentID->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_AgentID" id="z_AgentID" value="=">
</span>
		<span id="el_wp_property_notes_AgentID" 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 ($wp_property_notes_list->AgentID->ReadOnly) { ?> readonly<?php } else { ?>data-toggle="dropdown"<?php } ?>><?php echo $wp_property_notes_list->AgentID->AdvancedSearch->ViewValue ?></button>
		<div id="dsl_x_AgentID" data-repeatcolumn="1" class="dropdown-menu">
			<div class="ew-items" style="overflow-x: hidden;">
<?php echo $wp_property_notes_list->AgentID->radioButtonListHtml(TRUE, "x_AgentID") ?>
			</div><!-- /.ew-items -->
		</div><!-- /.dropdown-menu -->
		<div id="tp_x_AgentID" class="ew-template"><input type="radio" class="custom-control-input" data-table="wp_property_notes" data-field="x_AgentID" data-value-separator="<?php echo $wp_property_notes_list->AgentID->displayValueSeparatorAttribute() ?>" name="x_AgentID" id="x_AgentID" value="{value}"<?php echo $wp_property_notes_list->AgentID->editAttributes() ?>></div>
	</div><!-- /.btn-group -->
	<?php if (!$wp_property_notes_list->AgentID->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 ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Note->Visible) { // Note ?>
	<?php
		$wp_property_notes_list->SearchColumnCount++;
		if (($wp_property_notes_list->SearchColumnCount - 1) % $wp_property_notes_list->SearchFieldsPerRow == 0) {
			$wp_property_notes_list->SearchRowCount++;
	?>
<div id="xsr_<?php echo $wp_property_notes_list->SearchRowCount ?>" class="ew-row d-sm-flex">
	<?php
		}
	 ?>
	<div id="xsc_Note" class="ew-cell form-group">
		<label class="ew-search-caption ew-label"><?php echo $wp_property_notes_list->Note->caption() ?></label>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Note" id="z_Note" value="LIKE">
</span>
		<span id="el_wp_property_notes_Note" class="ew-search-field">
<input type="text" data-table="wp_property_notes" data-field="x_Note" name="x_Note" id="x_Note" size="35" maxlength="65535" placeholder="<?php echo HtmlEncode($wp_property_notes_list->Note->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_list->Note->EditValue ?>"<?php echo $wp_property_notes_list->Note->editAttributes() ?>>
</span>
	</div>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow == 0) { ?>
</div>
	<?php } ?>
<?php } ?>
	<?php if ($wp_property_notes_list->SearchColumnCount % $wp_property_notes_list->SearchFieldsPerRow > 0) { ?>
</div>
	<?php } ?>
<div id="xsr_<?php echo $wp_property_notes_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 $wp_property_notes_list->showPageHeader(); ?>
<?php
$wp_property_notes_list->showMessage();
?>
<?php if ($wp_property_notes_list->TotalRecords > 0 || $wp_property_notes->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($wp_property_notes_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> wp_property_notes">
<?php if (!$wp_property_notes_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$wp_property_notes_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $wp_property_notes_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $wp_property_notes_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fwp_property_noteslist" id="fwp_property_noteslist" 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="wp_property_notes">
<div id="gmp_wp_property_notes" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($wp_property_notes_list->TotalRecords > 0 || $wp_property_notes_list->isGridEdit()) { ?>
<table id="tbl_wp_property_noteslist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$wp_property_notes_list->ListOptions->render("header", "left");
?>
<?php if ($wp_property_notes_list->NoteDate->Visible) { // NoteDate ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->NoteDate) == "") { ?>
		<th data-name="NoteDate" class="<?php echo $wp_property_notes_list->NoteDate->headerCellClass() ?>"><div id="elh_wp_property_notes_NoteDate" class="wp_property_notes_NoteDate"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->NoteDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="NoteDate" class="<?php echo $wp_property_notes_list->NoteDate->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->NoteDate) ?>', 2);"><div id="elh_wp_property_notes_NoteDate" class="wp_property_notes_NoteDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->NoteDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->NoteDate->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_list->NoteDate->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Address->Visible) { // Address ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->Address) == "") { ?>
		<th data-name="Address" class="<?php echo $wp_property_notes_list->Address->headerCellClass() ?>"><div id="elh_wp_property_notes_Address" class="wp_property_notes_Address"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->Address->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Address" class="<?php echo $wp_property_notes_list->Address->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->Address) ?>', 2);"><div id="elh_wp_property_notes_Address" class="wp_property_notes_Address">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->Address->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->Address->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_list->Address->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Town->Visible) { // Town ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->Town) == "") { ?>
		<th data-name="Town" class="<?php echo $wp_property_notes_list->Town->headerCellClass() ?>"><div id="elh_wp_property_notes_Town" class="wp_property_notes_Town"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->Town->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Town" class="<?php echo $wp_property_notes_list->Town->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->Town) ?>', 2);"><div id="elh_wp_property_notes_Town" class="wp_property_notes_Town">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->Town->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->Town->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_list->Town->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->OwnerID->Visible) { // OwnerID ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->OwnerID) == "") { ?>
		<th data-name="OwnerID" class="<?php echo $wp_property_notes_list->OwnerID->headerCellClass() ?>"><div id="elh_wp_property_notes_OwnerID" class="wp_property_notes_OwnerID"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->OwnerID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="OwnerID" class="<?php echo $wp_property_notes_list->OwnerID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->OwnerID) ?>', 2);"><div id="elh_wp_property_notes_OwnerID" class="wp_property_notes_OwnerID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->OwnerID->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->OwnerID->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_list->OwnerID->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->AgentID->Visible) { // AgentID ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->AgentID) == "") { ?>
		<th data-name="AgentID" class="<?php echo $wp_property_notes_list->AgentID->headerCellClass() ?>"><div id="elh_wp_property_notes_AgentID" class="wp_property_notes_AgentID"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->AgentID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="AgentID" class="<?php echo $wp_property_notes_list->AgentID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->AgentID) ?>', 2);"><div id="elh_wp_property_notes_AgentID" class="wp_property_notes_AgentID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->AgentID->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->AgentID->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_list->AgentID->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($wp_property_notes_list->Note->Visible) { // Note ?>
	<?php if ($wp_property_notes_list->SortUrl($wp_property_notes_list->Note) == "") { ?>
		<th data-name="Note" class="<?php echo $wp_property_notes_list->Note->headerCellClass() ?>"><div id="elh_wp_property_notes_Note" class="wp_property_notes_Note"><div class="ew-table-header-caption"><?php echo $wp_property_notes_list->Note->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Note" class="<?php echo $wp_property_notes_list->Note->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $wp_property_notes_list->SortUrl($wp_property_notes_list->Note) ?>', 2);"><div id="elh_wp_property_notes_Note" class="wp_property_notes_Note">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $wp_property_notes_list->Note->caption() ?></span><span class="ew-table-header-sort"><?php if ($wp_property_notes_list->Note->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($wp_property_notes_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)
$wp_property_notes_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($wp_property_notes_list->ExportAll && $wp_property_notes_list->isExport()) {
	$wp_property_notes_list->StopRecord = $wp_property_notes_list->TotalRecords;
} else {

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

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

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

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

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

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

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

// Render list options (body, left)
$wp_property_notes_list->ListOptions->render("body", "left", $wp_property_notes_list->RowCount);
?>
	<?php if ($wp_property_notes_list->NoteDate->Visible) { // NoteDate ?>
		<td data-name="NoteDate" <?php echo $wp_property_notes_list->NoteDate->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_NoteDate">
<span<?php echo $wp_property_notes_list->NoteDate->viewAttributes() ?>><?php echo $wp_property_notes_list->NoteDate->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($wp_property_notes_list->Address->Visible) { // Address ?>
		<td data-name="Address" <?php echo $wp_property_notes_list->Address->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_Address">
<span<?php echo $wp_property_notes_list->Address->viewAttributes() ?>><?php echo $wp_property_notes_list->Address->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($wp_property_notes_list->Town->Visible) { // Town ?>
		<td data-name="Town" <?php echo $wp_property_notes_list->Town->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_Town">
<span<?php echo $wp_property_notes_list->Town->viewAttributes() ?>><?php echo $wp_property_notes_list->Town->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($wp_property_notes_list->OwnerID->Visible) { // OwnerID ?>
		<td data-name="OwnerID" <?php echo $wp_property_notes_list->OwnerID->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_OwnerID">
<span<?php echo $wp_property_notes_list->OwnerID->viewAttributes() ?>><?php echo $wp_property_notes_list->OwnerID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($wp_property_notes_list->AgentID->Visible) { // AgentID ?>
		<td data-name="AgentID" <?php echo $wp_property_notes_list->AgentID->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_AgentID">
<span<?php echo $wp_property_notes_list->AgentID->viewAttributes() ?>><?php echo $wp_property_notes_list->AgentID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($wp_property_notes_list->Note->Visible) { // Note ?>
		<td data-name="Note" <?php echo $wp_property_notes_list->Note->cellAttributes() ?>>
<span id="el<?php echo $wp_property_notes_list->RowCount ?>_wp_property_notes_Note">
<span<?php echo $wp_property_notes_list->Note->viewAttributes() ?>><?php echo $wp_property_notes_list->Note->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

Hry