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_notesadd.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_add = new wp_property_notes_add();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "add";
	fwp_property_notesadd = currentForm = new ew.Form("fwp_property_notesadd", "add");

	// Validate form
	fwp_property_notesadd.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "confirm")
			return true;
		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 ($wp_property_notes_add->PropertyID->Required) { ?>
				elm = this.getElements("x" + infix + "_PropertyID");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_property_notes_add->PropertyID->caption(), $wp_property_notes_add->PropertyID->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($wp_property_notes_add->OwnerID->Required) { ?>
				elm = this.getElements("x" + infix + "_OwnerID");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_property_notes_add->OwnerID->caption(), $wp_property_notes_add->OwnerID->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($wp_property_notes_add->AgentID->Required) { ?>
				elm = this.getElements("x" + infix + "_AgentID");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_property_notes_add->AgentID->caption(), $wp_property_notes_add->AgentID->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($wp_property_notes_add->NoteDate->Required) { ?>
				elm = this.getElements("x" + infix + "_NoteDate");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_property_notes_add->NoteDate->caption(), $wp_property_notes_add->NoteDate->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_NoteDate");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($wp_property_notes_add->NoteDate->errorMessage()) ?>");
			<?php if ($wp_property_notes_add->Note->Required) { ?>
				elm = this.getElements("x" + infix + "_Note");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_property_notes_add->Note->caption(), $wp_property_notes_add->Note->RequiredErrorMessage)) ?>");
			<?php } ?>

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

		// Process detail forms
		var dfs = $fobj.find("input[name='detailpage']").get();
		for (var i = 0; i < dfs.length; i++) {
			var df = dfs[i], val = df.value;
			if (val && ew.forms[val])
				if (!ew.forms[val].validate())
					return false;
		}
		return true;
	}

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

	// Dynamic selection lists
	fwp_property_notesadd.lists["x_PropertyID"] = <?php echo $wp_property_notes_add->PropertyID->Lookup->toClientList($wp_property_notes_add) ?>;
	fwp_property_notesadd.lists["x_PropertyID"].options = <?php echo JsonEncode($wp_property_notes_add->PropertyID->lookupOptions()) ?>;
	fwp_property_notesadd.lists["x_OwnerID"] = <?php echo $wp_property_notes_add->OwnerID->Lookup->toClientList($wp_property_notes_add) ?>;
	fwp_property_notesadd.lists["x_OwnerID"].options = <?php echo JsonEncode($wp_property_notes_add->OwnerID->lookupOptions()) ?>;
	fwp_property_notesadd.lists["x_AgentID"] = <?php echo $wp_property_notes_add->AgentID->Lookup->toClientList($wp_property_notes_add) ?>;
	fwp_property_notesadd.lists["x_AgentID"].options = <?php echo JsonEncode($wp_property_notes_add->AgentID->options(FALSE, TRUE)) ?>;
	loadjs.done("fwp_property_notesadd");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $wp_property_notes_add->showPageHeader(); ?>
<?php
$wp_property_notes_add->showMessage();
?>
<form name="fwp_property_notesadd" id="fwp_property_notesadd" class="<?php echo $wp_property_notes_add->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="wp_property_notes">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$wp_property_notes_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($wp_property_notes_add->PropertyID->Visible) { // PropertyID ?>
	<div id="r_PropertyID" class="form-group row">
		<label id="elh_wp_property_notes_PropertyID" for="x_PropertyID" class="<?php echo $wp_property_notes_add->LeftColumnClass ?>"><?php echo $wp_property_notes_add->PropertyID->caption() ?><?php echo $wp_property_notes_add->PropertyID->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_property_notes_add->RightColumnClass ?>"><div <?php echo $wp_property_notes_add->PropertyID->cellAttributes() ?>>
<span id="el_wp_property_notes_PropertyID">
<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_add->PropertyID->ReadOnly) { ?> readonly<?php } else { ?>data-toggle="dropdown"<?php } ?>><?php echo $wp_property_notes_add->PropertyID->ViewValue ?></button>
		<div id="dsl_x_PropertyID" data-repeatcolumn="1" class="dropdown-menu">
			<div class="ew-items" style="overflow-x: hidden;">
<?php echo $wp_property_notes_add->PropertyID->radioButtonListHtml(TRUE, "x_PropertyID") ?>
			</div><!-- /.ew-items -->
		</div><!-- /.dropdown-menu -->
		<div id="tp_x_PropertyID" class="ew-template"><input type="radio" class="custom-control-input" data-table="wp_property_notes" data-field="x_PropertyID" data-value-separator="<?php echo $wp_property_notes_add->PropertyID->displayValueSeparatorAttribute() ?>" name="x_PropertyID" id="x_PropertyID" value="{value}"<?php echo $wp_property_notes_add->PropertyID->editAttributes() ?>></div>
	</div><!-- /.btn-group -->
	<?php if (!$wp_property_notes_add->PropertyID->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 -->
<?php echo $wp_property_notes_add->PropertyID->Lookup->getParamTag($wp_property_notes_add, "p_x_PropertyID") ?>
</span>
<?php echo $wp_property_notes_add->PropertyID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_property_notes_add->OwnerID->Visible) { // OwnerID ?>
	<div id="r_OwnerID" class="form-group row">
		<label id="elh_wp_property_notes_OwnerID" for="x_OwnerID" class="<?php echo $wp_property_notes_add->LeftColumnClass ?>"><?php echo $wp_property_notes_add->OwnerID->caption() ?><?php echo $wp_property_notes_add->OwnerID->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_property_notes_add->RightColumnClass ?>"><div <?php echo $wp_property_notes_add->OwnerID->cellAttributes() ?>>
<span id="el_wp_property_notes_OwnerID">
<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_add->OwnerID->ReadOnly) { ?> readonly<?php } else { ?>data-toggle="dropdown"<?php } ?>><?php echo $wp_property_notes_add->OwnerID->ViewValue ?></button>
		<div id="dsl_x_OwnerID" data-repeatcolumn="1" class="dropdown-menu">
			<div class="ew-items" style="overflow-x: hidden;">
