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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$hostel_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $hostel_view->ExportOptions->render("body") ?>
<?php $hostel_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $hostel_view->showPageHeader(); ?>
<?php
$hostel_view->showMessage();
?>
<form name="fhostelview" id="fhostelview" 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="hostel">
<input type="hidden" name="modal" value="<?php echo (int)$hostel_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($hostel_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $hostel_view->TableLeftColumnClass ?>"><span id="elh_hostel_id"><?php echo $hostel_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $hostel_view->id->cellAttributes() ?>>
<span id="el_hostel_id">
<span<?php echo $hostel_view->id->viewAttributes() ?>><?php echo $hostel_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hostel_view->Hostel_Name->Visible) { // Hostel_Name ?>
	<tr id="r_Hostel_Name">
		<td class="<?php echo $hostel_view->TableLeftColumnClass ?>"><span id="elh_hostel_Hostel_Name"><?php echo $hostel_view->Hostel_Name->caption() ?></span></td>
		<td data-name="Hostel_Name" <?php echo $hostel_view->Hostel_Name->cellAttributes() ?>>
<span id="el_hostel_Hostel_Name">
<span<?php echo $hostel_view->Hostel_Name->viewAttributes() ?>><?php echo $hostel_view->Hostel_Name->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hostel_view->Fee->Visible) { // Fee ?>
	<tr id="r_Fee">
		<td class="<?php echo $hostel_view->TableLeftColumnClass ?>"><span id="elh_hostel_Fee"><?php echo $hostel_view->Fee->caption() ?></span></td>
		<td data-name="Fee" <?php echo $hostel_view->Fee->cellAttributes() ?>>
<span id="el_hostel_Fee">
<span<?php echo $hostel_view->Fee->viewAttributes() ?>><?php echo $hostel_view->Fee->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($hostel_view->Remarks->Visible) { // Remarks ?>
	<tr id="r_Remarks">
		<td class="<?php echo $hostel_view->TableLeftColumnClass ?>"><span id="elh_hostel_Remarks"><?php echo $hostel_view->Remarks->caption() ?></span></td>
		<td data-name="Remarks" <?php echo $hostel_view->Remarks->cellAttributes() ?>>
<span id="el_hostel_Remarks">
<span<?php echo $hostel_view->Remarks->viewAttributes() ?>><?php echo $hostel_view->Remarks->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$hostel_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$hostel_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
$hostel_view->terminate();
?>