<?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_delete = new inspection_delete();

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

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

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

// Page Rendering event
$inspection_delete->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var finspectiondelete, currentPageID;
loadjs.ready("head", function() {

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

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

});
</script>
<?php $inspection_delete->showPageHeader(); ?>
<?php
$inspection_delete->showMessage();
?>
<form name="finspectiondelete" id="finspectiondelete" class="form-inline ew-form ew-delete-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="action" id="action" value="delete">
<?php foreach ($inspection_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
	<thead>
	<tr class="ew-table-header">
<?php if ($inspection_delete->id->Visible) { // id ?>
		<th class="<?php echo $inspection_delete->id->headerCellClass() ?>"><span id="elh_inspection_id" class="inspection_id"><?php echo $inspection_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Date->Visible) { // Date ?>
		<th class="<?php echo $inspection_delete->Date->headerCellClass() ?>"><span id="elh_inspection_Date" class="inspection_Date"><?php echo $inspection_delete->Date->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Time->Visible) { // Time ?>
		<th class="<?php echo $inspection_delete->Time->headerCellClass() ?>"><span id="elh_inspection_Time" class="inspection_Time"><?php echo $inspection_delete->Time->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Hostel->Visible) { // Hostel ?>
		<th class="<?php echo $inspection_delete->Hostel->headerCellClass() ?>"><span id="elh_inspection_Hostel" class="inspection_Hostel"><?php echo $inspection_delete->Hostel->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Floor->Visible) { // Floor ?>
		<th class="<?php echo $inspection_delete->Floor->headerCellClass() ?>"><span id="elh_inspection_Floor" class="inspection_Floor"><?php echo $inspection_delete->Floor->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Room_No->Visible) { // Room_No ?>
		<th class="<?php echo $inspection_delete->Room_No->headerCellClass() ?>"><span id="elh_inspection_Room_No" class="inspection_Room_No"><?php echo $inspection_delete->Room_No->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Room->Visible) { // Room ?>
		<th class="<?php echo $inspection_delete->Room->headerCellClass() ?>"><span id="elh_inspection_Room" class="inspection_Room"><?php echo $inspection_delete->Room->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Bath_Room->Visible) { // Bath_Room ?>
		<th class="<?php echo $inspection_delete->Bath_Room->headerCellClass() ?>"><span id="elh_inspection_Bath_Room" class="inspection_Bath_Room"><?php echo $inspection_delete->Bath_Room->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Wall->Visible) { // Wall ?>
		<th class="<?php echo $inspection_delete->Wall->headerCellClass() ?>"><span id="elh_inspection_Wall" class="inspection_Wall"><?php echo $inspection_delete->Wall->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Updatedby->Visible) { // Updatedby ?>
		<th class="<?php echo $inspection_delete->Updatedby->headerCellClass() ?>"><span id="elh_inspection_Updatedby" class="inspection_Updatedby"><?php echo $inspection_delete->Updatedby->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Light->Visible) { // Light ?>
		<th class="<?php echo $inspection_delete->Light->headerCellClass() ?>"><span id="elh_inspection_Light" class="inspection_Light"><?php echo $inspection_delete->Light->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Fan->Visible) { // Fan ?>
		<th class="<?php echo $inspection_delete->Fan->headerCellClass() ?>"><span id="elh_inspection_Fan" class="inspection_Fan"><?php echo $inspection_delete->Fan->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->_Switch->Visible) { // Switch ?>
		<th class="<?php echo $inspection_delete->_Switch->headerCellClass() ?>"><span id="elh_inspection__Switch" class="inspection__Switch"><?php echo $inspection_delete->_Switch->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Door->Visible) { // Door ?>
		<th class="<?php echo $inspection_delete->Door->headerCellClass() ?>"><span id="elh_inspection_Door" class="inspection_Door"><?php echo $inspection_delete->Door->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Window->Visible) { // Window ?>
		<th class="<?php echo $inspection_delete->Window->headerCellClass() ?>"><span id="elh_inspection_Window" class="inspection_Window"><?php echo $inspection_delete->Window->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Furniture->Visible) { // Furniture ?>
		<th class="<?php echo $inspection_delete->Furniture->headerCellClass() ?>"><span id="elh_inspection_Furniture" class="inspection_Furniture"><?php echo $inspection_delete->Furniture->caption() ?></span></th>
<?php } ?>
<?php if ($inspection_delete->Fur_remarks->Visible) { // Fur_remarks ?>
		<th class="<?php echo $inspection_delete->Fur_remarks->headerCellClass() ?>"><span id="elh_inspection_Fur_remarks" class="inspection_Fur_remarks"><?php echo $inspection_delete->Fur_remarks->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$inspection_delete->RecordCount = 0;
$i = 0;
while (!$inspection_delete->Recordset->EOF) {
	$inspection_delete->RecordCount++;
	$inspection_delete->RowCount++;

	// Set row properties
	$inspection->resetAttributes();
	$inspection->RowType = ROWTYPE_VIEW; // View

	// Get the field contents
	$inspection_delete->loadRowValues($inspection_delete->Recordset);

	// Render row
	$inspection_delete->renderRow();
?>
	<tr <?php echo $inspection->rowAttributes() ?>>
<?php if ($inspection_delete->id->Visible) { // id ?>
		<td <?php echo $inspection_delete->id->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_id" class="inspection_id">
<span<?php echo $inspection_delete->id->viewAttributes() ?>><?php echo $inspection_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Date->Visible) { // Date ?>
		<td <?php echo $inspection_delete->Date->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Date" class="inspection_Date">
<span<?php echo $inspection_delete->Date->viewAttributes() ?>><?php echo $inspection_delete->Date->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Time->Visible) { // Time ?>
		<td <?php echo $inspection_delete->Time->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Time" class="inspection_Time">
<span<?php echo $inspection_delete->Time->viewAttributes() ?>><?php echo $inspection_delete->Time->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Hostel->Visible) { // Hostel ?>
		<td <?php echo $inspection_delete->Hostel->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Hostel" class="inspection_Hostel">
<span<?php echo $inspection_delete->Hostel->viewAttributes() ?>><?php echo $inspection_delete->Hostel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Floor->Visible) { // Floor ?>
		<td <?php echo $inspection_delete->Floor->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Floor" class="inspection_Floor">
<span<?php echo $inspection_delete->Floor->viewAttributes() ?>><?php echo $inspection_delete->Floor->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Room_No->Visible) { // Room_No ?>
		<td <?php echo $inspection_delete->Room_No->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Room_No" class="inspection_Room_No">
<span<?php echo $inspection_delete->Room_No->viewAttributes() ?>><?php echo $inspection_delete->Room_No->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Room->Visible) { // Room ?>
		<td <?php echo $inspection_delete->Room->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Room" class="inspection_Room">
<span<?php echo $inspection_delete->Room->viewAttributes() ?>><?php echo $inspection_delete->Room->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Bath_Room->Visible) { // Bath_Room ?>
		<td <?php echo $inspection_delete->Bath_Room->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Bath_Room" class="inspection_Bath_Room">
<span<?php echo $inspection_delete->Bath_Room->viewAttributes() ?>><?php echo $inspection_delete->Bath_Room->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Wall->Visible) { // Wall ?>
		<td <?php echo $inspection_delete->Wall->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Wall" class="inspection_Wall">
<span<?php echo $inspection_delete->Wall->viewAttributes() ?>><?php echo $inspection_delete->Wall->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Updatedby->Visible) { // Updatedby ?>
		<td <?php echo $inspection_delete->Updatedby->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Updatedby" class="inspection_Updatedby">
<span<?php echo $inspection_delete->Updatedby->viewAttributes() ?>><?php echo $inspection_delete->Updatedby->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Light->Visible) { // Light ?>
		<td <?php echo $inspection_delete->Light->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Light" class="inspection_Light">
<span<?php echo $inspection_delete->Light->viewAttributes() ?>><?php echo $inspection_delete->Light->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Fan->Visible) { // Fan ?>
		<td <?php echo $inspection_delete->Fan->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Fan" class="inspection_Fan">
<span<?php echo $inspection_delete->Fan->viewAttributes() ?>><?php echo $inspection_delete->Fan->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->_Switch->Visible) { // Switch ?>
		<td <?php echo $inspection_delete->_Switch->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection__Switch" class="inspection__Switch">
<span<?php echo $inspection_delete->_Switch->viewAttributes() ?>><?php echo $inspection_delete->_Switch->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Door->Visible) { // Door ?>
		<td <?php echo $inspection_delete->Door->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Door" class="inspection_Door">
<span<?php echo $inspection_delete->Door->viewAttributes() ?>><?php echo $inspection_delete->Door->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Window->Visible) { // Window ?>
		<td <?php echo $inspection_delete->Window->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Window" class="inspection_Window">
<span<?php echo $inspection_delete->Window->viewAttributes() ?>><?php echo $inspection_delete->Window->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Furniture->Visible) { // Furniture ?>
		<td <?php echo $inspection_delete->Furniture->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Furniture" class="inspection_Furniture">
<span<?php echo $inspection_delete->Furniture->viewAttributes() ?>><?php echo $inspection_delete->Furniture->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($inspection_delete->Fur_remarks->Visible) { // Fur_remarks ?>
		<td <?php echo $inspection_delete->Fur_remarks->cellAttributes() ?>>
<span id="el<?php echo $inspection_delete->RowCount ?>_inspection_Fur_remarks" class="inspection_Fur_remarks">
<span<?php echo $inspection_delete->Fur_remarks->viewAttributes() ?>><?php echo $inspection_delete->Fur_remarks->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$inspection_delete->Recordset->moveNext();
}
$inspection_delete->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $inspection_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$inspection_delete->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php include_once "footer.php"; ?>
<?php
$inspection_delete->terminate();
?>