<?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_view = new indiscipline_view();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$indiscipline_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $indiscipline_view->ExportOptions->render("body") ?>
<?php $indiscipline_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $indiscipline_view->showPageHeader(); ?>
<?php
$indiscipline_view->showMessage();
?>
<form name="findisciplineview" id="findisciplineview" class="form-inline ew-form ew-view-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="modal" value="<?php echo (int)$indiscipline_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($indiscipline_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $indiscipline_view->TableLeftColumnClass ?>"><span id="elh_indiscipline_id"><?php echo $indiscipline_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $indiscipline_view->id->cellAttributes() ?>>
<span id="el_indiscipline_id">
<span<?php echo $indiscipline_view->id->viewAttributes() ?>><?php echo $indiscipline_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($indiscipline_view->Indiscipline_activity->Visible) { // Indiscipline_activity ?>
	<tr id="r_Indiscipline_activity">
		<td class="<?php echo $indiscipline_view->TableLeftColumnClass ?>"><span id="elh_indiscipline_Indiscipline_activity"><?php echo $indiscipline_view->Indiscipline_activity->caption() ?></span></td>
		<td data-name="Indiscipline_activity" <?php echo $indiscipline_view->Indiscipline_activity->cellAttributes() ?>>
<span id="el_indiscipline_Indiscipline_activity">
<span<?php echo $indiscipline_view->Indiscipline_activity->viewAttributes() ?>><?php echo $indiscipline_view->Indiscipline_activity->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($indiscipline_view->Status->Visible) { // Status ?>
	<tr id="r_Status">
		<td class="<?php echo $indiscipline_view->TableLeftColumnClass ?>"><span id="elh_indiscipline_Status"><?php echo $indiscipline_view->Status->caption() ?></span></td>
		<td data-name="Status" <?php echo $indiscipline_view->Status->cellAttributes() ?>>
<span id="el_indiscipline_Status">
<span<?php echo $indiscipline_view->Status->viewAttributes() ?>><?php echo $indiscipline_view->Status->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
<?php
	if (in_array("activity", explode(",", $indiscipline->getCurrentDetailTable())) && $activity->DetailView) {
?>
<?php if ($indiscipline->getCurrentDetailTable() != "") { ?>
<h4 class="ew-detail-caption"><?php echo $Language->tablePhrase("activity", "TblCaption") ?></h4>
<?php } ?>
<?php include_once "activitygrid.php" ?>
<?php } ?>
</form>
<?php
$indiscipline_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$indiscipline_view->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
$indiscipline_view->terminate();
?>