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

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

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

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

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

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

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

});
</script>
<?php $cuota_delete->showPageHeader(); ?>
<?php
$cuota_delete->showMessage();
?>
<form name="fcuotadelete" id="fcuotadelete" 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="cuota">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($cuota_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 ($cuota_delete->id_cuota->Visible) { // id_cuota ?>
		<th class="<?php echo $cuota_delete->id_cuota->headerCellClass() ?>"><span id="elh_cuota_id_cuota" class="cuota_id_cuota"><?php echo $cuota_delete->id_cuota->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->id_producto->Visible) { // id_producto ?>
		<th class="<?php echo $cuota_delete->id_producto->headerCellClass() ?>"><span id="elh_cuota_id_producto" class="cuota_id_producto"><?php echo $cuota_delete->id_producto->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->interes->Visible) { // interes ?>
		<th class="<?php echo $cuota_delete->interes->headerCellClass() ?>"><span id="elh_cuota_interes" class="cuota_interes"><?php echo $cuota_delete->interes->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->plazo_meses->Visible) { // plazo_meses ?>
		<th class="<?php echo $cuota_delete->plazo_meses->headerCellClass() ?>"><span id="elh_cuota_plazo_meses" class="cuota_plazo_meses"><?php echo $cuota_delete->plazo_meses->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->monto->Visible) { // monto ?>
		<th class="<?php echo $cuota_delete->monto->headerCellClass() ?>"><span id="elh_cuota_monto" class="cuota_monto"><?php echo $cuota_delete->monto->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->pagar_mensual->Visible) { // pagar_mensual ?>
		<th class="<?php echo $cuota_delete->pagar_mensual->headerCellClass() ?>"><span id="elh_cuota_pagar_mensual" class="cuota_pagar_mensual"><?php echo $cuota_delete->pagar_mensual->caption() ?></span></th>
<?php } ?>
<?php if ($cuota_delete->estado->Visible) { // estado ?>
		<th class="<?php echo $cuota_delete->estado->headerCellClass() ?>"><span id="elh_cuota_estado" class="cuota_estado"><?php echo $cuota_delete->estado->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$cuota_delete->RecordCount = 0;
$i = 0;
while (!$cuota_delete->Recordset->EOF) {
	$cuota_delete->RecordCount++;
	$cuota_delete->RowCount++;

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

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

	// Render row
	$cuota_delete->renderRow();
?>
	<tr <?php echo $cuota->rowAttributes() ?>>
<?php if ($cuota_delete->id_cuota->Visible) { // id_cuota ?>
		<td <?php echo $cuota_delete->id_cuota->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_id_cuota" class="cuota_id_cuota">
<span<?php echo $cuota_delete->id_cuota->viewAttributes() ?>><?php echo $cuota_delete->id_cuota->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->id_producto->Visible) { // id_producto ?>
		<td <?php echo $cuota_delete->id_producto->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_id_producto" class="cuota_id_producto">
<span<?php echo $cuota_delete->id_producto->viewAttributes() ?>><?php echo $cuota_delete->id_producto->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->interes->Visible) { // interes ?>
		<td <?php echo $cuota_delete->interes->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_interes" class="cuota_interes">
<span<?php echo $cuota_delete->interes->viewAttributes() ?>><?php echo $cuota_delete->interes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->plazo_meses->Visible) { // plazo_meses ?>
		<td <?php echo $cuota_delete->plazo_meses->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_plazo_meses" class="cuota_plazo_meses">
<span<?php echo $cuota_delete->plazo_meses->viewAttributes() ?>><?php echo $cuota_delete->plazo_meses->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->monto->Visible) { // monto ?>
		<td <?php echo $cuota_delete->monto->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_monto" class="cuota_monto">
<span<?php echo $cuota_delete->monto->viewAttributes() ?>><?php echo $cuota_delete->monto->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->pagar_mensual->Visible) { // pagar_mensual ?>
		<td <?php echo $cuota_delete->pagar_mensual->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_pagar_mensual" class="cuota_pagar_mensual">
<span<?php echo $cuota_delete->pagar_mensual->viewAttributes() ?>><?php echo $cuota_delete->pagar_mensual->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($cuota_delete->estado->Visible) { // estado ?>
		<td <?php echo $cuota_delete->estado->cellAttributes() ?>>
<span id="el<?php echo $cuota_delete->RowCount ?>_cuota_estado" class="cuota_estado">
<span<?php echo $cuota_delete->estado->viewAttributes() ?>><?php echo $cuota_delete->estado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$cuota_delete->Recordset->moveNext();
}
$cuota_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 $cuota_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$cuota_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
$cuota_delete->terminate();
?>