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

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

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

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

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

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

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

	// Dynamic selection lists
	// Filters

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

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

});
</script>
<?php } ?>
<?php if (!$admission_list->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php if ($admission_list->TotalRecords > 0 && $admission_list->ExportOptions->visible()) { ?>
<?php $admission_list->ExportOptions->render("body") ?>
<?php } ?>
<?php if ($admission_list->ImportOptions->visible()) { ?>
<?php $admission_list->ImportOptions->render("body") ?>
<?php } ?>
<?php if ($admission_list->SearchOptions->visible()) { ?>
<?php $admission_list->SearchOptions->render("body") ?>
<?php } ?>
<?php if ($admission_list->FilterOptions->visible()) { ?>
<?php $admission_list->FilterOptions->render("body") ?>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php
$admission_list->renderOtherOptions();
?>
<?php if ($Security->CanSearch()) { ?>
<?php if (!$admission_list->isExport() && !$admission->CurrentAction) { ?>
<form name="fadmissionlistsrch" id="fadmissionlistsrch" class="form-inline ew-form ew-ext-search-form" action="<?php echo CurrentPageName() ?>">
<div id="fadmissionlistsrch-search-panel" class="<?php echo $admission_list->SearchPanelClass ?>">
<input type="hidden" name="cmd" value="search">
<input type="hidden" name="t" value="admission">
	<div class="ew-extended-search">
<div id="xsr_<?php echo $admission_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($admission_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($admission_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 $admission_list->BasicSearch->getTypeNameShort() ?></span></button>
			<div class="dropdown-menu dropdown-menu-right">
				<a class="dropdown-item<?php if ($admission_list->BasicSearch->getType() == "") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this);"><?php echo $Language->phrase("QuickSearchAuto") ?></a>
				<a class="dropdown-item<?php if ($admission_list->BasicSearch->getType() == "=") { ?> active<?php } ?>" href="#" onclick="return ew.setSearchType(this, '=');"><?php echo $Language->phrase("QuickSearchExact") ?></a>
				<a class="dropdown-item<?php if ($admission_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 ($admission_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 $admission_list->showPageHeader(); ?>
<?php
$admission_list->showMessage();
?>
<?php if ($admission_list->TotalRecords > 0 || $admission->CurrentAction) { ?>
<div class="card ew-card ew-grid<?php if ($admission_list->isAddOrEdit()) { ?> ew-grid-add-edit<?php } ?> admission">
<?php if (!$admission_list->isExport()) { ?>
<div class="card-header ew-grid-upper-panel">
<?php if (!$admission_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $admission_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $admission_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
<form name="fadmissionlist" id="fadmissionlist" 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="admission">
<div id="gmp_admission" class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<?php if ($admission_list->TotalRecords > 0 || $admission_list->isGridEdit()) { ?>
<table id="tbl_admissionlist" class="table ew-table"><!-- .ew-table -->
<thead>
	<tr class="ew-table-header">
<?php

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

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

// Render list options (header, left)
$admission_list->ListOptions->render("header", "left");
?>
<?php if ($admission_list->id->Visible) { // id ?>
	<?php if ($admission_list->SortUrl($admission_list->id) == "") { ?>
		<th data-name="id" class="<?php echo $admission_list->id->headerCellClass() ?>"><div id="elh_admission_id" class="admission_id"><div class="ew-table-header-caption"><?php echo $admission_list->id->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="id" class="<?php echo $admission_list->id->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->id) ?>', 1);"><div id="elh_admission_id" class="admission_id">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->id->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->id->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->id->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->AdmDate->Visible) { // AdmDate ?>
	<?php if ($admission_list->SortUrl($admission_list->AdmDate) == "") { ?>
		<th data-name="AdmDate" class="<?php echo $admission_list->AdmDate->headerCellClass() ?>"><div id="elh_admission_AdmDate" class="admission_AdmDate"><div class="ew-table-header-caption"><?php echo $admission_list->AdmDate->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="AdmDate" class="<?php echo $admission_list->AdmDate->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->AdmDate) ?>', 1);"><div id="elh_admission_AdmDate" class="admission_AdmDate">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->AdmDate->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->AdmDate->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->AdmDate->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->HostelID->Visible) { // HostelID ?>
	<?php if ($admission_list->SortUrl($admission_list->HostelID) == "") { ?>
		<th data-name="HostelID" class="<?php echo $admission_list->HostelID->headerCellClass() ?>"><div id="elh_admission_HostelID" class="admission_HostelID"><div class="ew-table-header-caption"><?php echo $admission_list->HostelID->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="HostelID" class="<?php echo $admission_list->HostelID->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->HostelID) ?>', 1);"><div id="elh_admission_HostelID" class="admission_HostelID">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->HostelID->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->HostelID->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->HostelID->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->RollNo->Visible) { // RollNo ?>
	<?php if ($admission_list->SortUrl($admission_list->RollNo) == "") { ?>
		<th data-name="RollNo" class="<?php echo $admission_list->RollNo->headerCellClass() ?>"><div id="elh_admission_RollNo" class="admission_RollNo"><div class="ew-table-header-caption"><?php echo $admission_list->RollNo->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="RollNo" class="<?php echo $admission_list->RollNo->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->RollNo) ?>', 1);"><div id="elh_admission_RollNo" class="admission_RollNo">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->RollNo->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($admission_list->RollNo->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->RollNo->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->Name->Visible) { // Name ?>
	<?php if ($admission_list->SortUrl($admission_list->Name) == "") { ?>
		<th data-name="Name" class="<?php echo $admission_list->Name->headerCellClass() ?>"><div id="elh_admission_Name" class="admission_Name"><div class="ew-table-header-caption"><?php echo $admission_list->Name->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Name" class="<?php echo $admission_list->Name->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->Name) ?>', 1);"><div id="elh_admission_Name" class="admission_Name">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->Name->caption() ?><?php echo $Language->phrase("SrchLegend") ?></span><span class="ew-table-header-sort"><?php if ($admission_list->Name->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->Name->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->Hostel->Visible) { // Hostel ?>
	<?php if ($admission_list->SortUrl($admission_list->Hostel) == "") { ?>
		<th data-name="Hostel" class="<?php echo $admission_list->Hostel->headerCellClass() ?>"><div id="elh_admission_Hostel" class="admission_Hostel"><div class="ew-table-header-caption"><?php echo $admission_list->Hostel->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Hostel" class="<?php echo $admission_list->Hostel->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->Hostel) ?>', 1);"><div id="elh_admission_Hostel" class="admission_Hostel">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->Hostel->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->Hostel->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->Hostel->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->Floor->Visible) { // Floor ?>
	<?php if ($admission_list->SortUrl($admission_list->Floor) == "") { ?>
		<th data-name="Floor" class="<?php echo $admission_list->Floor->headerCellClass() ?>"><div id="elh_admission_Floor" class="admission_Floor"><div class="ew-table-header-caption"><?php echo $admission_list->Floor->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Floor" class="<?php echo $admission_list->Floor->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->Floor) ?>', 1);"><div id="elh_admission_Floor" class="admission_Floor">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->Floor->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->Floor->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->Floor->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->RoomNo->Visible) { // RoomNo ?>
	<?php if ($admission_list->SortUrl($admission_list->RoomNo) == "") { ?>
		<th data-name="RoomNo" class="<?php echo $admission_list->RoomNo->headerCellClass() ?>"><div id="elh_admission_RoomNo" class="admission_RoomNo"><div class="ew-table-header-caption"><?php echo $admission_list->RoomNo->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="RoomNo" class="<?php echo $admission_list->RoomNo->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->RoomNo) ?>', 1);"><div id="elh_admission_RoomNo" class="admission_RoomNo">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->RoomNo->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->RoomNo->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->RoomNo->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php if ($admission_list->Status->Visible) { // Status ?>
	<?php if ($admission_list->SortUrl($admission_list->Status) == "") { ?>
		<th data-name="Status" class="<?php echo $admission_list->Status->headerCellClass() ?>"><div id="elh_admission_Status" class="admission_Status"><div class="ew-table-header-caption"><?php echo $admission_list->Status->caption() ?></div></div></th>
	<?php } else { ?>
		<th data-name="Status" class="<?php echo $admission_list->Status->headerCellClass() ?>"><div class="ew-pointer" onclick="ew.sort(event, '<?php echo $admission_list->SortUrl($admission_list->Status) ?>', 1);"><div id="elh_admission_Status" class="admission_Status">
			<div class="ew-table-header-btn"><span class="ew-table-header-caption"><?php echo $admission_list->Status->caption() ?></span><span class="ew-table-header-sort"><?php if ($admission_list->Status->getSort() == "ASC") { ?><i class="fas fa-sort-up"></i><?php } elseif ($admission_list->Status->getSort() == "DESC") { ?><i class="fas fa-sort-down"></i><?php } ?></span></div>
		</div></div></th>
	<?php } ?>
<?php } ?>
<?php

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

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

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

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

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

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

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

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

// Render list options (body, left)
$admission_list->ListOptions->render("body", "left", $admission_list->RowCount);
?>
	<?php if ($admission_list->id->Visible) { // id ?>
		<td data-name="id" <?php echo $admission_list->id->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_id">
<span<?php echo $admission_list->id->viewAttributes() ?>><?php echo $admission_list->id->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->AdmDate->Visible) { // AdmDate ?>
		<td data-name="AdmDate" <?php echo $admission_list->AdmDate->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_AdmDate">
<span<?php echo $admission_list->AdmDate->viewAttributes() ?>><?php echo $admission_list->AdmDate->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->HostelID->Visible) { // HostelID ?>
		<td data-name="HostelID" <?php echo $admission_list->HostelID->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_HostelID">
<span<?php echo $admission_list->HostelID->viewAttributes() ?>><?php echo $admission_list->HostelID->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->RollNo->Visible) { // RollNo ?>
		<td data-name="RollNo" <?php echo $admission_list->RollNo->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_RollNo">
<span<?php echo $admission_list->RollNo->viewAttributes() ?>><?php echo $admission_list->RollNo->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->Name->Visible) { // Name ?>
		<td data-name="Name" <?php echo $admission_list->Name->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_Name">
<span<?php echo $admission_list->Name->viewAttributes() ?>><?php echo $admission_list->Name->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->Hostel->Visible) { // Hostel ?>
		<td data-name="Hostel" <?php echo $admission_list->Hostel->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_Hostel">
<span<?php echo $admission_list->Hostel->viewAttributes() ?>><?php echo $admission_list->Hostel->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->Floor->Visible) { // Floor ?>
		<td data-name="Floor" <?php echo $admission_list->Floor->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_Floor">
<span<?php echo $admission_list->Floor->viewAttributes() ?>><?php echo $admission_list->Floor->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->RoomNo->Visible) { // RoomNo ?>
		<td data-name="RoomNo" <?php echo $admission_list->RoomNo->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_RoomNo">
<span<?php echo $admission_list->RoomNo->viewAttributes() ?>><?php echo $admission_list->RoomNo->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
	<?php if ($admission_list->Status->Visible) { // Status ?>
		<td data-name="Status" <?php echo $admission_list->Status->cellAttributes() ?>>
<span id="el<?php echo $admission_list->RowCount ?>_admission_Status">
<span<?php echo $admission_list->Status->viewAttributes() ?>><?php echo $admission_list->Status->getViewValue() ?></span>
</span>
</td>
	<?php } ?>
<?php

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

// Close recordset
if ($admission_list->Recordset)
	$admission_list->Recordset->Close();
?>
<?php if (!$admission_list->isExport()) { ?>
<div class="card-footer ew-grid-lower-panel">
<?php if (!$admission_list->isGridAdd()) { ?>
<form name="ew-pager-form" class="form-inline ew-form ew-pager-form" action="<?php echo CurrentPageName() ?>">
<?php echo $admission_list->Pager->render() ?>
</form>
<?php } ?>
<div class="ew-list-other-options">
<?php $admission_list->OtherOptions->render("body", "bottom") ?>
</div>
<div class="clearfix"></div>
</div>
<?php } ?>
</div><!-- /.ew-grid -->
<?php } ?>
<?php if ($admission_list->TotalRecords == 0 && !$admission->CurrentAction) { // Show other options ?>
<div class="ew-list-other-options">
<?php $admission_list->OtherOptions->render("body") ?>
</div>
<div class="clearfix"></div>
<?php } ?>
<?php
$admission_list->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$admission_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
$admission_list->terminate();
?>