Avances bitácoras

This commit is contained in:
2025-06-27 07:57:15 -06:00
parent 3da996350c
commit 5a9b77a624
7 changed files with 197 additions and 66 deletions

View File

@@ -33,6 +33,48 @@
</style>
</head>
<body>
<div class="content">
<h4 class="mb-4">🏪 Registro de Agencias</h4>
<div class="card p-3 shadow-sm">
<div class="table-responsive">
<table class="table table-striped" id="tabla-registros-agencias">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Acción</th>
<th>Registrada por</th>
<th>Fecha</th>
</tr>
</thead>
<tbody>
<?php foreach ($registros as $r): ?>
<tr>
<td><?= htmlspecialchars($r['id_agencia'] ?? '') ?></td>
<td><?= htmlspecialchars(decrypt($r['nombre'] ?? '')) ?></td>
<td><?= htmlspecialchars($r['accion'] ?? '') ?></td>
<td><?= htmlspecialchars(decrypt($r['realizado_por'] ?? '')) ?></td>
<td><?= htmlspecialchars($r['fecha'] ? $r['fecha']->format('Y-m-d H:i:s') : '') ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('#tabla-registros-agencias').DataTable({
order: [],
language: {
url: 'https://cdn.datatables.net/plug-ins/1.13.4/i18n/es-ES.json'
}
});
});
</script>
</body>
</html>