<?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
$admission_update = new admission_update();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "update";
	fadmissionupdate = currentForm = new ew.Form("fadmissionupdate", "update");

	// Validate form
	fadmissionupdate.validate = function() {
		if (!this.validateRequired)
			return true; // Ignore validation
		var $ = jQuery, fobj = this.getForm(), $fobj = $(fobj);
		if ($fobj.find("#confirm").val() == "F")
			return true;
		if (!ew.updateSelected(fobj)) {
			ew.alert(ew.language.phrase("NoFieldSelected"));
			return false;
		}
		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 ($admission_update->AdmDate->Required) { ?>
				elm = this.getElements("x" + infix + "_AdmDate");
				uelm = this.getElements("u" + infix + "_AdmDate");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->AdmDate->caption(), $admission_update->AdmDate->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_AdmDate");
				uelm = this.getElements("u" + infix + "_AdmDate");
				if (uelm && uelm.checked && elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_update->AdmDate->errorMessage()) ?>");
			<?php if ($admission_update->HostelID->Required) { ?>
				elm = this.getElements("x" + infix + "_HostelID");
				uelm = this.getElements("u" + infix + "_HostelID");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->HostelID->caption(), $admission_update->HostelID->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_HostelID");
				uelm = this.getElements("u" + infix + "_HostelID");
				if (uelm && uelm.checked && elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_update->HostelID->errorMessage()) ?>");
			<?php if ($admission_update->RollNo->Required) { ?>
				elm = this.getElements("x" + infix + "_RollNo");
				uelm = this.getElements("u" + infix + "_RollNo");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->RollNo->caption(), $admission_update->RollNo->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Name->Required) { ?>
				elm = this.getElements("x" + infix + "_Name");
				uelm = this.getElements("u" + infix + "_Name");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Name->caption(), $admission_update->Name->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Hostel->Required) { ?>
				elm = this.getElements("x" + infix + "_Hostel");
				uelm = this.getElements("u" + infix + "_Hostel");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Hostel->caption(), $admission_update->Hostel->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Floor->Required) { ?>
				elm = this.getElements("x" + infix + "_Floor");
				uelm = this.getElements("u" + infix + "_Floor");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Floor->caption(), $admission_update->Floor->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->RoomNo->Required) { ?>
				elm = this.getElements("x" + infix + "_RoomNo");
				uelm = this.getElements("u" + infix + "_RoomNo");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->RoomNo->caption(), $admission_update->RoomNo->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Bed->Required) { ?>
				elm = this.getElements("x" + infix + "_Bed");
				uelm = this.getElements("u" + infix + "_Bed");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Bed->caption(), $admission_update->Bed->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_Bed");
				uelm = this.getElements("u" + infix + "_Bed");
				if (uelm && uelm.checked && elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_update->Bed->errorMessage()) ?>");
			<?php if ($admission_update->AdmYear->Required) { ?>
				elm = this.getElements("x" + infix + "_AdmYear");
				uelm = this.getElements("u" + infix + "_AdmYear");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->AdmYear->caption(), $admission_update->AdmYear->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
				elm = this.getElements("x" + infix + "_AdmYear");
				uelm = this.getElements("u" + infix + "_AdmYear");
				if (uelm && uelm.checked && elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_update->AdmYear->errorMessage()) ?>");
			<?php if ($admission_update->Academic->Required) { ?>
				elm = this.getElements("x" + infix + "_Academic");
				uelm = this.getElements("u" + infix + "_Academic");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Academic->caption(), $admission_update->Academic->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Updatedby->Required) { ?>
				elm = this.getElements("x" + infix + "_Updatedby");
				uelm = this.getElements("u" + infix + "_Updatedby");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Updatedby->caption(), $admission_update->Updatedby->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Updated_Date->Required) { ?>
				elm = this.getElements("x" + infix + "_Updated_Date");
				uelm = this.getElements("u" + infix + "_Updated_Date");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Updated_Date->caption(), $admission_update->Updated_Date->RequiredErrorMessage)) ?>");
				}
			<?php } ?>
			<?php if ($admission_update->Status->Required) { ?>
				elm = this.getElements("x" + infix + "_Status");
				uelm = this.getElements("u" + infix + "_Status");
				if (uelm && uelm.checked) {
					if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
						return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_update->Status->caption(), $admission_update->Status->RequiredErrorMessage)) ?>");
				}
			<?php } ?>

				// Call Form_CustomValidate event
				if (!this.Form_CustomValidate(fobj))
					return false;
		}
		return true;
	}

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

	// Dynamic selection lists
	fadmissionupdate.lists["x_Hostel"] = <?php echo $admission_update->Hostel->Lookup->toClientList($admission_update) ?>;
	fadmissionupdate.lists["x_Hostel"].options = <?php echo JsonEncode($admission_update->Hostel->lookupOptions()) ?>;
	fadmissionupdate.lists["x_Floor"] = <?php echo $admission_update->Floor->Lookup->toClientList($admission_update) ?>;
	fadmissionupdate.lists["x_Floor"].options = <?php echo JsonEncode($admission_update->Floor->lookupOptions()) ?>;
	fadmissionupdate.lists["x_RoomNo"] = <?php echo $admission_update->RoomNo->Lookup->toClientList($admission_update) ?>;
	fadmissionupdate.lists["x_RoomNo"].options = <?php echo JsonEncode($admission_update->RoomNo->lookupOptions()) ?>;
	fadmissionupdate.lists["x_Academic"] = <?php echo $admission_update->Academic->Lookup->toClientList($admission_update) ?>;
	fadmissionupdate.lists["x_Academic"].options = <?php echo JsonEncode($admission_update->Academic->lookupOptions()) ?>;
	fadmissionupdate.lists["x_Status"] = <?php echo $admission_update->Status->Lookup->toClientList($admission_update) ?>;
	fadmissionupdate.lists["x_Status"].options = <?php echo JsonEncode($admission_update->Status->options(FALSE, TRUE)) ?>;
	loadjs.done("fadmissionupdate");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php $admission_update->showPageHeader(); ?>
