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

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

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

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

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

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

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

});
</script>
<?php $abscount_delete->showPageHeader(); ?>
<?php
$abscount_delete->showMessage();
?>
<form name="fabscountdelete" id="fabscountdelete" 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="abscount">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($abscount_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 ($abscount_delete->id->Visible) { // id ?>
		<th class="<?php echo $abscount_delete->id->headerCellClass() ?>"><span id="elh_abscount_id" class="abscount_id"><?php echo $abscount_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Date->Visible) { // Date ?>
		<th class="<?php echo $abscount_delete->Date->headerCellClass() ?>"><span id="elh_abscount_Date" class="abscount_Date"><?php echo $abscount_delete->Date->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Hostel->Visible) { // Hostel ?>
		<th class="<?php echo $abscount_delete->Hostel->headerCellClass() ?>"><span id="elh_abscount_Hostel" class="abscount_Hostel"><?php echo $abscount_delete->Hostel->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Floor->Visible) { // Floor ?>
		<th class="<?php echo $abscount_delete->Floor->headerCellClass() ?>"><span id="elh_abscount_Floor" class="abscount_Floor"><?php echo $abscount_delete->Floor->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->_RS->Visible) { // RS ?>
		<th class="<?php echo $abscount_delete->_RS->headerCellClass() ?>"><span id="elh_abscount__RS" class="abscount__RS"><?php echo $abscount_delete->_RS->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Absent->Visible) { // Absent ?>
		<th class="<?php echo $abscount_delete->Absent->headerCellClass() ?>"><span id="elh_abscount_Absent" class="abscount_Absent"><?php echo $abscount_delete->Absent->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Postedby->Visible) { // Postedby ?>
		<th class="<?php echo $abscount_delete->Postedby->headerCellClass() ?>"><span id="elh_abscount_Postedby" class="abscount_Postedby"><?php echo $abscount_delete->Postedby->caption() ?></span></th>
<?php } ?>
<?php if ($abscount_delete->Updated_Date->Visible) { // Updated_Date ?>
		<th class="<?php echo $abscount_delete->Updated_Date->headerCellClass() ?>"><span id="elh_abscount_Updated_Date" class="abscount_Updated_Date"><?php echo $abscount_delete->Updated_Date->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$abscount_delete->RecordCount = 0;
$i = 0;
while (!$abscount_delete->Recordset->EOF) {
	$abscount_delete->RecordCount++;
	$abscount_delete->RowCount++;

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

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

	// Render row
	$abscount_delete->renderRow();
?>
	<tr <?php echo $abscount->rowAttributes() ?>>
<?php if ($abscount_delete->id->Visible) { // id ?>
		<td <?php echo $abscount_delete->id->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_id" class="abscount_id">
<span<?php echo $abscount_delete->id->viewAttributes() ?>><?php echo $abscount_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Date->Visible) { // Date ?>
		<td <?php echo $abscount_delete->Date->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Date" class="abscount_Date">
<span<?php echo $abscount_delete->Date->viewAttributes() ?>><?php echo $abscount_delete->Date->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Hostel->Visible) { // Hostel ?>
		<td <?php echo $abscount_delete->Hostel->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Hostel" class="abscount_Hostel">
<span<?php echo $abscount_delete->Hostel->viewAttributes() ?>><?php echo $abscount_delete->Hostel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Floor->Visible) { // Floor ?>
		<td <?php echo $abscount_delete->Floor->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Floor" class="abscount_Floor">
<span<?php echo $abscount_delete->Floor->viewAttributes() ?>><?php echo $abscount_delete->Floor->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->_RS->Visible) { // RS ?>
		<td <?php echo $abscount_delete->_RS->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount__RS" class="abscount__RS">
<span<?php echo $abscount_delete->_RS->viewAttributes() ?>><?php echo $abscount_delete->_RS->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Absent->Visible) { // Absent ?>
		<td <?php echo $abscount_delete->Absent->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Absent" class="abscount_Absent">
<span<?php echo $abscount_delete->Absent->viewAttributes() ?>><?php echo $abscount_delete->Absent->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Postedby->Visible) { // Postedby ?>
		<td <?php echo $abscount_delete->Postedby->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Postedby" class="abscount_Postedby">
<span<?php echo $abscount_delete->Postedby->viewAttributes() ?>><?php echo $abscount_delete->Postedby->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($abscount_delete->Updated_Date->Visible) { // Updated_Date ?>
		<td <?php echo $abscount_delete->Updated_Date->cellAttributes() ?>>
<span id="el<?php echo $abscount_delete->RowCount ?>_abscount_Updated_Date" class="abscount_Updated_Date">
<span<?php echo $abscount_delete->Updated_Date->viewAttributes() ?>><?php echo $abscount_delete->Updated_Date->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$abscount_delete->Recordset->moveNext();
}
$abscount_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 $abscount_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$abscount_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
$abscount_delete->terminate();
?>