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

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

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

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

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

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

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

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

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

});
</script>
<?php $admission_add->showPageHeader(); ?>
<?php
$admission_add->showMessage();
?>
<form name="fadmissionadd" id="fadmissionadd" class="<?php echo $admission_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="admission">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?php echo (int)$admission_add->IsModal ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($admission_add->AdmDate->Visible) { // AdmDate ?>
	<div id="r_AdmDate" class="form-group row">
		<label id="elh_admission_AdmDate" for="x_AdmDate" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->AdmDate->caption() ?><?php echo $admission_add->AdmDate->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->AdmDate->getPlaceHolder()) ?>" value="<?php echo $admission_add->AdmDate->EditValue ?>"<?php echo $admission_add->AdmDate->editAttributes() ?>>
<?php if (!$admission_add->AdmDate->ReadOnly && !$admission_add->AdmDate->Disabled && !isset($admission_add->AdmDate->EditAttrs["readonly"]) && !isset($admission_add->AdmDate->EditAttrs["disabled"])) { ?>
<script>
loadjs.ready(["fadmissionadd", "datetimepicker"], function() {
	ew.createDateTimePicker("fadmissionadd", "x_AdmDate", {"ignoreReadonly":true,"useCurrent":false,"format":0});
});
</script>
<?php } ?>
</span>
<?php echo $admission_add->AdmDate->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->HostelID->Visible) { // HostelID ?>
	<div id="r_HostelID" class="form-group row">
		<label id="elh_admission_HostelID" for="x_HostelID" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->HostelID->caption() ?><?php echo $admission_add->HostelID->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->HostelID->getPlaceHolder()) ?>" value="<?php echo $admission_add->HostelID->EditValue ?>"<?php echo $admission_add->HostelID->editAttributes() ?>>
</span>
<?php echo $admission_add->HostelID->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->RollNo->Visible) { // RollNo ?>
	<div id="r_RollNo" class="form-group row">
		<label id="elh_admission_RollNo" for="x_RollNo" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->RollNo->caption() ?><?php echo $admission_add->RollNo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->RollNo->getPlaceHolder()) ?>" value="<?php echo $admission_add->RollNo->EditValue ?>"<?php echo $admission_add->RollNo->editAttributes() ?>>
</span>
<?php echo $admission_add->RollNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Name->Visible) { // Name ?>
	<div id="r_Name" class="form-group row">
		<label id="elh_admission_Name" for="x_Name" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Name->caption() ?><?php echo $admission_add->Name->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->Name->getPlaceHolder()) ?>" value="<?php echo $admission_add->Name->EditValue ?>"<?php echo $admission_add->Name->editAttributes() ?>>
