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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$staff_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $staff_view->ExportOptions->render("body") ?>
<?php $staff_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $staff_view->showPageHeader(); ?>
<?php
$staff_view->showMessage();
?>
<form name="fstaffview" id="fstaffview" 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="staff">
<input type="hidden" name="modal" value="<?php echo (int)$staff_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($staff_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_id"><?php echo $staff_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $staff_view->id->cellAttributes() ?>>
<span id="el_staff_id">
<span<?php echo $staff_view->id->viewAttributes() ?>><?php echo $staff_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->Staff_Name->Visible) { // Staff_Name ?>
	<tr id="r_Staff_Name">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_Staff_Name"><?php echo $staff_view->Staff_Name->caption() ?></span></td>
		<td data-name="Staff_Name" <?php echo $staff_view->Staff_Name->cellAttributes() ?>>
<span id="el_staff_Staff_Name">
<span<?php echo $staff_view->Staff_Name->viewAttributes() ?>><?php echo $staff_view->Staff_Name->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->ContactNo->Visible) { // ContactNo ?>
	<tr id="r_ContactNo">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_ContactNo"><?php echo $staff_view->ContactNo->caption() ?></span></td>
		<td data-name="ContactNo" <?php echo $staff_view->ContactNo->cellAttributes() ?>>
<span id="el_staff_ContactNo">
<span<?php echo $staff_view->ContactNo->viewAttributes() ?>><?php echo $staff_view->ContactNo->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->_email->Visible) { // email ?>
	<tr id="r__email">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff__email"><?php echo $staff_view->_email->caption() ?></span></td>
		<td data-name="_email" <?php echo $staff_view->_email->cellAttributes() ?>>
<span id="el_staff__email">
<span<?php echo $staff_view->_email->viewAttributes() ?>><?php echo $staff_view->_email->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->password->Visible) { // password ?>
	<tr id="r_password">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_password"><?php echo $staff_view->password->caption() ?></span></td>
		<td data-name="password" <?php echo $staff_view->password->cellAttributes() ?>>
<span id="el_staff_password">
<span<?php echo $staff_view->password->viewAttributes() ?>><?php echo $staff_view->password->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->userlevel->Visible) { // userlevel ?>
	<tr id="r_userlevel">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_userlevel"><?php echo $staff_view->userlevel->caption() ?></span></td>
		<td data-name="userlevel" <?php echo $staff_view->userlevel->cellAttributes() ?>>
<span id="el_staff_userlevel">
<span<?php echo $staff_view->userlevel->viewAttributes() ?>><?php echo $staff_view->userlevel->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($staff_view->profile->Visible) { // profile ?>
	<tr id="r_profile">
		<td class="<?php echo $staff_view->TableLeftColumnClass ?>"><span id="elh_staff_profile"><?php echo $staff_view->profile->caption() ?></span></td>
		<td data-name="profile" <?php echo $staff_view->profile->cellAttributes() ?>>
<span id="el_staff_profile">
<span<?php echo $staff_view->profile->viewAttributes() ?>><?php echo $staff_view->profile->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$staff_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$staff_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
$staff_view->terminate();
?>