From cc434e744569f520763c51e7ccfee7d005eb7ae9 Mon Sep 17 00:00:00 2001 From: humano Date: Sat, 27 Oct 2018 18:06:32 -0500 Subject: [PATCH] mejoras en vista aplicacion --- index.php | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 822d60a..abaea37 100644 --- a/index.php +++ b/index.php @@ -28,9 +28,21 @@ if(isset($_REQUEST['debug'])) { + + + + + + - + @@ -95,7 +107,14 @@ $librerias_pie =""; //$destacados = mas_visto("ultimos","6","6"); //$aleatorios = mas_visto("aleatorios","6","6"); //if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";} -if (isset($_REQUEST['empresa'])) {$variable = "e".$_REQUEST['empresa'];} +if (isset($_REQUEST['empresa'])) { + if(!isset($_REQUEST['home'])){ + $pagina_inicio_definida = remplacetas('form_parametrizacion','id_empresa',$_REQUEST['id_empresa'],'descripcion'," tabla='empresa' AND opcion='pagina_inicio'") ; + $variable = $pagina_inicio_definida[0];//"e".$_REQUEST['empresa']; + }else{ + $variable = "e".$_REQUEST['empresa']; + } +} elseif (isset($_REQUEST['form']) AND isset($_REQUEST['embebido']) ) {$variable = "g".$_REQUEST['form'];} elseif (isset($_REQUEST['identificador']) AND $_REQUEST['t'] =='edit' ) {$variable = "d".$_REQUEST['identificador'];} elseif (isset($_REQUEST['addon']) AND isset($_REQUEST['embebido']) ) {$variable = "j".$_REQUEST['addon'];} @@ -191,7 +210,7 @@ if ($variable !=''){ $background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ; $background_imagen = $background_imagen[0]; $uri_set = ""; - $pagina_inicio_definida = remplacetas('form_parametrizacion','id_empresa',$_SESSION['id_empresa'],'descripcion'," tabla='empresa' AND opcion='pagina_inicio'") ; + $pagina_inicio_definida = remplacetas('form_parametrizacion','id_empresa',$id_empresa,'descripcion'," tabla='empresa' AND opcion='pagina_inicio'") ; if($pagina_inicio_definida[0] !="" and !isset($_REQUEST['home'])){ $vista_favorita = vista_favorita($pagina_inicio_definida[0]); //$set= $pagina_inicio_definida[0]; @@ -502,7 +521,7 @@ if ($variable !=''){ // More info https://github.com/hakimel/reveal.js#configuration Reveal.initialize({ width: '100%', - height: '90%', + height: '100%', touch: false, controls: false, progress: true, @@ -722,7 +741,7 @@ if('serviceWorker' in navigator) {
-
+