up
This commit is contained in:
@@ -204,7 +204,7 @@ $_hasVideo = (bool)$_tvVideo;
|
||||
scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent;
|
||||
}
|
||||
.ul-item {
|
||||
display: flex; align-items: center; gap: .8rem;
|
||||
display: flex; align-items: center; gap: .25rem;
|
||||
padding: .7rem .9rem; border-radius: 10px;
|
||||
margin-bottom: .4rem;
|
||||
background: #fff; border: 1px solid #e2e8f0;
|
||||
@@ -219,7 +219,7 @@ $_hasVideo = (bool)$_tvVideo;
|
||||
.ul-item.activo .ul-nom,
|
||||
.ul-item.activo .ul-dest { color: rgba(255,255,255,.75); }
|
||||
.ul-item .ul-left { flex: 1; min-width: 0; }
|
||||
.ul-item .ul-cod { font-weight: 800; font-size: 3.4rem; display: block; }
|
||||
.ul-item .ul-cod { font-weight: 800; font-size: 3.2rem; display: block; }
|
||||
.ul-item .ul-nom {
|
||||
font-size: 2.2rem; font-weight: 600;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
|
||||
@@ -13,9 +13,13 @@ if (!isUserLoggedIn()) {
|
||||
try {
|
||||
$pdo = Database::getInstance()->getConnection();
|
||||
|
||||
$lugares = $pdo->query(
|
||||
"SELECT id, nombre FROM turnero_lugares WHERE activo = 1 ORDER BY sort_order ASC"
|
||||
)->fetchAll(PDO::FETCH_ASSOC);
|
||||
// Para destino solo nos interesa recepción y toma de muestras
|
||||
$lugarRecepcion = $pdo->query(
|
||||
"SELECT id, nombre FROM turnero_lugares WHERE tipo='recepcion' AND activo=1 ORDER BY sort_order LIMIT 1"
|
||||
)->fetch(PDO::FETCH_ASSOC);
|
||||
$lugarMuestras = $pdo->query(
|
||||
"SELECT id, nombre FROM turnero_lugares WHERE tipo='muestras' AND activo=1 ORDER BY sort_order LIMIT 1"
|
||||
)->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
$examenes = $pdo->query(
|
||||
"SELECT id, codigo, nombre, categoria FROM exam_tipos WHERE activo = 1 ORDER BY categoria, nombre"
|
||||
@@ -44,6 +48,8 @@ try {
|
||||
$examenesAgrupados = [];
|
||||
$deskId = 0;
|
||||
$desk = null;
|
||||
$lugarRecepcion = null;
|
||||
$lugarMuestras = null;
|
||||
}
|
||||
|
||||
$deskNombre = $desk['nombre'] ?? null; // null = vista genérica
|
||||
@@ -341,10 +347,13 @@ require_once __DIR__ . '/../../../shared/components/sidebar.php';
|
||||
<div class="ficha-section">
|
||||
<h6><i class="fas fa-map-marker-alt me-1"></i>Lugar destino</h6>
|
||||
<select id="sel-lugar" class="form-select form-select-sm">
|
||||
<option value="">— Seleccione lugar —</option>
|
||||
<?php foreach ($lugares as $l): ?>
|
||||
<option value="<?= (int)$l['id'] ?>"><?= htmlspecialchars($l['nombre']) ?></option>
|
||||
<?php endforeach; ?>
|
||||
<option value="">— Seleccione destino —</option>
|
||||
<?php if ($lugarRecepcion): ?>
|
||||
<option value="<?= (int)$lugarRecepcion['id'] ?>">Recepción</option>
|
||||
<?php endif; ?>
|
||||
<?php if ($lugarMuestras): ?>
|
||||
<option value="<?= (int)$lugarMuestras['id'] ?>">Toma de muestras</option>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user