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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/public_html/adminAR/listingsrch.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_search = new listing_search();

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

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

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

// Page Rendering event
$listing_search->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var flistingsearch, currentPageID;
loadjs.ready("head", function() {

	// Form object for search
	<?php if ($listing_search->IsModal) { ?>
	flistingsearch = currentAdvancedSearchForm = new ew.Form("flistingsearch", "search");
	<?php } else { ?>
	flistingsearch = currentForm = new ew.Form("flistingsearch", "search");
	<?php } ?>
	currentPageID = ew.PAGE_ID = "search";

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

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

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

	// Dynamic selection lists
	flistingsearch.lists["x_Agent"] = <?php echo $listing_search->Agent->Lookup->toClientList($listing_search) ?>;
	flistingsearch.lists["x_Agent"].options = <?php echo JsonEncode($listing_search->Agent->options(FALSE, TRUE)) ?>;
	loadjs.done("flistingsearch");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $listing_search->showPageHeader(); ?>
<?php
$listing_search->showMessage();
?>
<form name="flistingsearch" id="flistingsearch" class="<?php echo $listing_search->FormClassName ?>" 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">
<input type="hidden" name="action" id="action" value="search">
<input type="hidden" name="modal" value="<?php echo (int)$listing_search->IsModal ?>">
<div class="ew-search-div"><!-- page* -->
<?php if ($listing_search->Address->Visible) { // Address ?>
	<div id="r_Address" class="form-group row">
		<label for="x_Address" class="<?php echo $listing_search->LeftColumnClass ?>"><span id="elh_listing_Address"><?php echo $listing_search->Address->caption() ?></span>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Address" id="z_Address" value="LIKE">
</span>
		</label>
		<div class="<?php echo $listing_search->RightColumnClass ?>"><div <?php echo $listing_search->Address->cellAttributes() ?>>
			<span id="el_listing_Address" class="ew-search-field">
<input type="text" data-table="listing" data-field="x_Address" name="x_Address" id="x_Address" size="30" maxlength="70" placeholder="<?php echo HtmlEncode($listing_search->Address->getPlaceHolder()) ?>" value="<?php echo $listing_search->Address->EditValue ?>"<?php echo $listing_search->Address->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } ?>
<?php if ($listing_search->Town->Visible) { // Town ?>
	<div id="r_Town" class="form-group row">
		<label for="x_Town" class="<?php echo $listing_search->LeftColumnClass ?>"><span id="elh_listing_Town"><?php echo $listing_search->Town->caption() ?></span>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Town" id="z_Town" value="LIKE">
</span>
		</label>
		<div class="<?php echo $listing_search->RightColumnClass ?>"><div <?php echo $listing_search->Town->cellAttributes() ?>>
			<span id="el_listing_Town" class="ew-search-field">
<input type="text" data-table="listing" data-field="x_Town" name="x_Town" id="x_Town" size="30" maxlength="255" placeholder="<?php echo HtmlEncode($listing_search->Town->getPlaceHolder()) ?>" value="<?php echo $listing_search->Town->EditValue ?>"<?php echo $listing_search->Town->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } ?>
<?php if ($listing_search->Owner->Visible) { // Owner ?>
	<div id="r_Owner" class="form-group row">
		<label for="x_Owner" class="<?php echo $listing_search->LeftColumnClass ?>"><span id="elh_listing_Owner"><?php echo $listing_search->Owner->caption() ?></span>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Owner" id="z_Owner" value="LIKE">
</span>
		</label>
		<div class="<?php echo $listing_search->RightColumnClass ?>"><div <?php echo $listing_search->Owner->cellAttributes() ?>>
			<span id="el_listing_Owner" class="ew-search-field">
<input type="text" data-table="listing" data-field="x_Owner" name="x_Owner" id="x_Owner" size="30" maxlength="201" placeholder="<?php echo HtmlEncode($listing_search->Owner->getPlaceHolder()) ?>" value="<?php echo $listing_search->Owner->EditValue ?>"<?php echo $listing_search->Owner->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } ?>
<?php if ($listing_search->Visit->Visible) { // Visit ?>
	<div id="r_Visit" class="form-group row">
		<label for="x_Visit" class="<?php echo $listing_search->LeftColumnClass ?>"><span id="elh_listing_Visit"><?php echo $listing_search->Visit->caption() ?></span>
		<span class="ew-search-operator">
<?php echo $Language->phrase("=") ?>
<input type="hidden" name="z_Visit" id="z_Visit" value="=">
</span>
		</label>
		<div class="<?php echo $listing_search->RightColumnClass ?>"><div <?php echo $listing_search->Visit->cellAttributes() ?>>
			<span id="el_listing_Visit" class="ew-search-field">
<input type="text" data-table="listing" data-field="x_Visit" name="x_Visit" id="x_Visit" size="30" maxlength="8" placeholder="<?php echo HtmlEncode($listing_search->Visit->getPlaceHolder()) ?>" value="<?php echo $listing_search->Visit->EditValue ?>"<?php echo $listing_search->Visit->editAttributes() ?>>
</span>
		</div></div>
	</div>
<?php } ?>
<?php if ($listing_search->Agent->Visible) { // Agent ?>
	<div id="r_Agent" class="form-group row">
		<label for="x_Agent" class="<?php echo $listing_search->LeftColumnClass ?>"><span id="elh_listing_Agent"><?php echo $listing_search->Agent->caption() ?></span>
		<span class="ew-search-operator">
<?php echo $Language->phrase("LIKE") ?>
<input type="hidden" name="z_Agent" id="z_Agent" value="LIKE">
</span>
		</label>
		<div class="<?php echo $listing_search->RightColumnClass ?>"><div <?php echo $listing_search->Agent->cellAttributes() ?>>
			<span id="el_listing_Agent" class="ew-search-field">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="listing" data-field="x_Agent" data-value-separator="<?php echo $listing_search->Agent->displayValueSeparatorAttribute() ?>" id="x_Agent" name="x_Agent"<?php echo $listing_search->Agent->editAttributes() ?>>
			<?php echo $listing_search->Agent->selectOptionListHtml("x_Agent") ?>
		</select>
</div>
</span>
		</div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$listing_search->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $listing_search->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("Search") ?></button>
<button class="btn btn-default ew-btn" name="btn-reset" id="btn-reset" type="button" onclick="ew.clearForm(this.form);"><?php echo $Language->phrase("Reset") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$listing_search->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

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

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

Hry