<?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_edit = new admission_edit();

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

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

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

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

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

	// Validate form
	fadmissionedit.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 ($admission_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", $admission_edit->id->caption(), $admission_edit->id->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->AdmDate->Required) { ?>
				elm = this.getElements("x" + infix + "_AdmDate");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->AdmDate->caption(), $admission_edit->AdmDate->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_AdmDate");
				if (elm && !ew.checkDateDef(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_edit->AdmDate->errorMessage()) ?>");
			<?php if ($admission_edit->HostelID->Required) { ?>
				elm = this.getElements("x" + infix + "_HostelID");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->HostelID->caption(), $admission_edit->HostelID->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_HostelID");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_edit->HostelID->errorMessage()) ?>");
			<?php if ($admission_edit->RollNo->Required) { ?>
				elm = this.getElements("x" + infix + "_RollNo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->RollNo->caption(), $admission_edit->RollNo->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->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", $admission_edit->Name->caption(), $admission_edit->Name->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_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", $admission_edit->Hostel->caption(), $admission_edit->Hostel->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_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", $admission_edit->Floor->caption(), $admission_edit->Floor->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->RoomNo->Required) { ?>
				elm = this.getElements("x" + infix + "_RoomNo");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->RoomNo->caption(), $admission_edit->RoomNo->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->Bed->Required) { ?>
				elm = this.getElements("x" + infix + "_Bed");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->Bed->caption(), $admission_edit->Bed->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_Bed");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_edit->Bed->errorMessage()) ?>");
			<?php if ($admission_edit->AdmYear->Required) { ?>
				elm = this.getElements("x" + infix + "_AdmYear");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->AdmYear->caption(), $admission_edit->AdmYear->RequiredErrorMessage)) ?>");
			<?php } ?>
				elm = this.getElements("x" + infix + "_AdmYear");
				if (elm && !ew.checkInteger(elm.value))
					return this.onError(elm, "<?php echo JsEncode($admission_edit->AdmYear->errorMessage()) ?>");
			<?php if ($admission_edit->Academic->Required) { ?>
				elm = this.getElements("x" + infix + "_Academic");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->Academic->caption(), $admission_edit->Academic->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_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", $admission_edit->Updatedby->caption(), $admission_edit->Updatedby->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->Updated_Date->Required) { ?>
				elm = this.getElements("x" + infix + "_Updated_Date");
				if (elm && !ew.isHidden(elm) && !ew.hasValue(elm))
					return this.onError(elm, "<?php echo JsEncode(str_replace("%s", $admission_edit->Updated_Date->caption(), $admission_edit->Updated_Date->RequiredErrorMessage)) ?>");
			<?php } ?>
			<?php if ($admission_edit->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", $admission_edit->Status->caption(), $admission_edit->Status->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
	fadmissionedit.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
	fadmissionedit.validateRequired = <?php echo Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

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

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

});
</script>
<?php $admission_edit->showPageHeader(); ?>
<?php
$admission_edit->showMessage();
?>
<form name="fadmissionedit" id="fadmissionedit" class="<?php echo $admission_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="admission">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="modal" value="<?php echo (int)$admission_edit->IsModal ?>">
<div class="ew-edit-div"><!-- page* -->
<?php if ($admission_edit->id->Visible) { // id ?>
	<div id="r_id" class="form-group row">
		<label id="elh_admission_id" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->id->caption() ?><?php echo $admission_edit->id->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->id->cellAttributes() ?>>
<span id="el_admission_id">
<span<?php echo $admission_edit->id->viewAttributes() ?>><input type="text" readonly class="form-control-plaintext" value="<?php echo HtmlEncode(RemoveHtml($admission_edit->id->EditValue)) ?>"></span>
</span>
<input type="hidden" data-table="admission" data-field="x_id" name="x_id" id="x_id" value="<?php echo HtmlEncode($admission_edit->id->CurrentValue) ?>">
<?php echo $admission_edit->id->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->AdmDate->Visible) { // AdmDate ?>
	<div id="r_AdmDate" class="form-group row">
		<label id="elh_admission_AdmDate" for="x_AdmDate" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->AdmDate->caption() ?><?php echo $admission_edit->AdmDate->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->AdmDate->getPlaceHolder()) ?>" value="<?php echo $admission_edit->AdmDate->EditValue ?>"<?php echo $admission_edit->AdmDate->editAttributes() ?>>
