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

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

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

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

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

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

	// Validate form
	ftodoadd.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 ($todo_add->status->Required) { ?>
				elm = this.getElements("x" + infix + "_status");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->status->caption(), $todo_add->status->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->description->Required) { ?>
				elm = this.getElements("x" + infix + "_description");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->description->caption(), $todo_add->description->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->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", $todo_add->address->caption(), $todo_add->address->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->subject->Required) { ?>
				elm = this.getElements("x" + infix + "_subject");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->subject->caption(), $todo_add->subject->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->name->Required) { ?>
				elm = this.getElements("x" + infix + "_name");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->name->caption(), $todo_add->name->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->style->Required) { ?>
				elm = this.getElements("x" + infix + "_style");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->style->caption(), $todo_add->style->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->calendar->Required) { ?>
				elm = this.getElements("x" + infix + "_calendar");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->calendar->caption(), $todo_add->calendar->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($todo_add->start->Required) { ?>
				elm = this.getElements("x" + infix + "_start");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->start->caption(), $todo_add->start->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_start");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($todo_add->start->errorMessage()) ?>");
			<?php if ($todo_add->end->Required) { ?>
				elm = this.getElements("x" + infix + "_end");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $todo_add->end->caption(), $todo_add->end->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_end");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($todo_add->end->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
	ftodoadd.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
	ftodoadd.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $todo_add->showPageHeader(); ?>
<?php
$todo_add->showMessage();
?>
<form name="ftodoadd" id="ftodoadd" class="<?php echo $todo_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="todo">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$todo_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($todo_add->status->Visible) { // status ?>
	<div id="r_status" class="form-group row">
		<label id="elh_todo_status" for="x_status" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->status->caption() ?><?php echo $todo_add->status->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->status->cellAttributes() ?>>
<span id="el_todo_status">
<input type="text" data-table="todo" data-field="x_status" name="x_status" id="x_status" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->status->getPlaceHolder()) ?>" value="<?php echo $todo_add->status->EditValue ?>"<?php echo $todo_add->status->editAttributes() ?>>
</span>
<?php echo $todo_add->status->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->description->Visible) { // description ?>
	<div id="r_description" class="form-group row">
		<label id="elh_todo_description" for="x_description" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->description->caption() ?><?php echo $todo_add->description->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->description->cellAttributes() ?>>
<span id="el_todo_description">
<input type="text" data-table="todo" data-field="x_description" name="x_description" id="x_description" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->description->getPlaceHolder()) ?>" value="<?php echo $todo_add->description->EditValue ?>"<?php echo $todo_add->description->editAttributes() ?>>
</span>
<?php echo $todo_add->description->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->address->Visible) { // address ?>
	<div id="r_address" class="form-group row">
		<label id="elh_todo_address" for="x_address" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->address->caption() ?><?php echo $todo_add->address->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->address->cellAttributes() ?>>
<span id="el_todo_address">
<input type="text" data-table="todo" data-field="x_address" name="x_address" id="x_address" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->address->getPlaceHolder()) ?>" value="<?php echo $todo_add->address->EditValue ?>"<?php echo $todo_add->address->editAttributes() ?>>
</span>
<?php echo $todo_add->address->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->subject->Visible) { // subject ?>
	<div id="r_subject" class="form-group row">
		<label id="elh_todo_subject" for="x_subject" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->subject->caption() ?><?php echo $todo_add->subject->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->subject->cellAttributes() ?>>
<span id="el_todo_subject">
<input type="text" data-table="todo" data-field="x_subject" name="x_subject" id="x_subject" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->subject->getPlaceHolder()) ?>" value="<?php echo $todo_add->subject->EditValue ?>"<?php echo $todo_add->subject->editAttributes() ?>>
</span>
<?php echo $todo_add->subject->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->name->Visible) { // name ?>
	<div id="r_name" class="form-group row">
		<label id="elh_todo_name" for="x_name" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->name->caption() ?><?php echo $todo_add->name->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->name->cellAttributes() ?>>
<span id="el_todo_name">
<input type="text" data-table="todo" data-field="x_name" name="x_name" id="x_name" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->name->getPlaceHolder()) ?>" value="<?php echo $todo_add->name->EditValue ?>"<?php echo $todo_add->name->editAttributes() ?>>
</span>
<?php echo $todo_add->name->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->style->Visible) { // style ?>
	<div id="r_style" class="form-group row">
		<label id="elh_todo_style" for="x_style" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->style->caption() ?><?php echo $todo_add->style->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->style->cellAttributes() ?>>
<span id="el_todo_style">
<input type="text" data-table="todo" data-field="x_style" name="x_style" id="x_style" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->style->getPlaceHolder()) ?>" value="<?php echo $todo_add->style->EditValue ?>"<?php echo $todo_add->style->editAttributes() ?>>
</span>
<?php echo $todo_add->style->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->calendar->Visible) { // calendar ?>
	<div id="r_calendar" class="form-group row">
		<label id="elh_todo_calendar" for="x_calendar" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->calendar->caption() ?><?php echo $todo_add->calendar->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->calendar->cellAttributes() ?>>
<span id="el_todo_calendar">
<input type="text" data-table="todo" data-field="x_calendar" name="x_calendar" id="x_calendar" size="30" maxlength="30" placeholder="<?php echo HtmlEncode($todo_add->calendar->getPlaceHolder()) ?>" value="<?php echo $todo_add->calendar->EditValue ?>"<?php echo $todo_add->calendar->editAttributes() ?>>
</span>
<?php echo $todo_add->calendar->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->start->Visible) { // start ?>
	<div id="r_start" class="form-group row">
		<label id="elh_todo_start" for="x_start" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->start->caption() ?><?php echo $todo_add->start->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->start->cellAttributes() ?>>
<span id="el_todo_start">
<input type="text" data-table="todo" data-field="x_start" name="x_start" id="x_start" maxlength="19" placeholder="<?php echo HtmlEncode($todo_add->start->getPlaceHolder()) ?>" value="<?php echo $todo_add->start->EditValue ?>"<?php echo $todo_add->start->editAttributes() ?>>
<?php if (!$todo_add->start->ReadOnly && !$todo_add->start->Disabled && !isset($todo_add->start->EditAttrs["readonly"]) && !isset($todo_add->start->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["ftodoadd", "datetimepicker"], function() {
	ew.createDateTimePicker("ftodoadd", "x_start", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $todo_add->start->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($todo_add->end->Visible) { // end ?>
	<div id="r_end" class="form-group row">
		<label id="elh_todo_end" for="x_end" class="<?php echo $todo_add->LeftColumnClass ?>"><?php echo $todo_add->end->caption() ?><?php echo $todo_add->end->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $todo_add->RightColumnClass ?>"><div <?php echo $todo_add->end->cellAttributes() ?>>
<span id="el_todo_end">
<input type="text" data-table="todo" data-field="x_end" name="x_end" id="x_end" maxlength="19" placeholder="<?php echo HtmlEncode($todo_add->end->getPlaceHolder()) ?>" value="<?php echo $todo_add->end->EditValue ?>"<?php echo $todo_add->end->editAttributes() ?>>
<?php if (!$todo_add->end->ReadOnly && !$todo_add->end->Disabled && !isset($todo_add->end->EditAttrs["readonly"]) && !isset($todo_add->end->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["ftodoadd", "datetimepicker"], function() {
	ew.createDateTimePicker("ftodoadd", "x_end", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $todo_add->end->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$todo_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $todo_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 $todo_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$todo_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
$todo_add->terminate();
?>

Hry