Log
This commit is contained in:
17
logs.php
17
logs.php
@@ -42,6 +42,7 @@
|
||||
<th scope="col" class="text-center align-middle px-2">Navegador</th>
|
||||
<th scope="col" class="text-center align-middle px-2">Información</th>
|
||||
<th scope="col" class="text-center align-middle px-2">Detalle</th>
|
||||
<th scope="col" class="text-center align-middle px-2">Horario web</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -51,7 +52,7 @@
|
||||
->where('momento::DATE = CURRENT_DATE')
|
||||
->orderBy('momento', 'desc')
|
||||
->get('log_registro');
|
||||
|
||||
|
||||
foreach ($registros as $log) {
|
||||
?>
|
||||
<tr class="<?= $log['success'] ? '' : 'table-danger' ?>" data-id="<?= $log['log_id'] ?>">
|
||||
@@ -94,6 +95,20 @@
|
||||
<td class="text-center align-middle px-2">
|
||||
<?= $log['detalle'] ?>
|
||||
</td>
|
||||
<td class="text-center align-middle px-2">
|
||||
<?
|
||||
if ($log['horario_web'] == null) {
|
||||
echo "N/A";
|
||||
} else {
|
||||
?>
|
||||
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#horarioModal"
|
||||
data-horario='<?= json_encode($log['horario_web'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?>'>
|
||||
Horario
|
||||
</button>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user