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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$inspection_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $inspection_view->ExportOptions->render("body") ?>
<?php $inspection_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $inspection_view->showPageHeader(); ?>
<?php
$inspection_view->showMessage();
?>
<form name="finspectionview" id="finspectionview" 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="inspection">
<input type="hidden" name="modal" value="<?php echo (int)$inspection_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($inspection_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_id"><?php echo $inspection_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $inspection_view->id->cellAttributes() ?>>
<span id="el_inspection_id">
<span<?php echo $inspection_view->id->viewAttributes() ?>><?php echo $inspection_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Date->Visible) { // Date ?>
	<tr id="r_Date">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Date"><?php echo $inspection_view->Date->caption() ?></span></td>
		<td data-name="Date" <?php echo $inspection_view->Date->cellAttributes() ?>>
<span id="el_inspection_Date">
<span<?php echo $inspection_view->Date->viewAttributes() ?>><?php echo $inspection_view->Date->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Time->Visible) { // Time ?>
	<tr id="r_Time">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Time"><?php echo $inspection_view->Time->caption() ?></span></td>
		<td data-name="Time" <?php echo $inspection_view->Time->cellAttributes() ?>>
<span id="el_inspection_Time">
<span<?php echo $inspection_view->Time->viewAttributes() ?>><?php echo $inspection_view->Time->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Hostel->Visible) { // Hostel ?>
	<tr id="r_Hostel">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Hostel"><?php echo $inspection_view->Hostel->caption() ?></span></td>
		<td data-name="Hostel" <?php echo $inspection_view->Hostel->cellAttributes() ?>>
<span id="el_inspection_Hostel">
<span<?php echo $inspection_view->Hostel->viewAttributes() ?>><?php echo $inspection_view->Hostel->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Floor->Visible) { // Floor ?>
	<tr id="r_Floor">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Floor"><?php echo $inspection_view->Floor->caption() ?></span></td>
		<td data-name="Floor" <?php echo $inspection_view->Floor->cellAttributes() ?>>
<span id="el_inspection_Floor">
<span<?php echo $inspection_view->Floor->viewAttributes() ?>><?php echo $inspection_view->Floor->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Room_No->Visible) { // Room_No ?>
	<tr id="r_Room_No">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Room_No"><?php echo $inspection_view->Room_No->caption() ?></span></td>
		<td data-name="Room_No" <?php echo $inspection_view->Room_No->cellAttributes() ?>>
<span id="el_inspection_Room_No">
<span<?php echo $inspection_view->Room_No->viewAttributes() ?>><?php echo $inspection_view->Room_No->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Room->Visible) { // Room ?>
	<tr id="r_Room">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Room"><?php echo $inspection_view->Room->caption() ?></span></td>
		<td data-name="Room" <?php echo $inspection_view->Room->cellAttributes() ?>>
<span id="el_inspection_Room">
<span<?php echo $inspection_view->Room->viewAttributes() ?>><?php echo $inspection_view->Room->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Bath_Room->Visible) { // Bath_Room ?>
	<tr id="r_Bath_Room">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Bath_Room"><?php echo $inspection_view->Bath_Room->caption() ?></span></td>
		<td data-name="Bath_Room" <?php echo $inspection_view->Bath_Room->cellAttributes() ?>>
<span id="el_inspection_Bath_Room">
<span<?php echo $inspection_view->Bath_Room->viewAttributes() ?>><?php echo $inspection_view->Bath_Room->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Wall->Visible) { // Wall ?>
	<tr id="r_Wall">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Wall"><?php echo $inspection_view->Wall->caption() ?></span></td>
		<td data-name="Wall" <?php echo $inspection_view->Wall->cellAttributes() ?>>
<span id="el_inspection_Wall">
<span<?php echo $inspection_view->Wall->viewAttributes() ?>><?php echo $inspection_view->Wall->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Updatedby->Visible) { // Updatedby ?>
	<tr id="r_Updatedby">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Updatedby"><?php echo $inspection_view->Updatedby->caption() ?></span></td>
		<td data-name="Updatedby" <?php echo $inspection_view->Updatedby->cellAttributes() ?>>
<span id="el_inspection_Updatedby">
<span<?php echo $inspection_view->Updatedby->viewAttributes() ?>><?php echo $inspection_view->Updatedby->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Light->Visible) { // Light ?>
	<tr id="r_Light">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Light"><?php echo $inspection_view->Light->caption() ?></span></td>
		<td data-name="Light" <?php echo $inspection_view->Light->cellAttributes() ?>>
<span id="el_inspection_Light">
<span<?php echo $inspection_view->Light->viewAttributes() ?>><?php echo $inspection_view->Light->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Fan->Visible) { // Fan ?>
	<tr id="r_Fan">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Fan"><?php echo $inspection_view->Fan->caption() ?></span></td>
		<td data-name="Fan" <?php echo $inspection_view->Fan->cellAttributes() ?>>
<span id="el_inspection_Fan">
<span<?php echo $inspection_view->Fan->viewAttributes() ?>><?php echo $inspection_view->Fan->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->_Switch->Visible) { // Switch ?>
	<tr id="r__Switch">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection__Switch"><?php echo $inspection_view->_Switch->caption() ?></span></td>
		<td data-name="_Switch" <?php echo $inspection_view->_Switch->cellAttributes() ?>>
<span id="el_inspection__Switch">
<span<?php echo $inspection_view->_Switch->viewAttributes() ?>><?php echo $inspection_view->_Switch->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Door->Visible) { // Door ?>
	<tr id="r_Door">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Door"><?php echo $inspection_view->Door->caption() ?></span></td>
		<td data-name="Door" <?php echo $inspection_view->Door->cellAttributes() ?>>
<span id="el_inspection_Door">
<span<?php echo $inspection_view->Door->viewAttributes() ?>><?php echo $inspection_view->Door->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Window->Visible) { // Window ?>
	<tr id="r_Window">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Window"><?php echo $inspection_view->Window->caption() ?></span></td>
		<td data-name="Window" <?php echo $inspection_view->Window->cellAttributes() ?>>
<span id="el_inspection_Window">
<span<?php echo $inspection_view->Window->viewAttributes() ?>><?php echo $inspection_view->Window->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Furniture->Visible) { // Furniture ?>
	<tr id="r_Furniture">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Furniture"><?php echo $inspection_view->Furniture->caption() ?></span></td>
		<td data-name="Furniture" <?php echo $inspection_view->Furniture->cellAttributes() ?>>
<span id="el_inspection_Furniture">
<span<?php echo $inspection_view->Furniture->viewAttributes() ?>><?php echo $inspection_view->Furniture->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($inspection_view->Fur_remarks->Visible) { // Fur_remarks ?>
	<tr id="r_Fur_remarks">
		<td class="<?php echo $inspection_view->TableLeftColumnClass ?>"><span id="elh_inspection_Fur_remarks"><?php echo $inspection_view->Fur_remarks->caption() ?></span></td>
		<td data-name="Fur_remarks" <?php echo $inspection_view->Fur_remarks->cellAttributes() ?>>
<span id="el_inspection_Fur_remarks">
<span<?php echo $inspection_view->Fur_remarks->viewAttributes() ?>><?php echo $inspection_view->Fur_remarks->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$inspection_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$inspection_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
$inspection_view->terminate();
?>