<?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_list = new activity_list();

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

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

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

// Page Rendering event
$activity_list->Page_Render();
?>
<?php include_once "header.php"; ?>
<?php if (!$activity_list->isExport()) { ?>
<script>
var factivitylist, currentPageID;
loadjs.ready("head", function() {

	// Form object
	currentPageID = ew.PAGE_ID = "list";
	factivitylist = currentForm = new ew.Form("factivitylist", "list");
	factivitylist.formKeyCountName = '<?php echo $activity_list->FormKeyCountName ?>';
	loadjs.done("factivitylist");
});
var factivitylistsrch;
loadjs.ready("head", function() {

	// Form object for search
	factivitylistsrch = currentSearchForm = new ew.Form("factivitylistsrch");

	// Dynamic selection lists
	// Filters

	factivitylistsrch.filterList = <?php echo $activity_list->getFilterList() ?>;
	loadjs.done("factivitylistsrch");
});
</script>
<script>
loadjs.ready("head", function() {

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

});
</script>
<?php } ?>
<?php if (!$activity_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($activity_list->TotalRecords > 0 && $activity_list->ExportOptions->visible()) { ?>
<?php $activity_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($activity_list->ImportOptions->visible()) { ?>
<?php $activity_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($activity_list->SearchOptions->visible()) { ?>
<?php $activity_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($activity_list->FilterOptions->visible()) { ?>
<?php $activity_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php if (!$activity_list->isExport() || Config("EXPORT_MASTER_RECORD") && $activity_list->isExport("print")) { ?>
<?php
if ($activity_list->DbMasterFilter != "" && $activity->getCurrentMasterTable() == "admission") {
	if ($activity_list->MasterRecordExists) {
		include_once "admissionmaster.php";
	}
}
?>
<?php
if ($activity_list->DbMasterFilter != "" && $activity->getCurrentMasterTable() == "indiscipline") {
	if ($activity_list->MasterRecordExists) {
		include_once "indisciplinemaster.php";
	}
}
?>
<?php } ?>
<?php
$activity_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$activity_list->isExport() && !$activity->CurrentAction) { ?>
<form name="factivitylistsrch" id="factivitylistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="factivitylistsrch-search-panel" class="<?php echo $activity_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="activity">
	<div class="ew-extended-search">
<div id="xsr_<?php echo $activity_list->SearchRowCount + 1 ?>" class="ew-row d-sm-flex">
	<div class="ew-quick-search input-group">
		<input type="text" name="<?php echo Config("TABLE_BASIC_SEARCH") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH") ?>" class="form-control" value="<?php echo HtmlEncode($activity_list->BasicSearch->getKeyword()) ?>" placeholder="<?php echo HtmlEncode($Language->phrase("Search")) ?>">
		<input type="hidden" name="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" id="<?php echo Config("TABLE_BASIC_SEARCH_TYPE") ?>" value="<?php echo HtmlEncode($activity_list->BasicSearch->getType()) ?>">
		<div class="input-group-append">
			<button class="btn btn-primary" name="btn-submit" id="btn-submit" type="submit"><?php echo $Language->phrase("SearchBtn") ?></button>
			<button type="button" data-toggle="dropdown" class="btn btn-primary dropdown-toggle dropdown-toggle-split" aria-haspopup="true" aria-expanded="false"><span id="searchtype"><?php echo $activity_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($activity_list->BasicSearch->getType() == "") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this);"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($activity_list->BasicSearch->getType() == "=") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, '=');"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($activity_list->BasicSearch->getType() == "AND") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'AND');"><?php echo $Language->phrase("QuickSearchAll") ?></a>
				<a class="dropdown-item<?php if ($activity_list->BasicSearch->getType() == "OR") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, 'OR');"><?php echo $Language->phrase("QuickSearchAny") ?></a>
			</div>
		</div>
	</div>
</div>
	</div><!-- /.ew-extended-search -->
</div><!-- /.ew-search-panel -->
</form>
<?php } ?>
<?php } ?>
<?php $activity_list->showPageHeader(); ?>
<?php
$activity_list->showMessage();
?>
<?php if ($activity_list->TotalRecords > 0 || $activity->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($activity_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> activity">
<?php if (!$activity_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$activity_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $activity_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $activity_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="factivitylist" id="factivitylist" class="form-inline ew-form ew-list-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">
<?php if ($activity->getCurrentMasterTable() == "admission" && $activity->CurrentAction) { ?>
<input type="hidden" name="<?php echo Config("TABLE_SHOW_MASTER") ?>" value="admission">
<input type="hidden" name="fk_HostelID" value="<?php echo $activity_list->HotelID->getSessionValue() ?>">
<input type="hidden" name="fk_RollNo" value="<?php echo $activity_list->RollNo->getSessionValue() ?>">
<input type="hidden" name="fk_Name" value="<?php echo $activity_list->Name->getSessionValue() ?>">
<input type="hidden" name="fk_Hostel" value="<?php echo $activity_list->Hostel->getSessionValue() ?>">
<input type="hidden" name="fk_Floor" value="<?php echo $activity_list->Floor->getSessionValue() ?>">
<input type="hidden" name="fk_RoomNo" value="<?php echo $activity_list->Room_No->getSessionValue() ?>">
<?php } ?>
<?php if ($activity->getCurrentMasterTable() == "indiscipline" && $activity->CurrentAction) { ?>
<input type="hidden" name="<?php echo Config("TABLE_SHOW_MASTER") ?>" value="indiscipline">
<input type="hidden" name="fk_id" value="<?php echo $activity_list->Indiscipline_activity->getSessionValue() ?>">
<?php } ?>
<div id="gmp_activity" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($activity_list->TotalRecords > 0 || $activity_list->isGridEdit()) { ?>
<table id="tbl_activitylist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

// Header row
$activity->RowType = ROWTYPE_HEADER;

// Render list options
$activity_list->renderListOptions();

// Render list options (header, left)
$activity_list->ListOptions->render("header", "left");
?>
<?php if ($activity_list->id->Visible) { // id ?>
	<?php if ($activity_list->SortUrl($activity_list->id) == "") { ?>
		<th data-name="id" class="<?php echo $activity_list->id->headerCellClass() ?>"><div id="elh_activity_id" class="activity_id"><div class="ew-table-header-caption"><?php echo $activity_list->id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id" class="<?php echo $activity_list->id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->id) ?>', 1);"><div id="elh_activity_id" class="activity_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->id->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->id->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->id->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->HotelID->Visible) { // HotelID ?>
	<?php if ($activity_list->SortUrl($activity_list->HotelID) == "") { ?>
		<th data-name="HotelID" class="<?php echo $activity_list->HotelID->headerCellClass() ?>"><div id="elh_activity_HotelID" class="activity_HotelID"><div class="ew-table-header-caption"><?php echo $activity_list->HotelID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="HotelID" class="<?php echo $activity_list->HotelID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->HotelID) ?>', 1);"><div id="elh_activity_HotelID" class="activity_HotelID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->HotelID->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($activity_list->HotelID->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->HotelID->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->RollNo->Visible) { // RollNo ?>
	<?php if ($activity_list->SortUrl($activity_list->RollNo) == "") { ?>
		<th data-name="RollNo" class="<?php echo $activity_list->RollNo->headerCellClass() ?>"><div id="elh_activity_RollNo" class="activity_RollNo"><div class="ew-table-header-caption"><?php echo $activity_list->RollNo->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="RollNo" class="<?php echo $activity_list->RollNo->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->RollNo) ?>', 1);"><div id="elh_activity_RollNo" class="activity_RollNo">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->RollNo->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($activity_list->RollNo->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->RollNo->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Name->Visible) { // Name ?>
	<?php if ($activity_list->SortUrl($activity_list->Name) == "") { ?>
		<th data-name="Name" class="<?php echo $activity_list->Name->headerCellClass() ?>"><div id="elh_activity_Name" class="activity_Name"><div class="ew-table-header-caption"><?php echo $activity_list->Name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Name" class="<?php echo $activity_list->Name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Name) ?>', 1);"><div id="elh_activity_Name" class="activity_Name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Name->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Hostel->Visible) { // Hostel ?>
	<?php if ($activity_list->SortUrl($activity_list->Hostel) == "") { ?>
		<th data-name="Hostel" class="<?php echo $activity_list->Hostel->headerCellClass() ?>"><div id="elh_activity_Hostel" class="activity_Hostel"><div class="ew-table-header-caption"><?php echo $activity_list->Hostel->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Hostel" class="<?php echo $activity_list->Hostel->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Hostel) ?>', 1);"><div id="elh_activity_Hostel" class="activity_Hostel">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Hostel->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Hostel->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Hostel->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Floor->Visible) { // Floor ?>
	<?php if ($activity_list->SortUrl($activity_list->Floor) == "") { ?>
		<th data-name="Floor" class="<?php echo $activity_list->Floor->headerCellClass() ?>"><div id="elh_activity_Floor" class="activity_Floor"><div class="ew-table-header-caption"><?php echo $activity_list->Floor->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Floor" class="<?php echo $activity_list->Floor->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Floor) ?>', 1);"><div id="elh_activity_Floor" class="activity_Floor">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Floor->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Floor->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Floor->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Room_No->Visible) { // Room_No ?>
	<?php if ($activity_list->SortUrl($activity_list->Room_No) == "") { ?>
		<th data-name="Room_No" class="<?php echo $activity_list->Room_No->headerCellClass() ?>"><div id="elh_activity_Room_No" class="activity_Room_No"><div class="ew-table-header-caption"><?php echo $activity_list->Room_No->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Room_No" class="<?php echo $activity_list->Room_No->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Room_No) ?>', 1);"><div id="elh_activity_Room_No" class="activity_Room_No">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Room_No->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Room_No->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Room_No->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Health_issue->Visible) { // Health_issue ?>
	<?php if ($activity_list->SortUrl($activity_list->Health_issue) == "") { ?>
		<th data-name="Health_issue" class="<?php echo $activity_list->Health_issue->headerCellClass() ?>"><div id="elh_activity_Health_issue" class="activity_Health_issue"><div class="ew-table-header-caption"><?php echo $activity_list->Health_issue->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Health_issue" class="<?php echo $activity_list->Health_issue->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Health_issue) ?>', 1);"><div id="elh_activity_Health_issue" class="activity_Health_issue">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Health_issue->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Health_issue->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Health_issue->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
	<?php if ($activity_list->SortUrl($activity_list->Indiscipline_activity) == "") { ?>
		<th data-name="Indiscipline_activity" class="<?php echo $activity_list->Indiscipline_activity->headerCellClass() ?>"><div id="elh_activity_Indiscipline_activity" class="activity_Indiscipline_activity"><div class="ew-table-header-caption"><?php echo $activity_list->Indiscipline_activity->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Indiscipline_activity" class="<?php echo $activity_list->Indiscipline_activity->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Indiscipline_activity) ?>', 1);"><div id="elh_activity_Indiscipline_activity" class="activity_Indiscipline_activity">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Indiscipline_activity->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Indiscipline_activity->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Indiscipline_activity->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Involvement->Visible) { // Involvement ?>
	<?php if ($activity_list->SortUrl($activity_list->Involvement) == "") { ?>
		<th data-name="Involvement" class="<?php echo $activity_list->Involvement->headerCellClass() ?>"><div id="elh_activity_Involvement" class="activity_Involvement"><div class="ew-table-header-caption"><?php echo $activity_list->Involvement->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Involvement" class="<?php echo $activity_list->Involvement->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Involvement) ?>', 1);"><div id="elh_activity_Involvement" class="activity_Involvement">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Involvement->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Involvement->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Involvement->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($activity_list->Updated_Date->Visible) { // Updated_Date ?>
	<?php if ($activity_list->SortUrl($activity_list->Updated_Date) == "") { ?>
		<th data-name="Updated_Date" class="<?php echo $activity_list->Updated_Date->headerCellClass() ?>"><div id="elh_activity_Updated_Date" class="activity_Updated_Date"><div class="ew-table-header-caption"><?php echo $activity_list->Updated_Date->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Updated_Date" class="<?php echo $activity_list->Updated_Date->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $activity_list->SortUrl($activity_list->Updated_Date) ?>', 1);"><div id="elh_activity_Updated_Date" class="activity_Updated_Date">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $activity_list->Updated_Date->caption() ?></span><span class="ew-table-header-sort"><?php if ($activity_list->Updated_Date->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($activity_list->Updated_Date->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

// Render list options (header, right)
$activity_list->ListOptions->render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
if ($activity_list->ExportAll && $activity_list->isExport()) {
	$activity_list->StopRecord = $activity_list->TotalRecords;
} else {

	// Set the last record to display
	if ($activity_list->TotalRecords > $activity_list->StartRecord + $activity_list->DisplayRecords - 1)
		$activity_list->StopRecord = $activity_list->StartRecord + $activity_list->DisplayRecords - 1;
	else
		$activity_list->StopRecord = $activity_list->TotalRecords;
}
$activity_list->RecordCount = $activity_list->StartRecord - 1;
if ($activity_list->Recordset && !$activity_list->Recordset->EOF) {
	$activity_list->Recordset->moveFirst();
	$selectLimit = $activity_list->UseSelectLimit;
	if (!$selectLimit && $activity_list->StartRecord > 1)
		$activity_list->Recordset->move($activity_list->StartRecord - 1);
} elseif (!$activity->AllowAddDeleteRow && $activity_list->StopRecord == 0) {
	$activity_list->StopRecord = $activity->GridAddRowCount;
}

// Initialize aggregate
$activity->RowType = ROWTYPE_AGGREGATEINIT;
$activity->resetAttributes();
$activity_list->renderRow();
while ($activity_list->RecordCount < $activity_list->StopRecord) {
	$activity_list->RecordCount++;
	if ($activity_list->RecordCount >= $activity_list->StartRecord) {
		$activity_list->RowCount++;

		// Set up key count
		$activity_list->KeyCount = $activity_list->RowIndex;

		// Init row class and style
		$activity->resetAttributes();
		$activity->CssClass = "";
		if ($activity_list->isGridAdd()) {
		} else {
			$activity_list->loadRowValues($activity_list->Recordset); // Load row values
		}
		$activity->RowType = ROWTYPE_VIEW; // Render view

		// Set up row id / data-rowindex
		$activity->RowAttrs->merge(["data-rowindex" => $activity_list->RowCount, "id" => "r" . $activity_list->RowCount . "_activity", "data-rowtype" => $activity->RowType]);

		// Render row
		$activity_list->renderRow();

		// Render list options
		$activity_list->renderListOptions();
?>
	<tr <?php echo $activity->rowAttributes() ?>>
<?php

// Render list options (body, left)
$activity_list->ListOptions->render("body", "left", $activity_list->RowCount);
?>
	<?php if ($activity_list->id->Visible) { // id ?>
		<td data-name="id" <?php echo $activity_list->id->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_id">
<span<?php echo $activity_list->id->viewAttributes() ?>><?php echo $activity_list->id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->HotelID->Visible) { // HotelID ?>
		<td data-name="HotelID" <?php echo $activity_list->HotelID->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_HotelID">
<span<?php echo $activity_list->HotelID->viewAttributes() ?>><?php echo $activity_list->HotelID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->RollNo->Visible) { // RollNo ?>
		<td data-name="RollNo" <?php echo $activity_list->RollNo->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_RollNo">
<span<?php echo $activity_list->RollNo->viewAttributes() ?>><?php echo $activity_list->RollNo->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Name->Visible) { // Name ?>
		<td data-name="Name" <?php echo $activity_list->Name->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Name">
<span<?php echo $activity_list->Name->viewAttributes() ?>><?php echo $activity_list->Name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Hostel->Visible) { // Hostel ?>
		<td data-name="Hostel" <?php echo $activity_list->Hostel->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Hostel">
<span<?php echo $activity_list->Hostel->viewAttributes() ?>><?php echo $activity_list->Hostel->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Floor->Visible) { // Floor ?>
		<td data-name="Floor" <?php echo $activity_list->Floor->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Floor">
<span<?php echo $activity_list->Floor->viewAttributes() ?>><?php echo $activity_list->Floor->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Room_No->Visible) { // Room_No ?>
		<td data-name="Room_No" <?php echo $activity_list->Room_No->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Room_No">
<span<?php echo $activity_list->Room_No->viewAttributes() ?>><?php echo $activity_list->Room_No->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Health_issue->Visible) { // Health_issue ?>
		<td data-name="Health_issue" <?php echo $activity_list->Health_issue->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Health_issue">
<span<?php echo $activity_list->Health_issue->viewAttributes() ?>><?php echo $activity_list->Health_issue->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
		<td data-name="Indiscipline_activity" <?php echo $activity_list->Indiscipline_activity->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Indiscipline_activity">
<span<?php echo $activity_list->Indiscipline_activity->viewAttributes() ?>><?php echo $activity_list->Indiscipline_activity->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Involvement->Visible) { // Involvement ?>
		<td data-name="Involvement" <?php echo $activity_list->Involvement->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Involvement">
<span<?php echo $activity_list->Involvement->viewAttributes() ?>><?php echo $activity_list->Involvement->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($activity_list->Updated_Date->Visible) { // Updated_Date ?>
		<td data-name="Updated_Date" <?php echo $activity_list->Updated_Date->cellAttributes() ?>>
<span id="el<?php echo $activity_list->RowCount ?>_activity_Updated_Date">
<span<?php echo $activity_list->Updated_Date->viewAttributes() ?>><?php echo $activity_list->Updated_Date->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$activity_list->ListOptions->render("body", "right", $activity_list->RowCount);
?>
	</tr>
<?php
	}
	if (!$activity_list->isGridAdd())
		$activity_list->Recordset->moveNext();
}
?>
</tbody>
</table><!-- /.ew-table -->
<?php } ?>
</div><!-- /.ew-grid-middle-panel -->
<?php if (!$activity->CurrentAction) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php

// Close recordset
if ($activity_list->Recordset)
	$activity_list->Recordset->Close();
?>
<?php if (!$activity_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$activity_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $activity_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $activity_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($activity_list->TotalRecords == 0 && !$activity->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $activity_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$activity_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$activity_list->isExport()) { ?>
<script>
loadjs.ready("load", function() {

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

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