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

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

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

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

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

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

	// Validate form
	fview1edit.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 ($view1_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", $view1_edit->id->caption(), $view1_edit->id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->Address->Required) { ?>
				elm = this.getElements("x" + infix + "_Address");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->Address->caption(), $view1_edit->Address->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->location_text->Required) { ?>
				elm = this.getElements("x" + infix + "_location_text");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->location_text->caption(), $view1_edit->location_text->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->user_id->Required) { ?>
				elm = this.getElements("x" + infix + "_user_id");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->user_id->caption(), $view1_edit->user_id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->add_date->Required) { ?>
				elm = this.getElements("x" + infix + "_add_date");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->add_date->caption(), $view1_edit->add_date->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->finalized->Required) { ?>
				elm = this.getElements("x" + infix + "_finalized");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->finalized->caption(), $view1_edit->finalized->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->confirmed->Required) { ?>
				elm = this.getElements("x" + infix + "_confirmed");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->confirmed->caption(), $view1_edit->confirmed->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($view1_edit->ExpirationDate->Required) { ?>
				elm = this.getElements("x" + infix + "_ExpirationDate");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $view1_edit->ExpirationDate->caption(), $view1_edit->ExpirationDate->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_ExpirationDate");
				if (elm && !ew.checkDate(elm.value))
					return this.onError(elm, "<?php echo JsEncode($view1_edit->ExpirationDate->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
	fview1edit.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
	fview1edit.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $view1_edit->showPageHeader(); ?>
<?php
$view1_edit->showMessage();
?>
<form name="fview1edit" id="fview1edit" class="<?php echo $view1_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="view1">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$view1_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($view1_edit->id->Visible) { // id ?>
	<div id="r_id" class="form-group row">
		<label id="elh_view1_id" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->id->caption() ?><?php echo $view1_edit->id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->id->cellAttributes() ?>>
<span id="el_view1_id">
<span<?php echo $view1_edit->id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_id" name="x_id" id="x_id" value="<?php echo HtmlEncode($view1_edit->id->CurrentValue) ?>">
<?php echo $view1_edit->id->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->Address->Visible) { // Address ?>
	<div id="r_Address" class="form-group row">
		<label id="elh_view1_Address" for="x_Address" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->Address->caption() ?><?php echo $view1_edit->Address->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->Address->cellAttributes() ?>>
<span id="el_view1_Address">
<span<?php echo $view1_edit->Address->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->Address->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_Address" name="x_Address" id="x_Address" value="<?php echo HtmlEncode($view1_edit->Address->CurrentValue) ?>">
<?php echo $view1_edit->Address->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->location_text->Visible) { // location_text ?>
	<div id="r_location_text" class="form-group row">
		<label id="elh_view1_location_text" for="x_location_text" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->location_text->caption() ?><?php echo $view1_edit->location_text->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->location_text->cellAttributes() ?>>
<span id="el_view1_location_text">
<span<?php echo $view1_edit->location_text->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->location_text->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_location_text" name="x_location_text" id="x_location_text" value="<?php echo HtmlEncode($view1_edit->location_text->CurrentValue) ?>">
<?php echo $view1_edit->location_text->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->user_id->Visible) { // user_id ?>
	<div id="r_user_id" class="form-group row">
		<label id="elh_view1_user_id" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->user_id->caption() ?><?php echo $view1_edit->user_id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->user_id->cellAttributes() ?>>
<span id="el_view1_user_id">
<span<?php echo $view1_edit->user_id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->user_id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_user_id" name="x_user_id" id="x_user_id" value="<?php echo HtmlEncode($view1_edit->user_id->CurrentValue) ?>">
<?php echo $view1_edit->user_id->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->add_date->Visible) { // add_date ?>
	<div id="r_add_date" class="form-group row">
		<label id="elh_view1_add_date" for="x_add_date" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->add_date->caption() ?><?php echo $view1_edit->add_date->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->add_date->cellAttributes() ?>>
<span id="el_view1_add_date">
<span<?php echo $view1_edit->add_date->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->add_date->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_add_date" name="x_add_date" id="x_add_date" value="<?php echo HtmlEncode($view1_edit->add_date->CurrentValue) ?>">
<?php echo $view1_edit->add_date->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->finalized->Visible) { // finalized ?>
	<div id="r_finalized" class="form-group row">
		<label id="elh_view1_finalized" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->finalized->caption() ?><?php echo $view1_edit->finalized->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->finalized->cellAttributes() ?>>
<span id="el_view1_finalized">
<span<?php echo $view1_edit->finalized->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($view1_edit->finalized->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="view1" data-field="x_finalized" name="x_finalized" id="x_finalized" value="<?php echo HtmlEncode($view1_edit->finalized->CurrentValue) ?>">
<?php echo $view1_edit->finalized->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->confirmed->Visible) { // confirmed ?>
	<div id="r_confirmed" class="form-group row">
		<label id="elh_view1_confirmed" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->confirmed->caption() ?><?php echo $view1_edit->confirmed->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->confirmed->cellAttributes() ?>>
<span id="el_view1_confirmed">
<div id="tp_x_confirmed" class="ew-template"><input type="radio" class="custom-control-input" data-table="view1" data-field="x_confirmed" data-value-separator="<?php echo $view1_edit->confirmed->displayValueSeparatorAttribute() ?>" name="x_confirmed" id="x_confirmed" value="{value}"<?php echo $view1_edit->confirmed->editAttributes() ?>></div>
<div id="dsl_x_confirmed" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $view1_edit->confirmed->radioButtonListHtml(FALSE, "x_confirmed") ?>
</div></div>
</span>
<?php echo $view1_edit->confirmed->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($view1_edit->ExpirationDate->Visible) { // ExpirationDate ?>
	<div id="r_ExpirationDate" class="form-group row">
		<label id="elh_view1_ExpirationDate" for="x_ExpirationDate" class="<?php echo $view1_edit->LeftColumnClass ?>"><?php echo $view1_edit->ExpirationDate->caption() ?><?php echo $view1_edit->ExpirationDate->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $view1_edit->RightColumnClass ?>"><div <?php echo $view1_edit->ExpirationDate->cellAttributes() ?>>
<span id="el_view1_ExpirationDate">
<input type="text" data-table="view1" data-field="x_ExpirationDate" data-format="5" name="x_ExpirationDate" id="x_ExpirationDate" maxlength="10" placeholder="<?php echo HtmlEncode($view1_edit->ExpirationDate->getPlaceHolder()) ?>" value="<?php echo $view1_edit->ExpirationDate->EditValue ?>"<?php echo $view1_edit->ExpirationDate->editAttributes() ?>>
<?php if (!$view1_edit->ExpirationDate->ReadOnly && !$view1_edit->ExpirationDate->Disabled && !isset($view1_edit->ExpirationDate->EditAttrs["readonly"]) && !isset($view1_edit->ExpirationDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fview1edit", "datetimepicker"], function() {
	ew.createDateTimePicker("fview1edit", "x_ExpirationDate", {"ignoreReadonly":true,"useCurrent":false,"format":5});
});
</script>
<?php } ?>
</span>
<?php echo $view1_edit->ExpirationDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$view1_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $view1_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 $view1_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$view1_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
$view1_edit->terminate();
?>

Hry