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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/www/adminAR/wp_wpl_properties2edit.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_wpl_properties2_edit = new wp_wpl_properties2_edit();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "edit";
	fwp_wpl_properties2edit = currentForm = new ew.Form("fwp_wpl_properties2edit", "edit");

	// Validate form
	fwp_wpl_properties2edit.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_wpl_properties2_edit->id->Required) { ?>
				elm = this.getElements("x" + infix + "_id");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_edit->id->caption(), $wp_wpl_properties2_edit->id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($wp_wpl_properties2_edit->visit_time->Required) { ?>
				elm = this.getElements("x" + infix + "_visit_time");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_edit->visit_time->caption(), $wp_wpl_properties2_edit->visit_time->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_visit_time");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($wp_wpl_properties2_edit->visit_time->errorMessage()) ?>");
			<?php if ($wp_wpl_properties2_edit->visit_date->Required) { ?>
				elm = this.getElements("x" + infix + "_visit_date");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $wp_wpl_properties2_edit->visit_date->caption(), $wp_wpl_properties2_edit->visit_date->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_visit_date");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($wp_wpl_properties2_edit->visit_date->errorMessage()) ?>");

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

	// Dynamic selection lists
	loadjs.done("fwp_wpl_properties2edit");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $wp_wpl_properties2_edit->showPageHeader(); ?>
<?php
$wp_wpl_properties2_edit->showMessage();
?>
<form name="fwp_wpl_properties2edit" id="fwp_wpl_properties2edit" class="<?php echo $wp_wpl_properties2_edit->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_wpl_properties2">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$wp_wpl_properties2_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($wp_wpl_properties2_edit->id->Visible) { // id ?>
	<div id="r_id" class="form-group row">
		<label id="elh_wp_wpl_properties2_id" class="<?php echo $wp_wpl_properties2_edit->LeftColumnClass ?>"><?php echo $wp_wpl_properties2_edit->id->caption() ?><?php echo $wp_wpl_properties2_edit->id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_wpl_properties2_edit->RightColumnClass ?>"><div <?php echo $wp_wpl_properties2_edit->id->cellAttributes() ?>>
<span id="el_wp_wpl_properties2_id">
<span<?php echo $wp_wpl_properties2_edit->id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($wp_wpl_properties2_edit->id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="wp_wpl_properties2" data-field="x_id" name="x_id" id="x_id" value="<?php echo HtmlEncode($wp_wpl_properties2_edit->id->CurrentValue) ?>">
<?php echo $wp_wpl_properties2_edit->id->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_wpl_properties2_edit->visit_time->Visible) { // visit_time ?>
	<div id="r_visit_time" class="form-group row">
		<label id="elh_wp_wpl_properties2_visit_time" for="x_visit_time" class="<?php echo $wp_wpl_properties2_edit->LeftColumnClass ?>"><?php echo $wp_wpl_properties2_edit->visit_time->caption() ?><?php echo $wp_wpl_properties2_edit->visit_time->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_wpl_properties2_edit->RightColumnClass ?>"><div <?php echo $wp_wpl_properties2_edit->visit_time->cellAttributes() ?>>
<span id="el_wp_wpl_properties2_visit_time">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_time" name="x_visit_time" id="x_visit_time" size="30" maxlength="8" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_edit->visit_time->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_edit->visit_time->EditValue ?>"<?php echo $wp_wpl_properties2_edit->visit_time->editAttributes() ?>>
</span>
<?php echo $wp_wpl_properties2_edit->visit_time->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($wp_wpl_properties2_edit->visit_date->Visible) { // visit_date ?>
	<div id="r_visit_date" class="form-group row">
		<label id="elh_wp_wpl_properties2_visit_date" for="x_visit_date" class="<?php echo $wp_wpl_properties2_edit->LeftColumnClass ?>"><?php echo $wp_wpl_properties2_edit->visit_date->caption() ?><?php echo $wp_wpl_properties2_edit->visit_date->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $wp_wpl_properties2_edit->RightColumnClass ?>"><div <?php echo $wp_wpl_properties2_edit->visit_date->cellAttributes() ?>>
<span id="el_wp_wpl_properties2_visit_date">
<input type="text" data-table="wp_wpl_properties2" data-field="x_visit_date" name="x_visit_date" id="x_visit_date" maxlength="19" placeholder="<?php echo HtmlEncode($wp_wpl_properties2_edit->visit_date->getPlaceHolder()) ?>" value="<?php echo $wp_wpl_properties2_edit->visit_date->EditValue ?>"<?php echo $wp_wpl_properties2_edit->visit_date->editAttributes() ?>>
<?php if (!$wp_wpl_properties2_edit->visit_date->ReadOnly && !$wp_wpl_properties2_edit->visit_date->Disabled && !isset($wp_wpl_properties2_edit->visit_date->EditAttrs["readonly"]) && !isset($wp_wpl_properties2_edit->visit_date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fwp_wpl_properties2edit", "datetimepicker"], function() {
	ew.createDateTimePicker("fwp_wpl_properties2edit", "x_visit_date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $wp_wpl_properties2_edit->visit_date->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$wp_wpl_properties2_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $wp_wpl_properties2_edit->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("SaveBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $wp_wpl_properties2_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$wp_wpl_properties2_edit->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_wpl_properties2_edit->terminate();
?>

Hry