<?php
$admission_update->showMessage();
?>
<form name="fadmissionupdate" id="fadmissionupdate" class="<?php echo $admission_update->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="admission">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$admission_update->IsModal ?>">
<?php foreach ($admission_update->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div id="tbl_admissionupdate" class="ew-update-div"><!-- page -->
	<div class="custom-control custom-checkbox">
		<input type="checkbox" class="custom-control-input" name="u" id="u" onclick="ew.selectAll(this);"><label class="custom-control-label" for="u"><?php echo $Language->phrase("UpdateSelectAll") ?></label>
	</div>
<?php if ($admission_update->AdmDate->Visible) { // AdmDate ?>
	<div id="r_AdmDate" class="form-group row">
		<label for="x_AdmDate" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_AdmDate" id="u_AdmDate" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->AdmDate->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_AdmDate"><?php echo $admission_update->AdmDate->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->AdmDate->cellAttributes() ?>>
<span id="el_admission_AdmDate">
<input type="text" data-table="admission" data-field="x_AdmDate" name="x_AdmDate" id="x_AdmDate" placeholder="<?php echo HtmlEncode($admission_update->AdmDate->getPlaceHolder()) ?>" value="<?php echo $admission_update->AdmDate->EditValue ?>"<?php echo $admission_update->AdmDate->editAttributes() ?>>
<?php if (!$admission_update->AdmDate->ReadOnly && !$admission_update->AdmDate->Disabled && !isset($admission_update->AdmDate->EditAttrs["readonly"]) && !isset($admission_update->AdmDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fadmissionupdate", "datetimepicker"], function() {
	ew.createDateTimePicker("fadmissionupdate", "x_AdmDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $admission_update->AdmDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->HostelID->Visible) { // HostelID ?>
	<div id="r_HostelID" class="form-group row">
		<label for="x_HostelID" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_HostelID" id="u_HostelID" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->HostelID->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_HostelID"><?php echo $admission_update->HostelID->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->HostelID->cellAttributes() ?>>
<span id="el_admission_HostelID">
<input type="text" data-table="admission" data-field="x_HostelID" name="x_HostelID" id="x_HostelID" size="30" placeholder="<?php echo HtmlEncode($admission_update->HostelID->getPlaceHolder()) ?>" value="<?php echo $admission_update->HostelID->EditValue ?>"<?php echo $admission_update->HostelID->editAttributes() ?>>
</span>
<?php echo $admission_update->HostelID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->RollNo->Visible) { // RollNo ?>
	<div id="r_RollNo" class="form-group row">
		<label for="x_RollNo" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_RollNo" id="u_RollNo" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->RollNo->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_RollNo"><?php echo $admission_update->RollNo->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->RollNo->cellAttributes() ?>>
<span id="el_admission_RollNo">
<input type="text" data-table="admission" data-field="x_RollNo" name="x_RollNo" id="x_RollNo" size="30" maxlength="12" placeholder="<?php echo HtmlEncode($admission_update->RollNo->getPlaceHolder()) ?>" value="<?php echo $admission_update->RollNo->EditValue ?>"<?php echo $admission_update->RollNo->editAttributes() ?>>
</span>
<?php echo $admission_update->RollNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Name->Visible) { // Name ?>
	<div id="r_Name" class="form-group row">
		<label for="x_Name" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Name" id="u_Name" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Name->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Name"><?php echo $admission_update->Name->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Name->cellAttributes() ?>>
<span id="el_admission_Name">
<input type="text" data-table="admission" data-field="x_Name" name="x_Name" id="x_Name" size="30" maxlength="55" placeholder="<?php echo HtmlEncode($admission_update->Name->getPlaceHolder()) ?>" value="<?php echo $admission_update->Name->EditValue ?>"<?php echo $admission_update->Name->editAttributes() ?>>
</span>
<?php echo $admission_update->Name->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Hostel->Visible) { // Hostel ?>
	<div id="r_Hostel" class="form-group row">
		<label for="x_Hostel" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Hostel" id="u_Hostel" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Hostel->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Hostel"><?php echo $admission_update->Hostel->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Hostel->cellAttributes() ?>>
<span id="el_admission_Hostel">
<?php $admission_update->Hostel->EditAttrs->prepend("onchange", "ew.updateOptions.call(this);"); ?>
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="admission" data-field="x_Hostel" data-value-separator="<?php echo $admission_update->Hostel->displayValueSeparatorAttribute() ?>" id="x_Hostel" name="x_Hostel"<?php echo $admission_update->Hostel->editAttributes() ?>>
			<?php echo $admission_update->Hostel->selectOptionListHtml("x_Hostel") ?>
		</select>
</div>
<?php echo $admission_update->Hostel->Lookup->getParamTag($admission_update, "p_x_Hostel") ?>
</span>
<?php echo $admission_update->Hostel->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Floor->Visible) { // Floor ?>
	<div id="r_Floor" class="form-group row">
		<label for="x_Floor" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Floor" id="u_Floor" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Floor->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Floor"><?php echo $admission_update->Floor->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Floor->cellAttributes() ?>>
<span id="el_admission_Floor">
<?php $admission_update->Floor->EditAttrs->prepend("onchange", "ew.updateOptions.call(this);"); ?>
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="admission" data-field="x_Floor" data-value-separator="<?php echo $admission_update->Floor->displayValueSeparatorAttribute() ?>" id="x_Floor" name="x_Floor"<?php echo $admission_update->Floor->editAttributes() ?>>
			<?php echo $admission_update->Floor->selectOptionListHtml("x_Floor") ?>
		</select>
</div>
<?php echo $admission_update->Floor->Lookup->getParamTag($admission_update, "p_x_Floor") ?>
</span>
<?php echo $admission_update->Floor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->RoomNo->Visible) { // RoomNo ?>
	<div id="r_RoomNo" class="form-group row">
		<label for="x_RoomNo" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_RoomNo" id="u_RoomNo" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->RoomNo->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_RoomNo"><?php echo $admission_update->RoomNo->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->RoomNo->cellAttributes() ?>>
<span id="el_admission_RoomNo">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="admission" data-field="x_RoomNo" data-value-separator="<?php echo $admission_update->RoomNo->displayValueSeparatorAttribute() ?>" id="x_RoomNo" name="x_RoomNo"<?php echo $admission_update->RoomNo->editAttributes() ?>>
			<?php echo $admission_update->RoomNo->selectOptionListHtml("x_RoomNo") ?>
		</select>
</div>
<?php echo $admission_update->RoomNo->Lookup->getParamTag($admission_update, "p_x_RoomNo") ?>
</span>
<?php echo $admission_update->RoomNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Bed->Visible) { // Bed ?>
	<div id="r_Bed" class="form-group row">
		<label for="x_Bed" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Bed" id="u_Bed" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Bed->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Bed"><?php echo $admission_update->Bed->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Bed->cellAttributes() ?>>
<span id="el_admission_Bed">
<input type="text" data-table="admission" data-field="x_Bed" name="x_Bed" id="x_Bed" size="30" placeholder="<?php echo HtmlEncode($admission_update->Bed->getPlaceHolder()) ?>" value="<?php echo $admission_update->Bed->EditValue ?>"<?php echo $admission_update->Bed->editAttributes() ?>>
</span>
<?php echo $admission_update->Bed->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->AdmYear->Visible) { // AdmYear ?>
	<div id="r_AdmYear" class="form-group row">
		<label for="x_AdmYear" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_AdmYear" id="u_AdmYear" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->AdmYear->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_AdmYear"><?php echo $admission_update->AdmYear->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->AdmYear->cellAttributes() ?>>
<span id="el_admission_AdmYear">
<input type="text" data-table="admission" data-field="x_AdmYear" name="x_AdmYear" id="x_AdmYear" size="30" placeholder="<?php echo HtmlEncode($admission_update->AdmYear->getPlaceHolder()) ?>" value="<?php echo $admission_update->AdmYear->EditValue ?>"<?php echo $admission_update->AdmYear->editAttributes() ?>>
</span>
<?php echo $admission_update->AdmYear->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Academic->Visible) { // Academic ?>
	<div id="r_Academic" class="form-group row">
		<label for="x_Academic" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Academic" id="u_Academic" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Academic->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Academic"><?php echo $admission_update->Academic->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Academic->cellAttributes() ?>>
<span id="el_admission_Academic">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="admission" data-field="x_Academic" data-value-separator="<?php echo $admission_update->Academic->displayValueSeparatorAttribute() ?>" id="x_Academic" name="x_Academic"<?php echo $admission_update->Academic->editAttributes() ?>>
			<?php echo $admission_update->Academic->selectOptionListHtml("x_Academic") ?>
		</select>
</div>
<?php echo $admission_update->Academic->Lookup->getParamTag($admission_update, "p_x_Academic") ?>
</span>
<?php echo $admission_update->Academic->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Updatedby->Visible) { // Updatedby ?>
	<div id="r_Updatedby" class="form-group row">
		<label for="x_Updatedby" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Updatedby" id="u_Updatedby" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Updatedby->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Updatedby"><?php echo $admission_update->Updatedby->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Updatedby->cellAttributes() ?>>
<?php echo $admission_update->Updatedby->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Updated_Date->Visible) { // Updated_Date ?>
	<div id="r_Updated_Date" class="form-group row">
		<label for="x_Updated_Date" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Updated_Date" id="u_Updated_Date" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Updated_Date->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Updated_Date"><?php echo $admission_update->Updated_Date->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Updated_Date->cellAttributes() ?>>
<?php echo $admission_update->Updated_Date->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_update->Status->Visible) { // Status ?>
	<div id="r_Status" class="form-group row">
		<label for="x_Status" class="<?php echo $admission_update->LeftColumnClass ?>"><div class="custom-control custom-checkbox">
<input type="checkbox" name="u_Status" id="u_Status" class="custom-control-input ew-multi-select" value="1"<?php echo $admission_update->Status->MultiUpdate == "1" ? " checked" : "" ?>>
<label class="custom-control-label" for="u_Status"><?php echo $admission_update->Status->caption() ?></label></div></label>
		<div class="<?php echo $admission_update->RightColumnClass ?>"><div <?php echo $admission_update->Status->cellAttributes() ?>>
<span id="el_admission_Status">
<div class="input-group">
	<select class="custom-select ew-custom-select" data-table="admission" data-field="x_Status" data-value-separator="<?php echo $admission_update->Status->displayValueSeparatorAttribute() ?>" id="x_Status" name="x_Status"<?php echo $admission_update->Status->editAttributes() ?>>
			<?php echo $admission_update->Status->selectOptionListHtml("x_Status") ?>
		</select>
</div>
</span>
<?php echo $admission_update->Status->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page -->
<?php if (!$admission_update->IsModal) { ?>
	<div class="form-group row"><!-- buttons .form-group -->
		<div class="<?php echo $admission_update->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("UpdateBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $admission_update->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
		</div><!-- /buttons offset -->
	</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$admission_update->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
$admission_update->terminate();
?>