<?php if (!$admission_edit->AdmDate->ReadOnly && !$admission_edit->AdmDate->Disabled && !isset($admission_edit->AdmDate->EditAttrs["readonly"]) && !isset($admission_edit->AdmDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fadmissionedit", "datetimepicker"], function() {
	ew.createDateTimePicker("fadmissionedit", "x_AdmDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $admission_edit->AdmDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->HostelID->Visible) { // HostelID ?>
	<div id="r_HostelID" class="form-group row">
		<label id="elh_admission_HostelID" for="x_HostelID" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->HostelID->caption() ?><?php echo $admission_edit->HostelID->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->HostelID->getPlaceHolder()) ?>" value="<?php echo $admission_edit->HostelID->EditValue ?>"<?php echo $admission_edit->HostelID->editAttributes() ?>>
</span>
<?php echo $admission_edit->HostelID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->RollNo->Visible) { // RollNo ?>
	<div id="r_RollNo" class="form-group row">
		<label id="elh_admission_RollNo" for="x_RollNo" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->RollNo->caption() ?><?php echo $admission_edit->RollNo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->RollNo->getPlaceHolder()) ?>" value="<?php echo $admission_edit->RollNo->EditValue ?>"<?php echo $admission_edit->RollNo->editAttributes() ?>>
</span>
<?php echo $admission_edit->RollNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Name->Visible) { // Name ?>
	<div id="r_Name" class="form-group row">
		<label id="elh_admission_Name" for="x_Name" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Name->caption() ?><?php echo $admission_edit->Name->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->Name->getPlaceHolder()) ?>" value="<?php echo $admission_edit->Name->EditValue ?>"<?php echo $admission_edit->Name->editAttributes() ?>>
</span>
<?php echo $admission_edit->Name->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Hostel->Visible) { // Hostel ?>
	<div id="r_Hostel" class="form-group row">
		<label id="elh_admission_Hostel" for="x_Hostel" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Hostel->caption() ?><?php echo $admission_edit->Hostel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->Hostel->cellAttributes() ?>>
<span id="el_admission_Hostel">
<?php $admission_edit->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_edit->Hostel->displayValueSeparatorAttribute() ?>" id="x_Hostel" name="x_Hostel"<?php echo $admission_edit->Hostel->editAttributes() ?>>
			<?php echo $admission_edit->Hostel->selectOptionListHtml("x_Hostel") ?>
		</select>
</div>
<?php echo $admission_edit->Hostel->Lookup->getParamTag($admission_edit, "p_x_Hostel") ?>
</span>
<?php echo $admission_edit->Hostel->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Floor->Visible) { // Floor ?>
	<div id="r_Floor" class="form-group row">
		<label id="elh_admission_Floor" for="x_Floor" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Floor->caption() ?><?php echo $admission_edit->Floor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->Floor->cellAttributes() ?>>
<span id="el_admission_Floor">
<?php $admission_edit->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_edit->Floor->displayValueSeparatorAttribute() ?>" id="x_Floor" name="x_Floor"<?php echo $admission_edit->Floor->editAttributes() ?>>
			<?php echo $admission_edit->Floor->selectOptionListHtml("x_Floor") ?>
		</select>
</div>
<?php echo $admission_edit->Floor->Lookup->getParamTag($admission_edit, "p_x_Floor") ?>
</span>
<?php echo $admission_edit->Floor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->RoomNo->Visible) { // RoomNo ?>
	<div id="r_RoomNo" class="form-group row">
		<label id="elh_admission_RoomNo" for="x_RoomNo" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->RoomNo->caption() ?><?php echo $admission_edit->RoomNo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->RoomNo->displayValueSeparatorAttribute() ?>" id="x_RoomNo" name="x_RoomNo"<?php echo $admission_edit->RoomNo->editAttributes() ?>>
			<?php echo $admission_edit->RoomNo->selectOptionListHtml("x_RoomNo") ?>
		</select>
</div>
<?php echo $admission_edit->RoomNo->Lookup->getParamTag($admission_edit, "p_x_RoomNo") ?>
</span>
<?php echo $admission_edit->RoomNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Bed->Visible) { // Bed ?>
	<div id="r_Bed" class="form-group row">
		<label id="elh_admission_Bed" for="x_Bed" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Bed->caption() ?><?php echo $admission_edit->Bed->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->Bed->getPlaceHolder()) ?>" value="<?php echo $admission_edit->Bed->EditValue ?>"<?php echo $admission_edit->Bed->editAttributes() ?>>
