Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
AVIDOTAPP
/
views
/
fconsuldota
:
excel_principal.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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>