<?php
namespace PHPMaker2020\recetarios_2021;

// Autoload
include_once "autoload.php";

// Session
if (session_status() !== PHP_SESSION_ACTIVE)
	\Delight\Cookie\Session::start(Config("COOKIE_SAMESITE")); // Init session data

// Output buffering
ob_start();
?>
<?php

// Write header
WriteHeader(FALSE);

// Create page object
$afiliadosr_delete = new afiliadosr_delete();

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

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

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

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

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

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

});
</script>
<?php $afiliadosr_delete->showPageHeader(); ?>
<?php
$afiliadosr_delete->showMessage();
?>
<form name="fafiliadosrdelete" id="fafiliadosrdelete" 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="afiliadosr">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($afiliadosr_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 ($afiliadosr_delete->I_R->Visible) { // I_R ?>
		<th class="<?php echo $afiliadosr_delete->I_R->headerCellClass() ?>"><span id="elh_afiliadosr_I_R" class="afiliadosr_I_R"><?php echo $afiliadosr_delete->I_R->caption() ?></span></th>
<?php } ?>
<?php if ($afiliadosr_delete->Apellido->Visible) { // Apellido ?>
		<th class="<?php echo $afiliadosr_delete->Apellido->headerCellClass() ?>"><span id="elh_afiliadosr_Apellido" class="afiliadosr_Apellido"><?php echo $afiliadosr_delete->Apellido->caption() ?></span></th>
<?php } ?>
<?php if ($afiliadosr_delete->Nombres->Visible) { // Nombres ?>
		<th class="<?php echo $afiliadosr_delete->Nombres->headerCellClass() ?>"><span id="elh_afiliadosr_Nombres" class="afiliadosr_Nombres"><?php echo $afiliadosr_delete->Nombres->caption() ?></span></th>
<?php } ?>
<?php if ($afiliadosr_delete->Nro_Afiliado->Visible) { // Nro_Afiliado ?>
		<th class="<?php echo $afiliadosr_delete->Nro_Afiliado->headerCellClass() ?>"><span id="elh_afiliadosr_Nro_Afiliado" class="afiliadosr_Nro_Afiliado"><?php echo $afiliadosr_delete->Nro_Afiliado->caption() ?></span></th>
<?php } ?>
<?php if ($afiliadosr_delete->Fecha_Insercion->Visible) { // Fecha_Insercion ?>
		<th class="<?php echo $afiliadosr_delete->Fecha_Insercion->headerCellClass() ?>"><span id="elh_afiliadosr_Fecha_Insercion" class="afiliadosr_Fecha_Insercion"><?php echo $afiliadosr_delete->Fecha_Insercion->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$afiliadosr_delete->RecordCount = 0;
$i = 0;
while (!$afiliadosr_delete->Recordset->EOF) {
	$afiliadosr_delete->RecordCount++;
	$afiliadosr_delete->RowCount++;

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

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

	// Render row
	$afiliadosr_delete->renderRow();
?>
	<tr <?php echo $afiliadosr->rowAttributes() ?>>
<?php if ($afiliadosr_delete->I_R->Visible) { // I_R ?>
		<td <?php echo $afiliadosr_delete->I_R->cellAttributes() ?>>
<span id="el<?php echo $afiliadosr_delete->RowCount ?>_afiliadosr_I_R" class="afiliadosr_I_R">
<span<?php echo $afiliadosr_delete->I_R->viewAttributes() ?>><?php if (!EmptyString($afiliadosr_delete->I_R->getViewValue()) && $afiliadosr_delete->I_R->linkAttributes() != "") { ?>
<a<?php echo $afiliadosr_delete->I_R->linkAttributes() ?>><?php echo $afiliadosr_delete->I_R->getViewValue() ?></a>
<?php } else { ?>
<?php echo $afiliadosr_delete->I_R->getViewValue() ?>
<?php } ?></span>
</span>
</td>
<?php } ?>
<?php if ($afiliadosr_delete->Apellido->Visible) { // Apellido ?>
		<td <?php echo $afiliadosr_delete->Apellido->cellAttributes() ?>>
<span id="el<?php echo $afiliadosr_delete->RowCount ?>_afiliadosr_Apellido" class="afiliadosr_Apellido">
<span<?php echo $afiliadosr_delete->Apellido->viewAttributes() ?>><?php echo $afiliadosr_delete->Apellido->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($afiliadosr_delete->Nombres->Visible) { // Nombres ?>
		<td <?php echo $afiliadosr_delete->Nombres->cellAttributes() ?>>
<span id="el<?php echo $afiliadosr_delete->RowCount ?>_afiliadosr_Nombres" class="afiliadosr_Nombres">
<span<?php echo $afiliadosr_delete->Nombres->viewAttributes() ?>><?php echo $afiliadosr_delete->Nombres->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($afiliadosr_delete->Nro_Afiliado->Visible) { // Nro_Afiliado ?>
		<td <?php echo $afiliadosr_delete->Nro_Afiliado->cellAttributes() ?>>
<span id="el<?php echo $afiliadosr_delete->RowCount ?>_afiliadosr_Nro_Afiliado" class="afiliadosr_Nro_Afiliado">
<span<?php echo $afiliadosr_delete->Nro_Afiliado->viewAttributes() ?>><?php echo $afiliadosr_delete->Nro_Afiliado->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($afiliadosr_delete->Fecha_Insercion->Visible) { // Fecha_Insercion ?>
		<td <?php echo $afiliadosr_delete->Fecha_Insercion->cellAttributes() ?>>
<span id="el<?php echo $afiliadosr_delete->RowCount ?>_afiliadosr_Fecha_Insercion" class="afiliadosr_Fecha_Insercion">
<span<?php echo $afiliadosr_delete->Fecha_Insercion->viewAttributes() ?>><?php echo $afiliadosr_delete->Fecha_Insercion->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$afiliadosr_delete->Recordset->moveNext();
}
$afiliadosr_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 $afiliadosr_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$afiliadosr_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
$afiliadosr_delete->terminate();
?>