<?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
$comentario_delete = new comentario_delete();

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

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

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

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

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

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

});
</script>
<?php $comentario_delete->showPageHeader(); ?>
<?php
$comentario_delete->showMessage();
?>
<form name="fcomentariodelete" id="fcomentariodelete" 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="comentario">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($comentario_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 ($comentario_delete->id_comentario->Visible) { // id_comentario ?>
		<th class="<?php echo $comentario_delete->id_comentario->headerCellClass() ?>"><span id="elh_comentario_id_comentario" class="comentario_id_comentario"><?php echo $comentario_delete->id_comentario->caption() ?></span></th>
<?php } ?>
<?php if ($comentario_delete->id_detallecuota->Visible) { // id_detallecuota ?>
		<th class="<?php echo $comentario_delete->id_detallecuota->headerCellClass() ?>"><span id="elh_comentario_id_detallecuota" class="comentario_id_detallecuota"><?php echo $comentario_delete->id_detallecuota->caption() ?></span></th>
<?php } ?>
<?php if ($comentario_delete->estado->Visible) { // estado ?>
		<th class="<?php echo $comentario_delete->estado->headerCellClass() ?>"><span id="elh_comentario_estado" class="comentario_estado"><?php echo $comentario_delete->estado->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$comentario_delete->RecordCount = 0;
$i = 0;
while (!$comentario_delete->Recordset->EOF) {
	$comentario_delete->RecordCount++;
	$comentario_delete->RowCount++;

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

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

	// Render row
	$comentario_delete->renderRow();
?>
	<tr <?php echo $comentario->rowAttributes() ?>>
<?php if ($comentario_delete->id_comentario->Visible) { // id_comentario ?>
		<td <?php echo $comentario_delete->id_comentario->cellAttributes() ?>>
<span id="el<?php echo $comentario_delete->RowCount ?>_comentario_id_comentario" class="comentario_id_comentario">
<span<?php echo $comentario_delete->id_comentario->viewAttributes() ?>><?php echo $comentario_delete->id_comentario->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($comentario_delete->id_detallecuota->Visible) { // id_detallecuota ?>
		<td <?php echo $comentario_delete->id_detallecuota->cellAttributes() ?>>
<span id="el<?php echo $comentario_delete->RowCount ?>_comentario_id_detallecuota" class="comentario_id_detallecuota">
<span<?php echo $comentario_delete->id_detallecuota->viewAttributes() ?>><?php echo $comentario_delete->id_detallecuota->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($comentario_delete->estado->Visible) { // estado ?>
		<td <?php echo $comentario_delete->estado->cellAttributes() ?>>
<span id="el<?php echo $comentario_delete->RowCount ?>_comentario_estado" class="comentario_estado">
<span<?php echo $comentario_delete->estado->viewAttributes() ?>><?php echo $comentario_delete->estado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$comentario_delete->Recordset->moveNext();
}
$comentario_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 $comentario_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$comentario_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
$comentario_delete->terminate();
?>