<?php
namespace PHPMaker2020\hostelmgr20;

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	session_start(); // Init session data

// Output buffering
ob_start();

// Autoload
include_once "autoload.php";
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$inspection_edit = new inspection_edit();

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

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

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

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

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

	// Validate form
	finspectionedit.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "F")
			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 ($inspection_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", $inspection_edit->id->caption(), $inspection_edit->id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Date->Required) { ?>
				elm = this.getElements("x" + infix + "_Date");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Date->caption(), $inspection_edit->Date->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Date");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Date->errorMessage()) ?>");
			<?php if ($inspection_edit->Time->Required) { ?>
				elm = this.getElements("x" + infix + "_Time");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Time->caption(), $inspection_edit->Time->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Time");
				if (elm && !ew.checkTime(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Time->errorMessage()) ?>");
			<?php if ($inspection_edit->Hostel->Required) { ?>
				elm = this.getElements("x" + infix + "_Hostel");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Hostel->caption(), $inspection_edit->Hostel->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Floor->Required) { ?>
				elm = this.getElements("x" + infix + "_Floor");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Floor->caption(), $inspection_edit->Floor->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Room_No->Required) { ?>
				elm = this.getElements("x" + infix + "_Room_No");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Room_No->caption(), $inspection_edit->Room_No->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Room->Required) { ?>
				elm = this.getElements("x" + infix + "_Room");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Room->caption(), $inspection_edit->Room->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Bath_Room->Required) { ?>
				elm = this.getElements("x" + infix + "_Bath_Room");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Bath_Room->caption(), $inspection_edit->Bath_Room->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Wall->Required) { ?>
				elm = this.getElements("x" + infix + "_Wall");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Wall->caption(), $inspection_edit->Wall->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Updatedby->Required) { ?>
				elm = this.getElements("x" + infix + "_Updatedby");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Updatedby->caption(), $inspection_edit->Updatedby->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_edit->Light->Required) { ?>
				elm = this.getElements("x" + infix + "_Light");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Light->caption(), $inspection_edit->Light->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Light");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Light->errorMessage()) ?>");
			<?php if ($inspection_edit->Fan->Required) { ?>
				elm = this.getElements("x" + infix + "_Fan");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Fan->caption(), $inspection_edit->Fan->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Fan");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Fan->errorMessage()) ?>");
			<?php if ($inspection_edit->_Switch->Required) { ?>
				elm = this.getElements("x" + infix + "__Switch");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->_Switch->caption(), $inspection_edit->_Switch->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "__Switch");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->_Switch->errorMessage()) ?>");
			<?php if ($inspection_edit->Door->Required) { ?>
				elm = this.getElements("x" + infix + "_Door");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Door->caption(), $inspection_edit->Door->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Door");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Door->errorMessage()) ?>");
			<?php if ($inspection_edit->Window->Required) { ?>
				elm = this.getElements("x" + infix + "_Window");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Window->caption(), $inspection_edit->Window->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Window");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Window->errorMessage()) ?>");
			<?php if ($inspection_edit->Furniture->Required) { ?>
				elm = this.getElements("x" + infix + "_Furniture");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Furniture->caption(), $inspection_edit->Furniture->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Furniture");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_edit->Furniture->errorMessage()) ?>");
			<?php if ($inspection_edit->Fur_remarks->Required) { ?>
				elm = this.getElements("x" + infix + "_Fur_remarks");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $inspection_edit->Fur_remarks->caption(), $inspection_edit->Fur_remarks->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
	finspectionedit.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
	finspectionedit.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

	// Dynamic selection lists
	finspectionedit.lists["x_Hostel"] = <?php echo $inspection_edit->Hostel->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Hostel"].options = <?php echo JsonEncode($inspection_edit->Hostel->lookupOptions()) ?>;
	finspectionedit.lists["x_Floor"] = <?php echo $inspection_edit->Floor->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Floor"].options = <?php echo JsonEncode($inspection_edit->Floor->lookupOptions()) ?>;
	finspectionedit.lists["x_Room_No"] = <?php echo $inspection_edit->Room_No->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Room_No"].options = <?php echo JsonEncode($inspection_edit->Room_No->lookupOptions()) ?>;
	finspectionedit.lists["x_Room"] = <?php echo $inspection_edit->Room->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Room"].options = <?php echo JsonEncode($inspection_edit->Room->options(FALSE, TRUE)) ?>;
	finspectionedit.lists["x_Bath_Room"] = <?php echo $inspection_edit->Bath_Room->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Bath_Room"].options = <?php echo JsonEncode($inspection_edit->Bath_Room->options(FALSE, TRUE)) ?>;
	finspectionedit.lists["x_Wall"] = <?php echo $inspection_edit->Wall->Lookup->toClientList($inspection_edit) ?>;
	finspectionedit.lists["x_Wall"].options = <?php echo JsonEncode($inspection_edit->Wall->options(FALSE, TRUE)) ?>;
	loadjs.done("finspectionedit");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $inspection_edit->showPageHeader(); ?>
<?php
$inspection_edit->showMessage();
?>
<form name="finspectionedit" id="finspectionedit" class="<?php echo $inspection_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="inspection">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$inspection_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($inspection_edit->id->Visible) { // id ?>
	<div id="r_id" class="form-group row">
		<label id="elh_inspection_id" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->id->caption() ?><?php echo $inspection_edit->id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->id->cellAttributes() ?>>
<span id="el_inspection_id">
<span<?php echo $inspection_edit->id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($inspection_edit->id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="inspection" data-field="x_id" name="x_id" id="x_id" value="<?php echo HtmlEncode($inspection_edit->id->CurrentValue) ?>">
<?php echo $inspection_edit->id->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Date->Visible) { // Date ?>
	<div id="r_Date" class="form-group row">
		<label id="elh_inspection_Date" for="x_Date" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Date->caption() ?><?php echo $inspection_edit->Date->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Date->cellAttributes() ?>>
<span id="el_inspection_Date">
<input type="text" data-table="inspection" data-field="x_Date" name="x_Date" id="x_Date" placeholder="<?php echo HtmlEncode($inspection_edit->Date->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Date->EditValue ?>"<?php echo $inspection_edit->Date->editAttributes() ?>>
<?php if (!$inspection_edit->Date->ReadOnly && !$inspection_edit->Date->Disabled && !isset($inspection_edit->Date->EditAttrs["readonly"]) && !isset($inspection_edit->Date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["finspectionedit", "datetimepicker"], function() {
	ew.createDateTimePicker("finspectionedit", "x_Date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $inspection_edit->Date->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Time->Visible) { // Time ?>
	<div id="r_Time" class="form-group row">
		<label id="elh_inspection_Time" for="x_Time" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Time->caption() ?><?php echo $inspection_edit->Time->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Time->cellAttributes() ?>>
<span id="el_inspection_Time">
<input type="text" data-table="inspection" data-field="x_Time" name="x_Time" id="x_Time" placeholder="<?php echo HtmlEncode($inspection_edit->Time->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Time->EditValue ?>"<?php echo $inspection_edit->Time->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Time->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Hostel->Visible) { // Hostel ?>
	<div id="r_Hostel" class="form-group row">
		<label id="elh_inspection_Hostel" for="x_Hostel" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Hostel->caption() ?><?php echo $inspection_edit->Hostel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Hostel->cellAttributes() ?>>
<span id="el_inspection_Hostel">
<?php $inspection_edit->Hostel->EditAttrs->prepend("onchange", "ew.updateOptions.call(this);"); ?>
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="inspection" data-field="x_Hostel" data-value-separator="<?php echo $inspection_edit->Hostel->displayValueSeparatorAttribute() ?>" id="x_Hostel" name="x_Hostel"<?php echo $inspection_edit->Hostel->editAttributes() ?>>
			<?php echo $inspection_edit->Hostel->selectOptionListHtml("x_Hostel") ?>
		</select>
</div>
<?php echo $inspection_edit->Hostel->Lookup->getParamTag($inspection_edit, "p_x_Hostel") ?>
</span>
<?php echo $inspection_edit->Hostel->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Floor->Visible) { // Floor ?>
	<div id="r_Floor" class="form-group row">
		<label id="elh_inspection_Floor" for="x_Floor" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Floor->caption() ?><?php echo $inspection_edit->Floor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Floor->cellAttributes() ?>>
<span id="el_inspection_Floor">
<?php $inspection_edit->Floor->EditAttrs->prepend("onchange", "ew.updateOptions.call(this);"); ?>
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="inspection" data-field="x_Floor" data-value-separator="<?php echo $inspection_edit->Floor->displayValueSeparatorAttribute() ?>" id="x_Floor" name="x_Floor"<?php echo $inspection_edit->Floor->editAttributes() ?>>
			<?php echo $inspection_edit->Floor->selectOptionListHtml("x_Floor") ?>
		</select>
</div>
<?php echo $inspection_edit->Floor->Lookup->getParamTag($inspection_edit, "p_x_Floor") ?>
</span>
<?php echo $inspection_edit->Floor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Room_No->Visible) { // Room_No ?>
	<div id="r_Room_No" class="form-group row">
		<label id="elh_inspection_Room_No" for="x_Room_No" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Room_No->caption() ?><?php echo $inspection_edit->Room_No->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Room_No->cellAttributes() ?>>
<span id="el_inspection_Room_No">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="inspection" data-field="x_Room_No" data-value-separator="<?php echo $inspection_edit->Room_No->displayValueSeparatorAttribute() ?>" id="x_Room_No" name="x_Room_No"<?php echo $inspection_edit->Room_No->editAttributes() ?>>
			<?php echo $inspection_edit->Room_No->selectOptionListHtml("x_Room_No") ?>
		</select>
</div>
<?php echo $inspection_edit->Room_No->Lookup->getParamTag($inspection_edit, "p_x_Room_No") ?>
</span>
<?php echo $inspection_edit->Room_No->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Room->Visible) { // Room ?>
	<div id="r_Room" class="form-group row">
		<label id="elh_inspection_Room" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Room->caption() ?><?php echo $inspection_edit->Room->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Room->cellAttributes() ?>>
<span id="el_inspection_Room">
<div id="tp_x_Room" class="ew-template"><input type="radio" class="custom-control-input" data-table="inspection" data-field="x_Room" data-value-separator="<?php echo $inspection_edit->Room->displayValueSeparatorAttribute() ?>" name="x_Room" id="x_Room" value="{value}"<?php echo $inspection_edit->Room->editAttributes() ?>></div>
<div id="dsl_x_Room" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_edit->Room->radioButtonListHtml(FALSE, "x_Room") ?>
</div></div>
</span>
<?php echo $inspection_edit->Room->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Bath_Room->Visible) { // Bath_Room ?>
	<div id="r_Bath_Room" class="form-group row">
		<label id="elh_inspection_Bath_Room" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Bath_Room->caption() ?><?php echo $inspection_edit->Bath_Room->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Bath_Room->cellAttributes() ?>>
<span id="el_inspection_Bath_Room">
<div id="tp_x_Bath_Room" class="ew-template"><input type="radio" class="custom-control-input" data-table="inspection" data-field="x_Bath_Room" data-value-separator="<?php echo $inspection_edit->Bath_Room->displayValueSeparatorAttribute() ?>" name="x_Bath_Room" id="x_Bath_Room" value="{value}"<?php echo $inspection_edit->Bath_Room->editAttributes() ?>></div>
<div id="dsl_x_Bath_Room" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_edit->Bath_Room->radioButtonListHtml(FALSE, "x_Bath_Room") ?>
</div></div>
</span>
<?php echo $inspection_edit->Bath_Room->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Wall->Visible) { // Wall ?>
	<div id="r_Wall" class="form-group row">
		<label id="elh_inspection_Wall" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Wall->caption() ?><?php echo $inspection_edit->Wall->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Wall->cellAttributes() ?>>
<span id="el_inspection_Wall">
<div id="tp_x_Wall" class="ew-template"><input type="radio" class="custom-control-input" data-table="inspection" data-field="x_Wall" data-value-separator="<?php echo $inspection_edit->Wall->displayValueSeparatorAttribute() ?>" name="x_Wall" id="x_Wall" value="{value}"<?php echo $inspection_edit->Wall->editAttributes() ?>></div>
<div id="dsl_x_Wall" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_edit->Wall->radioButtonListHtml(FALSE, "x_Wall") ?>
</div></div>
</span>
<?php echo $inspection_edit->Wall->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Light->Visible) { // Light ?>
	<div id="r_Light" class="form-group row">
		<label id="elh_inspection_Light" for="x_Light" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Light->caption() ?><?php echo $inspection_edit->Light->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Light->cellAttributes() ?>>
<span id="el_inspection_Light">
<input type="text" data-table="inspection" data-field="x_Light" name="x_Light" id="x_Light" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->Light->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Light->EditValue ?>"<?php echo $inspection_edit->Light->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Light->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Fan->Visible) { // Fan ?>
	<div id="r_Fan" class="form-group row">
		<label id="elh_inspection_Fan" for="x_Fan" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Fan->caption() ?><?php echo $inspection_edit->Fan->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Fan->cellAttributes() ?>>
<span id="el_inspection_Fan">
<input type="text" data-table="inspection" data-field="x_Fan" name="x_Fan" id="x_Fan" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->Fan->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Fan->EditValue ?>"<?php echo $inspection_edit->Fan->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Fan->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->_Switch->Visible) { // Switch ?>
	<div id="r__Switch" class="form-group row">
		<label id="elh_inspection__Switch" for="x__Switch" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->_Switch->caption() ?><?php echo $inspection_edit->_Switch->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->_Switch->cellAttributes() ?>>
<span id="el_inspection__Switch">
<input type="text" data-table="inspection" data-field="x__Switch" name="x__Switch" id="x__Switch" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->_Switch->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->_Switch->EditValue ?>"<?php echo $inspection_edit->_Switch->editAttributes() ?>>
</span>
<?php echo $inspection_edit->_Switch->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Door->Visible) { // Door ?>
	<div id="r_Door" class="form-group row">
		<label id="elh_inspection_Door" for="x_Door" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Door->caption() ?><?php echo $inspection_edit->Door->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Door->cellAttributes() ?>>
<span id="el_inspection_Door">
<input type="text" data-table="inspection" data-field="x_Door" name="x_Door" id="x_Door" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->Door->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Door->EditValue ?>"<?php echo $inspection_edit->Door->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Door->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Window->Visible) { // Window ?>
	<div id="r_Window" class="form-group row">
		<label id="elh_inspection_Window" for="x_Window" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Window->caption() ?><?php echo $inspection_edit->Window->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Window->cellAttributes() ?>>
<span id="el_inspection_Window">
<input type="text" data-table="inspection" data-field="x_Window" name="x_Window" id="x_Window" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->Window->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Window->EditValue ?>"<?php echo $inspection_edit->Window->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Window->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Furniture->Visible) { // Furniture ?>
	<div id="r_Furniture" class="form-group row">
		<label id="elh_inspection_Furniture" for="x_Furniture" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Furniture->caption() ?><?php echo $inspection_edit->Furniture->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Furniture->cellAttributes() ?>>
<span id="el_inspection_Furniture">
<input type="text" data-table="inspection" data-field="x_Furniture" name="x_Furniture" id="x_Furniture" size="30" maxlength="11" placeholder="<?php echo HtmlEncode($inspection_edit->Furniture->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Furniture->EditValue ?>"<?php echo $inspection_edit->Furniture->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Furniture->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_edit->Fur_remarks->Visible) { // Fur_remarks ?>
	<div id="r_Fur_remarks" class="form-group row">
		<label id="elh_inspection_Fur_remarks" for="x_Fur_remarks" class="<?php echo $inspection_edit->LeftColumnClass ?>"><?php echo $inspection_edit->Fur_remarks->caption() ?><?php echo $inspection_edit->Fur_remarks->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_edit->RightColumnClass ?>"><div <?php echo $inspection_edit->Fur_remarks->cellAttributes() ?>>
<span id="el_inspection_Fur_remarks">
<input type="text" data-table="inspection" data-field="x_Fur_remarks" name="x_Fur_remarks" id="x_Fur_remarks" size="30" maxlength="99" placeholder="<?php echo HtmlEncode($inspection_edit->Fur_remarks->getPlaceHolder()) ?>" value="<?php echo $inspection_edit->Fur_remarks->EditValue ?>"<?php echo $inspection_edit->Fur_remarks->editAttributes() ?>>
</span>
<?php echo $inspection_edit->Fur_remarks->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$inspection_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $inspection_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 $inspection_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$inspection_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
$inspection_edit->terminate();
?>