</span>
<?php echo $admission_add->Name->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Hostel->Visible) { // Hostel ?>
	<div id="r_Hostel" class="form-group row">
		<label id="elh_admission_Hostel" for="x_Hostel" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Hostel->caption() ?><?php echo $admission_add->Hostel->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->Hostel->cellAttributes() ?>>
<span id="el_admission_Hostel">
<?php $admission_add->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_add->Hostel->displayValueSeparatorAttribute() ?>" id="x_Hostel" name="x_Hostel"<?php echo $admission_add->Hostel->editAttributes() ?>>
			<?php echo $admission_add->Hostel->selectOptionListHtml("x_Hostel") ?>
		</select>
</div>
<?php echo $admission_add->Hostel->Lookup->getParamTag($admission_add, "p_x_Hostel") ?>
</span>
<?php echo $admission_add->Hostel->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Floor->Visible) { // Floor ?>
	<div id="r_Floor" class="form-group row">
		<label id="elh_admission_Floor" for="x_Floor" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Floor->caption() ?><?php echo $admission_add->Floor->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->Floor->cellAttributes() ?>>
<span id="el_admission_Floor">
<?php $admission_add->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_add->Floor->displayValueSeparatorAttribute() ?>" id="x_Floor" name="x_Floor"<?php echo $admission_add->Floor->editAttributes() ?>>
			<?php echo $admission_add->Floor->selectOptionListHtml("x_Floor") ?>
		</select>
</div>
<?php echo $admission_add->Floor->Lookup->getParamTag($admission_add, "p_x_Floor") ?>
</span>
<?php echo $admission_add->Floor->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->RoomNo->Visible) { // RoomNo ?>
	<div id="r_RoomNo" class="form-group row">
		<label id="elh_admission_RoomNo" for="x_RoomNo" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->RoomNo->caption() ?><?php echo $admission_add->RoomNo->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->RoomNo->displayValueSeparatorAttribute() ?>" id="x_RoomNo" name="x_RoomNo"<?php echo $admission_add->RoomNo->editAttributes() ?>>
			<?php echo $admission_add->RoomNo->selectOptionListHtml("x_RoomNo") ?>
		</select>
</div>
<?php echo $admission_add->RoomNo->Lookup->getParamTag($admission_add, "p_x_RoomNo") ?>
</span>
<?php echo $admission_add->RoomNo->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Bed->Visible) { // Bed ?>
	<div id="r_Bed" class="form-group row">
		<label id="elh_admission_Bed" for="x_Bed" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Bed->caption() ?><?php echo $admission_add->Bed->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->Bed->getPlaceHolder()) ?>" value="<?php echo $admission_add->Bed->EditValue ?>"<?php echo $admission_add->Bed->editAttributes() ?>>
</span>
<?php echo $admission_add->Bed->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->AdmYear->Visible) { // AdmYear ?>
	<div id="r_AdmYear" class="form-group row">
		<label id="elh_admission_AdmYear" for="x_AdmYear" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->AdmYear->caption() ?><?php echo $admission_add->AdmYear->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->AdmYear->getPlaceHolder()) ?>" value="<?php echo $admission_add->AdmYear->EditValue ?>"<?php echo $admission_add->AdmYear->editAttributes() ?>>
</span>
<?php echo $admission_add->AdmYear->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Academic->Visible) { // Academic ?>
	<div id="r_Academic" class="form-group row">
		<label id="elh_admission_Academic" for="x_Academic" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Academic->caption() ?><?php echo $admission_add->Academic->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->Academic->displayValueSeparatorAttribute() ?>" id="x_Academic" name="x_Academic"<?php echo $admission_add->Academic->editAttributes() ?>>
			<?php echo $admission_add->Academic->selectOptionListHtml("x_Academic") ?>
		</select>
	<?php if (AllowAdd(CurrentProjectID() . "academic") && !$admission_add->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_add->Academic->caption() ?>" data-title="<?php echo $admission_add->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_add->Academic->Lookup->getParamTag($admission_add, "p_x_Academic") ?>
</span>
<?php echo $admission_add->Academic->CustomMsg ?></div></div>
	</div>
<?php } ?>
<?php if ($admission_add->Status->Visible) { // Status ?>
	<div id="r_Status" class="form-group row">
		<label id="elh_admission_Status" for="x_Status" class="<?php echo $admission_add->LeftColumnClass ?>"><?php echo $admission_add->Status->caption() ?><?php echo $admission_add->Status->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
		<div class="<?php echo $admission_add->RightColumnClass ?>"><div <?php echo $admission_add->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_add->Status->displayValueSeparatorAttribute() ?>" id="x_Status" name="x_Status"<?php echo $admission_add->Status->editAttributes() ?>>
			<?php echo $admission_add->Status->selectOptionListHtml("x_Status") ?>
		</select>
</div>
</span>
<?php echo $admission_add->Status->CustomMsg ?></div></div>
	</div>
<?php } ?>
</div><!-- /page* -->
<?php
	if (in_array("activity", explode(",", $admission->getCurrentDetailTable())) && $activity->DetailAdd) {
?>
<?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_add->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
	<div class="<?php echo $admission_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 $admission_add->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
	</div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$admission_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
$admission_add->terminate();
?>