File "excel_principal.php"
Full Path: C:/wamp64/www/AVIDOTAPP/views/fconsuldota/excel_principal.php
File size: 2.02 KB
MIME-type: text/x-php
Charset: utf-8
<?php
// Este archivo es incluido desde ConsultaController::exportarExcel()
// Variables disponibles: $rows, $tipo_filtro
?>
<table border="1">
<tr>
<th>#</th>
<?php if ($tipo_filtro !== 'cedula'): ?>
<th>Cédula</th><th>Nombre</th>
<?php endif; ?>
<th>Fecha Entrega</th>
<th>Código EPP</th>
<th>Descripción</th>
<th>Cantidad</th>
<th>Talla Pantalón</th>
<th>Talla Camisa</th>
<th>Talla Botas</th>
<th>Talla Chaqueta</th>
<th>Talla Impermeable</th>
<th>Tipo Entrega</th>
<th>Tipo Estado</th>
<th>Devolutivo</th>
<th>Entregado</th>
<th>userEntrega</th>
<?php if ($tipo_filtro !== 'cedula'): ?>
<th>Área</th><th>Centro de Costo</th>
<?php endif; ?>
</tr>
<?php $c = 1; foreach ($rows as $row): ?>
<tr>
<td><?= $c++ ?></td>
<?php if ($tipo_filtro !== 'cedula'): ?>
<td><?= htmlspecialchars($row['cedula']) ?></td>
<td><?= htmlspecialchars($row['nombre']) ?></td>
<?php endif; ?>
<td><?= date('d/m/Y', strtotime($row['fEntrega'])) ?></td>
<td><?= htmlspecialchars($row['codigo']) ?></td>
<td><?= htmlspecialchars($row['descripcion_epp'] ?: $row['epp']) ?></td>
<td><?= htmlspecialchars($row['cantidad']) ?></td>
<td><?= htmlspecialchars($row['TALLAPANT'] ?: '-') ?></td>
<td><?= htmlspecialchars($row['TALLACAMI'] ?: '-') ?></td>
<td><?= htmlspecialchars($row['TALLABOT'] ?: '-') ?></td>
<td><?= htmlspecialchars($row['tallachaq'] ?: '-') ?></td>
<td><?= htmlspecialchars($row['tallaimp'] ?: '-') ?></td>
<td><?= htmlspecialchars($row['tpEntrega']) ?></td>
<td><?= htmlspecialchars($row['tpEstado']) ?></td>
<td><?= htmlspecialchars($row['tpDevolutivo']) ?></td>
<td><?= htmlspecialchars($row['entrego'] ?: 'No') ?></td>
<td><?= htmlspecialchars($row['userEntrega']) ?></td>
<?php if ($tipo_filtro !== 'cedula'): ?>
<td><?= htmlspecialchars($row['area']) ?></td>
<td><?= htmlspecialchars($row['ccosto']) ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</table>