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

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

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

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

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

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

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

});
</script>
<?php $salidas_delete->showPageHeader(); ?>
<?php
$salidas_delete->showMessage();
?>
<form name="fsalidasdelete" id="fsalidasdelete" 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="salidas">
<input type="hidden" name="action" id="action" value="delete">
<?php foreach ($salidas_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 ($salidas_delete->id->Visible) { // id ?>
		<th class="<?php echo $salidas_delete->id->headerCellClass() ?>"><span id="elh_salidas_id" class="salidas_id"><?php echo $salidas_delete->id->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->Fecha_Hora->Visible) { // Fecha_Hora ?>
		<th class="<?php echo $salidas_delete->Fecha_Hora->headerCellClass() ?>"><span id="elh_salidas_Fecha_Hora" class="salidas_Fecha_Hora"><?php echo $salidas_delete->Fecha_Hora->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->Referencia->Visible) { // Referencia ?>
		<th class="<?php echo $salidas_delete->Referencia->headerCellClass() ?>"><span id="elh_salidas_Referencia" class="salidas_Referencia"><?php echo $salidas_delete->Referencia->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->id_remitente->Visible) { // id_remitente ?>
		<th class="<?php echo $salidas_delete->id_remitente->headerCellClass() ?>"><span id="elh_salidas_id_remitente" class="salidas_id_remitente"><?php echo $salidas_delete->id_remitente->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->id_Usuario->Visible) { // id_Usuario ?>
		<th class="<?php echo $salidas_delete->id_Usuario->headerCellClass() ?>"><span id="elh_salidas_id_Usuario" class="salidas_id_Usuario"><?php echo $salidas_delete->id_Usuario->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->Mes->Visible) { // Mes ?>
		<th class="<?php echo $salidas_delete->Mes->headerCellClass() ?>"><span id="elh_salidas_Mes" class="salidas_Mes"><?php echo $salidas_delete->Mes->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->Anio->Visible) { // Anio ?>
		<th class="<?php echo $salidas_delete->Anio->headerCellClass() ?>"><span id="elh_salidas_Anio" class="salidas_Anio"><?php echo $salidas_delete->Anio->caption() ?></span></th>
<?php } ?>
<?php if ($salidas_delete->Remitente->Visible) { // Remitente ?>
		<th class="<?php echo $salidas_delete->Remitente->headerCellClass() ?>"><span id="elh_salidas_Remitente" class="salidas_Remitente"><?php echo $salidas_delete->Remitente->caption() ?></span></th>
<?php } ?>
	</tr>
	</thead>
	<tbody>
<?php
$salidas_delete->RecordCount = 0;
$i = 0;
while (!$salidas_delete->Recordset->EOF) {
	$salidas_delete->RecordCount++;
	$salidas_delete->RowCount++;

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

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

	// Render row
	$salidas_delete->renderRow();
?>
	<tr <?php echo $salidas->rowAttributes() ?>>
<?php if ($salidas_delete->id->Visible) { // id ?>
		<td <?php echo $salidas_delete->id->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_id" class="salidas_id">
<span<?php echo $salidas_delete->id->viewAttributes() ?>><?php echo $salidas_delete->id->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->Fecha_Hora->Visible) { // Fecha_Hora ?>
		<td <?php echo $salidas_delete->Fecha_Hora->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_Fecha_Hora" class="salidas_Fecha_Hora">
<span<?php echo $salidas_delete->Fecha_Hora->viewAttributes() ?>><?php echo $salidas_delete->Fecha_Hora->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->Referencia->Visible) { // Referencia ?>
		<td <?php echo $salidas_delete->Referencia->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_Referencia" class="salidas_Referencia">
<span<?php echo $salidas_delete->Referencia->viewAttributes() ?>><?php echo $salidas_delete->Referencia->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->id_remitente->Visible) { // id_remitente ?>
		<td <?php echo $salidas_delete->id_remitente->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_id_remitente" class="salidas_id_remitente">
<span<?php echo $salidas_delete->id_remitente->viewAttributes() ?>><?php echo $salidas_delete->id_remitente->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->id_Usuario->Visible) { // id_Usuario ?>
		<td <?php echo $salidas_delete->id_Usuario->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_id_Usuario" class="salidas_id_Usuario">
<span<?php echo $salidas_delete->id_Usuario->viewAttributes() ?>><?php echo $salidas_delete->id_Usuario->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->Mes->Visible) { // Mes ?>
		<td <?php echo $salidas_delete->Mes->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_Mes" class="salidas_Mes">
<span<?php echo $salidas_delete->Mes->viewAttributes() ?>><?php echo $salidas_delete->Mes->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->Anio->Visible) { // Anio ?>
		<td <?php echo $salidas_delete->Anio->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_Anio" class="salidas_Anio">
<span<?php echo $salidas_delete->Anio->viewAttributes() ?>><?php echo $salidas_delete->Anio->getViewValue() ?></span>
</span>
</td>
<?php } ?>
<?php if ($salidas_delete->Remitente->Visible) { // Remitente ?>
		<td <?php echo $salidas_delete->Remitente->cellAttributes() ?>>
<span id="el<?php echo $salidas_delete->RowCount ?>_salidas_Remitente" class="salidas_Remitente">
<span<?php echo $salidas_delete->Remitente->viewAttributes() ?>><?php echo $salidas_delete->Remitente->getViewValue() ?></span>
</span>
</td>
<?php } ?>
	</tr>
<?php
	$salidas_delete->Recordset->moveNext();
}
$salidas_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 $salidas_delete->getReturnUrl() ?>"><?php echo $Language->phrase("CancelBtn") ?></button>
</div>
</form>
<?php
$salidas_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
$salidas_delete->terminate();
?>