<?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_codbarras_view = new kp_codbarras_view();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$kp_codbarras_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $kp_codbarras_view->ExportOptions->render("body") ?>
<?php $kp_codbarras_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $kp_codbarras_view->showPageHeader(); ?>
<?php
$kp_codbarras_view->showMessage();
?>
<form name="fkp_codbarrasview" id="fkp_codbarrasview" 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_codbarras">
<input type="hidden" name="modal" value="<?php echo (int)$kp_codbarras_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($kp_codbarras_view->id_reg->Visible) { // id_reg ?>
	<tr id="r_id_reg">
		<td class="<?php echo $kp_codbarras_view->TableLeftColumnClass ?>"><span id="elh_kp_codbarras_id_reg"><?php echo $kp_codbarras_view->id_reg->caption() ?></span></td>
		<td data-name="id_reg" <?php echo $kp_codbarras_view->id_reg->cellAttributes() ?>>
<span id="el_kp_codbarras_id_reg">
<span<?php echo $kp_codbarras_view->id_reg->viewAttributes() ?>><?php echo $kp_codbarras_view->id_reg->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_codbarras_view->idempresa->Visible) { // idempresa ?>
	<tr id="r_idempresa">
		<td class="<?php echo $kp_codbarras_view->TableLeftColumnClass ?>"><span id="elh_kp_codbarras_idempresa"><?php echo $kp_codbarras_view->idempresa->caption() ?></span></td>
		<td data-name="idempresa" <?php echo $kp_codbarras_view->idempresa->cellAttributes() ?>>
<span id="el_kp_codbarras_idempresa">
<span<?php echo $kp_codbarras_view->idempresa->viewAttributes() ?>><?php echo $kp_codbarras_view->idempresa->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_codbarras_view->idarticulo->Visible) { // idarticulo ?>
	<tr id="r_idarticulo">
		<td class="<?php echo $kp_codbarras_view->TableLeftColumnClass ?>"><span id="elh_kp_codbarras_idarticulo"><?php echo $kp_codbarras_view->idarticulo->caption() ?></span></td>
		<td data-name="idarticulo" <?php echo $kp_codbarras_view->idarticulo->cellAttributes() ?>>
<span id="el_kp_codbarras_idarticulo">
<span<?php echo $kp_codbarras_view->idarticulo->viewAttributes() ?>><?php echo $kp_codbarras_view->idarticulo->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_codbarras_view->codbarra->Visible) { // codbarra ?>
	<tr id="r_codbarra">
		<td class="<?php echo $kp_codbarras_view->TableLeftColumnClass ?>"><span id="elh_kp_codbarras_codbarra"><?php echo $kp_codbarras_view->codbarra->caption() ?></span></td>
		<td data-name="codbarra" <?php echo $kp_codbarras_view->codbarra->cellAttributes() ?>>
<span id="el_kp_codbarras_codbarra">
<span<?php echo $kp_codbarras_view->codbarra->viewAttributes() ?>><?php echo $kp_codbarras_view->codbarra->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$kp_codbarras_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$kp_codbarras_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_codbarras_view->terminate();
?>