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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$userlevelpermissions_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $userlevelpermissions_view->ExportOptions->render("body") ?>
<?php $userlevelpermissions_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $userlevelpermissions_view->showPageHeader(); ?>
<?php
$userlevelpermissions_view->showMessage();
?>
<form name="fuserlevelpermissionsview" id="fuserlevelpermissionsview" 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="userlevelpermissions">
<input type="hidden" name="modal" value="<?php echo (int)$userlevelpermissions_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($userlevelpermissions_view->userlevelid->Visible) { // userlevelid ?>
	<tr id="r_userlevelid">
		<td class="<?php echo $userlevelpermissions_view->TableLeftColumnClass ?>"><span id="elh_userlevelpermissions_userlevelid"><?php echo $userlevelpermissions_view->userlevelid->caption() ?></span></td>
		<td data-name="userlevelid" <?php echo $userlevelpermissions_view->userlevelid->cellAttributes() ?>>
<span id="el_userlevelpermissions_userlevelid">
<span<?php echo $userlevelpermissions_view->userlevelid->viewAttributes() ?>><?php echo $userlevelpermissions_view->userlevelid->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($userlevelpermissions_view->_tablename->Visible) { // tablename ?>
	<tr id="r__tablename">
		<td class="<?php echo $userlevelpermissions_view->TableLeftColumnClass ?>"><span id="elh_userlevelpermissions__tablename"><?php echo $userlevelpermissions_view->_tablename->caption() ?></span></td>
		<td data-name="_tablename" <?php echo $userlevelpermissions_view->_tablename->cellAttributes() ?>>
<span id="el_userlevelpermissions__tablename">
<span<?php echo $userlevelpermissions_view->_tablename->viewAttributes() ?>><?php echo $userlevelpermissions_view->_tablename->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($userlevelpermissions_view->permission->Visible) { // permission ?>
	<tr id="r_permission">
		<td class="<?php echo $userlevelpermissions_view->TableLeftColumnClass ?>"><span id="elh_userlevelpermissions_permission"><?php echo $userlevelpermissions_view->permission->caption() ?></span></td>
		<td data-name="permission" <?php echo $userlevelpermissions_view->permission->cellAttributes() ?>>
<span id="el_userlevelpermissions_permission">
<span<?php echo $userlevelpermissions_view->permission->viewAttributes() ?>><?php echo $userlevelpermissions_view->permission->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$userlevelpermissions_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$userlevelpermissions_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
$userlevelpermissions_view->terminate();
?>