<?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_list = new inspection_list();

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

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

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

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

	// Form object
	currentPageID = ew.PAGE_ID = "list";
	finspectionlist = currentForm = new ew.Form("finspectionlist", "list");
	finspectionlist.formKeyCountName = '<?php echo $inspection_list->FormKeyCountName ?>';
	loadjs.done("finspectionlist");
});
var finspectionlistsrch;
loadjs.ready("head", function() {

	// Form object for search
	finspectionlistsrch = currentSearchForm = new ew.Form("finspectionlistsrch");

	// Dynamic selection lists
	// Filters

	finspectionlistsrch.filterList = <?php echo $inspection_list->getFilterList() ?>;
	loadjs.done("finspectionlistsrch");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php } ?>
<?php if (!$inspection_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($inspection_list->TotalRecords > 0 && $inspection_list->ExportOptions->visible()) { ?>
<?php $inspection_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($inspection_list->ImportOptions->visible()) { ?>
<?php $inspection_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($inspection_list->SearchOptions->visible()) { ?>
<?php $inspection_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($inspection_list->FilterOptions->visible()) { ?>
<?php $inspection_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$inspection_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$inspection_list->isExport() && !$inspection->CurrentAction) { ?>
<form name="finspectionlistsrch" id="finspectionlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="finspectionlistsrch-search-panel" class="<?php echo $inspection_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="inspection">
	<div class="ew-extended-search">
<div id="xsr_<?php echo $inspection_list->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo Config("TABLE_BASIC_SEARCH") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH") ?>" class="form-control" value="<?php echo HtmlEncode($inspection_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" value="<?php echo HtmlEncode($inspection_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $inspection_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($inspection_list->BasicSearch->getType() == "") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this);"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($inspection_list->BasicSearch->getType() == "=") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, '=');"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($inspection_list->BasicSearch->getType() == "AND") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'AND');"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($inspection_list->BasicSearch->getType() == "OR") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'OR');"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $inspection_list->showPageHeader(); ?>
<?php
$inspection_list->showMessage();
?>
<?php if ($inspection_list->TotalRecords > 0 || $inspection->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($inspection_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> inspection">
<?php if (!$inspection_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$inspection_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $inspection_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $inspection_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="finspectionlist" id="finspectionlist" class="form-inline ew-form ew-list-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">
<div id="gmp_inspection" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($inspection_list->TotalRecords > 0 || $inspection_list->isGridEdit()) { ?>
<table id="tbl_inspectionlist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$inspection->RowType = ROWTYPE_HEADER;

// Render list options
$inspection_list->renderListOptions();

// Render list options (header, left)
$inspection_list->ListOptions->render("header", "left");
?>
<?php if ($inspection_list->id->Visible) { // id ?>
	<?php if ($inspection_list->SortUrl($inspection_list->id) == "") { ?>
		<th data-name="id" class="<?php echo $inspection_list->id->headerCellClass() ?>"><div id="elh_inspection_id" class="inspection_id"><div class="ew-table-header-caption"><?php echo $inspection_list->id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id" class="<?php echo $inspection_list->id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->id) ?>', 1);"><div id="elh_inspection_id" class="inspection_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->id->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->id->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->id->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Date->Visible) { // Date ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Date) == "") { ?>
		<th data-name="Date" class="<?php echo $inspection_list->Date->headerCellClass() ?>"><div id="elh_inspection_Date" class="inspection_Date"><div class="ew-table-header-caption"><?php echo $inspection_list->Date->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Date" class="<?php echo $inspection_list->Date->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Date) ?>', 1);"><div id="elh_inspection_Date" class="inspection_Date">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Date->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Date->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Date->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Time->Visible) { // Time ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Time) == "") { ?>
		<th data-name="Time" class="<?php echo $inspection_list->Time->headerCellClass() ?>"><div id="elh_inspection_Time" class="inspection_Time"><div class="ew-table-header-caption"><?php echo $inspection_list->Time->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Time" class="<?php echo $inspection_list->Time->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Time) ?>', 1);"><div id="elh_inspection_Time" class="inspection_Time">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Time->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Time->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Time->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Hostel->Visible) { // Hostel ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Hostel) == "") { ?>
		<th data-name="Hostel" class="<?php echo $inspection_list->Hostel->headerCellClass() ?>"><div id="elh_inspection_Hostel" class="inspection_Hostel"><div class="ew-table-header-caption"><?php echo $inspection_list->Hostel->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Hostel" class="<?php echo $inspection_list->Hostel->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Hostel) ?>', 1);"><div id="elh_inspection_Hostel" class="inspection_Hostel">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Hostel->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Hostel->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Hostel->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Floor->Visible) { // Floor ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Floor) == "") { ?>
		<th data-name="Floor" class="<?php echo $inspection_list->Floor->headerCellClass() ?>"><div id="elh_inspection_Floor" class="inspection_Floor"><div class="ew-table-header-caption"><?php echo $inspection_list->Floor->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Floor" class="<?php echo $inspection_list->Floor->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Floor) ?>', 1);"><div id="elh_inspection_Floor" class="inspection_Floor">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Floor->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Floor->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Floor->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Room_No->Visible) { // Room_No ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Room_No) == "") { ?>
		<th data-name="Room_No" class="<?php echo $inspection_list->Room_No->headerCellClass() ?>"><div id="elh_inspection_Room_No" class="inspection_Room_No"><div class="ew-table-header-caption"><?php echo $inspection_list->Room_No->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Room_No" class="<?php echo $inspection_list->Room_No->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Room_No) ?>', 1);"><div id="elh_inspection_Room_No" class="inspection_Room_No">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Room_No->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Room_No->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Room_No->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Room->Visible) { // Room ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Room) == "") { ?>
		<th data-name="Room" class="<?php echo $inspection_list->Room->headerCellClass() ?>"><div id="elh_inspection_Room" class="inspection_Room"><div class="ew-table-header-caption"><?php echo $inspection_list->Room->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Room" class="<?php echo $inspection_list->Room->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Room) ?>', 1);"><div id="elh_inspection_Room" class="inspection_Room">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Room->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Room->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Room->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Bath_Room->Visible) { // Bath_Room ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Bath_Room) == "") { ?>
		<th data-name="Bath_Room" class="<?php echo $inspection_list->Bath_Room->headerCellClass() ?>"><div id="elh_inspection_Bath_Room" class="inspection_Bath_Room"><div class="ew-table-header-caption"><?php echo $inspection_list->Bath_Room->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Bath_Room" class="<?php echo $inspection_list->Bath_Room->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Bath_Room) ?>', 1);"><div id="elh_inspection_Bath_Room" class="inspection_Bath_Room">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Bath_Room->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Bath_Room->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Bath_Room->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Wall->Visible) { // Wall ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Wall) == "") { ?>
		<th data-name="Wall" class="<?php echo $inspection_list->Wall->headerCellClass() ?>"><div id="elh_inspection_Wall" class="inspection_Wall"><div class="ew-table-header-caption"><?php echo $inspection_list->Wall->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Wall" class="<?php echo $inspection_list->Wall->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Wall) ?>', 1);"><div id="elh_inspection_Wall" class="inspection_Wall">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Wall->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Wall->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Wall->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Updatedby->Visible) { // Updatedby ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Updatedby) == "") { ?>
		<th data-name="Updatedby" class="<?php echo $inspection_list->Updatedby->headerCellClass() ?>"><div id="elh_inspection_Updatedby" class="inspection_Updatedby"><div class="ew-table-header-caption"><?php echo $inspection_list->Updatedby->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Updatedby" class="<?php echo $inspection_list->Updatedby->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Updatedby) ?>', 1);"><div id="elh_inspection_Updatedby" class="inspection_Updatedby">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Updatedby->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Updatedby->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Updatedby->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Light->Visible) { // Light ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Light) == "") { ?>
		<th data-name="Light" class="<?php echo $inspection_list->Light->headerCellClass() ?>"><div id="elh_inspection_Light" class="inspection_Light"><div class="ew-table-header-caption"><?php echo $inspection_list->Light->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Light" class="<?php echo $inspection_list->Light->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Light) ?>', 1);"><div id="elh_inspection_Light" class="inspection_Light">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Light->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Light->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Light->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Fan->Visible) { // Fan ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Fan) == "") { ?>
		<th data-name="Fan" class="<?php echo $inspection_list->Fan->headerCellClass() ?>"><div id="elh_inspection_Fan" class="inspection_Fan"><div class="ew-table-header-caption"><?php echo $inspection_list->Fan->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Fan" class="<?php echo $inspection_list->Fan->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Fan) ?>', 1);"><div id="elh_inspection_Fan" class="inspection_Fan">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Fan->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Fan->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Fan->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->_Switch->Visible) { // Switch ?>
	<?php if ($inspection_list->SortUrl($inspection_list->_Switch) == "") { ?>
		<th data-name="_Switch" class="<?php echo $inspection_list->_Switch->headerCellClass() ?>"><div id="elh_inspection__Switch" class="inspection__Switch"><div class="ew-table-header-caption"><?php echo $inspection_list->_Switch->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="_Switch" class="<?php echo $inspection_list->_Switch->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->_Switch) ?>', 1);"><div id="elh_inspection__Switch" class="inspection__Switch">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->_Switch->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->_Switch->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->_Switch->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Door->Visible) { // Door ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Door) == "") { ?>
		<th data-name="Door" class="<?php echo $inspection_list->Door->headerCellClass() ?>"><div id="elh_inspection_Door" class="inspection_Door"><div class="ew-table-header-caption"><?php echo $inspection_list->Door->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Door" class="<?php echo $inspection_list->Door->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Door) ?>', 1);"><div id="elh_inspection_Door" class="inspection_Door">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Door->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Door->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Door->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Window->Visible) { // Window ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Window) == "") { ?>
		<th data-name="Window" class="<?php echo $inspection_list->Window->headerCellClass() ?>"><div id="elh_inspection_Window" class="inspection_Window"><div class="ew-table-header-caption"><?php echo $inspection_list->Window->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Window" class="<?php echo $inspection_list->Window->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Window) ?>', 1);"><div id="elh_inspection_Window" class="inspection_Window">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Window->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Window->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Window->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Furniture->Visible) { // Furniture ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Furniture) == "") { ?>
		<th data-name="Furniture" class="<?php echo $inspection_list->Furniture->headerCellClass() ?>"><div id="elh_inspection_Furniture" class="inspection_Furniture"><div class="ew-table-header-caption"><?php echo $inspection_list->Furniture->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Furniture" class="<?php echo $inspection_list->Furniture->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Furniture) ?>', 1);"><div id="elh_inspection_Furniture" class="inspection_Furniture">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Furniture->caption() ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Furniture->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Furniture->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($inspection_list->Fur_remarks->Visible) { // Fur_remarks ?>
	<?php if ($inspection_list->SortUrl($inspection_list->Fur_remarks) == "") { ?>
		<th data-name="Fur_remarks" class="<?php echo $inspection_list->Fur_remarks->headerCellClass() ?>"><div id="elh_inspection_Fur_remarks" class="inspection_Fur_remarks"><div class="ew-table-header-caption"><?php echo $inspection_list->Fur_remarks->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Fur_remarks" class="<?php echo $inspection_list->Fur_remarks->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $inspection_list->SortUrl($inspection_list->Fur_remarks) ?>', 1);"><div id="elh_inspection_Fur_remarks" class="inspection_Fur_remarks">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $inspection_list->Fur_remarks->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($inspection_list->Fur_remarks->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($inspection_list->Fur_remarks->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$inspection_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($inspection_list->ExportAll && $inspection_list->isExport()) {
	$inspection_list->StopRecord = $inspection_list->TotalRecords;
} else {

	// Set the last record to display
	if ($inspection_list->TotalRecords > $inspection_list->StartRecord + $inspection_list->DisplayRecords - 1)
		$inspection_list->StopRecord = $inspection_list->StartRecord + $inspection_list->DisplayRecords - 1;
	else
		$inspection_list->StopRecord = $inspection_list->TotalRecords;
}
$inspection_list->RecordCount = $inspection_list->StartRecord - 1;
if ($inspection_list->Recordset && !$inspection_list->Recordset->EOF) {
	$inspection_list->Recordset->moveFirst();
	$selectLimit = $inspection_list->UseSelectLimit;
	if (!$selectLimit && $inspection_list->StartRecord > 1)
		$inspection_list->Recordset->move($inspection_list->StartRecord - 1);
} elseif (!$inspection->AllowAddDeleteRow && $inspection_list->StopRecord == 0) {
	$inspection_list->StopRecord = $inspection->GridAddRowCount;
}