</span>
<?php echo $admission_edit->Bed->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->AdmYear->Visible) { // AdmYear ?>
	<div id="r_AdmYear" class="form-group row">
		<label id="elh_admission_AdmYear" for="x_AdmYear" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->AdmYear->caption() ?><?php echo $admission_edit->AdmYear->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->AdmYear->getPlaceHolder()) ?>" value="<?php echo $admission_edit->AdmYear->EditValue ?>"<?php echo $admission_edit->AdmYear->editAttributes() ?>>
</span>
<?php echo $admission_edit->AdmYear->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Academic->Visible) { // Academic ?>
	<div id="r_Academic" class="form-group row">
		<label id="elh_admission_Academic" for="x_Academic" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Academic->caption() ?><?php echo $admission_edit->Academic->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->Academic->displayValueSeparatorAttribute() ?>" id="x_Academic" name="x_Academic"<?php echo $admission_edit->Academic->editAttributes() ?>>
			<?php echo $admission_edit->Academic->selectOptionListHtml("x_Academic") ?>
		</select>
	<?php if (AllowAdd(CurrentProjectID() . "academic") && !$admission_edit->Academic->ReadOnly) { ?>
	<div class="input-group-append"><button type="button" class="btn btn-default ew-add-opt-btn" id="aol_x_Academic" title="<?php echo HtmlTitle($Language->phrase("AddLink")) . "&nbsp;" . $admission_edit->Academic->caption() ?>" data-title="<?php echo $admission_edit->Academic->caption() ?>" onclick="ew.addOptionDialogShow({lnk:this,el:'x_Academic',url:'academicaddopt.php'});"><i class="fas fa-plus ew-icon"></i></button></div>
	<?php } ?>
</div>
<?php echo $admission_edit->Academic->Lookup->getParamTag($admission_edit, "p_x_Academic") ?>
</span>
<?php echo $admission_edit->Academic->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_edit->Status->Visible) { // Status ?>
	<div id="r_Status" class="form-group row">
		<label id="elh_admission_Status" for="x_Status" class="<?php echo $admission_edit->LeftColumnClass ?>"><?php echo $admission_edit->Status->caption() ?><?php echo $admission_edit->Status->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_edit->RightColumnClass ?>"><div <?php echo $admission_edit->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_edit->Status->displayValueSeparatorAttribute() ?>" id="x_Status" name="x_Status"<?php echo $admission_edit->Status->editAttributes() ?>>
			<?php echo $admission_edit->Status->selectOptionListHtml("x_Status") ?>
		</select>
</div>
</span>
<?php echo $admission_edit->Status->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php
	if (in_array("activity", explode(",", $admission->getCurrentDetailTable())) && $activity->DetailEdit) {
?>
<?php if ($admission->getCurrentDetailTable() != "") { ?>
<h4 class="ew-detail-caption"><?php echo $Language->tablePhrase("activity", "TblCaption") ?></h4>
<?php } ?>
<?php include_once "activitygrid.php" ?>
<?php } ?>
<?php if (!$admission_edit->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $admission_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 $admission_edit->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$admission_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
$admission_edit->terminate();
?>