<?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_delete = new kp_lab_ot_delete();

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

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

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

// Page Rendering event
$kp_lab_ot_delete->Page_Render();
?>
<?php include_once "header.php"; ?>
<script>
var fkp_lab_otdelete, currentPageID;
loadjs.ready("head", function() {

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

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

});
</script>
<?php $kp_lab_ot_delete->showPageHeader(); ?>
<?php
$kp_lab_ot_delete->showMessage();
?>
<form name="fkp_lab_otdelete" id="fkp_lab_otdelete" class="form-inline ew-form ew-delete-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="action" id="action" value="delete">
<?php foreach ($kp_lab_ot_delete->RecKeys as $key) { ?>
<?php $keyvalue = is_array($key) ? implode(Config("COMPOSITE_KEY_SEPARATOR"), $key) : $key; ?>
<input type="hidden" name="key_m[]" value="<?php echo HtmlEncode($keyvalue) ?>">
<?php } ?>
<div class="card ew-card ew-grid">
<div class="<?php echo ResponsiveTableClass() ?>card-body ew-grid-middle-panel">
<table class="table ew-table">
	<thead>
	<tr class="ew-table-header">
<?php if ($kp_lab_ot_delete->id_reg->Visible) { // id_reg ?>
		<th class="<?php echo $kp_lab_ot_delete->id_reg->headerCellClass() ?>"><span id="elh_kp_lab_ot_id_reg" class="kp_lab_ot_id_reg"><?php echo $kp_lab_ot_delete->id_reg->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->idempresa->Visible) { // idempresa ?>
		<th class="<?php echo $kp_lab_ot_delete->idempresa->headerCellClass() ?>"><span id="elh_kp_lab_ot_idempresa" class="kp_lab_ot_idempresa"><?php echo $kp_lab_ot_delete->idempresa->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->numero->Visible) { // numero ?>
		<th class="<?php echo $kp_lab_ot_delete->numero->headerCellClass() ?>"><span id="elh_kp_lab_ot_numero" class="kp_lab_ot_numero"><?php echo $kp_lab_ot_delete->numero->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha->Visible) { // fecha ?>
		<th class="<?php echo $kp_lab_ot_delete->fecha->headerCellClass() ?>"><span id="elh_kp_lab_ot_fecha" class="kp_lab_ot_fecha"><?php echo $kp_lab_ot_delete->fecha->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->tipocompra->Visible) { // tipocompra ?>
		<th class="<?php echo $kp_lab_ot_delete->tipocompra->headerCellClass() ?>"><span id="elh_kp_lab_ot_tipocompra" class="kp_lab_ot_tipocompra"><?php echo $kp_lab_ot_delete->tipocompra->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->cita->Visible) { // cita ?>
		<th class="<?php echo $kp_lab_ot_delete->cita->headerCellClass() ?>"><span id="elh_kp_lab_ot_cita" class="kp_lab_ot_cita"><?php echo $kp_lab_ot_delete->cita->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->estado->Visible) { // estado ?>
		<th class="<?php echo $kp_lab_ot_delete->estado->headerCellClass() ?>"><span id="elh_kp_lab_ot_estado" class="kp_lab_ot_estado"><?php echo $kp_lab_ot_delete->estado->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_enviado->Visible) { // fecha_enviado ?>
		<th class="<?php echo $kp_lab_ot_delete->fecha_enviado->headerCellClass() ?>"><span id="elh_kp_lab_ot_fecha_enviado" class="kp_lab_ot_fecha_enviado"><?php echo $kp_lab_ot_delete->fecha_enviado->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_asignada->Visible) { // fecha_asignada ?>
		<th class="<?php echo $kp_lab_ot_delete->fecha_asignada->headerCellClass() ?>"><span id="elh_kp_lab_ot_fecha_asignada" class="kp_lab_ot_fecha_asignada"><?php echo $kp_lab_ot_delete->fecha_asignada->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_inicio->Visible) { // fecha_inicio ?>
		<th class="<?php echo $kp_lab_ot_delete->fecha_inicio->headerCellClass() ?>"><span id="elh_kp_lab_ot_fecha_inicio" class="kp_lab_ot_fecha_inicio"><?php echo $kp_lab_ot_delete->fecha_inicio->caption() ?></span></th>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_fin->Visible) { // fecha_fin ?>
		<th class="<?php echo $kp_lab_ot_delete->fecha_fin->headerCellClass() ?>"><span id="elh_kp_lab_ot_fecha_fin" class="kp_lab_ot_fecha_fin"><?php echo $kp_lab_ot_delete->fecha_fin->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$kp_lab_ot_delete->RecordCount = 0;
$i = 0;
while (!$kp_lab_ot_delete->Recordset->EOF) {
	$kp_lab_ot_delete->RecordCount++;
	$kp_lab_ot_delete->RowCount++;

	// Set row properties
	$kp_lab_ot->resetAttributes();
	$kp_lab_ot->RowType = ROWTYPE_VIEW; // View

	// Get the field contents
	$kp_lab_ot_delete->loadRowValues($kp_lab_ot_delete->Recordset);

	// Render row
	$kp_lab_ot_delete->renderRow();
?>
	<tr <?php echo $kp_lab_ot->rowAttributes() ?>>
<?php if ($kp_lab_ot_delete->id_reg->Visible) { // id_reg ?>
		<td <?php echo $kp_lab_ot_delete->id_reg->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_id_reg" class="kp_lab_ot_id_reg">
<span<?php echo $kp_lab_ot_delete->id_reg->viewAttributes() ?>><?php echo $kp_lab_ot_delete->id_reg->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->idempresa->Visible) { // idempresa ?>
		<td <?php echo $kp_lab_ot_delete->idempresa->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_idempresa" class="kp_lab_ot_idempresa">
<span<?php echo $kp_lab_ot_delete->idempresa->viewAttributes() ?>><?php echo $kp_lab_ot_delete->idempresa->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->numero->Visible) { // numero ?>
		<td <?php echo $kp_lab_ot_delete->numero->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_numero" class="kp_lab_ot_numero">
<span<?php echo $kp_lab_ot_delete->numero->viewAttributes() ?>><?php echo $kp_lab_ot_delete->numero->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha->Visible) { // fecha ?>
		<td <?php echo $kp_lab_ot_delete->fecha->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_fecha" class="kp_lab_ot_fecha">
<span<?php echo $kp_lab_ot_delete->fecha->viewAttributes() ?>><?php echo $kp_lab_ot_delete->fecha->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->tipocompra->Visible) { // tipocompra ?>
		<td <?php echo $kp_lab_ot_delete->tipocompra->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_tipocompra" class="kp_lab_ot_tipocompra">
<span<?php echo $kp_lab_ot_delete->tipocompra->viewAttributes() ?>><?php echo $kp_lab_ot_delete->tipocompra->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->cita->Visible) { // cita ?>
		<td <?php echo $kp_lab_ot_delete->cita->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_cita" class="kp_lab_ot_cita">
<span<?php echo $kp_lab_ot_delete->cita->viewAttributes() ?>><?php echo $kp_lab_ot_delete->cita->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->estado->Visible) { // estado ?>
		<td <?php echo $kp_lab_ot_delete->estado->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_estado" class="kp_lab_ot_estado">
<span<?php echo $kp_lab_ot_delete->estado->viewAttributes() ?>><?php echo $kp_lab_ot_delete->estado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_enviado->Visible) { // fecha_enviado ?>
		<td <?php echo $kp_lab_ot_delete->fecha_enviado->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_fecha_enviado" class="kp_lab_ot_fecha_enviado">
<span<?php echo $kp_lab_ot_delete->fecha_enviado->viewAttributes() ?>><?php echo $kp_lab_ot_delete->fecha_enviado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_asignada->Visible) { // fecha_asignada ?>
		<td <?php echo $kp_lab_ot_delete->fecha_asignada->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_fecha_asignada" class="kp_lab_ot_fecha_asignada">
<span<?php echo $kp_lab_ot_delete->fecha_asignada->viewAttributes() ?>><?php echo $kp_lab_ot_delete->fecha_asignada->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_inicio->Visible) { // fecha_inicio ?>
		<td <?php echo $kp_lab_ot_delete->fecha_inicio->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_fecha_inicio" class="kp_lab_ot_fecha_inicio">
<span<?php echo $kp_lab_ot_delete->fecha_inicio->viewAttributes() ?>><?php echo $kp_lab_ot_delete->fecha_inicio->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_lab_ot_delete->fecha_fin->Visible) { // fecha_fin ?>
		<td <?php echo $kp_lab_ot_delete->fecha_fin->cellAttributes() ?>>
<span id="el<?php echo $kp_lab_ot_delete->RowCount ?>_kp_lab_ot_fecha_fin" class="kp_lab_ot_fecha_fin">
<span<?php echo $kp_lab_ot_delete->fecha_fin->viewAttributes() ?>><?php echo $kp_lab_ot_delete->fecha_fin->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$kp_lab_ot_delete->Recordset->moveNext();
}
$kp_lab_ot_delete->Recordset->close();
?>
</tbody>
</table>
</div>
</div>
<div>
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?php echo $Language->phrase("DeleteBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?php echo $kp_lab_ot_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$kp_lab_ot_delete->showPageFooter();
if (Config("DEBUG"))
	echo GetDebugMessage();
?>
<script>
loadjs.ready("load", function() {

	// Startup script
	// Write your table-specific startup script here
	// console.log("page loaded");

});
</script>
<?php include_once "footer.php"; ?>
<?php
$kp_lab_ot_delete->terminate();
?>