<?php echo $wp_property_notes_add->OwnerID->radioButtonListHtml(TRUE, "x_OwnerID") ?>
			</div><!-- /.ew-items -->
		</div><!-- /.dropdown-menu -->
		<div id="tp_x_OwnerID" class="ew-template"><input type="radio" class="custom-control-input" data-table="wp_property_notes" data-field="x_OwnerID" data-value-separator="<?php echo $wp_property_notes_add->OwnerID->displayValueSeparatorAttribute() ?>" name="x_OwnerID" id="x_OwnerID" value="{value}"<?php echo $wp_property_notes_add->OwnerID->editAttributes() ?>></div>
	</div><!-- /.btn-group -->
	<?php if (!$wp_property_notes_add->OwnerID->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 -->
<?php echo $wp_property_notes_add->OwnerID->Lookup->getParamTag($wp_property_notes_add, "p_x_OwnerID") ?>
</span>
<?php echo $wp_property_notes_add->OwnerID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_property_notes_add->AgentID->Visible) { // AgentID ?>
	<div id="r_AgentID" class="form-group row">
		<label id="elh_wp_property_notes_AgentID" for="x_AgentID" class="<?php echo $wp_property_notes_add->LeftColumnClass ?>"><?php echo $wp_property_notes_add->AgentID->caption() ?><?php echo $wp_property_notes_add->AgentID->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_property_notes_add->RightColumnClass ?>"><div <?php echo $wp_property_notes_add->AgentID->cellAttributes() ?>>
<span id="el_wp_property_notes_AgentID">
<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_add->AgentID->ReadOnly) { ?> readonly<?php } else { ?>data-toggle="dropdown"<?php } ?>><?php echo $wp_property_notes_add->AgentID->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_add->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_add->AgentID->displayValueSeparatorAttribute() ?>" name="x_AgentID" id="x_AgentID" value="{value}"<?php echo $wp_property_notes_add->AgentID->editAttributes() ?>></div>
	</div><!-- /.btn-group -->
	<?php if (!$wp_property_notes_add->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>
<?php echo $wp_property_notes_add->AgentID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_property_notes_add->NoteDate->Visible) { // NoteDate ?>
	<div id="r_NoteDate" class="form-group row">
		<label id="elh_wp_property_notes_NoteDate" for="x_NoteDate" class="<?php echo $wp_property_notes_add->LeftColumnClass ?>"><?php echo $wp_property_notes_add->NoteDate->caption() ?><?php echo $wp_property_notes_add->NoteDate->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_property_notes_add->RightColumnClass ?>"><div <?php echo $wp_property_notes_add->NoteDate->cellAttributes() ?>>
<span id="el_wp_property_notes_NoteDate">
<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_add->NoteDate->getPlaceHolder()) ?>" value="<?php echo $wp_property_notes_add->NoteDate->EditValue ?>"<?php echo $wp_property_notes_add->NoteDate->editAttributes() ?>>
<?php if (!$wp_property_notes_add->NoteDate->ReadOnly && !$wp_property_notes_add->NoteDate->Disabled && !isset($wp_property_notes_add->NoteDate->EditAttrs["readonly"]) && !isset($wp_property_notes_add->NoteDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_property_notesadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_property_notesadd", "x_NoteDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $wp_property_notes_add->NoteDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_property_notes_add->Note->Visible) { // Note ?>
	<div id="r_Note" class="form-group row">
		<label id="elh_wp_property_notes_Note" class="<?php echo $wp_property_notes_add->LeftColumnClass ?>"><?php echo $wp_property_notes_add->Note->caption() ?><?php echo $wp_property_notes_add->Note->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_property_notes_add->RightColumnClass ?>"><div <?php echo $wp_property_notes_add->Note->cellAttributes() ?>>
<span id="el_wp_property_notes_Note">
<?php $wp_property_notes_add->Note->EditAttrs->appendClass("editor"); ?>
<textarea data-table="wp_property_notes" data-field="x_Note" name="x_Note" id="x_Note" cols="35" rows="4" placeholder="<?php echo HtmlEncode($wp_property_notes_add->Note->getPlaceHolder()) ?>"<?php echo $wp_property_notes_add->Note->editAttributes() ?>><?php echo $wp_property_notes_add->Note->EditValue ?></textarea>
<script>
loadjs.ready(["fwp_property_notesadd", "editor"], function() {
	ew.createEditor("fwp_property_notesadd", "x_Note", 35, 4, <?php echo $wp_property_notes_add->Note->ReadOnly || FALSE ? "true" : "false" ?>);
});
</script>
</span>
<?php echo $wp_property_notes_add->Note->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$wp_property_notes_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $wp_property_notes_add->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $wp_property_notes_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$wp_property_notes_add->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
$wp_property_notes_add->terminate();
?>

Hry