<?php
namespace PHPMaker2020\project2;

// 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
$kp_disciplina_view = new kp_disciplina_view();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$kp_disciplina_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $kp_disciplina_view->ExportOptions->render("body") ?>
<?php $kp_disciplina_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $kp_disciplina_view->showPageHeader(); ?>
<?php
$kp_disciplina_view->showMessage();
?>
<form name="fkp_disciplinaview" id="fkp_disciplinaview" 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="kp_disciplina">
<input type="hidden" name="modal" value="<?php echo (int)$kp_disciplina_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($kp_disciplina_view->iddisciplina->Visible) { // iddisciplina ?>
	<tr id="r_iddisciplina">
		<td class="<?php echo $kp_disciplina_view->TableLeftColumnClass ?>"><span id="elh_kp_disciplina_iddisciplina"><?php echo $kp_disciplina_view->iddisciplina->caption() ?></span></td>
		<td data-name="iddisciplina" <?php echo $kp_disciplina_view->iddisciplina->cellAttributes() ?>>
<span id="el_kp_disciplina_iddisciplina">
<span<?php echo $kp_disciplina_view->iddisciplina->viewAttributes() ?>><?php echo $kp_disciplina_view->iddisciplina->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_disciplina_view->nomdisciplina->Visible) { // nomdisciplina ?>
	<tr id="r_nomdisciplina">
		<td class="<?php echo $kp_disciplina_view->TableLeftColumnClass ?>"><span id="elh_kp_disciplina_nomdisciplina"><?php echo $kp_disciplina_view->nomdisciplina->caption() ?></span></td>
		<td data-name="nomdisciplina" <?php echo $kp_disciplina_view->nomdisciplina->cellAttributes() ?>>
<span id="el_kp_disciplina_nomdisciplina">
<span<?php echo $kp_disciplina_view->nomdisciplina->viewAttributes() ?>><?php echo $kp_disciplina_view->nomdisciplina->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_disciplina_view->obsdisciplina->Visible) { // obsdisciplina ?>
	<tr id="r_obsdisciplina">
		<td class="<?php echo $kp_disciplina_view->TableLeftColumnClass ?>"><span id="elh_kp_disciplina_obsdisciplina"><?php echo $kp_disciplina_view->obsdisciplina->caption() ?></span></td>
		<td data-name="obsdisciplina" <?php echo $kp_disciplina_view->obsdisciplina->cellAttributes() ?>>
<span id="el_kp_disciplina_obsdisciplina">
<span<?php echo $kp_disciplina_view->obsdisciplina->viewAttributes() ?>><?php echo $kp_disciplina_view->obsdisciplina->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_disciplina_view->estado->Visible) { // estado ?>
	<tr id="r_estado">
		<td class="<?php echo $kp_disciplina_view->TableLeftColumnClass ?>"><span id="elh_kp_disciplina_estado"><?php echo $kp_disciplina_view->estado->caption() ?></span></td>
		<td data-name="estado" <?php echo $kp_disciplina_view->estado->cellAttributes() ?>>
<span id="el_kp_disciplina_estado">
<span<?php echo $kp_disciplina_view->estado->viewAttributes() ?>><?php echo $kp_disciplina_view->estado->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$kp_disciplina_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$kp_disciplina_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
$kp_disciplina_view->terminate();
?>