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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$reswardens_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $reswardens_view->ExportOptions->render("body") ?>
<?php $reswardens_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $reswardens_view->showPageHeader(); ?>
<?php
$reswardens_view->showMessage();
?>
<form name="freswardensview" id="freswardensview" 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="reswardens">
<input type="hidden" name="modal" value="<?php echo (int)$reswardens_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($reswardens_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $reswardens_view->TableLeftColumnClass ?>"><span id="elh_reswardens_id"><?php echo $reswardens_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $reswardens_view->id->cellAttributes() ?>>
<span id="el_reswardens_id">
<span<?php echo $reswardens_view->id->viewAttributes() ?>><?php echo $reswardens_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($reswardens_view->Hostel->Visible) { // Hostel ?>
	<tr id="r_Hostel">
		<td class="<?php echo $reswardens_view->TableLeftColumnClass ?>"><span id="elh_reswardens_Hostel"><?php echo $reswardens_view->Hostel->caption() ?></span></td>
		<td data-name="Hostel" <?php echo $reswardens_view->Hostel->cellAttributes() ?>>
<span id="el_reswardens_Hostel">
<span<?php echo $reswardens_view->Hostel->viewAttributes() ?>><?php echo $reswardens_view->Hostel->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($reswardens_view->Floor->Visible) { // Floor ?>
	<tr id="r_Floor">
		<td class="<?php echo $reswardens_view->TableLeftColumnClass ?>"><span id="elh_reswardens_Floor"><?php echo $reswardens_view->Floor->caption() ?></span></td>
		<td data-name="Floor" <?php echo $reswardens_view->Floor->cellAttributes() ?>>
<span id="el_reswardens_Floor">
<span<?php echo $reswardens_view->Floor->viewAttributes() ?>><?php echo $reswardens_view->Floor->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($reswardens_view->ResWarden->Visible) { // ResWarden ?>
	<tr id="r_ResWarden">
		<td class="<?php echo $reswardens_view->TableLeftColumnClass ?>"><span id="elh_reswardens_ResWarden"><?php echo $reswardens_view->ResWarden->caption() ?></span></td>
		<td data-name="ResWarden" <?php echo $reswardens_view->ResWarden->cellAttributes() ?>>
<span id="el_reswardens_ResWarden">
<span<?php echo $reswardens_view->ResWarden->viewAttributes() ?>><?php echo $reswardens_view->ResWarden->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$reswardens_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$reswardens_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
$reswardens_view->terminate();
?>