<?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_view = new admission_view();

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

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

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

// Page Rendering event
$admission_view->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$admission_view->isExport()) { ?>
<script>
var fadmissionview, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "view";
	fadmissionview = currentForm = new ew.Form("fadmissionview", "view");
	loadjs.done("fadmissionview");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php } ?>
<?php if (!$admission_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $admission_view->ExportOptions->render("body") ?>
<?php $admission_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $admission_view->showPageHeader(); ?>
<?php
$admission_view->showMessage();
?>
<form name="fadmissionview" id="fadmissionview" class="form-inline ew-form ew-view-form" 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="modal" value="<?php echo (int)$admission_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($admission_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_id"><?php echo $admission_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $admission_view->id->cellAttributes() ?>>
<span id="el_admission_id">
<span<?php echo $admission_view->id->viewAttributes() ?>><?php echo $admission_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->AdmDate->Visible) { // AdmDate ?>
	<tr id="r_AdmDate">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_AdmDate"><?php echo $admission_view->AdmDate->caption() ?></span></td>
		<td data-name="AdmDate" <?php echo $admission_view->AdmDate->cellAttributes() ?>>
<span id="el_admission_AdmDate">
<span<?php echo $admission_view->AdmDate->viewAttributes() ?>><?php echo $admission_view->AdmDate->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->HostelID->Visible) { // HostelID ?>
	<tr id="r_HostelID">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_HostelID"><?php echo $admission_view->HostelID->caption() ?></span></td>
		<td data-name="HostelID" <?php echo $admission_view->HostelID->cellAttributes() ?>>
<span id="el_admission_HostelID">
<span<?php echo $admission_view->HostelID->viewAttributes() ?>><?php echo $admission_view->HostelID->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->RollNo->Visible) { // RollNo ?>
	<tr id="r_RollNo">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_RollNo"><?php echo $admission_view->RollNo->caption() ?></span></td>
		<td data-name="RollNo" <?php echo $admission_view->RollNo->cellAttributes() ?>>
<span id="el_admission_RollNo">
<span<?php echo $admission_view->RollNo->viewAttributes() ?>><?php echo $admission_view->RollNo->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Name->Visible) { // Name ?>
	<tr id="r_Name">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Name"><?php echo $admission_view->Name->caption() ?></span></td>
		<td data-name="Name" <?php echo $admission_view->Name->cellAttributes() ?>>
<span id="el_admission_Name">
<span<?php echo $admission_view->Name->viewAttributes() ?>><?php echo $admission_view->Name->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Hostel->Visible) { // Hostel ?>
	<tr id="r_Hostel">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Hostel"><?php echo $admission_view->Hostel->caption() ?></span></td>
		<td data-name="Hostel" <?php echo $admission_view->Hostel->cellAttributes() ?>>
<span id="el_admission_Hostel">
<span<?php echo $admission_view->Hostel->viewAttributes() ?>><?php echo $admission_view->Hostel->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Floor->Visible) { // Floor ?>
	<tr id="r_Floor">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Floor"><?php echo $admission_view->Floor->caption() ?></span></td>
		<td data-name="Floor" <?php echo $admission_view->Floor->cellAttributes() ?>>
<span id="el_admission_Floor">
<span<?php echo $admission_view->Floor->viewAttributes() ?>><?php echo $admission_view->Floor->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->RoomNo->Visible) { // RoomNo ?>
	<tr id="r_RoomNo">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_RoomNo"><?php echo $admission_view->RoomNo->caption() ?></span></td>
		<td data-name="RoomNo" <?php echo $admission_view->RoomNo->cellAttributes() ?>>
<span id="el_admission_RoomNo">
<span<?php echo $admission_view->RoomNo->viewAttributes() ?>><?php echo $admission_view->RoomNo->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Bed->Visible) { // Bed ?>
	<tr id="r_Bed">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Bed"><?php echo $admission_view->Bed->caption() ?></span></td>
		<td data-name="Bed" <?php echo $admission_view->Bed->cellAttributes() ?>>
<span id="el_admission_Bed">
<span<?php echo $admission_view->Bed->viewAttributes() ?>><?php echo $admission_view->Bed->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->AdmYear->Visible) { // AdmYear ?>
	<tr id="r_AdmYear">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_AdmYear"><?php echo $admission_view->AdmYear->caption() ?></span></td>
		<td data-name="AdmYear" <?php echo $admission_view->AdmYear->cellAttributes() ?>>
<span id="el_admission_AdmYear">
<span<?php echo $admission_view->AdmYear->viewAttributes() ?>><?php echo $admission_view->AdmYear->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Academic->Visible) { // Academic ?>
	<tr id="r_Academic">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Academic"><?php echo $admission_view->Academic->caption() ?></span></td>
		<td data-name="Academic" <?php echo $admission_view->Academic->cellAttributes() ?>>
<span id="el_admission_Academic">
<span<?php echo $admission_view->Academic->viewAttributes() ?>><?php echo $admission_view->Academic->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Updatedby->Visible) { // Updatedby ?>
	<tr id="r_Updatedby">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Updatedby"><?php echo $admission_view->Updatedby->caption() ?></span></td>
		<td data-name="Updatedby" <?php echo $admission_view->Updatedby->cellAttributes() ?>>
<span id="el_admission_Updatedby">
<span<?php echo $admission_view->Updatedby->viewAttributes() ?>><?php echo $admission_view->Updatedby->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Updated_Date->Visible) { // Updated_Date ?>
	<tr id="r_Updated_Date">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Updated_Date"><?php echo $admission_view->Updated_Date->caption() ?></span></td>
		<td data-name="Updated_Date" <?php echo $admission_view->Updated_Date->cellAttributes() ?>>
<span id="el_admission_Updated_Date">
<span<?php echo $admission_view->Updated_Date->viewAttributes() ?>><?php echo $admission_view->Updated_Date->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($admission_view->Status->Visible) { // Status ?>
	<tr id="r_Status">
		<td class="<?php echo $admission_view->TableLeftColumnClass ?>"><span id="elh_admission_Status"><?php echo $admission_view->Status->caption() ?></span></td>
		<td data-name="Status" <?php echo $admission_view->Status->cellAttributes() ?>>
<span id="el_admission_Status">
<span<?php echo $admission_view->Status->viewAttributes() ?>><?php echo $admission_view->Status->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php
	if (in_array("activity", explode(",", $admission->getCurrentDetailTable())) && $activity->DetailView) {
?>
<?php if ($admission->getCurrentDetailTable() != "") { ?>
<h4 class="ew-detail-caption"><?php echo $Language->tablePhrase("activity", "TblCaption") ?></h4>
<?php } ?>
<?php include_once "activitygrid.php" ?>
<?php } ?>
</form>
<?php
$admission_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$admission_view->isExport()) { ?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php } ?>
<?php include_once "footer.php"; ?>
<?php
$admission_view->terminate();
?>