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

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "update";
	fexpiredupdate = currentForm = new ew.Form("fexpiredupdate", "update");

	// Validate form
	fexpiredupdate.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "confirm")
			return true;
		if (!ew.updateSelected(fobj)) {
			ew.alert(ew.language.phrase("NoFieldSelected"));
			return false;
		}
		var elm, felm, uelm, addcnt = 0;
		var $k = $fobj.find("#" + this.formKeyCountName); // Get key_count
		var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
		var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
		var gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
		for (var i = startcnt; i <= rowcnt; i++) {
			var infix = ($k[0]) ? String(i) : "";
			$fobj.data("rowindex", infix);
			<?php if ($expired_update->Address->Required) { ?>
				elm = this.getElements("x" + infix + "_Address");
				uelm = this.getElements("u" + infix + "_Address");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $expired_update->Address->caption(), $expired_update->Address->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($expired_update->location_text->Required) { ?>
				elm = this.getElements("x" + infix + "_location_text");
				uelm = this.getElements("u" + infix + "_location_text");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $expired_update->location_text->caption(), $expired_update->location_text->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($expired_update->ListingDate->Required) { ?>
				elm = this.getElements("x" + infix + "_ListingDate");
				uelm = this.getElements("u" + infix + "_ListingDate");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $expired_update->ListingDate->caption(), $expired_update->ListingDate->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_ListingDate");
				uelm = this.getElements("u" + infix + "_ListingDate");
				if (uelm && uelm.checked && elm && !ew.checkDate(elm.value))
					return this.onError(elm, "<?php echo JsEncode($expired_update->ListingDate->errorMessage()) ?>");
			<?php if ($expired_update->Expired->Required) { ?>
				elm = this.getElements("x" + infix + "_Expired");
				uelm = this.getElements("u" + infix + "_Expired");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $expired_update->Expired->caption(), $expired_update->Expired->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($expired_update->ExpiredDate->Required) { ?>
				elm = this.getElements("x" + infix + "_ExpiredDate");
				uelm = this.getElements("u" + infix + "_ExpiredDate");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $expired_update->ExpiredDate->caption(), $expired_update->ExpiredDate->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_ExpiredDate");
				uelm = this.getElements("u" + infix + "_ExpiredDate");
				if (uelm && uelm.checked && elm && !ew.checkDate(elm.value))
					return this.onError(elm, "<?php echo JsEncode($expired_update->ExpiredDate->errorMessage()) ?>");

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

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

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

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

});
</script>
<?php $expired_update->showPageHeader(); ?>
<?php
$expired_update->showMessage();
?>
<form name="fexpiredupdate" id="fexpiredupdate" class="<?php echo $expired_update->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="expired">
<?php if ($expired->isConfirm()) { // Confirm page ?>
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="confirm" id="confirm" value="confirm">
<?php } else { ?>
<input type="hidden" name="action" id="action" value="confirm">
<?php } ?>
<input type="hidden" name="modal" value="<?php echo (int)$expired_update->IsModal ?>">
<?php foreach ($expired_update->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div id="tbl_expiredupdate" class="ew-update-div"><!-- page -->
	<div class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="u" id="u" onclick="ew.selectAll(this);"<?php echo $expired_update->Disabled ?>><label class="custom-control-label" for="u"><?php echo $Language->phrase("UpdateSelectAll") ?></label>
	</div>
<?php if ($expired_update->Address->Visible) { // Address ?>
	<div id="r_Address" class="form-group row">
		<label for="x_Address" class="<?php echo $expired_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<?php if (!$expired->isConfirm()) { ?>
<input type="checkbox" name="u_Address" id="u_Address" class="custom-control-input ew-multi-select" value="1"<?php echo $expired_update->Address->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } else { ?>
<input type="hidden" name="u_Address" id="u_Address" value="<?php echo $expired_update->Address->MultiUpdate ?>">
<input type="checkbox" class="custom-control-input" disabled<?php echo $expired_update->Address->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } ?>
<label class="custom-control-label" for="u_Address"><?php echo $expired_update->Address->caption() ?></label></div></label>
		<div class="<?php echo $expired_update->RightColumnClass ?>"><div <?php echo $expired_update->Address->cellAttributes() ?>>
<?php if (!$expired->isConfirm()) { ?>
<span id="el_expired_Address">
<input type="text" data-table="expired" data-field="x_Address" name="x_Address" id="x_Address" size="25" maxlength="70" placeholder="<?php echo HtmlEncode($expired_update->Address->getPlaceHolder()) ?>" value="<?php echo $expired_update->Address->EditValue ?>"<?php echo $expired_update->Address->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el_expired_Address">
<span<?php echo $expired_update->Address->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($expired_update->Address->ViewValue)) ?>"></span>
</span>
<input type="hidden" data-table="expired" data-field="x_Address" name="x_Address" id="x_Address" value="<?php echo HtmlEncode($expired_update->Address->FormValue) ?>">
<?php } ?>
<?php echo $expired_update->Address->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($expired_update->location_text->Visible) { // location_text ?>
	<div id="r_location_text" class="form-group row">
		<label for="x_location_text" class="<?php echo $expired_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<?php if (!$expired->isConfirm()) { ?>
<input type="checkbox" name="u_location_text" id="u_location_text" class="custom-control-input ew-multi-select" value="1"<?php echo $expired_update->location_text->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } else { ?>
<input type="hidden" name="u_location_text" id="u_location_text" value="<?php echo $expired_update->location_text->MultiUpdate ?>">
<input type="checkbox" class="custom-control-input" disabled<?php echo $expired_update->location_text->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } ?>
<label class="custom-control-label" for="u_location_text"><?php echo $expired_update->location_text->caption() ?></label></div></label>
		<div class="<?php echo $expired_update->RightColumnClass ?>"><div <?php echo $expired_update->location_text->cellAttributes() ?>>
<?php if (!$expired->isConfirm()) { ?>
<span id="el_expired_location_text">
<input type="text" data-table="expired" data-field="x_location_text" name="x_location_text" id="x_location_text" size="25" maxlength="255" placeholder="<?php echo HtmlEncode($expired_update->location_text->getPlaceHolder()) ?>" value="<?php echo $expired_update->location_text->EditValue ?>"<?php echo $expired_update->location_text->editAttributes() ?>>
</span>
<?php } else { ?>
<span id="el_expired_location_text">
<span<?php echo $expired_update->location_text->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($expired_update->location_text->ViewValue)) ?>"></span>
</span>
<input type="hidden" data-table="expired" data-field="x_location_text" name="x_location_text" id="x_location_text" value="<?php echo HtmlEncode($expired_update->location_text->FormValue) ?>">
<?php } ?>
<?php echo $expired_update->location_text->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($expired_update->ListingDate->Visible) { // ListingDate ?>
	<div id="r_ListingDate" class="form-group row">
		<label for="x_ListingDate" class="<?php echo $expired_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<?php if (!$expired->isConfirm()) { ?>
<input type="checkbox" name="u_ListingDate" id="u_ListingDate" class="custom-control-input ew-multi-select" value="1"<?php echo $expired_update->ListingDate->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } else { ?>
<input type="hidden" name="u_ListingDate" id="u_ListingDate" value="<?php echo $expired_update->ListingDate->MultiUpdate ?>">
<input type="checkbox" class="custom-control-input" disabled<?php echo $expired_update->ListingDate->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } ?>
<label class="custom-control-label" for="u_ListingDate"><?php echo $expired_update->ListingDate->caption() ?></label></div></label>
		<div class="<?php echo $expired_update->RightColumnClass ?>"><div <?php echo $expired_update->ListingDate->cellAttributes() ?>>
<?php if (!$expired->isConfirm()) { ?>
<span id="el_expired_ListingDate">
<input type="text" data-table="expired" data-field="x_ListingDate" data-format="5" name="x_ListingDate" id="x_ListingDate" maxlength="19" placeholder="<?php echo HtmlEncode($expired_update->ListingDate->getPlaceHolder()) ?>" value="<?php echo $expired_update->ListingDate->EditValue ?>"<?php echo $expired_update->ListingDate->editAttributes() ?>>
<?php if (!$expired_update->ListingDate->ReadOnly && !$expired_update->ListingDate->Disabled && !isset($expired_update->ListingDate->EditAttrs["readonly"]) && !isset($expired_update->ListingDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fexpiredupdate", "datetimepicker"], function() {
	ew.createDateTimePicker("fexpiredupdate", "x_ListingDate", {"ignoreReadonly":true,"useCurrent":false,"format":5});
});
</script>
<?php } ?>
</span>
<?php } else { ?>
<span id="el_expired_ListingDate">
<span<?php echo $expired_update->ListingDate->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($expired_update->ListingDate->ViewValue)) ?>"></span>
</span>
<input type="hidden" data-table="expired" data-field="x_ListingDate" name="x_ListingDate" id="x_ListingDate" value="<?php echo HtmlEncode($expired_update->ListingDate->FormValue) ?>">
<?php } ?>
<?php echo $expired_update->ListingDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($expired_update->Expired->Visible) { // Expired ?>
	<div id="r_Expired" class="form-group row">
		<label class="<?php echo $expired_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<?php if (!$expired->isConfirm()) { ?>
<input type="checkbox" name="u_Expired" id="u_Expired" class="custom-control-input ew-multi-select" value="1"<?php echo $expired_update->Expired->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } else { ?>
<input type="hidden" name="u_Expired" id="u_Expired" value="<?php echo $expired_update->Expired->MultiUpdate ?>">
<input type="checkbox" class="custom-control-input" disabled<?php echo $expired_update->Expired->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } ?>
<label class="custom-control-label" for="u_Expired"><?php echo $expired_update->Expired->caption() ?></label></div></label>
		<div class="<?php echo $expired_update->RightColumnClass ?>"><div <?php echo $expired_update->Expired->cellAttributes() ?>>
<?php if (!$expired->isConfirm()) { ?>
<span id="el_expired_Expired">
<div id="tp_x_Expired" class="ew-template"><input type="radio" class="custom-control-input" data-table="expired" data-field="x_Expired" data-value-separator="<?php echo $expired_update->Expired->displayValueSeparatorAttribute() ?>" name="x_Expired" id="x_Expired" value="{value}"<?php echo $expired_update->Expired->editAttributes() ?>></div>
<div id="dsl_x_Expired" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $expired_update->Expired->radioButtonListHtml(FALSE, "x_Expired") ?>
</div></div>
</span>
<?php } else { ?>
<span id="el_expired_Expired">
<span<?php echo $expired_update->Expired->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($expired_update->Expired->ViewValue)) ?>"></span>
</span>
<input type="hidden" data-table="expired" data-field="x_Expired" name="x_Expired" id="x_Expired" value="<?php echo HtmlEncode($expired_update->Expired->FormValue) ?>">
<?php } ?>
<?php echo $expired_update->Expired->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($expired_update->ExpiredDate->Visible) { // ExpiredDate ?>
	<div id="r_ExpiredDate" class="form-group row">
		<label for="x_ExpiredDate" class="<?php echo $expired_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<?php if (!$expired->isConfirm()) { ?>
<input type="checkbox" name="u_ExpiredDate" id="u_ExpiredDate" class="custom-control-input ew-multi-select" value="1"<?php echo $expired_update->ExpiredDate->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } else { ?>
<input type="hidden" name="u_ExpiredDate" id="u_ExpiredDate" value="<?php echo $expired_update->ExpiredDate->MultiUpdate ?>">
<input type="checkbox" class="custom-control-input" disabled<?php echo $expired_update->ExpiredDate->MultiUpdate == "1" ? " checked" : "" ?>>
<?php } ?>
<label class="custom-control-label" for="u_ExpiredDate"><?php echo $expired_update->ExpiredDate->caption() ?></label></div></label>
		<div class="<?php echo $expired_update->RightColumnClass ?>"><div <?php echo $expired_update->ExpiredDate->cellAttributes() ?>>
