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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$rooms_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $rooms_view->ExportOptions->render("body") ?>
<?php $rooms_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $rooms_view->showPageHeader(); ?>
<?php
$rooms_view->showMessage();
?>
<form name="froomsview" id="froomsview" 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="rooms">
<input type="hidden" name="modal" value="<?php echo (int)$rooms_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($rooms_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_id"><?php echo $rooms_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $rooms_view->id->cellAttributes() ?>>
<span id="el_rooms_id">
<span<?php echo $rooms_view->id->viewAttributes() ?>><?php echo $rooms_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Hostel_Name->Visible) { // Hostel_Name ?>
	<tr id="r_Hostel_Name">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Hostel_Name"><?php echo $rooms_view->Hostel_Name->caption() ?></span></td>
		<td data-name="Hostel_Name" <?php echo $rooms_view->Hostel_Name->cellAttributes() ?>>
<span id="el_rooms_Hostel_Name">
<span<?php echo $rooms_view->Hostel_Name->viewAttributes() ?>><?php echo $rooms_view->Hostel_Name->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Floor->Visible) { // Floor ?>
	<tr id="r_Floor">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Floor"><?php echo $rooms_view->Floor->caption() ?></span></td>
		<td data-name="Floor" <?php echo $rooms_view->Floor->cellAttributes() ?>>
<span id="el_rooms_Floor">
<span<?php echo $rooms_view->Floor->viewAttributes() ?>><?php echo $rooms_view->Floor->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Room_No->Visible) { // Room_No ?>
	<tr id="r_Room_No">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Room_No"><?php echo $rooms_view->Room_No->caption() ?></span></td>
		<td data-name="Room_No" <?php echo $rooms_view->Room_No->cellAttributes() ?>>
<span id="el_rooms_Room_No">
<span<?php echo $rooms_view->Room_No->viewAttributes() ?>><?php echo $rooms_view->Room_No->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Bed->Visible) { // Bed ?>
	<tr id="r_Bed">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Bed"><?php echo $rooms_view->Bed->caption() ?></span></td>
		<td data-name="Bed" <?php echo $rooms_view->Bed->cellAttributes() ?>>
<span id="el_rooms_Bed">
<span<?php echo $rooms_view->Bed->viewAttributes() ?>><?php echo $rooms_view->Bed->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Filled->Visible) { // Filled ?>
	<tr id="r_Filled">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Filled"><?php echo $rooms_view->Filled->caption() ?></span></td>
		<td data-name="Filled" <?php echo $rooms_view->Filled->cellAttributes() ?>>
<span id="el_rooms_Filled">
<span<?php echo $rooms_view->Filled->viewAttributes() ?>><?php echo $rooms_view->Filled->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Vacant->Visible) { // Vacant ?>
	<tr id="r_Vacant">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Vacant"><?php echo $rooms_view->Vacant->caption() ?></span></td>
		<td data-name="Vacant" <?php echo $rooms_view->Vacant->cellAttributes() ?>>
<span id="el_rooms_Vacant">
<span<?php echo $rooms_view->Vacant->viewAttributes() ?>><?php echo $rooms_view->Vacant->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($rooms_view->Status->Visible) { // Status ?>
	<tr id="r_Status">
		<td class="<?php echo $rooms_view->TableLeftColumnClass ?>"><span id="elh_rooms_Status"><?php echo $rooms_view->Status->caption() ?></span></td>
		<td data-name="Status" <?php echo $rooms_view->Status->cellAttributes() ?>>
<span id="el_rooms_Status">
<span<?php echo $rooms_view->Status->viewAttributes() ?>><?php echo $rooms_view->Status->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$rooms_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$rooms_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
$rooms_view->terminate();
?>