<?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_logs_delete = new kp_logs_delete();

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

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

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

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

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

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

});
</script>
<?php $kp_logs_delete->showPageHeader(); ?>
<?php
$kp_logs_delete->showMessage();
?>
<form name="fkp_logsdelete" id="fkp_logsdelete" 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_logs">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($kp_logs_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_logs_delete->id->Visible) { // id ?>
		<th class="<?php echo $kp_logs_delete->id->headerCellClass() ?>"><span id="elh_kp_logs_id" class="kp_logs_id"><?php echo $kp_logs_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($kp_logs_delete->tipo->Visible) { // tipo ?>
		<th class="<?php echo $kp_logs_delete->tipo->headerCellClass() ?>"><span id="elh_kp_logs_tipo" class="kp_logs_tipo"><?php echo $kp_logs_delete->tipo->caption() ?></span></th>
<?php } ?>
<?php if ($kp_logs_delete->codlogin->Visible) { // codlogin ?>
		<th class="<?php echo $kp_logs_delete->codlogin->headerCellClass() ?>"><span id="elh_kp_logs_codlogin" class="kp_logs_codlogin"><?php echo $kp_logs_delete->codlogin->caption() ?></span></th>
<?php } ?>
<?php if ($kp_logs_delete->ip->Visible) { // ip ?>
		<th class="<?php echo $kp_logs_delete->ip->headerCellClass() ?>"><span id="elh_kp_logs_ip" class="kp_logs_ip"><?php echo $kp_logs_delete->ip->caption() ?></span></th>
<?php } ?>
<?php if ($kp_logs_delete->alerta->Visible) { // alerta ?>
		<th class="<?php echo $kp_logs_delete->alerta->headerCellClass() ?>"><span id="elh_kp_logs_alerta" class="kp_logs_alerta"><?php echo $kp_logs_delete->alerta->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$kp_logs_delete->RecordCount = 0;
$i = 0;
while (!$kp_logs_delete->Recordset->EOF) {
	$kp_logs_delete->RecordCount++;
	$kp_logs_delete->RowCount++;

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

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

	// Render row
	$kp_logs_delete->renderRow();
?>
	<tr <?php echo $kp_logs->rowAttributes() ?>>
<?php if ($kp_logs_delete->id->Visible) { // id ?>
		<td <?php echo $kp_logs_delete->id->cellAttributes() ?>>
<span id="el<?php echo $kp_logs_delete->RowCount ?>_kp_logs_id" class="kp_logs_id">
<span<?php echo $kp_logs_delete->id->viewAttributes() ?>><?php echo $kp_logs_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_logs_delete->tipo->Visible) { // tipo ?>
		<td <?php echo $kp_logs_delete->tipo->cellAttributes() ?>>
<span id="el<?php echo $kp_logs_delete->RowCount ?>_kp_logs_tipo" class="kp_logs_tipo">
<span<?php echo $kp_logs_delete->tipo->viewAttributes() ?>><?php echo $kp_logs_delete->tipo->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_logs_delete->codlogin->Visible) { // codlogin ?>
		<td <?php echo $kp_logs_delete->codlogin->cellAttributes() ?>>
<span id="el<?php echo $kp_logs_delete->RowCount ?>_kp_logs_codlogin" class="kp_logs_codlogin">
<span<?php echo $kp_logs_delete->codlogin->viewAttributes() ?>><?php echo $kp_logs_delete->codlogin->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_logs_delete->ip->Visible) { // ip ?>
		<td <?php echo $kp_logs_delete->ip->cellAttributes() ?>>
<span id="el<?php echo $kp_logs_delete->RowCount ?>_kp_logs_ip" class="kp_logs_ip">
<span<?php echo $kp_logs_delete->ip->viewAttributes() ?>><?php echo $kp_logs_delete->ip->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($kp_logs_delete->alerta->Visible) { // alerta ?>
		<td <?php echo $kp_logs_delete->alerta->cellAttributes() ?>>
<span id="el<?php echo $kp_logs_delete->RowCount ?>_kp_logs_alerta" class="kp_logs_alerta">
<span<?php echo $kp_logs_delete->alerta->viewAttributes() ?>><div class="custom-control custom-checkbox d-inline-block"><input type="checkbox" id="x_alerta" class="custom-control-input" value="<?php echo $kp_logs_delete->alerta->getViewValue() ?>" disabled<?php if (ConvertToBool($kp_logs_delete->alerta->CurrentValue)) { ?> checked<?php } ?>><label class="custom-control-label" for="x_alerta"></label></div></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$kp_logs_delete->Recordset->moveNext();
}
$kp_logs_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_logs_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$kp_logs_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_logs_delete->terminate();
?>