<?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_lab_ot_view = new kp_lab_ot_view();

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

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

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

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

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

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

});
</script>
<?php } ?>
<?php if (!$kp_lab_ot_view->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $kp_lab_ot_view->ExportOptions->render("body") ?>
<?php $kp_lab_ot_view->OtherOptions->render("body") ?>
<div class="clearfix"></div>
</div>
<?php } ?>
<?php $kp_lab_ot_view->showPageHeader(); ?>
<?php
$kp_lab_ot_view->showMessage();
?>
<form name="fkp_lab_otview" id="fkp_lab_otview" 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_lab_ot">
<input type="hidden" name="modal" value="<?php echo (int)$kp_lab_ot_view->IsModal ?>">
<table class="table table-striped table-sm ew-view-table">
<?php if ($kp_lab_ot_view->id_reg->Visible) { // id_reg ?>
	<tr id="r_id_reg">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_id_reg"><?php echo $kp_lab_ot_view->id_reg->caption() ?></span></td>
		<td data-name="id_reg" <?php echo $kp_lab_ot_view->id_reg->cellAttributes() ?>>
<span id="el_kp_lab_ot_id_reg">
<span<?php echo $kp_lab_ot_view->id_reg->viewAttributes() ?>><?php echo $kp_lab_ot_view->id_reg->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->idempresa->Visible) { // idempresa ?>
	<tr id="r_idempresa">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_idempresa"><?php echo $kp_lab_ot_view->idempresa->caption() ?></span></td>
		<td data-name="idempresa" <?php echo $kp_lab_ot_view->idempresa->cellAttributes() ?>>
<span id="el_kp_lab_ot_idempresa">
<span<?php echo $kp_lab_ot_view->idempresa->viewAttributes() ?>><?php echo $kp_lab_ot_view->idempresa->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->numero->Visible) { // numero ?>
	<tr id="r_numero">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_numero"><?php echo $kp_lab_ot_view->numero->caption() ?></span></td>
		<td data-name="numero" <?php echo $kp_lab_ot_view->numero->cellAttributes() ?>>
<span id="el_kp_lab_ot_numero">
<span<?php echo $kp_lab_ot_view->numero->viewAttributes() ?>><?php echo $kp_lab_ot_view->numero->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->fecha->Visible) { // fecha ?>
	<tr id="r_fecha">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_fecha"><?php echo $kp_lab_ot_view->fecha->caption() ?></span></td>
		<td data-name="fecha" <?php echo $kp_lab_ot_view->fecha->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha">
<span<?php echo $kp_lab_ot_view->fecha->viewAttributes() ?>><?php echo $kp_lab_ot_view->fecha->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->tipocompra->Visible) { // tipocompra ?>
	<tr id="r_tipocompra">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_tipocompra"><?php echo $kp_lab_ot_view->tipocompra->caption() ?></span></td>
		<td data-name="tipocompra" <?php echo $kp_lab_ot_view->tipocompra->cellAttributes() ?>>
<span id="el_kp_lab_ot_tipocompra">
<span<?php echo $kp_lab_ot_view->tipocompra->viewAttributes() ?>><?php echo $kp_lab_ot_view->tipocompra->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->cita->Visible) { // cita ?>
	<tr id="r_cita">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_cita"><?php echo $kp_lab_ot_view->cita->caption() ?></span></td>
		<td data-name="cita" <?php echo $kp_lab_ot_view->cita->cellAttributes() ?>>
<span id="el_kp_lab_ot_cita">
<span<?php echo $kp_lab_ot_view->cita->viewAttributes() ?>><?php echo $kp_lab_ot_view->cita->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->estado->Visible) { // estado ?>
	<tr id="r_estado">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_estado"><?php echo $kp_lab_ot_view->estado->caption() ?></span></td>
		<td data-name="estado" <?php echo $kp_lab_ot_view->estado->cellAttributes() ?>>
<span id="el_kp_lab_ot_estado">
<span<?php echo $kp_lab_ot_view->estado->viewAttributes() ?>><?php echo $kp_lab_ot_view->estado->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->fecha_enviado->Visible) { // fecha_enviado ?>
	<tr id="r_fecha_enviado">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_fecha_enviado"><?php echo $kp_lab_ot_view->fecha_enviado->caption() ?></span></td>
		<td data-name="fecha_enviado" <?php echo $kp_lab_ot_view->fecha_enviado->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_enviado">
<span<?php echo $kp_lab_ot_view->fecha_enviado->viewAttributes() ?>><?php echo $kp_lab_ot_view->fecha_enviado->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->fecha_asignada->Visible) { // fecha_asignada ?>
	<tr id="r_fecha_asignada">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_fecha_asignada"><?php echo $kp_lab_ot_view->fecha_asignada->caption() ?></span></td>
		<td data-name="fecha_asignada" <?php echo $kp_lab_ot_view->fecha_asignada->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_asignada">
<span<?php echo $kp_lab_ot_view->fecha_asignada->viewAttributes() ?>><?php echo $kp_lab_ot_view->fecha_asignada->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->fecha_inicio->Visible) { // fecha_inicio ?>
	<tr id="r_fecha_inicio">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_fecha_inicio"><?php echo $kp_lab_ot_view->fecha_inicio->caption() ?></span></td>
		<td data-name="fecha_inicio" <?php echo $kp_lab_ot_view->fecha_inicio->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_inicio">
<span<?php echo $kp_lab_ot_view->fecha_inicio->viewAttributes() ?>><?php echo $kp_lab_ot_view->fecha_inicio->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($kp_lab_ot_view->fecha_fin->Visible) { // fecha_fin ?>
	<tr id="r_fecha_fin">
		<td class="<?php echo $kp_lab_ot_view->TableLeftColumnClass ?>"><span id="elh_kp_lab_ot_fecha_fin"><?php echo $kp_lab_ot_view->fecha_fin->caption() ?></span></td>
		<td data-name="fecha_fin" <?php echo $kp_lab_ot_view->fecha_fin->cellAttributes() ?>>
<span id="el_kp_lab_ot_fecha_fin">
<span<?php echo $kp_lab_ot_view->fecha_fin->viewAttributes() ?>><?php echo $kp_lab_ot_view->fecha_fin->getViewValue() ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</form>
<?php
$kp_lab_ot_view->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<?php if (!$kp_lab_ot_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_lab_ot_view->terminate();
?>