File "excel_nuevo.php"
Full Path: C:/wamp64/www/AVIDOTAPP/views/invenconsul/excel_nuevo.php
File size: 944 bytes
MIME-type: text/html
Charset: utf-8
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
table { border-collapse: collapse; width: 100%; }
th { background-color: #d0101d; color: white; padding: 8px; text-align: left; font-weight: bold; }
td { padding: 8px; border: 1px solid #ddd; }
tr:nth-child(even) { background-color: #f2f2f2; }
</style>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>CÓDIGO</th>
<th>DESCRIPCIÓN</th>
<th>CANTIDAD</th>
<th>PRECIO UND</th>
</tr>
</thead>
<tbody>
<?php foreach ($rows as $row): ?>
<tr>
<td><?= htmlspecialchars($row['CODIGO']) ?></td>
<td><?= htmlspecialchars($row['DESCRIPCION']) ?></td>
<td><?= htmlspecialchars($row['CANTIDAD']) ?></td>
<td><?= !empty($row['precio']) ? '$' . number_format($row['precio'], 2) : 'N/A' ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>