cambios de video
This commit is contained in:
@@ -4,13 +4,16 @@ $_dispCfg = [];
|
||||
try {
|
||||
$__pdo = Database::getInstance()->getConnection();
|
||||
$__rows = $__pdo->query(
|
||||
"SELECT clave, valor FROM lab_config WHERE clave IN ('empresa_nombre','doc_logo_base64','doc_color')"
|
||||
"SELECT clave, valor FROM lab_config WHERE clave IN ('empresa_nombre','doc_logo_base64','doc_color','turnero_tv_video')"
|
||||
)->fetchAll(PDO::FETCH_KEY_PAIR);
|
||||
$_dispCfg = $__rows ?: [];
|
||||
} catch (\Throwable $_) {}
|
||||
$_labNombre = htmlspecialchars($_dispCfg['empresa_nombre'] ?? 'Sistema de Turnos');
|
||||
$_labLogo = $_dispCfg['doc_logo_base64'] ?? '';
|
||||
$_labColor = preg_match('/^#[0-9a-fA-F]{3,8}$/', $_dispCfg['doc_color'] ?? '') ? $_dispCfg['doc_color'] : '#1565c0';
|
||||
$_tvVideo = $_dispCfg['turnero_tv_video'] ?? '';
|
||||
// Validar que sea una URL del mismo origen (solo rutas relativas o mismo dominio)
|
||||
if ($_tvVideo && !preg_match('#^https?://#', $_tvVideo)) { $_tvVideo = ''; }
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
@@ -303,6 +306,13 @@ $_labColor = preg_match('/^#[0-9a-fA-F]{3,8}$/', $_dispCfg['doc_color'] ?? '')
|
||||
@keyframes r-pop { 0%{transform:translate(-50%,-50%) scale(1);background:var(--pc,var(--brand));opacity:.38} 100%{transform:translate(-50%,-50%) scale(50);background:var(--pc,var(--brand));opacity:0} }
|
||||
/* Cola dark */
|
||||
.pg-cola { background: rgba(255,255,255,.022); border-top: 1px solid var(--border); }
|
||||
/* Video de fondo TV */
|
||||
.tv-bg-video {
|
||||
position: absolute; inset: 0; width: 100%; height: 100%;
|
||||
object-fit: cover; opacity: .14; z-index: 0; pointer-events: none;
|
||||
}
|
||||
.pg-body { position: relative; }
|
||||
.pg-body > *:not(.tv-bg-video) { position: relative; z-index: 1; }
|
||||
.cola-lbl { color: var(--brand); }
|
||||
.cola-sep { width: 1px; height: 12px; background: var(--border); flex-shrink: 0; }
|
||||
.cola-chip { background: rgba(255,255,255,.04); font-size: .68rem; }
|
||||
@@ -382,6 +392,11 @@ $_labColor = preg_match('/^#[0-9a-fA-F]{3,8}$/', $_dispCfg['doc_color'] ?? '')
|
||||
</header>
|
||||
|
||||
<div class="pg-body">
|
||||
<?php if ($_tvVideo): ?>
|
||||
<video class="tv-bg-video" autoplay muted loop playsinline>
|
||||
<source src="<?= htmlspecialchars($_tvVideo) ?>">
|
||||
</video>
|
||||
<?php endif; ?>
|
||||
<div class="area-col">
|
||||
<div class="col-hdr rec"><i class="fas fa-door-open"></i> Recepción</div>
|
||||
<div class="slot-grid" id="rec-grid"></div>
|
||||
|
||||
Reference in New Issue
Block a user