<?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_categorias_articulos_delete = new kp_categorias_articulos_delete();

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

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

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

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

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

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

});
</script>
<?php $kp_categorias_articulos_delete->showPageHeader(); ?>
<?php
$kp_categorias_articulos_delete->showMessage();
?>
<form name="fkp_categorias_articulosdelete" id="fkp_categorias_articulosdelete" 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_categorias_articulos">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($kp_categorias_articulos_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_categorias_articulos_delete->id_reg->Visible) { // id_reg ?>
		<th class="<?php echo $kp_categorias_articulos_delete->id_reg->headerCellClass() ?>"><span id="elh_kp_categorias_articulos_id_reg" class="kp_categorias_articulos_id_reg"><?php echo $kp_categorias_articulos_delete->id_reg->caption() ?></span></th>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->idempresa->Visible) { // idempresa ?>
		<th class="<?php echo $kp_categorias_articulos_delete->idempresa->headerCellClass() ?>"><span id="elh_kp_categorias_articulos_idempresa" class="kp_categorias_articulos_idempresa"><?php echo $kp_categorias_articulos_delete->idempresa->caption() ?></span></th>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->idcategoriaemp->Visible) { // idcategoriaemp ?>
		<th class="<?php echo $kp_categorias_articulos_delete->idcategoriaemp->headerCellClass() ?>"><span id="elh_kp_categorias_articulos_idcategoriaemp" class="kp_categorias_articulos_idcategoriaemp"><?php echo $kp_categorias_articulos_delete->idcategoriaemp->caption() ?></span></th>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->nomcategoria->Visible) { // nomcategoria ?>
		<th class="<?php echo $kp_categorias_articulos_delete->nomcategoria->headerCellClass() ?>"><span id="elh_kp_categorias_articulos_nomcategoria" class="kp_categorias_articulos_nomcategoria"><?php echo $kp_categorias_articulos_delete->nomcategoria->caption() ?></span></th>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->fecha_reg->Visible) { // fecha_reg ?>
		<th class="<?php echo $kp_categorias_articulos_delete->fecha_reg->headerCellClass() ?>"><span id="elh_kp_categorias_articulos_fecha_reg" class="kp_categorias_articulos_fecha_reg"><?php echo $kp_categorias_articulos_delete->fecha_reg->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$kp_categorias_articulos_delete->RecordCount = 0;
$i = 0;
while (!$kp_categorias_articulos_delete->Recordset->EOF) {
	$kp_categorias_articulos_delete->RecordCount++;
	$kp_categorias_articulos_delete->RowCount++;

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

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

	// Render row
	$kp_categorias_articulos_delete->renderRow();
?>
	<tr <?php echo $kp_categorias_articulos->rowAttributes() ?>>
<?php if ($kp_categorias_articulos_delete->id_reg->Visible) { // id_reg ?>
		<td <?php echo $kp_categorias_articulos_delete->id_reg->cellAttributes() ?>>
<span id="el<?php echo $kp_categorias_articulos_delete->RowCount ?>_kp_categorias_articulos_id_reg" class="kp_categorias_articulos_id_reg">
<span<?php echo $kp_categorias_articulos_delete->id_reg->viewAttributes() ?>><?php echo $kp_categorias_articulos_delete->id_reg->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->idempresa->Visible) { // idempresa ?>
		<td <?php echo $kp_categorias_articulos_delete->idempresa->cellAttributes() ?>>
<span id="el<?php echo $kp_categorias_articulos_delete->RowCount ?>_kp_categorias_articulos_idempresa" class="kp_categorias_articulos_idempresa">
<span<?php echo $kp_categorias_articulos_delete->idempresa->viewAttributes() ?>><?php echo $kp_categorias_articulos_delete->idempresa->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->idcategoriaemp->Visible) { // idcategoriaemp ?>
		<td <?php echo $kp_categorias_articulos_delete->idcategoriaemp->cellAttributes() ?>>
<span id="el<?php echo $kp_categorias_articulos_delete->RowCount ?>_kp_categorias_articulos_idcategoriaemp" class="kp_categorias_articulos_idcategoriaemp">
<span<?php echo $kp_categorias_articulos_delete->idcategoriaemp->viewAttributes() ?>><?php echo $kp_categorias_articulos_delete->idcategoriaemp->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->nomcategoria->Visible) { // nomcategoria ?>
		<td <?php echo $kp_categorias_articulos_delete->nomcategoria->cellAttributes() ?>>
<span id="el<?php echo $kp_categorias_articulos_delete->RowCount ?>_kp_categorias_articulos_nomcategoria" class="kp_categorias_articulos_nomcategoria">
<span<?php echo $kp_categorias_articulos_delete->nomcategoria->viewAttributes() ?>><?php echo $kp_categorias_articulos_delete->nomcategoria->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_categorias_articulos_delete->fecha_reg->Visible) { // fecha_reg ?>
		<td <?php echo $kp_categorias_articulos_delete->fecha_reg->cellAttributes() ?>>
<span id="el<?php echo $kp_categorias_articulos_delete->RowCount ?>_kp_categorias_articulos_fecha_reg" class="kp_categorias_articulos_fecha_reg">
<span<?php echo $kp_categorias_articulos_delete->fecha_reg->viewAttributes() ?>><?php echo $kp_categorias_articulos_delete->fecha_reg->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$kp_categorias_articulos_delete->Recordset->moveNext();
}
$kp_categorias_articulos_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_categorias_articulos_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$kp_categorias_articulos_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_categorias_articulos_delete->terminate();
?>