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

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

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

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

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

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

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

});
</script>
<?php $activity_delete->showPageHeader(); ?>
<?php
$activity_delete->showMessage();
?>
<form name="factivitydelete" id="factivitydelete" 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="activity">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($activity_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 ($activity_delete->id->Visible) { // id ?>
		<th class="<?php echo $activity_delete->id->headerCellClass() ?>"><span id="elh_activity_id" class="activity_id"><?php echo $activity_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->HotelID->Visible) { // HotelID ?>
		<th class="<?php echo $activity_delete->HotelID->headerCellClass() ?>"><span id="elh_activity_HotelID" class="activity_HotelID"><?php echo $activity_delete->HotelID->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->RollNo->Visible) { // RollNo ?>
		<th class="<?php echo $activity_delete->RollNo->headerCellClass() ?>"><span id="elh_activity_RollNo" class="activity_RollNo"><?php echo $activity_delete->RollNo->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Name->Visible) { // Name ?>
		<th class="<?php echo $activity_delete->Name->headerCellClass() ?>"><span id="elh_activity_Name" class="activity_Name"><?php echo $activity_delete->Name->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Hostel->Visible) { // Hostel ?>
		<th class="<?php echo $activity_delete->Hostel->headerCellClass() ?>"><span id="elh_activity_Hostel" class="activity_Hostel"><?php echo $activity_delete->Hostel->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Floor->Visible) { // Floor ?>
		<th class="<?php echo $activity_delete->Floor->headerCellClass() ?>"><span id="elh_activity_Floor" class="activity_Floor"><?php echo $activity_delete->Floor->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Room_No->Visible) { // Room_No ?>
		<th class="<?php echo $activity_delete->Room_No->headerCellClass() ?>"><span id="elh_activity_Room_No" class="activity_Room_No"><?php echo $activity_delete->Room_No->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Health_issue->Visible) { // Health_issue ?>
		<th class="<?php echo $activity_delete->Health_issue->headerCellClass() ?>"><span id="elh_activity_Health_issue" class="activity_Health_issue"><?php echo $activity_delete->Health_issue->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
		<th class="<?php echo $activity_delete->Indiscipline_activity->headerCellClass() ?>"><span id="elh_activity_Indiscipline_activity" class="activity_Indiscipline_activity"><?php echo $activity_delete->Indiscipline_activity->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Involvement->Visible) { // Involvement ?>
		<th class="<?php echo $activity_delete->Involvement->headerCellClass() ?>"><span id="elh_activity_Involvement" class="activity_Involvement"><?php echo $activity_delete->Involvement->caption() ?></span></th>
<?php } ?>
<?php if ($activity_delete->Updated_Date->Visible) { // Updated_Date ?>
		<th class="<?php echo $activity_delete->Updated_Date->headerCellClass() ?>"><span id="elh_activity_Updated_Date" class="activity_Updated_Date"><?php echo $activity_delete->Updated_Date->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$activity_delete->RecordCount = 0;
$i = 0;
while (!$activity_delete->Recordset->EOF) {
	$activity_delete->RecordCount++;
	$activity_delete->RowCount++;

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

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

	// Render row
	$activity_delete->renderRow();
?>
	<tr <?php echo $activity->rowAttributes() ?>>
<?php if ($activity_delete->id->Visible) { // id ?>
		<td <?php echo $activity_delete->id->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_id" class="activity_id">
<span<?php echo $activity_delete->id->viewAttributes() ?>><?php echo $activity_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->HotelID->Visible) { // HotelID ?>
		<td <?php echo $activity_delete->HotelID->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_HotelID" class="activity_HotelID">
<span<?php echo $activity_delete->HotelID->viewAttributes() ?>><?php echo $activity_delete->HotelID->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->RollNo->Visible) { // RollNo ?>
		<td <?php echo $activity_delete->RollNo->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_RollNo" class="activity_RollNo">
<span<?php echo $activity_delete->RollNo->viewAttributes() ?>><?php echo $activity_delete->RollNo->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Name->Visible) { // Name ?>
		<td <?php echo $activity_delete->Name->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Name" class="activity_Name">
<span<?php echo $activity_delete->Name->viewAttributes() ?>><?php echo $activity_delete->Name->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Hostel->Visible) { // Hostel ?>
		<td <?php echo $activity_delete->Hostel->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Hostel" class="activity_Hostel">
<span<?php echo $activity_delete->Hostel->viewAttributes() ?>><?php echo $activity_delete->Hostel->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Floor->Visible) { // Floor ?>
		<td <?php echo $activity_delete->Floor->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Floor" class="activity_Floor">
<span<?php echo $activity_delete->Floor->viewAttributes() ?>><?php echo $activity_delete->Floor->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Room_No->Visible) { // Room_No ?>
		<td <?php echo $activity_delete->Room_No->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Room_No" class="activity_Room_No">
<span<?php echo $activity_delete->Room_No->viewAttributes() ?>><?php echo $activity_delete->Room_No->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Health_issue->Visible) { // Health_issue ?>
		<td <?php echo $activity_delete->Health_issue->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Health_issue" class="activity_Health_issue">
<span<?php echo $activity_delete->Health_issue->viewAttributes() ?>><?php echo $activity_delete->Health_issue->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
		<td <?php echo $activity_delete->Indiscipline_activity->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Indiscipline_activity" class="activity_Indiscipline_activity">
<span<?php echo $activity_delete->Indiscipline_activity->viewAttributes() ?>><?php echo $activity_delete->Indiscipline_activity->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Involvement->Visible) { // Involvement ?>
		<td <?php echo $activity_delete->Involvement->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Involvement" class="activity_Involvement">
<span<?php echo $activity_delete->Involvement->viewAttributes() ?>><?php echo $activity_delete->Involvement->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($activity_delete->Updated_Date->Visible) { // Updated_Date ?>
		<td <?php echo $activity_delete->Updated_Date->cellAttributes() ?>>
<span id="el<?php echo $activity_delete->RowCount ?>_activity_Updated_Date" class="activity_Updated_Date">
<span<?php echo $activity_delete->Updated_Date->viewAttributes() ?>><?php echo $activity_delete->Updated_Date->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$activity_delete->Recordset->moveNext();
}
$activity_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 $activity_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$activity_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
$activity_delete->terminate();
?>