<?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_ordenes_view = new kp_ordenes_view();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$kp_ordenes_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $kp_ordenes_view->ExportOptions->render("body") ?>
<?php $kp_ordenes_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $kp_ordenes_view->showPageHeader(); ?>
<?php
$kp_ordenes_view->showMessage();
?>
<form name="fkp_ordenesview" id="fkp_ordenesview" 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_ordenes">
<input type="hidden" name="modal" value="<?php echo (int)$kp_ordenes_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($kp_ordenes_view->id_reg->Visible) { // id_reg ?>
	<tr id="r_id_reg">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_id_reg"><?php echo $kp_ordenes_view->id_reg->caption() ?></span></td>
		<td data-name="id_reg" <?php echo $kp_ordenes_view->id_reg->cellAttributes() ?>>
<span id="el_kp_ordenes_id_reg">
<span<?php echo $kp_ordenes_view->id_reg->viewAttributes() ?>><?php echo $kp_ordenes_view->id_reg->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->idempresa->Visible) { // idempresa ?>
	<tr id="r_idempresa">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_idempresa"><?php echo $kp_ordenes_view->idempresa->caption() ?></span></td>
		<td data-name="idempresa" <?php echo $kp_ordenes_view->idempresa->cellAttributes() ?>>
<span id="el_kp_ordenes_idempresa">
<span<?php echo $kp_ordenes_view->idempresa->viewAttributes() ?>><?php echo $kp_ordenes_view->idempresa->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->numcompra->Visible) { // numcompra ?>
	<tr id="r_numcompra">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_numcompra"><?php echo $kp_ordenes_view->numcompra->caption() ?></span></td>
		<td data-name="numcompra" <?php echo $kp_ordenes_view->numcompra->cellAttributes() ?>>
<span id="el_kp_ordenes_numcompra">
<span<?php echo $kp_ordenes_view->numcompra->viewAttributes() ?>><?php echo $kp_ordenes_view->numcompra->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->fecha->Visible) { // fecha ?>
	<tr id="r_fecha">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_fecha"><?php echo $kp_ordenes_view->fecha->caption() ?></span></td>
		<td data-name="fecha" <?php echo $kp_ordenes_view->fecha->cellAttributes() ?>>
<span id="el_kp_ordenes_fecha">
<span<?php echo $kp_ordenes_view->fecha->viewAttributes() ?>><?php echo $kp_ordenes_view->fecha->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->tipocompra->Visible) { // tipocompra ?>
	<tr id="r_tipocompra">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_tipocompra"><?php echo $kp_ordenes_view->tipocompra->caption() ?></span></td>
		<td data-name="tipocompra" <?php echo $kp_ordenes_view->tipocompra->cellAttributes() ?>>
<span id="el_kp_ordenes_tipocompra">
<span<?php echo $kp_ordenes_view->tipocompra->viewAttributes() ?>><?php echo $kp_ordenes_view->tipocompra->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->cita->Visible) { // cita ?>
	<tr id="r_cita">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_cita"><?php echo $kp_ordenes_view->cita->caption() ?></span></td>
		<td data-name="cita" <?php echo $kp_ordenes_view->cita->cellAttributes() ?>>
<span id="el_kp_ordenes_cita">
<span<?php echo $kp_ordenes_view->cita->viewAttributes() ?>><?php echo $kp_ordenes_view->cita->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_ordenes_view->estado->Visible) { // estado ?>
	<tr id="r_estado">
		<td class="<?php echo $kp_ordenes_view->TableLeftColumnClass ?>"><span id="elh_kp_ordenes_estado"><?php echo $kp_ordenes_view->estado->caption() ?></span></td>
		<td data-name="estado" <?php echo $kp_ordenes_view->estado->cellAttributes() ?>>
<span id="el_kp_ordenes_estado">
<span<?php echo $kp_ordenes_view->estado->viewAttributes() ?>><?php echo $kp_ordenes_view->estado->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$kp_ordenes_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$kp_ordenes_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_ordenes_view->terminate();
?>