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

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$ubigeo_peru_departments_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $ubigeo_peru_departments_view->ExportOptions->render("body") ?>
<?php $ubigeo_peru_departments_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $ubigeo_peru_departments_view->showPageHeader(); ?>
<?php
$ubigeo_peru_departments_view->showMessage();
?>
<form name="fubigeo_peru_departmentsview" id="fubigeo_peru_departmentsview" 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="ubigeo_peru_departments">
<input type="hidden" name="modal" value="<?php echo (int)$ubigeo_peru_departments_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($ubigeo_peru_departments_view->id->Visible) { // id ?>
	<tr id="r_id">
		<td class="<?php echo $ubigeo_peru_departments_view->TableLeftColumnClass ?>"><span id="elh_ubigeo_peru_departments_id"><?php echo $ubigeo_peru_departments_view->id->caption() ?></span></td>
		<td data-name="id" <?php echo $ubigeo_peru_departments_view->id->cellAttributes() ?>>
<span id="el_ubigeo_peru_departments_id">
<span<?php echo $ubigeo_peru_departments_view->id->viewAttributes() ?>><?php echo $ubigeo_peru_departments_view->id->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($ubigeo_peru_departments_view->name->Visible) { // name ?>
	<tr id="r_name">
		<td class="<?php echo $ubigeo_peru_departments_view->TableLeftColumnClass ?>"><span id="elh_ubigeo_peru_departments_name"><?php echo $ubigeo_peru_departments_view->name->caption() ?></span></td>
		<td data-name="name" <?php echo $ubigeo_peru_departments_view->name->cellAttributes() ?>>
<span id="el_ubigeo_peru_departments_name">
<span<?php echo $ubigeo_peru_departments_view->name->viewAttributes() ?>><?php echo $ubigeo_peru_departments_view->name->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($ubigeo_peru_departments_view->id_pais->Visible) { // id_pais ?>
	<tr id="r_id_pais">
		<td class="<?php echo $ubigeo_peru_departments_view->TableLeftColumnClass ?>"><span id="elh_ubigeo_peru_departments_id_pais"><?php echo $ubigeo_peru_departments_view->id_pais->caption() ?></span></td>
		<td data-name="id_pais" <?php echo $ubigeo_peru_departments_view->id_pais->cellAttributes() ?>>
<span id="el_ubigeo_peru_departments_id_pais">
<span<?php echo $ubigeo_peru_departments_view->id_pais->viewAttributes() ?>><?php echo $ubigeo_peru_departments_view->id_pais->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$ubigeo_peru_departments_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$ubigeo_peru_departments_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
$ubigeo_peru_departments_view->terminate();
?>