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

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

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

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

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

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

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

});
</script>
<?php $admission_delete->showPageHeader(); ?>
<?php
$admission_delete->showMessage();
?>
<form name="fadmissiondelete" id="fadmissiondelete" 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="admission">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($admission_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 ($admission_delete->id->Visible) { // id ?>
		<th class="<?php echo $admission_delete->id->headerCellClass() ?>"><span id="elh_admission_id" class="admission_id"><?php echo $admission_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->AdmDate->Visible) { // AdmDate ?>
		<th class="<?php echo $admission_delete->AdmDate->headerCellClass() ?>"><span id="elh_admission_AdmDate" class="admission_AdmDate"><?php echo $admission_delete->AdmDate->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->HostelID->Visible) { // HostelID ?>
		<th class="<?php echo $admission_delete->HostelID->headerCellClass() ?>"><span id="elh_admission_HostelID" class="admission_HostelID"><?php echo $admission_delete->HostelID->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->RollNo->Visible) { // RollNo ?>
		<th class="<?php echo $admission_delete->RollNo->headerCellClass() ?>"><span id="elh_admission_RollNo" class="admission_RollNo"><?php echo $admission_delete->RollNo->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->Name->Visible) { // Name ?>
		<th class="<?php echo $admission_delete->Name->headerCellClass() ?>"><span id="elh_admission_Name" class="admission_Name"><?php echo $admission_delete->Name->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->Hostel->Visible) { // Hostel ?>
		<th class="<?php echo $admission_delete->Hostel->headerCellClass() ?>"><span id="elh_admission_Hostel" class="admission_Hostel"><?php echo $admission_delete->Hostel->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->Floor->Visible) { // Floor ?>
		<th class="<?php echo $admission_delete->Floor->headerCellClass() ?>"><span id="elh_admission_Floor" class="admission_Floor"><?php echo $admission_delete->Floor->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->RoomNo->Visible) { // RoomNo ?>
		<th class="<?php echo $admission_delete->RoomNo->headerCellClass() ?>"><span id="elh_admission_RoomNo" class="admission_RoomNo"><?php echo $admission_delete->RoomNo->caption() ?></span></th>
<?php } ?>
<?php if ($admission_delete->Status->Visible) { // Status ?>
		<th class="<?php echo $admission_delete->Status->headerCellClass() ?>"><span id="elh_admission_Status" class="admission_Status"><?php echo $admission_delete->Status->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$admission_delete->RecordCount = 0;
$i = 0;
while (!$admission_delete->Recordset->EOF) {
	$admission_delete->RecordCount++;
	$admission_delete->RowCount++;

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

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

	// Render row
	$admission_delete->renderRow();
?>
	<tr <?php echo $admission->rowAttributes() ?>>
<?php if ($admission_delete->id->Visible) { // id ?>
		<td <?php echo $admission_delete->id->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_id" class="admission_id">
<span<?php echo $admission_delete->id->viewAttributes() ?>><?php echo $admission_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->AdmDate->Visible) { // AdmDate ?>
		<td <?php echo $admission_delete->AdmDate->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_AdmDate" class="admission_AdmDate">
<span<?php echo $admission_delete->AdmDate->viewAttributes() ?>><?php echo $admission_delete->AdmDate->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->HostelID->Visible) { // HostelID ?>
		<td <?php echo $admission_delete->HostelID->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_HostelID" class="admission_HostelID">
<span<?php echo $admission_delete->HostelID->viewAttributes() ?>><?php echo $admission_delete->HostelID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->RollNo->Visible) { // RollNo ?>
		<td <?php echo $admission_delete->RollNo->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_RollNo" class="admission_RollNo">
<span<?php echo $admission_delete->RollNo->viewAttributes() ?>><?php echo $admission_delete->RollNo->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->Name->Visible) { // Name ?>
		<td <?php echo $admission_delete->Name->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_Name" class="admission_Name">
<span<?php echo $admission_delete->Name->viewAttributes() ?>><?php echo $admission_delete->Name->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->Hostel->Visible) { // Hostel ?>
		<td <?php echo $admission_delete->Hostel->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_Hostel" class="admission_Hostel">
<span<?php echo $admission_delete->Hostel->viewAttributes() ?>><?php echo $admission_delete->Hostel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->Floor->Visible) { // Floor ?>
		<td <?php echo $admission_delete->Floor->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_Floor" class="admission_Floor">
<span<?php echo $admission_delete->Floor->viewAttributes() ?>><?php echo $admission_delete->Floor->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->RoomNo->Visible) { // RoomNo ?>
		<td <?php echo $admission_delete->RoomNo->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_RoomNo" class="admission_RoomNo">
<span<?php echo $admission_delete->RoomNo->viewAttributes() ?>><?php echo $admission_delete->RoomNo->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($admission_delete->Status->Visible) { // Status ?>
		<td <?php echo $admission_delete->Status->cellAttributes() ?>>
<span id="el<?php echo $admission_delete->RowCount ?>_admission_Status" class="admission_Status">
<span<?php echo $admission_delete->Status->viewAttributes() ?>><?php echo $admission_delete->Status->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$admission_delete->Recordset->moveNext();
}
$admission_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 $admission_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$admission_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
$admission_delete->terminate();
?>