diff --git a/action/action_auditoria_detalle.php b/action/action_auditoria_detalle.php index 52336af..824237b 100644 --- a/action/action_auditoria_detalle.php +++ b/action/action_auditoria_detalle.php @@ -21,11 +21,12 @@ try { if ($_SERVER['REQUEST_METHOD'] === 'GET') { $data = $db + ->where('registro_fecha_ideal', $_GET['registro_fecha_ideal']) ->where('horario_id', $_GET['horario_id']) ->where('profesor_id', $_GET['profesor_id']) ->getOne('auditoria_mat'); // Print the JSON file - echo json_encode($data); + echo json_encode(array_merge($data, ['query' => $db->getLastQuery(), 'get' => $_GET])); } else { http_response_code(405); echo json_encode(['error' => 'method not allowed']); diff --git a/auditoria.php b/auditoria.php index cadf07c..937710e 100644 --- a/auditoria.php +++ b/auditoria.php @@ -13,6 +13,7 @@ display: none; } + @@ -266,19 +267,20 @@ {{ registro.profesor_clave }} {{ registro.profesor_nombre }} - {{ registro.horario_hora?.slice(0,5) }} - - {{registro.horario_fin?.slice(0,5) }} + + {{ `${registro.horario_hora?.slice(0,5)} - ${registro.horario_fin?.slice(0,5)}` }} +
- Registro {{ registro.registro_fecha?.slice(11,19) }} + Registro {{ `${registro.registro_fecha?.slice(11,19)}` }}
@@ -298,21 +300,22 @@ - {{ registro.usuario_nombre - }} + + {{ registro.usuario_nombre }} +
Hora - {{ registro.registro_fecha_supervisor?.slice(11,19) }} + {{ `${registro.registro_fecha_supervisor?.slice(11,19)}` }}
Observaciones: - {{registro.comentario?.slice(0,25)}}{{registro.comentario.length - > 10 ? '...' : ''}} + {{`${registro.comentario?.slice(0,25)} + ${registro.comentario.length + > 10 ? '...' : ''}`}}
@@ -388,165 +391,75 @@