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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/avantmaj.alliancerealty.nb.ca/adminAR/contact_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
$contact_listing_list = new contact_listing_list();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$contact_listing_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($contact_listing_list->TotalRecords > 0 && $contact_listing_list->ExportOptions->visible()) { ?>
<?php $contact_listing_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($contact_listing_list->ImportOptions->visible()) { ?>
<?php $contact_listing_list->ImportOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$contact_listing_list->renderOtherOptions();
?>
<?php $contact_listing_list->showPageHeader(); ?>
<?php
$contact_listing_list->showMessage();
?>
<?php if ($contact_listing_list->TotalRecords > 0 || $contact_listing->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($contact_listing_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> contact_listing">
<?php if (!$contact_listing_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$contact_listing_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $contact_listing_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $contact_listing_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fcontact_listinglist" id="fcontact_listinglist" 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="contact_listing">
<div id="gmp_contact_listing" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($contact_listing_list->TotalRecords > 0 || $contact_listing_list->isGridEdit()) { ?>
<table id="tbl_contact_listinglist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$contact_listing_list->ListOptions->render("header", "left");
?>
<?php if ($contact_listing_list->last_name->Visible) { // last_name ?>
	<?php if ($contact_listing_list->SortUrl($contact_listing_list->last_name) == "") { ?>
		<th data-name="last_name" class="<?php echo $contact_listing_list->last_name->headerCellClass() ?>"><div id="elh_contact_listing_last_name" class="contact_listing_last_name"><div class="ew-table-header-caption"><?php echo $contact_listing_list->last_name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="last_name" class="<?php echo $contact_listing_list->last_name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $contact_listing_list->SortUrl($contact_listing_list->last_name) ?>', 2);"><div id="elh_contact_listing_last_name" class="contact_listing_last_name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $contact_listing_list->last_name->caption() ?></span><span class="ew-table-header-sort"><?php if ($contact_listing_list->last_name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($contact_listing_list->last_name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($contact_listing_list->first_name->Visible) { // first_name ?>
	<?php if ($contact_listing_list->SortUrl($contact_listing_list->first_name) == "") { ?>
		<th data-name="first_name" class="<?php echo $contact_listing_list->first_name->headerCellClass() ?>"><div id="elh_contact_listing_first_name" class="contact_listing_first_name"><div class="ew-table-header-caption"><?php echo $contact_listing_list->first_name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="first_name" class="<?php echo $contact_listing_list->first_name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $contact_listing_list->SortUrl($contact_listing_list->first_name) ?>', 2);"><div id="elh_contact_listing_first_name" class="contact_listing_first_name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $contact_listing_list->first_name->caption() ?></span><span class="ew-table-header-sort"><?php if ($contact_listing_list->first_name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($contact_listing_list->first_name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($contact_listing_list->field_313_fr_fr->Visible) { // field_313_fr_fr ?>
	<?php if ($contact_listing_list->SortUrl($contact_listing_list->field_313_fr_fr) == "") { ?>
		<th data-name="field_313_fr_fr" class="<?php echo $contact_listing_list->field_313_fr_fr->headerCellClass() ?>"><div id="elh_contact_listing_field_313_fr_fr" class="contact_listing_field_313_fr_fr"><div class="ew-table-header-caption"><?php echo $contact_listing_list->field_313_fr_fr->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="field_313_fr_fr" class="<?php echo $contact_listing_list->field_313_fr_fr->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $contact_listing_list->SortUrl($contact_listing_list->field_313_fr_fr) ?>', 2);"><div id="elh_contact_listing_field_313_fr_fr" class="contact_listing_field_313_fr_fr">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $contact_listing_list->field_313_fr_fr->caption() ?></span><span class="ew-table-header-sort"><?php if ($contact_listing_list->field_313_fr_fr->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($contact_listing_list->field_313_fr_fr->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$contact_listing_list->ListOptions->render("body", "left", $contact_listing_list->RowCount);
?>
	<?php if ($contact_listing_list->last_name->Visible) { // last_name ?>
		<td data-name="last_name" <?php echo $contact_listing_list->last_name->cellAttributes() ?>>
<span id="el<?php echo $contact_listing_list->RowCount ?>_contact_listing_last_name">
<span<?php echo $contact_listing_list->last_name->viewAttributes() ?>><?php echo $contact_listing_list->last_name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($contact_listing_list->first_name->Visible) { // first_name ?>
		<td data-name="first_name" <?php echo $contact_listing_list->first_name->cellAttributes() ?>>
<span id="el<?php echo $contact_listing_list->RowCount ?>_contact_listing_first_name">
<span<?php echo $contact_listing_list->first_name->viewAttributes() ?>><?php echo $contact_listing_list->first_name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($contact_listing_list->field_313_fr_fr->Visible) { // field_313_fr_fr ?>
		<td data-name="field_313_fr_fr" <?php echo $contact_listing_list->field_313_fr_fr->cellAttributes() ?>>
<span id="el<?php echo $contact_listing_list->RowCount ?>_contact_listing_field_313_fr_fr">
<span<?php echo $contact_listing_list->field_313_fr_fr->viewAttributes() ?>><?php echo $contact_listing_list->field_313_fr_fr->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

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

Hry