<?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_add = new inspection_add();

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

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

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

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

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

	// Validate form
	finspectionadd.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_add->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_add->Date->caption(), $inspection_add->Date->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Date");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Date->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Time->caption(), $inspection_add->Time->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Time");
				if (elm && !ew.checkTime(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Time->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Hostel->caption(), $inspection_add->Hostel->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Floor->caption(), $inspection_add->Floor->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Room_No->caption(), $inspection_add->Room_No->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Room->caption(), $inspection_add->Room->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Bath_Room->caption(), $inspection_add->Bath_Room->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Wall->caption(), $inspection_add->Wall->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Updatedby->caption(), $inspection_add->Updatedby->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($inspection_add->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_add->Light->caption(), $inspection_add->Light->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Light");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Light->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Fan->caption(), $inspection_add->Fan->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Fan");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Fan->errorMessage()) ?>");
			<?php if ($inspection_add->_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_add->_Switch->caption(), $inspection_add->_Switch->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "__Switch");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->_Switch->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Door->caption(), $inspection_add->Door->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Door");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Door->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Window->caption(), $inspection_add->Window->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Window");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Window->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Furniture->caption(), $inspection_add->Furniture->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Furniture");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($inspection_add->Furniture->errorMessage()) ?>");
			<?php if ($inspection_add->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_add->Fur_remarks->caption(), $inspection_add->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
	finspectionadd.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
	finspectionadd.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $inspection_add->showPageHeader(); ?>
<?php
$inspection_add->showMessage();
?>
<form name="finspectionadd" id="finspectionadd" class="<?php echo $inspection_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="inspection">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$inspection_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($inspection_add->Date->Visible) { // Date ?>
	<div id="r_Date" class="form-group row">
		<label id="elh_inspection_Date" for="x_Date" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Date->caption() ?><?php echo $inspection_add->Date->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Date->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Date->EditValue ?>"<?php echo $inspection_add->Date->editAttributes() ?>>
<?php if (!$inspection_add->Date->ReadOnly && !$inspection_add->Date->Disabled && !isset($inspection_add->Date->EditAttrs["readonly"]) && !isset($inspection_add->Date->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["finspectionadd", "datetimepicker"], function() {
	ew.createDateTimePicker("finspectionadd", "x_Date", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $inspection_add->Date->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Time->Visible) { // Time ?>
	<div id="r_Time" class="form-group row">
		<label id="elh_inspection_Time" for="x_Time" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Time->caption() ?><?php echo $inspection_add->Time->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Time->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Time->EditValue ?>"<?php echo $inspection_add->Time->editAttributes() ?>>
</span>
<?php echo $inspection_add->Time->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Hostel->Visible) { // Hostel ?>
	<div id="r_Hostel" class="form-group row">
		<label id="elh_inspection_Hostel" for="x_Hostel" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Hostel->caption() ?><?php echo $inspection_add->Hostel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->Hostel->cellAttributes() ?>>
<span id="el_inspection_Hostel">
<?php $inspection_add->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_add->Hostel->displayValueSeparatorAttribute() ?>" id="x_Hostel" name="x_Hostel"<?php echo $inspection_add->Hostel->editAttributes() ?>>
			<?php echo $inspection_add->Hostel->selectOptionListHtml("x_Hostel") ?>
		</select>
</div>
<?php echo $inspection_add->Hostel->Lookup->getParamTag($inspection_add, "p_x_Hostel") ?>
</span>
<?php echo $inspection_add->Hostel->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Floor->Visible) { // Floor ?>
	<div id="r_Floor" class="form-group row">
		<label id="elh_inspection_Floor" for="x_Floor" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Floor->caption() ?><?php echo $inspection_add->Floor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->Floor->cellAttributes() ?>>
<span id="el_inspection_Floor">
<?php $inspection_add->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_add->Floor->displayValueSeparatorAttribute() ?>" id="x_Floor" name="x_Floor"<?php echo $inspection_add->Floor->editAttributes() ?>>
			<?php echo $inspection_add->Floor->selectOptionListHtml("x_Floor") ?>
		</select>
</div>
<?php echo $inspection_add->Floor->Lookup->getParamTag($inspection_add, "p_x_Floor") ?>
</span>
<?php echo $inspection_add->Floor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->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_add->LeftColumnClass ?>"><?php echo $inspection_add->Room_No->caption() ?><?php echo $inspection_add->Room_No->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Room_No->displayValueSeparatorAttribute() ?>" id="x_Room_No" name="x_Room_No"<?php echo $inspection_add->Room_No->editAttributes() ?>>
			<?php echo $inspection_add->Room_No->selectOptionListHtml("x_Room_No") ?>
		</select>
</div>
<?php echo $inspection_add->Room_No->Lookup->getParamTag($inspection_add, "p_x_Room_No") ?>
</span>
<?php echo $inspection_add->Room_No->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Room->Visible) { // Room ?>
	<div id="r_Room" class="form-group row">
		<label id="elh_inspection_Room" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Room->caption() ?><?php echo $inspection_add->Room->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Room->displayValueSeparatorAttribute() ?>" name="x_Room" id="x_Room" value="{value}"<?php echo $inspection_add->Room->editAttributes() ?>></div>
<div id="dsl_x_Room" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_add->Room->radioButtonListHtml(FALSE, "x_Room") ?>
</div></div>
</span>
<?php echo $inspection_add->Room->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Bath_Room->Visible) { // Bath_Room ?>
	<div id="r_Bath_Room" class="form-group row">
		<label id="elh_inspection_Bath_Room" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Bath_Room->caption() ?><?php echo $inspection_add->Bath_Room->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Bath_Room->displayValueSeparatorAttribute() ?>" name="x_Bath_Room" id="x_Bath_Room" value="{value}"<?php echo $inspection_add->Bath_Room->editAttributes() ?>></div>
<div id="dsl_x_Bath_Room" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_add->Bath_Room->radioButtonListHtml(FALSE, "x_Bath_Room") ?>
</div></div>
</span>
<?php echo $inspection_add->Bath_Room->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Wall->Visible) { // Wall ?>
	<div id="r_Wall" class="form-group row">
		<label id="elh_inspection_Wall" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Wall->caption() ?><?php echo $inspection_add->Wall->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Wall->displayValueSeparatorAttribute() ?>" name="x_Wall" id="x_Wall" value="{value}"<?php echo $inspection_add->Wall->editAttributes() ?>></div>
<div id="dsl_x_Wall" data-repeatcolumn="5" class="ew-item-list d-none"><div>
<?php echo $inspection_add->Wall->radioButtonListHtml(FALSE, "x_Wall") ?>
</div></div>
</span>
<?php echo $inspection_add->Wall->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Light->Visible) { // Light ?>
	<div id="r_Light" class="form-group row">
		<label id="elh_inspection_Light" for="x_Light" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Light->caption() ?><?php echo $inspection_add->Light->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Light->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Light->EditValue ?>"<?php echo $inspection_add->Light->editAttributes() ?>>
</span>
<?php echo $inspection_add->Light->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Fan->Visible) { // Fan ?>
	<div id="r_Fan" class="form-group row">
		<label id="elh_inspection_Fan" for="x_Fan" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Fan->caption() ?><?php echo $inspection_add->Fan->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Fan->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Fan->EditValue ?>"<?php echo $inspection_add->Fan->editAttributes() ?>>
</span>
<?php echo $inspection_add->Fan->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->_Switch->Visible) { // Switch ?>
	<div id="r__Switch" class="form-group row">
		<label id="elh_inspection__Switch" for="x__Switch" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->_Switch->caption() ?><?php echo $inspection_add->_Switch->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->_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_add->_Switch->getPlaceHolder()) ?>" value="<?php echo $inspection_add->_Switch->EditValue ?>"<?php echo $inspection_add->_Switch->editAttributes() ?>>
</span>
<?php echo $inspection_add->_Switch->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Door->Visible) { // Door ?>
	<div id="r_Door" class="form-group row">
		<label id="elh_inspection_Door" for="x_Door" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Door->caption() ?><?php echo $inspection_add->Door->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Door->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Door->EditValue ?>"<?php echo $inspection_add->Door->editAttributes() ?>>
</span>
<?php echo $inspection_add->Door->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Window->Visible) { // Window ?>
	<div id="r_Window" class="form-group row">
		<label id="elh_inspection_Window" for="x_Window" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Window->caption() ?><?php echo $inspection_add->Window->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Window->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Window->EditValue ?>"<?php echo $inspection_add->Window->editAttributes() ?>>
</span>
<?php echo $inspection_add->Window->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->Furniture->Visible) { // Furniture ?>
	<div id="r_Furniture" class="form-group row">
		<label id="elh_inspection_Furniture" for="x_Furniture" class="<?php echo $inspection_add->LeftColumnClass ?>"><?php echo $inspection_add->Furniture->caption() ?><?php echo $inspection_add->Furniture->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Furniture->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Furniture->EditValue ?>"<?php echo $inspection_add->Furniture->editAttributes() ?>>
</span>
<?php echo $inspection_add->Furniture->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($inspection_add->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_add->LeftColumnClass ?>"><?php echo $inspection_add->Fur_remarks->caption() ?><?php echo $inspection_add->Fur_remarks->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $inspection_add->RightColumnClass ?>"><div <?php echo $inspection_add->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_add->Fur_remarks->getPlaceHolder()) ?>" value="<?php echo $inspection_add->Fur_remarks->EditValue ?>"<?php echo $inspection_add->Fur_remarks->editAttributes() ?>>
</span>
<?php echo $inspection_add->Fur_remarks->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$inspection_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $inspection_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 $inspection_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$inspection_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
$inspection_add->terminate();
?>