<?php if (!$expired->isConfirm()) { ?>
<span id="el_expired_ExpiredDate">
<input type="text" data-table="expired" data-field="x_ExpiredDate" data-format="5" name="x_ExpiredDate" id="x_ExpiredDate" maxlength="10" placeholder="<?php echo HtmlEncode($expired_update->ExpiredDate->getPlaceHolder()) ?>" value="<?php echo $expired_update->ExpiredDate->EditValue ?>"<?php echo $expired_update->ExpiredDate->editAttributes() ?>>
<?php if (!$expired_update->ExpiredDate->ReadOnly && !$expired_update->ExpiredDate->Disabled && !isset($expired_update->ExpiredDate->EditAttrs["readonly"]) && !isset($expired_update->ExpiredDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fexpiredupdate", "datetimepicker"], function() {
	ew.createDateTimePicker("fexpiredupdate", "x_ExpiredDate", {"ignoreReadonly":true,"useCurrent":false,"format":5});
});
</script>
<?php } ?>
</span>
<?php } else { ?>
<span id="el_expired_ExpiredDate">
<span<?php echo $expired_update->ExpiredDate->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($expired_update->ExpiredDate->ViewValue)) ?>"></span>
</span>
<input type="hidden" data-table="expired" data-field="x_ExpiredDate" name="x_ExpiredDate" id="x_ExpiredDate" value="<?php echo HtmlEncode($expired_update->ExpiredDate->FormValue) ?>">
<?php } ?>
<?php echo $expired_update->ExpiredDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page -->
<?php if (!$expired_update->IsModal) { ?>
	<div class="form-group row"><!-- buttons .form-group -->
		<div class="<?php echo $expired_update->OffsetColumnClass ?>"><!-- buttons offset -->
<?php if (!$expired->isConfirm()) { // Confirm page ?>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit" onclick="this.form.action.value='confirm';"><?php echo $Language->phrase("UpdateBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $expired_update->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
<?php } else { ?>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("ConfirmBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="submit" onclick="this.form.action.value='cancel';"><?php echo $Language->phrase("CancelBtn") ?></button>
<?php } ?>
		</div><!-- /buttons offset -->
	</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$expired_update->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
$expired_update->terminate();
?>

Hry