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

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

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

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

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

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

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

});
</script>
<?php $indiscipline_delete->showPageHeader(); ?>
<?php
$indiscipline_delete->showMessage();
?>
<form name="findisciplinedelete" id="findisciplinedelete" 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="indiscipline">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($indiscipline_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 ($indiscipline_delete->id->Visible) { // id ?>
		<th class="<?php echo $indiscipline_delete->id->headerCellClass() ?>"><span id="elh_indiscipline_id" class="indiscipline_id"><?php echo $indiscipline_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($indiscipline_delete->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
		<th class="<?php echo $indiscipline_delete->Indiscipline_activity->headerCellClass() ?>"><span id="elh_indiscipline_Indiscipline_activity" class="indiscipline_Indiscipline_activity"><?php echo $indiscipline_delete->Indiscipline_activity->caption() ?></span></th>
<?php } ?>
<?php if ($indiscipline_delete->Status->Visible) { // Status ?>
		<th class="<?php echo $indiscipline_delete->Status->headerCellClass() ?>"><span id="elh_indiscipline_Status" class="indiscipline_Status"><?php echo $indiscipline_delete->Status->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$indiscipline_delete->RecordCount = 0;
$i = 0;
while (!$indiscipline_delete->Recordset->EOF) {
	$indiscipline_delete->RecordCount++;
	$indiscipline_delete->RowCount++;

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

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

	// Render row
	$indiscipline_delete->renderRow();
?>
	<tr <?php echo $indiscipline->rowAttributes() ?>>
<?php if ($indiscipline_delete->id->Visible) { // id ?>
		<td <?php echo $indiscipline_delete->id->cellAttributes() ?>>
<span id="el<?php echo $indiscipline_delete->RowCount ?>_indiscipline_id" class="indiscipline_id">
<span<?php echo $indiscipline_delete->id->viewAttributes() ?>><?php echo $indiscipline_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($indiscipline_delete->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
		<td <?php echo $indiscipline_delete->Indiscipline_activity->cellAttributes() ?>>
<span id="el<?php echo $indiscipline_delete->RowCount ?>_indiscipline_Indiscipline_activity" class="indiscipline_Indiscipline_activity">
<span<?php echo $indiscipline_delete->Indiscipline_activity->viewAttributes() ?>><?php echo $indiscipline_delete->Indiscipline_activity->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($indiscipline_delete->Status->Visible) { // Status ?>
		<td <?php echo $indiscipline_delete->Status->cellAttributes() ?>>
<span id="el<?php echo $indiscipline_delete->RowCount ?>_indiscipline_Status" class="indiscipline_Status">
<span<?php echo $indiscipline_delete->Status->viewAttributes() ?>><?php echo $indiscipline_delete->Status->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$indiscipline_delete->Recordset->moveNext();
}
$indiscipline_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 $indiscipline_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$indiscipline_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
$indiscipline_delete->terminate();
?>