From 1b1a145478103dfc50965116ba92584038943ea4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Jan 2025 16:56:45 -0600 Subject: [PATCH] =?UTF-8?q?Primera=20iteraci=C3=B3n=20de=20nuevo=20dise?= =?UTF-8?q?=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action/action_auditoria_detalle.php | 3 +- auditoria.php | 247 +++++++++------------------- css/auditoria-ux.css | 139 ++++++++++++++++ export/supervisor_excel.php | 6 +- fonts/svg/portrait.svg | 2 + js/auditoría.js | 7 +- 6 files changed, 231 insertions(+), 173 deletions(-) create mode 100644 css/auditoria-ux.css create mode 100644 fonts/svg/portrait.svg 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 @@