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

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

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

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

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

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

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

});
</script>
<?php $reswardens_delete->showPageHeader(); ?>
<?php
$reswardens_delete->showMessage();
?>
<form name="freswardensdelete" id="freswardensdelete" 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="reswardens">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($reswardens_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 ($reswardens_delete->id->Visible) { // id ?>
		<th class="<?php echo $reswardens_delete->id->headerCellClass() ?>"><span id="elh_reswardens_id" class="reswardens_id"><?php echo $reswardens_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($reswardens_delete->Hostel->Visible) { // Hostel ?>
		<th class="<?php echo $reswardens_delete->Hostel->headerCellClass() ?>"><span id="elh_reswardens_Hostel" class="reswardens_Hostel"><?php echo $reswardens_delete->Hostel->caption() ?></span></th>
<?php } ?>
<?php if ($reswardens_delete->Floor->Visible) { // Floor ?>
		<th class="<?php echo $reswardens_delete->Floor->headerCellClass() ?>"><span id="elh_reswardens_Floor" class="reswardens_Floor"><?php echo $reswardens_delete->Floor->caption() ?></span></th>
<?php } ?>
<?php if ($reswardens_delete->ResWarden->Visible) { // ResWarden ?>
		<th class="<?php echo $reswardens_delete->ResWarden->headerCellClass() ?>"><span id="elh_reswardens_ResWarden" class="reswardens_ResWarden"><?php echo $reswardens_delete->ResWarden->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$reswardens_delete->RecordCount = 0;
$i = 0;
while (!$reswardens_delete->Recordset->EOF) {
	$reswardens_delete->RecordCount++;
	$reswardens_delete->RowCount++;

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

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

	// Render row
	$reswardens_delete->renderRow();
?>
	<tr <?php echo $reswardens->rowAttributes() ?>>
<?php if ($reswardens_delete->id->Visible) { // id ?>
		<td <?php echo $reswardens_delete->id->cellAttributes() ?>>
<span id="el<?php echo $reswardens_delete->RowCount ?>_reswardens_id" class="reswardens_id">
<span<?php echo $reswardens_delete->id->viewAttributes() ?>><?php echo $reswardens_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($reswardens_delete->Hostel->Visible) { // Hostel ?>
		<td <?php echo $reswardens_delete->Hostel->cellAttributes() ?>>
<span id="el<?php echo $reswardens_delete->RowCount ?>_reswardens_Hostel" class="reswardens_Hostel">
<span<?php echo $reswardens_delete->Hostel->viewAttributes() ?>><?php echo $reswardens_delete->Hostel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($reswardens_delete->Floor->Visible) { // Floor ?>
		<td <?php echo $reswardens_delete->Floor->cellAttributes() ?>>
<span id="el<?php echo $reswardens_delete->RowCount ?>_reswardens_Floor" class="reswardens_Floor">
<span<?php echo $reswardens_delete->Floor->viewAttributes() ?>><?php echo $reswardens_delete->Floor->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($reswardens_delete->ResWarden->Visible) { // ResWarden ?>
		<td <?php echo $reswardens_delete->ResWarden->cellAttributes() ?>>
<span id="el<?php echo $reswardens_delete->RowCount ?>_reswardens_ResWarden" class="reswardens_ResWarden">
<span<?php echo $reswardens_delete->ResWarden->viewAttributes() ?>><?php echo $reswardens_delete->ResWarden->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$reswardens_delete->Recordset->moveNext();
}
$reswardens_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 $reswardens_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$reswardens_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
$reswardens_delete->terminate();
?>