// Initialize aggregate
$inspection->RowType = ROWTYPE_AGGREGATEINIT;
$inspection->resetAttributes();
$inspection_list->renderRow();
while ($inspection_list->RecordCount < $inspection_list->StopRecord) {
	$inspection_list->RecordCount++;
	if ($inspection_list->RecordCount >= $inspection_list->StartRecord) {
		$inspection_list->RowCount++;

		// Set up key count
		$inspection_list->KeyCount = $inspection_list->RowIndex;

		// Init row class and style
		$inspection->resetAttributes();
		$inspection->CssClass = "";
		if ($inspection_list->isGridAdd()) {
		} else {
			$inspection_list->loadRowValues($inspection_list->Recordset); // Load row values
		}
		$inspection->RowType = ROWTYPE_VIEW; // Render view

		// Set up row id / data-rowindex
		$inspection->RowAttrs->merge(["data-rowindex" => $inspection_list->RowCount, "id" => "r" . $inspection_list->RowCount . "_inspection", "data-rowtype" => $inspection->RowType]);

		// Render row
		$inspection_list->renderRow();

		// Render list options
		$inspection_list->renderListOptions();
?>
	<tr <?php echo $inspection->rowAttributes() ?>>
<?php

// Render list options (body, left)
$inspection_list->ListOptions->render("body", "left", $inspection_list->RowCount);
?>
	<?php if ($inspection_list->id->Visible) { // id ?>
		<td data-name="id" <?php echo $inspection_list->id->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_id">
<span<?php echo $inspection_list->id->viewAttributes() ?>><?php echo $inspection_list->id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Date->Visible) { // Date ?>
		<td data-name="Date" <?php echo $inspection_list->Date->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Date">
<span<?php echo $inspection_list->Date->viewAttributes() ?>><?php echo $inspection_list->Date->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Time->Visible) { // Time ?>
		<td data-name="Time" <?php echo $inspection_list->Time->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Time">
<span<?php echo $inspection_list->Time->viewAttributes() ?>><?php echo $inspection_list->Time->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Hostel->Visible) { // Hostel ?>
		<td data-name="Hostel" <?php echo $inspection_list->Hostel->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Hostel">
<span<?php echo $inspection_list->Hostel->viewAttributes() ?>><?php echo $inspection_list->Hostel->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Floor->Visible) { // Floor ?>
		<td data-name="Floor" <?php echo $inspection_list->Floor->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Floor">
<span<?php echo $inspection_list->Floor->viewAttributes() ?>><?php echo $inspection_list->Floor->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Room_No->Visible) { // Room_No ?>
		<td data-name="Room_No" <?php echo $inspection_list->Room_No->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Room_No">
<span<?php echo $inspection_list->Room_No->viewAttributes() ?>><?php echo $inspection_list->Room_No->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Room->Visible) { // Room ?>
		<td data-name="Room" <?php echo $inspection_list->Room->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Room">
<span<?php echo $inspection_list->Room->viewAttributes() ?>><?php echo $inspection_list->Room->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Bath_Room->Visible) { // Bath_Room ?>
		<td data-name="Bath_Room" <?php echo $inspection_list->Bath_Room->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Bath_Room">
<span<?php echo $inspection_list->Bath_Room->viewAttributes() ?>><?php echo $inspection_list->Bath_Room->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Wall->Visible) { // Wall ?>
		<td data-name="Wall" <?php echo $inspection_list->Wall->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Wall">
<span<?php echo $inspection_list->Wall->viewAttributes() ?>><?php echo $inspection_list->Wall->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Updatedby->Visible) { // Updatedby ?>
		<td data-name="Updatedby" <?php echo $inspection_list->Updatedby->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Updatedby">
<span<?php echo $inspection_list->Updatedby->viewAttributes() ?>><?php echo $inspection_list->Updatedby->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Light->Visible) { // Light ?>
		<td data-name="Light" <?php echo $inspection_list->Light->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Light">
<span<?php echo $inspection_list->Light->viewAttributes() ?>><?php echo $inspection_list->Light->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Fan->Visible) { // Fan ?>
		<td data-name="Fan" <?php echo $inspection_list->Fan->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Fan">
<span<?php echo $inspection_list->Fan->viewAttributes() ?>><?php echo $inspection_list->Fan->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->_Switch->Visible) { // Switch ?>
		<td data-name="_Switch" <?php echo $inspection_list->_Switch->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection__Switch">
<span<?php echo $inspection_list->_Switch->viewAttributes() ?>><?php echo $inspection_list->_Switch->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Door->Visible) { // Door ?>
		<td data-name="Door" <?php echo $inspection_list->Door->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Door">
<span<?php echo $inspection_list->Door->viewAttributes() ?>><?php echo $inspection_list->Door->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Window->Visible) { // Window ?>
		<td data-name="Window" <?php echo $inspection_list->Window->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Window">
<span<?php echo $inspection_list->Window->viewAttributes() ?>><?php echo $inspection_list->Window->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Furniture->Visible) { // Furniture ?>
		<td data-name="Furniture" <?php echo $inspection_list->Furniture->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Furniture">
<span<?php echo $inspection_list->Furniture->viewAttributes() ?>><?php echo $inspection_list->Furniture->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($inspection_list->Fur_remarks->Visible) { // Fur_remarks ?>
		<td data-name="Fur_remarks" <?php echo $inspection_list->Fur_remarks->cellAttributes() ?>>
<span id="el<?php echo $inspection_list->RowCount ?>_inspection_Fur_remarks">
<span<?php echo $inspection_list->Fur_remarks->viewAttributes() ?>><?php echo $inspection_list->Fur_remarks->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$inspection_list->ListOptions->render("body", "right", $inspection_list->RowCount);
?>
	</tr>
<?php
	}
	if (!$inspection_list->isGridAdd())
		$inspection_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if (!$inspection->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($inspection_list->Recordset)
	$inspection_list->Recordset->Close();
?>
<?php if (!$inspection_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$inspection_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $inspection_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $inspection_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($inspection_list->TotalRecords == 0 && !$inspection->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $inspection_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$inspection_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$inspection_list->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_list->terminate();
?>