Bitácoras

This commit is contained in:
2025-06-27 10:29:31 -06:00
parent 5a9b77a624
commit 20e0f24f22
11 changed files with 419 additions and 52 deletions

View File

@@ -33,6 +33,52 @@
</style>
</head>
<body>
<div class="content">
<h4 class="mb-4">🔗 Vinculaciones</h4>
<div class="card p-3 shadow-sm">
<div class="table-responsive">
<table class="table table-striped align-middle" id="tabla-bitacora-vinculaciones">
<thead class="table-dark">
<tr>
<th>#</th>
<th>Usuario</th>
<th>Acción</th>
<th>Aprobado por</th>
<th>Fecha</th>
</tr>
</thead>
<tbody>
<?php foreach ($registros as $r): ?>
<tr>
<td><?= htmlspecialchars($r['id_relacion']) ?></td>
<td><?= htmlspecialchars(decrypt($r['nombre_importador'])) ?></td>
<td>
<span class="badge bg-<?= $r['accion'] === 'Vinculación' ? 'success' : 'danger' ?>">
<?= $r['accion'] ?>
</span>
</td>
<td><?= htmlspecialchars(decrypt($r['nombre_aprobador'] ?? '')) ?></td>
<td><?= $r['fecha'] instanceof DateTime ? $r['fecha']->format('Y-m-d H:i') : htmlspecialchars($r['fecha']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('#tabla-bitacora-vinculaciones').DataTable({
order: [],
language: {
url: 'https://cdn.datatables.net/plug-ins/1.13.4/i18n/es-ES.json'
}
});
});
</script>
</body>
</html>