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