From 74a0b403e124e7c275b16b2c72e4ade06c396a89 Mon Sep 17 00:00:00 2001 From: unix4you2 Date: Fri, 19 May 2023 13:23:08 +0000 Subject: [PATCH] Restablecimiento marco_abajo Abril 14 https://github.com/unix4you2/practico/commit/4cc4fc53bb824a396b76546ea167d67371766262 --- core/marco_abajo.php | 427 +++++++++++++++++++++++++++---------------- 1 file changed, 267 insertions(+), 160 deletions(-) diff --git a/core/marco_abajo.php b/core/marco_abajo.php index f6f851905..3bf8575ae 100755 --- a/core/marco_abajo.php +++ b/core/marco_abajo.php @@ -205,31 +205,49 @@ + + ver_navegacion_izquierda_responsive(); '; - - // Habilita el popup activo - if (@$popup_activo=="FormularioCampos") echo ''; - if (@$popup_activo=="FormularioBotones") echo ''; - if (@$popup_activo=="FormularioDiseno") echo ''; - if (@$popup_activo=="FormularioAcciones")echo ''; - if (@$popup_activo=="InformeCampos") echo ''; - if (@$popup_activo=="InformeTablas") echo ''; - if (@$popup_activo=="InformeCondiciones")echo ''; - if (@$popup_activo=="InformeAcciones") echo ''; - //Habilita pesatanas activas en el popup activo - if (@$pestana_activa_editor=="eventos_objeto-tab")echo ''; - ?> + echo ''; + ?> + + $(window).load(function(){ $("#myModalElementoFormulario").modal("show"); }); '; + if (@$popup_activo=="FormularioBotones") + echo ''; + if (@$popup_activo=="FormularioDiseno") + echo ''; + if (@$popup_activo=="FormularioAcciones") + echo ''; + if (@$popup_activo=="InformeAcciones") + echo ''; + if (@$popup_activo=="InformeCampos") + echo ''; + if (@$popup_activo=="InformeTablas") + echo ''; + if (@$popup_activo=="InformeCondiciones") + echo ''; + //Habilita pesatanas activas en el popup activo + if (@$pestana_activa_editor=="eventos_objeto-tab") + echo ''; + ?> '; + if (@$funciones_activacion_datepickers!="") + echo ''; //Deslizadores - if (@$funciones_activacion_sliders!="") echo ''; + if (@$funciones_activacion_sliders!="") + echo ''; //Canvas - if (@$funciones_activacion_canvas!="") echo ''; + if (@$funciones_activacion_canvas!="") + echo ''; + ?> + + ', { + var textarea = $(this); + + var mode = textarea.data('editor'); + + var editDiv = $('
', { position: 'absolute', width: textarea.width(), height: textarea.height(), @@ -583,12 +654,12 @@ textarea.css('visibility', 'hidden'); textarea.css('display', 'none'); - const editor = ace.edit(editDiv[0]); + var editor = ace.edit(editDiv[0]); //editor.renderer.setShowGutter(false); //Ocultar numero de lineas, ayudas, opciones de colapsar, etc editor.getSession().setValue(textarea.val()); editor.getSession().setMode("ace/mode/" + mode); editor.setTheme("ace/theme/eclipse"); //Establece el tema a utilizar twilight|eclipse - + /* // copy back to textarea on form submit... textarea.closest('form').submit(function () { @@ -617,7 +688,7 @@ { echo " $('#Summer_valor_etiqueta').summernote({ - lang: 'es-ES', + lang: 'es-ES', height: 300, toolbar: [ ['Estilos', ['style']], @@ -634,7 +705,9 @@ ], //ANTERIORonChange: function(contents) { document.datosform.valor_etiqueta.value=contents; } callbacks: { - onChange: function(contents) { document.datosform.valor_etiqueta.value=contents; } + onChange: function(contents) { + document.datosform.valor_etiqueta.value=contents; + } } }); //ANTERIOR$('#Summer_valor_etiqueta').code(document.datosform.valor_etiqueta.value); @@ -658,7 +731,7 @@ //Activa visualmente todos los div tipo SummerNote y los asocia a cada textarea $(document).ready(function() { $('#Summer_valor_etiqueta').summernote({ - lang: 'es-ES', + lang: 'es-ES', height: 300, toolbar: [ ['Estilos', ['style']], @@ -685,26 +758,35 @@ //Agrega funcion para la intercepcion del submit del formulario echo ' '; //Si existen funciones JavaScript generadas por algun formulario del usuario entonces las imprime - if(@$PCO_FuncionesJSInternasFORM!="") echo $PCO_FuncionesJSInternasFORM; + if(@$PCO_FuncionesJSInternasFORM!="") + echo $PCO_FuncionesJSInternasFORM; + ?> + '.$MULTILANG_ErrorConexionInternet.'", 0, 100); } }); '; + ?> + - - '; + + '; } + ?> + PCOJS.GeoLocalizarUsuario(); '; + if ($PWA_AutorizacionGPS=="1") + { + echo ''; + } //Solicita autorizacion para uso de camara y microfono de acuerdo a la configuracion actual if ($PWA_AutorizacionCAM=="1" || $PWA_AutorizacionMIC=="1") { - $PCO_SolicitudCAM = $PWA_AutorizacionCAM==1 ? 'true' : 'false'; - $PCO_SolicitudMIC = $PWA_AutorizacionMIC==1 ? 'true' : 'false'; + $PCO_SolicitudCAM='false'; + $PCO_SolicitudMIC='false'; + if ($PWA_AutorizacionCAM==1) $PCO_SolicitudCAM='true'; + if ($PWA_AutorizacionMIC==1) $PCO_SolicitudMIC='true'; echo ''; } + ?> + @@ -812,8 +919,8 @@ function(err) { console.log("Practico Framework: No autorizado el uso de disposi ?> //Actualiza marco con el tiempo de carga JavaScript (tiempo de carga y transferencia) - const tiempo_final_javascript = (new Date()).getTime(); - const tiempo_final_javascript_segs = (tiempo_final_javascript-tiempo_inicio_javascript)/1000; + var tiempo_final_javascript = (new Date()).getTime(); + var tiempo_final_javascript_segs = (tiempo_final_javascript-tiempo_inicio_javascript)/1000; $('#PCO_TCargaJS').text(tiempo_final_javascript_segs); //Mensajes de advertencia en consola de desarrollo del navegador