2017-08-20 17:53:00 +00:00
< ? php session_start ();
2018-10-21 17:58:03 +00:00
2018-10-30 15:59:25 +00:00
2016-11-26 21:44:45 +00:00
require ( 'milfs/xajax/xajax.inc.php' );
//$xajax = new xajax();
$xajax = new xajax ( " " );
//$xajax = new xajax("https://tupale.co/index.php");
require ( " milfs/funciones/conex.php " );
2018-11-28 10:40:26 +00:00
include ( 'milfs/librerias/parsedown/Parsedown.php' );
2018-12-05 17:08:42 +00:00
2016-11-26 21:44:45 +00:00
require ( 'milfs/funciones/funciones.php' );
2018-11-28 10:40:26 +00:00
2016-11-26 21:44:45 +00:00
include ( 'milfs/addon/funciones.php' );
2018-11-27 14:00:04 +00:00
// require ("milfs/includes/markdown.php");
2016-11-26 21:44:45 +00:00
require ( " milfs/includes/parametrizacion.php " );
require ( " milfs/includes/simple_html_dom.php " );
2018-10-24 14:15:14 +00:00
$xajax -> processRequests ();
2018-10-21 17:58:03 +00:00
$timestamp = time ();
2020-03-26 14:25:38 +00:00
//setcookie("timestamp",$timestamp,($timestamp + 5000));
2018-10-21 17:58:03 +00:00
$_SESSION [ 'timestamp' ] = $timestamp ;
?>
2016-11-26 21:44:45 +00:00
<! DOCTYPE html >
< html lang = " en " >
< head >
2018-10-25 14:54:25 +00:00
< script src = " milfs/js/scripts.js " ></ script >
2016-11-26 21:44:45 +00:00
< meta http - equiv = " Cache-control " content = " public " >
2017-02-09 14:02:50 +00:00
< meta charset = " UTF-8 " >
2016-11-26 21:44:45 +00:00
< meta name = " viewport " content = " user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1 " >
< meta http - equiv = " X-UA-Compatible " content = " IE=edge " >
< meta name = " viewport " content = " width=device-width, initial-scale=1 " >
2018-10-27 23:06:32 +00:00
< meta name = 'theme-color' content = '#333' />
<!-- Windows Phone -->
< meta name = 'msapplication-navbutton-color' content = '#333' />
<!-- iOS Safari -->
< meta name = 'apple-mobile-web-app-capable' content = 'yes' />
< meta name = 'apple-mobile-web-app-status-bar-style' content = 'black-translucent' />
2016-11-26 21:44:45 +00:00
<!-- Chrome , Firefox OS y Opera -->
2018-10-30 15:59:25 +00:00
< link rel = 'stylesheet' href = './librerias/animate/animate.min.css' >
2018-11-03 22:20:38 +00:00
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
< ? php
2018-02-16 00:03:36 +00:00
$index = " " ;
$tema = " " ;
$print = " " ;
$no_mostrar = " " ;
$registros = " " ;
2016-11-26 21:44:45 +00:00
$embebido = 0 ;
$acceso = 0 ;
$onload = " " ;
$menu_lateral = " " ;
$id_empresa = " " ;
$link_empresa = " " ;
$razon_social = " " ;
$opciones = " " ;
$background_imagen = " " ;
$titulo = array ();
$sigla = " " ;
$slogan [] = " " ;
$uri_set = " " ;
$uri = " " ;
$set = " " ;
$descripcion_meta = " " ;
$identificador = " " ;
if ( isset ( $_REQUEST [ 'v' ])) {
$variable = $_REQUEST [ 'v' ];
} else { $variable = " " ;}
$cols_interior = " 12 " ;
$menu = " " ;
$orden = " " ;
$cantidad_registros = " 10 " ;
2017-10-28 15:14:33 +00:00
$librerias_cabeza = " " ;
$librerias_pie = " " ;
/// a= Aplicacion
/// b = libro
/// c= Presentacion
2016-11-26 21:44:45 +00:00
/// d= IDENTIFICADOR EDITABLE *
2017-10-28 15:14:33 +00:00
/// e = EMPRESA *
2016-11-26 21:44:45 +00:00
/// f= FORMULARIO *
/// g=FORMULARIO EMBEBIDO *
/// h=ADDON *
2017-10-28 15:14:33 +00:00
/// i= IDENTIFICADOR *
/// I= IDENTIFICADOR EMBEBIDO*
2016-11-26 21:44:45 +00:00
/// j=ADDON EMBEBIDO *
2017-11-04 16:27:00 +00:00
/// k= suite
2017-09-14 17:44:42 +00:00
/// l= Listado
2018-02-16 00:03:36 +00:00
/// m = checklist
2018-07-03 05:11:19 +00:00
/// n=notas
/// o=parallax
2017-10-28 15:14:33 +00:00
/// p= Planilla
2018-11-26 14:46:47 +00:00
/// q = lab
2017-10-28 15:14:33 +00:00
/// s= SET DE DATOS *
/// S= SET DE DATOS EMBEBIDO
2017-09-30 00:39:45 +00:00
2017-07-04 21:36:32 +00:00
//$destacados = mas_visto("ultimos","6","6");
//$aleatorios = mas_visto("aleatorios","6","6");
2016-11-26 21:44:45 +00:00
//if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";}
2018-10-27 23:06:32 +00:00
if ( isset ( $_REQUEST [ 'empresa' ])) {
2018-10-27 23:36:54 +00:00
2018-11-05 19:27:09 +00:00
2018-10-27 23:06:32 +00:00
$variable = " e " . $_REQUEST [ 'empresa' ];
2018-10-27 23:36:54 +00:00
2018-10-27 23:06:32 +00:00
}
2017-08-20 17:53:00 +00:00
elseif ( isset ( $_REQUEST [ 'form' ]) AND isset ( $_REQUEST [ 'embebido' ]) ) { $variable = " g " . $_REQUEST [ 'form' ];}
elseif ( isset ( $_REQUEST [ 'identificador' ]) AND $_REQUEST [ 't' ] == 'edit' ) { $variable = " d " . $_REQUEST [ 'identificador' ];}
2016-11-26 21:44:45 +00:00
elseif ( isset ( $_REQUEST [ 'addon' ]) AND isset ( $_REQUEST [ 'embebido' ]) ) { $variable = " j " . $_REQUEST [ 'addon' ];}
elseif ( isset ( $_REQUEST [ 'set' ])) { $variable = " s " . $_REQUEST [ 'set' ];}
2017-08-20 17:53:00 +00:00
elseif ( isset ( $_REQUEST [ 'identificador' ])) { $variable = " i " . $_REQUEST [ 'identificador' ];}
elseif ( isset ( $_REQUEST [ 'form' ])) { $variable = " f " . $_REQUEST [ 'form' ];}
elseif ( isset ( $_REQUEST [ 'addon' ])) { $variable = " h " . $_REQUEST [ 'addon' ];}
2016-11-26 21:44:45 +00:00
else {}
2020-03-25 19:33:47 +00:00
2016-11-26 21:44:45 +00:00
//$variable="b43";
//$variable="b115";
if ( isset ( $_REQUEST [ 'variable' ])){
$variable = $_REQUEST [ 'variable' ];
}
2017-10-29 18:12:57 +00:00
$v = decodifica_parametro ( $variable );
2018-10-27 23:36:54 +00:00
if ( $v [ 0 ] == 'e' ) {
2020-03-26 11:35:35 +00:00
$plantilla_inicio = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $v [ 1 ], 'descripcion' , " tabla='empresa' AND opcion='plantilla_inicio' " , " " ) ;
$plantilla_inicio_filas = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $v [ 1 ], 'descripcion' , " tabla='empresa' AND opcion='plantilla_inicio_filas' " , " " ) ;
$plantilla_inicio_columnas = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $v [ 1 ], 'descripcion' , " tabla='empresa' AND opcion='plantilla_inicio_columnas' " , " " ) ;
if ( ! isset ( $_REQUEST [ 'home' ]) ){
2019-07-27 00:47:48 +00:00
$pagina_inicio_definida = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $v [ 1 ], 'descripcion' , " tabla='empresa' AND opcion='pagina_inicio' " , " " ) ;
2020-03-26 11:35:35 +00:00
if ( $plantilla_inicio [ 0 ] == " grid " ){} else {
2018-11-23 01:58:47 +00:00
$vista_favorita = vista_favorita ( $pagina_inicio_definida [ 0 ]);
2020-03-26 11:35:35 +00:00
}
2018-11-23 01:58:47 +00:00
// $onload = "<script type=\"text/javascript\">window.location.href='$vista_favorita';</script> ";
if ( $vista_favorita [ 0 ] != " " ){
$variable = $vista_favorita ; //"e".$_REQUEST['empresa'];
} else {
$variable = " $v[0] $v[1] " ;
2018-12-05 17:08:42 +00:00
2018-11-23 01:58:47 +00:00
}
2018-10-30 15:59:25 +00:00
}
2018-10-27 23:36:54 +00:00
}
$v = decodifica_parametro ( $variable );
2017-09-04 17:08:45 +00:00
if ( isset ( $_REQUEST [ 'plantilla' ])){
$plantilla = $_REQUEST [ 'plantilla' ];
} else { $plantilla = " landingpage " ;}
2017-10-28 17:07:30 +00:00
2018-02-16 00:03:36 +00:00
if ( isset ( $_REQUEST [ 'tema' ]) AND $_REQUEST [ 'tema' ] != " " ) { $tema = " $_REQUEST[tema] " ;}
2017-10-29 18:12:57 +00:00
else {
2018-10-25 23:46:57 +00:00
// if($v[0] =='a' OR $v[0] =='k') { $tema=''; }else{$tema="moon";}
2017-10-29 18:12:57 +00:00
}
2017-10-28 17:07:30 +00:00
$presentacion_cabeza = "
< link rel = 'stylesheet' href = 'librerias/reveal/css/reveal.css' >
< link rel = 'stylesheet' href = 'librerias/reveal/css/theme/$tema.css' id = 'theme' >
<!-- Theme used for syntax highlighting of code -->
< link rel = 'stylesheet' href = 'librerias/reveal/lib/css/zenburn.css' >
<!-- Printing and PDF exports -->
< script >
var link = document . createElement ( 'link' );
link . rel = 'stylesheet' ;
link . type = 'text/css' ;
2018-10-25 23:46:57 +00:00
link . href = window . location . search . match ( / print - pdf / gi ) ? 'librerias/reveal/css/print/pdf.css' : 'librerias/reveal/css/print/paper.css' ;
2017-10-28 17:07:30 +00:00
document . getElementsByTagName ( 'head' )[ 0 ] . appendChild ( link );
</ script >
<!-- [ if lt IE 9 ] >
< script src = 'lib/js/html5shiv.js' ></ script >
2018-07-03 05:11:19 +00:00
<! [ endif ] -->
2017-10-28 17:07:30 +00:00
" ;
2018-07-03 05:11:19 +00:00
2017-10-28 17:07:30 +00:00
$presentacion_pie = "
2018-10-25 23:46:57 +00:00
< script src = 'librerias/lazy/jquery.lazy.min.js' ></ script >
2017-10-28 17:07:30 +00:00
< script src = 'librerias/reveal/lib/js/head.min.js' ></ script >
< script src = 'librerias/reveal/js/reveal.js' ></ script >
< script >
// More info https://github.com/hakimel/reveal.js#configuration
Reveal . initialize ({
controls : true ,
progress : true ,
history : true ,
center : true ,
2018-11-03 22:20:38 +00:00
mouseWheel : true ,
2017-10-28 17:07:30 +00:00
transition : 'slide' , // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies : [
{ src : 'librerias/reveal/lib/js/classList.js' , condition : function () { return ! document . body . classList ; } },
{ src : 'librerias/reveal/plugin/markdown/marked.js' , condition : function () { return !! document . querySelector ( '[data-markdown]' ); } },
{ src : 'librerias/reveal/plugin/markdown/markdown.js' , condition : function () { return !! document . querySelector ( '[data-markdown]' ); } },
{ src : 'librerias/reveal/plugin/highlight/highlight.js' , async : true , callback : function () { hljs . initHighlightingOnLoad (); } },
{ src : 'librerias/reveal/plugin/zoom-js/zoom.js' , async : true },
{ src : 'librerias/reveal/plugin/notes/notes.js' , async : true }
]
});
2018-07-03 05:11:19 +00:00
</ script >
2017-10-28 17:07:30 +00:00
" ;
2016-11-26 21:44:45 +00:00
if ( $variable != '' ){
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
if ( $v [ 0 ] == 'e' ) {
/// e = EMPRESA
2017-08-20 17:53:00 +00:00
$id_empresa = $v [ 1 ];
$id = $id_empresa ;
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
2020-03-26 11:35:35 +00:00
$plantilla_inicio = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $v [ 1 ], 'descripcion' , " tabla='empresa' AND opcion='plantilla_inicio' " , " " ) ;
2018-06-22 09:58:02 +00:00
$librerias_cabeza = "
<!-- tabla de contenido -->
< link rel = 'stylesheet' href = './librerias/bootstrap-toc/bootstrap-toc.min.css' >
< script src = './librerias/bootstrap-toc/bootstrap-toc.min.js' ></ script >
" ;
2017-10-11 01:40:23 +00:00
if ( $titulo [ 0 ] != " " ) {
2020-03-16 19:14:47 +00:00
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2018-07-03 05:11:19 +00:00
2019-07-27 00:47:48 +00:00
$descripcion = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
2017-08-20 17:53:00 +00:00
//$background_imagen = buscar_imagen('',"","","$id_empresa");
2019-07-27 00:47:48 +00:00
$background_imagen = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2017-08-20 17:53:00 +00:00
$background_imagen = $background_imagen [ 0 ];
2016-11-26 21:44:45 +00:00
$uri_set = " " ;
2019-07-27 00:47:48 +00:00
$pagina_inicio_definida = remplacetas ( 'form_parametrizacion' , 'id_empresa' , $id_empresa , 'descripcion' , " tabla='empresa' AND opcion='pagina_inicio' " ) ;
2018-10-27 23:36:54 +00:00
/* if ( $pagina_inicio_definida [ 0 ] != " " and ! isset ( $_REQUEST [ 'home' ])){
2018-04-01 17:25:44 +00:00
$vista_favorita = vista_favorita ( $pagina_inicio_definida [ 0 ]);
//$set= $pagina_inicio_definida[0];
$onload = " <script type= \" text/javascript \" >window.location.href=' $vista_favorita ';</script> " ;
2018-07-03 05:11:19 +00:00
}
2018-10-27 23:36:54 +00:00
* */
2019-07-27 00:47:48 +00:00
//echo "<br><br><br><br><br><br><br><br>$logo[2] / $logo[0]";
2016-11-26 21:44:45 +00:00
$acceso = 1 ;
2020-03-26 11:35:35 +00:00
if ( $plantilla_inicio [ 0 ] == 'grid' ){} else {
2017-10-14 21:01:51 +00:00
$menu = "
2018-06-29 21:51:42 +00:00
< div class = 'col-sm-3 col-lg-2 hidden-xs hidden-sm' id = 'caja_lateral_derecha' >
2016-11-26 21:44:45 +00:00
< div class = 'container' >
2018-10-12 16:28:09 +00:00
< nav id = 'toc' data - spy = 'affix' data - toggle = 'toc' ></ nav >
2016-11-26 21:44:45 +00:00
</ div >
</ div > " ;
$cols_interior = " 10 " ;
2020-03-26 11:35:35 +00:00
}
2017-10-11 01:40:23 +00:00
} else {
2018-07-03 05:11:19 +00:00
$onload = " <script type= \" text/javascript \" >location.href='404';</script> " ;
2020-03-16 19:14:47 +00:00
2017-10-11 01:40:23 +00:00
}
2020-03-26 11:35:35 +00:00
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'b' ) {
/// s= SET DE DATOS
2017-08-20 17:53:00 +00:00
$set = $v [ 1 ];
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = @ remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
2016-11-26 21:44:45 +00:00
$id_empresa = $empresa [ 0 ];
2019-07-27 00:47:48 +00:00
//$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
//$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
$titulo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
$descripcion = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
2017-08-20 17:53:00 +00:00
$background_imagen = buscar_imagen ( " $set " , " " , " " , " $id_empresa " );
2016-11-26 21:44:45 +00:00
$uri_set = " " ;
$cantidad_registros = " " ;
2018-06-22 10:44:45 +00:00
$librerias_cabeza = "
2018-06-22 09:58:02 +00:00
<!-- tabla de contenido -->
< link rel = 'stylesheet' href = './librerias/bootstrap-toc/bootstrap-toc.min.css' >
< script src = './librerias/bootstrap-toc/bootstrap-toc.min.js' ></ script >
" ;
2018-06-22 13:25:48 +00:00
$orden = " " ;
2018-07-03 05:11:19 +00:00
2018-06-22 10:44:45 +00:00
$menu = " </div>
< div class = 'col-sm-2 hidden-xs hidden-sm' id = 'caja_lateral_derecha' >
2018-05-02 15:15:44 +00:00
< div class = 'container' >
< nav style = ' max-height:95% !important ; overflow:auto !important; ' id = 'toc' data - spy = 'affix' data - toggle = 'toc' ></ nav >
</ div >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div > " ;
$cols_interior = " 10 " ;
2017-08-20 17:53:00 +00:00
//$onload = landingpage_contenido_formulario($set);
2019-07-27 00:47:48 +00:00
$publico = remplacetas ( 'form_id' , 'id' , " $set " , 'publico' , " " ) ;
2018-07-03 05:11:19 +00:00
if ( $publico [ 0 ] == '1' OR $_SESSION [ 'id_empresa' ] == $id_empresa ) { $acceso = 1 ;}
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 's' ) {
/// s= SET DE DATOS
2017-08-20 17:53:00 +00:00
$set = $v [ 1 ];
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
2016-11-26 21:44:45 +00:00
$id_empresa = $empresa [ 0 ];
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , " $set " , 'nombre' , " " ) ;
$descripcion = remplacetas ( 'form_id' , 'id' , " $set " , 'descripcion' , " " ) ;
$slogan = remplacetas ( 'form_id' , 'id' , " $set " , 'descripcion' , " " ) ;
2017-08-20 17:53:00 +00:00
$background_imagen = buscar_imagen ( " $set " , " " , " " , " $id_empresa " );
2016-11-26 21:44:45 +00:00
$uri_set = " " ;
2017-08-20 17:53:00 +00:00
//$onload = landingpage_contenido_formulario($set);
2017-09-14 20:26:42 +00:00
//$onload = "".consultar_contenido_formulario("$set",'5','','','',"$plantilla")."";
2018-07-03 05:11:19 +00:00
2019-07-27 00:47:48 +00:00
$publico = remplacetas ( 'form_id' , 'id' , " $set " , 'publico' , " " ) ;
2018-07-03 05:11:19 +00:00
if ( $publico [ 0 ] == '1' OR $_SESSION [ 'id_empresa' ] == $id_empresa ) { $acceso = 1 ;}
2017-09-14 20:26:42 +00:00
//$acceso=1;
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'S' ) {
$set = $v [ 1 ];
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
2018-02-19 03:36:50 +00:00
$id_empresa = $empresa [ 0 ];
2016-11-26 21:44:45 +00:00
/// s= SET DE DATOS
$embebido = " 1 " ;
2017-09-14 18:43:06 +00:00
$onload = " " . consultar_contenido_formulario ( " $set " , '5' , '' , 'embebido' , '' , " $plantilla " ) . " " ;
2016-11-26 21:44:45 +00:00
2017-09-14 17:44:42 +00:00
}
elseif ( $v [ 0 ] == 'l' ) {
$set = $v [ 1 ];
/// s= SET DE DATOS
$embebido = " 1 " ;
2020-03-16 19:14:47 +00:00
if ( isset ( $_REQUEST [ 'print' ])) {
2019-08-08 12:48:53 +00:00
//$print = "window.print()";
}
2017-09-14 19:00:33 +00:00
$onload = " " . consultar_contenido_formulario ( " $set " , '' , " " , 'listado' , '' , " $plantilla " ) . " <script type= \" text/javascript \" > $print </script> " ;
2017-09-14 17:44:42 +00:00
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'I' ) {
$identificador = $v [ 1 ];
2019-07-27 00:47:48 +00:00
$formulario = remplacetas ( 'form_datos' , 'control' , " $identificador " , 'form_id' , " " ) ;
2018-02-19 03:36:50 +00:00
$set = $formulario [ 0 ];
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
2018-02-19 03:36:50 +00:00
$id_empresa = $empresa [ 0 ];
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
if ( strlen ( $identificador ) > 32 ) {
$identificador_original = $identificador ;
$key = substr ( $identificador , 32 , $length = 40 );
$identificador = substr ( $identificador , 0 , $length = 32 );
} else { $identificador_original = $identificador ;}
2017-07-05 21:47:00 +00:00
$impresion = landingpage_contenido_identificador ( " $identificador_original " , " $id_form " , " social " , 'head' );
2017-08-20 17:53:00 +00:00
2017-07-05 21:47:00 +00:00
$impresion = strip_tags ( $impresion );
//$impresion= str_replace('\t', '', $impresion);
$impresion = preg_replace ( " [ \n | \r | \n \r | \t ] " , '' , $impresion );
2017-08-20 17:53:00 +00:00
$descripcion_meta = $impresion ;
2016-11-26 21:44:45 +00:00
$primer = formulario_uso ( " " , " $identificador " , 'primer' ) ;
$id_form = " $primer[3] " ;
$embebido = " 1 " ;
//$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
2017-09-04 17:08:45 +00:00
$onload = landingpage_contenido_identificador ( " $identificador_original " , " $id_form " , " $plantilla " , 'simple' );
2016-11-26 21:44:45 +00:00
}
elseif ( $v [ 0 ] == 'p' ) {
2017-09-30 00:39:45 +00:00
$set = $v [ 1 ];
2018-02-19 03:28:32 +00:00
$form = $v [ 1 ];
2018-12-05 17:08:42 +00:00
$librerias_cabeza = '
2020-03-31 02:20:20 +00:00
< link rel = " stylesheet " type = " text/css " href = " //cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css " >
< script type = " text/javascript " charset = " utf8 " src = " //cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js " ></ script >
2018-02-19 03:28:32 +00:00
2018-11-22 23:49:24 +00:00
' ;
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , " " ) ;
$razon_social_portal = remplacetas ( 'empresa' , 'id' , " $empresa[0] " , 'razon_social' , '' ) ;
$titulo = remplacetas ( 'empresa' , 'id' , " $empresa[0] " , 'razon_social' , '' ) ;
2018-02-19 03:28:32 +00:00
$id_empresa = $empresa [ 0 ];
2017-09-30 00:39:45 +00:00
/// s= SET DE DATOS
2016-11-26 21:44:45 +00:00
$embebido = " 1 " ;
2017-09-30 00:39:45 +00:00
if ( isset ( $_REQUEST [ 'print' ])) { $print = " window.print() " ;}
2018-12-05 17:08:42 +00:00
$onload = " " . planilla ( " $set " , " $_REQUEST[registros] " , '' ) . " <script type= \" text/javascript \" > $print </script>
2018-11-22 23:49:24 +00:00
" ;
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'i' ) {
/// i= IDENTIFICADOR
$identificador = $v [ 1 ];
if ( strlen ( $identificador ) > 32 ) {
$identificador_original = $identificador ;
$key = substr ( $identificador , 32 , $length = 40 );
$identificador = substr ( $identificador , 0 , $length = 32 );
} else { $identificador_original = $identificador ;}
$primer = formulario_uso ( " " , " $identificador " , 'primer' ) ;
$id_form = " $primer[3] " ;
2019-07-27 00:47:48 +00:00
//$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
$empresa = remplacetas ( 'form_id' , 'id' , $id_form , 'id_empresa' , " " ) ;
$logo = @ remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
2016-11-26 21:44:45 +00:00
$id_empresa = $empresa [ 0 ];
$id = $empresa [ 0 ];
$embebido = " 0 " ;
//$impresion = mostrar_identificador("$identificador","$id_form[0]","landingpage",'simple');
2017-07-05 21:28:46 +00:00
$impresion = landingpage_contenido_identificador ( " $identificador_original " , " $id_form " , " social " , 'head' );
2019-07-27 00:47:48 +00:00
$razon_social = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
2016-11-26 21:44:45 +00:00
$impresion = strip_tags ( $impresion );
2017-07-05 21:10:02 +00:00
//$impresion= str_replace('\t', '', $impresion);
2017-07-05 21:28:46 +00:00
$impresion = preg_replace ( " [ \n | \r | \n \r | \t ] " , '' , $impresion );
2017-08-20 17:53:00 +00:00
$descripcion_meta = $impresion ;
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $id_form , 'nombre' , " " ) ;
$descripcion = remplacetas ( 'form_id' , 'id' , $id_form , 'descripcion' , " " ) ;
2016-11-26 21:44:45 +00:00
$background_imagen = buscar_imagen ( " $id_form " , $identificador , " " , " " );
$uri_set = " <a class='' href='s $id_form '> $titulo[0] </a> " ;
2019-07-27 00:47:48 +00:00
$publico = remplacetas ( 'form_id' , 'id' , $id_form , 'publico' , " " ) ;
2016-11-26 21:44:45 +00:00
//if($publico[0] =='1') {$acceso = 1;}
$acceso = 1 ;
}
elseif ( $v [ 0 ] == 'd' ) {
/// d= IDENTIFICADOR EDITABLE
2017-08-20 17:53:00 +00:00
$identificador = $v [ 1 ];
2016-11-26 21:44:45 +00:00
// $form =$v[1];
//$embebido = "1";
//$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
2017-08-20 17:53:00 +00:00
2018-06-22 13:14:38 +00:00
$librerias_cabeza = "
2018-07-03 05:11:19 +00:00
< script src = './librerias/summernote/summernote.js' ></ script >
2018-06-22 13:14:38 +00:00
< link href = './librerias/summernote/summernote.css' rel = 'stylesheet' >
2018-07-03 05:11:19 +00:00
" ;
2018-06-22 14:05:34 +00:00
$librerias_pie = "
2018-07-03 05:11:19 +00:00
2018-06-22 14:05:34 +00:00
< script type = 'text/javascript' >
//// wysiwyg
var edit = function () {
2018-07-03 05:11:19 +00:00
$ ( '.wysiwyg' ) . summernote ({ height : 250 , codemirror : { theme : 'default' }, dialogsInBody : true , toolbar :
2018-06-22 14:05:34 +00:00
[
[ 'style' , [ 'bold' , 'italic' , 'underline' , 'clear' ]],
[ 'font' , [ 'strikethrough' , 'superscript' , 'subscript' , 'fontname' ]],
[ 'fontsize' , [ 'fontsize' ]],
[ 'color' , [ 'color' ]],
[ 'para' , [ 'ul' , 'ol' , 'paragraph' , 'style' ]],
[ 'height' , [ 'height' ]],
[ 'insert' , [ 'picture' , 'link' , 'video' , 'table' , 'hr' ]],
[ 'misc' , [ 'fullscreen' , 'codeview' , 'undo' , 'redo' ]]
]
});
};
var save = function () {
var makrup = $ ( '.wysiwyg' ) . summernote ( 'code' );
$ ( '.wysiwyg' ) . summernote ( 'destroy' );
};
$ ( document ) . ready ( function () {
$ ( '.wysiwyg_auto' ) . summernote ({ dialogsInBody : true });
});
</ script >
" ;
2019-07-27 00:47:48 +00:00
$form = remplacetas ( 'form_datos' , 'control' , $identificador , 'form_id' , " " ) ;
$empresa = remplacetas ( 'form_id' , 'id' , $form [ '0' ], 'id_empresa' , " " ) ;
2016-11-26 21:44:45 +00:00
$id_empresa = $empresa [ 0 ];
$id = $empresa [ 0 ];
$impresion = mostrar_identificador ( " $identificador " , " " , " landingpage " , '' );
$impresion = strip_tags ( $impresion );
2017-08-20 17:53:00 +00:00
$descripcion_meta = $impresion ;
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $form [ '0' ], 'nombre' , " " ) ;
2016-11-26 21:44:45 +00:00
$background_imagen = buscar_imagen ( " $form[0] " , $identificador , " " , " " );
$uri_set = " <a class='' href='s $form[0] '> $titulo[0] </a> " ;
2019-07-27 00:47:48 +00:00
$publico = remplacetas ( 'form_id' , 'id' , $form [ 0 ], 'publico' , " " ) ;
2016-11-26 21:44:45 +00:00
if ( $publico [ 0 ] == '1' ) { $acceso = 1 ;}
$t = " edit " ;
$embebido = " 1 " ;
2017-08-20 17:53:00 +00:00
2017-09-05 23:22:24 +00:00
// $onload = $identificador;
// $onload = formulario_embebido_ajax("$form[0]","$identificador",'edit');
2017-12-06 14:47:51 +00:00
$onload = " <script type= \" text/javascript \" >xajax_formulario_embebido_ajax('', $form[0] ,' $identificador ','edit')</script> " ;
2016-11-26 21:44:45 +00:00
}
elseif ( $v [ 0 ] == 'f' ) {
/// f= FORMULARIO
$form = $v [ 1 ];
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , " " ) ;
2017-12-06 14:54:58 +00:00
$id_empresa = $empresa [ 0 ];
2018-06-20 15:49:54 +00:00
$librerias_cabeza = "
2018-07-03 05:11:19 +00:00
< script src = './librerias/summernote/summernote.js' ></ script >
2018-06-20 15:49:54 +00:00
< link href = './librerias/summernote/summernote.css' rel = 'stylesheet' >
2018-07-03 05:11:19 +00:00
" ;
2018-06-20 15:53:03 +00:00
$librerias_pie = "
2018-07-03 05:11:19 +00:00
2018-06-20 15:53:03 +00:00
< script type = 'text/javascript' >
//// wysiwyg
var edit = function () {
2018-07-03 05:11:19 +00:00
$ ( '.wysiwyg' ) . summernote ({ height : 250 , codemirror : { theme : 'default' }, dialogsInBody : true , toolbar :
2018-06-20 16:15:54 +00:00
[
[ 'style' , [ 'bold' , 'italic' , 'underline' , 'clear' ]],
[ 'font' , [ 'strikethrough' , 'superscript' , 'subscript' , 'fontname' ]],
[ 'fontsize' , [ 'fontsize' ]],
[ 'color' , [ 'color' ]],
[ 'para' , [ 'ul' , 'ol' , 'paragraph' , 'style' ]],
[ 'height' , [ 'height' ]],
[ 'insert' , [ 'picture' , 'link' , 'video' , 'table' , 'hr' ]],
[ 'misc' , [ 'fullscreen' , 'codeview' , 'undo' , 'redo' ]]
]
});
};
2018-06-20 15:53:03 +00:00
var save = function () {
var makrup = $ ( '.wysiwyg' ) . summernote ( 'code' );
$ ( '.wysiwyg' ) . summernote ( 'destroy' );
};
$ ( document ) . ready ( function () {
$ ( '.wysiwyg_auto' ) . summernote ({ dialogsInBody : true });
});
</ script >
" ;
2018-11-05 19:36:33 +00:00
2018-11-03 22:20:38 +00:00
// $no_mostrar="display:none; ";
2017-12-06 14:46:50 +00:00
$onload = " <script type= \" text/javascript \" >xajax_formulario_embebido_ajax('',' $form ','','nuevo')</script> " ;
2016-11-26 21:44:45 +00:00
}
2017-10-28 15:14:33 +00:00
elseif ( $v [ 0 ] == 'c' ) {
/// f= FORMULARIO
$form = $v [ 1 ];
2018-04-02 14:06:08 +00:00
//$presentacion = contenido_presentacion("$form");
2017-10-28 15:14:33 +00:00
$presentacion = contenido_presentacion ( " $form " );
$embebido = " 1 " ;
2018-11-03 22:20:38 +00:00
//$no_mostrar ="display:none; ";
2018-11-05 19:36:33 +00:00
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $form " , 'id_empresa' , " " ) ;
2017-10-28 15:40:57 +00:00
$id_empresa = $empresa [ 0 ];
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , $id_empresa , 'imagen' , '' ) ;
2017-10-28 15:14:33 +00:00
$no_mostrar = " display:none; " ;
if ( $_REQUEST [ 'tema' ] != " " ) { $tema = " $_REQUEST[tema] " ;}
else { $tema = " moon " ;}
2017-10-28 17:07:30 +00:00
$librerias_cabeza = $presentacion_cabeza ;
$librerias_pie = $presentacion_pie ;
2018-07-03 05:11:19 +00:00
2017-10-28 15:14:33 +00:00
$onload = "
< div class = 'reveal' >
< div class = 'slides' >
$presentacion
</ div >
</ div > " ;
}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'a' ) {
$form = $v [ 1 ];
$embebido = " 1 " ;
2018-11-03 22:20:38 +00:00
$no_mostrar = " display:none; " ;
$aplicacion_pie = "
2017-11-02 14:00:23 +00:00
2017-10-29 18:12:57 +00:00
< script src = 'librerias/reveal/lib/js/head.min.js' ></ script >
< script src = 'librerias/reveal/js/reveal.js' ></ script >
< script >
2018-07-03 05:11:19 +00:00
2017-11-13 14:28:13 +00:00
2017-11-05 15:28:52 +00:00
// max-height: calc(100vh - 300px);
// min-height: calc(100vh - 300px);
2017-10-29 18:12:57 +00:00
// More info https://github.com/hakimel/reveal.js#configuration
Reveal . initialize ({
width : '100%' ,
2018-10-27 23:06:32 +00:00
height : '100%' ,
2017-10-29 18:12:57 +00:00
touch : false ,
controls : false ,
progress : true ,
history : true ,
center : true ,
transition : 'slide' , // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies : [
2018-07-03 05:11:19 +00:00
2017-10-29 18:12:57 +00:00
]
});
2018-07-03 05:11:19 +00:00
</ script >
2017-10-29 18:12:57 +00:00
< script src = 'librerias/slick/slick.js' type = 'text/javascript' charset = 'utf-8' ></ script >
2018-07-03 05:11:19 +00:00
2017-10-29 18:12:57 +00:00
" ;
2018-07-03 05:11:19 +00:00
$librerias_galeria = "
2017-10-30 20:01:27 +00:00
<!-- < link rel = 'manifest' href = 'manifest.json' > -->
2017-10-29 18:12:57 +00:00
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/slick.css' >
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/slick-theme.css' >
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/style.css' >
2017-10-30 19:27:04 +00:00
< script src = 'manup.js' ></ script >
2017-10-29 18:12:57 +00:00
" ;
2018-07-03 05:11:19 +00:00
2017-11-06 23:11:35 +00:00
$registros = 1 ;
$plantilla = " landingpage " ;
2018-06-20 12:44:01 +00:00
$librerias_cabeza = "
2018-10-27 22:17:12 +00:00
< style >
2018-11-05 19:27:09 +00:00
2018-10-27 22:17:12 +00:00
. control_planilla {
display : none
}
2018-11-05 19:27:09 +00:00
2018-10-27 22:17:12 +00:00
</ style >
2018-07-03 05:11:19 +00:00
< script src = './librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js' ></ script >
2018-06-20 12:44:01 +00:00
< script src = './librerias/charts/Chart.bundle.js' ></ script >
2018-07-03 05:11:19 +00:00
< script src = './librerias/charts/utils.js' ></ script >
$presentacion_cabeza $librerias_galeria
2017-11-06 21:29:33 +00:00
" ;
2018-10-25 23:46:57 +00:00
$librerias_pie = "
2018-07-03 05:11:19 +00:00
$aplicacion_pie
2017-10-30 20:01:27 +00:00
<!-- < script >
2017-10-30 19:27:04 +00:00
if ( 'serviceWorker' in navigator ) {
navigator . serviceWorker
. register ( 'pwabuilder-sw.js' )
. then ( function () { console . log ( 'Service Worker Registered' ); });
}
2017-10-30 20:01:27 +00:00
</ script > -->
2017-11-06 16:23:43 +00:00
2017-11-06 21:29:33 +00:00
< script type = 'text/javascript' >
$ ( document ) . ready ( function () {
2018-10-27 15:45:21 +00:00
loadArticle ( 1 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 2 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 3 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 4 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 5 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 6 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 7 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 8 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 7 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 9 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 10 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 11 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 12 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 13 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
loadArticle ( 14 , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
2018-10-27 13:26:50 +00:00
var count = 15 ;
2017-11-06 21:29:33 +00:00
$ ( 'div' ) . scroll ( function () {
var offset = $ ( '#scroll-content div' ) . length ;
var \ $this = $ ( this );
var height = this . scrollHeight - \ $this . height (); // Get the height of the div
var scroll = \ $this . scrollTop (); // Get the vertical scroll position
var isScrolledToEnd = ( scroll >= height );
if ( isScrolledToEnd ) {
2018-10-27 15:45:21 +00:00
loadArticle ( count , $form , '$plantilla' , $registros , 'scroll-content' , 'li' );
2017-11-06 21:29:33 +00:00
count ++ ;
}
});
2018-07-03 05:11:19 +00:00
2018-10-27 15:45:21 +00:00
loadArticle ( 1 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 2 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 3 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 4 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 5 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 6 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 7 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
2018-10-27 16:08:46 +00:00
loadArticle ( 8 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 9 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
loadArticle ( 10 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
2017-11-07 00:44:21 +00:00
2018-10-27 16:08:46 +00:00
var count2 = 11 ;
2017-11-07 00:44:21 +00:00
$ ( 'div' ) . scroll ( function () {
var offset = $ ( '#scroll-galeria div' ) . length ;
var \ $this = $ ( this );
var height = this . scrollHeight - \ $this . height (); // Get the height of the div
var scroll = \ $this . scrollTop (); // Get the vertical scroll position
var isScrolledToEnd = ( scroll >= height );
if ( isScrolledToEnd ) {
2018-10-27 15:45:21 +00:00
loadArticle ( count2 , $form , 'galeria' , $registros , 'scroll-galeria' , 'galeria' );
2018-10-26 03:18:32 +00:00
count2 ++ ;
2017-11-07 00:44:21 +00:00
}
});
2018-07-03 05:11:19 +00:00
2017-11-06 21:29:33 +00:00
});
2018-07-03 05:11:19 +00:00
</ script >
2017-11-06 16:23:43 +00:00
2017-10-30 19:27:04 +00:00
" ;
2017-10-29 18:12:57 +00:00
2018-11-03 22:20:38 +00:00
$onload = vista_aplicacion ( $form );
2018-11-26 14:46:47 +00:00
} elseif ( $v [ 0 ] == 'q' ) {
$form = $v [ 1 ];
2018-11-29 12:07:33 +00:00
if ( $form == " " ){ $form = '0' ;}
2018-11-26 14:46:47 +00:00
$embebido = " 1 " ;
$no_mostrar = " display:none; " ;
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
$librerias_galeria = "
<!-- < link rel = 'manifest' href = 'manifest.json' > -->
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/slick.css' >
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/slick-theme.css' >
< link rel = 'stylesheet' type = 'text/css' href = 'librerias/slick/style.css' >
< script src = 'manup.js' ></ script >
" ;
$registros = 1 ;
$registros_pagina = 5 ;
$plantilla = " landingpage " ;
$librerias_cabeza = "
< style >
2018-12-05 17:08:42 +00:00
2018-11-26 17:07:03 +00:00
img { display : block ;
max - width : 100 % ;
height : auto ;}
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
. control_planilla {
display : none
}
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
</ style >
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
$librerias_galeria
" ;
$librerias_pie = "
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
< script type = 'text/javascript' >
$ ( document ) . ready ( function () {
2018-12-05 17:08:42 +00:00
2018-11-26 14:46:47 +00:00
loadArticle ( 1 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 2 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 3 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 4 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 5 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 6 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 7 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 8 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 9 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
loadArticle ( 10 , $form , 'galeria' , $registros , 'scroll-galeria' , 'voyeur' );
var count2 = 11 ;
$ ( 'div' ) . scroll ( function () {
var offset = $ ( '#scroll-galeria div' ) . length ;
var \ $this = $ ( this );
var height = this . scrollHeight - \ $this . height (); // Get the height of the div
var scroll = \ $this . scrollTop (); // Get the vertical scroll position
var isScrolledToEnd = ( scroll >= height );
if ( isScrolledToEnd ) {
loadArticle ( count2 , $form , 'voyeur' , $registros , 'scroll-galeria' , 'voyeur' );
count2 ++ ;
}
});
});
</ script >
" ;
$onload = vista_voyeur ( $form );
2016-11-26 21:44:45 +00:00
}
elseif ( $v [ 0 ] == 'g' ) {
/// g=FORMULARIO EMBEBIDO
2017-11-16 17:18:46 +00:00
$no_mostrar = " display:none; " ;
2016-11-26 21:44:45 +00:00
$form = $v [ 1 ];
2018-12-05 17:22:01 +00:00
if ( $form == " " ){ header ( " Location:./ " ); }
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , " " ) ;
$razon_social_portal = remplacetas ( 'empresa' , 'id' , " 1 " , 'razon_social' , '' ) ;
2018-02-18 14:21:57 +00:00
$id_empresa = $empresa [ 0 ];
2016-11-26 21:44:45 +00:00
$embebido = " 1 " ;
$onload = formulario_embebido ( $form , $opciones );
2018-06-20 12:52:29 +00:00
$librerias_cabeza = "
2018-11-26 17:07:03 +00:00
2018-07-03 05:11:19 +00:00
< script src = './librerias/summernote/summernote.js' ></ script >
2018-06-20 15:49:54 +00:00
< link href = './librerias/summernote/summernote.css' rel = 'stylesheet' >
2018-07-03 05:11:19 +00:00
" ;
2018-06-20 12:52:29 +00:00
$librerias_pie = "
2018-07-03 05:11:19 +00:00
2018-06-20 12:52:29 +00:00
< script type = 'text/javascript' >
//// wysiwyg
var edit = function () {
2018-07-03 05:11:19 +00:00
$ ( '.wysiwyg' ) . summernote ({ height : 250 , codemirror : { theme : 'default' }, dialogsInBody : true , toolbar :
2018-06-20 16:15:54 +00:00
[
[ 'style' , [ 'bold' , 'italic' , 'underline' , 'clear' ]],
[ 'font' , [ 'strikethrough' , 'superscript' , 'subscript' , 'fontname' ]],
[ 'fontsize' , [ 'fontsize' ]],
[ 'color' , [ 'color' ]],
[ 'para' , [ 'ul' , 'ol' , 'paragraph' , 'style' ]],
[ 'height' , [ 'height' ]],
[ 'insert' , [ 'picture' , 'link' , 'video' , 'table' , 'hr' ]],
[ 'misc' , [ 'fullscreen' , 'codeview' , 'undo' , 'redo' ]]
]
});
};
2018-06-20 12:52:29 +00:00
var save = function () {
var makrup = $ ( '.wysiwyg' ) . summernote ( 'code' );
$ ( '.wysiwyg' ) . summernote ( 'destroy' );
};
$ ( document ) . ready ( function () {
$ ( '.wysiwyg_auto' ) . summernote ({ dialogsInBody : true });
});
</ script >
2018-11-03 22:20:38 +00:00
" ;}
2016-11-26 21:44:45 +00:00
elseif ( $v [ 0 ] == 'h' ) {
/// h=ADDON
$addon = $v [ 1 ];
$onload = include ( " milfs/addon/ $addon / $addon " . " .php " );
}
elseif ( $v [ 0 ] == 'j' ) {
/// j=ADDON EMBEBIDO
$addon = $v [ 1 ];
2017-11-04 16:27:00 +00:00
//$embebido = "1";
2016-11-26 21:44:45 +00:00
$onload = include ( " milfs/addon/ $addon / $addon " . " .php " );
2017-11-04 16:27:00 +00:00
}
elseif ( $v [ 0 ] == 'k' ) {
$id_empresa = $v [ 1 ];
$id = $id_empresa ;
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
2017-11-05 17:13:27 +00:00
$no_mostrar = " display:none; " ;
2017-11-04 16:27:00 +00:00
/* if ( $titulo [ 0 ] != " " ) {
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2018-07-03 05:11:19 +00:00
2019-07-27 00:47:48 +00:00
$descripcion = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
2017-11-04 16:27:00 +00:00
//$background_imagen = buscar_imagen('',"","","$id_empresa");
2019-07-27 00:47:48 +00:00
$background_imagen = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2017-11-04 16:27:00 +00:00
$background_imagen = $background_imagen [ 0 ];
$uri_set = " " ;
$acceso = 1 ;
$cols_interior = " 10 " ;
} else {} */
$acceso = 1 ;
$embebido = 1 ;
2017-11-05 15:28:52 +00:00
$aplicacion_pie = "
2017-11-04 16:27:00 +00:00
2017-11-05 15:28:52 +00:00
< script src = 'librerias/reveal/lib/js/head.min.js' ></ script >
< script src = 'librerias/reveal/js/reveal.js' ></ script >
< script >
// max-height: calc(100vh - 300px);
// min-height: calc(100vh - 300px);
// More info https://github.com/hakimel/reveal.js#configuration
Reveal . initialize ({
width : '100%' ,
height : '90%' ,
touch : false ,
controls : false ,
progress : true ,
history : true ,
center : true ,
2017-11-05 19:44:15 +00:00
embedded : true ,
2017-11-05 15:28:52 +00:00
transition : 'slide' , // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies : [
2018-07-03 05:11:19 +00:00
2017-11-05 15:28:52 +00:00
]
});
2018-07-03 05:11:19 +00:00
</ script >
2017-11-05 15:28:52 +00:00
< script src = 'librerias/slick/slick.js' type = 'text/javascript' charset = 'utf-8' ></ script >
2018-07-03 05:11:19 +00:00
2017-11-05 15:28:52 +00:00
" ;
$librerias_pie = " $aplicacion_pie " ;
2018-07-03 05:11:19 +00:00
2017-11-05 15:28:52 +00:00
$librerias_cabeza = "
$presentacion_cabeza " ;
$suite_listado = suite_listado ( " $id " , " $_REQUEST[suite] " );
2018-07-03 05:11:19 +00:00
2017-11-05 15:28:52 +00:00
$onload = " $suite_listado " ;
2017-11-11 03:56:06 +00:00
}
2018-02-16 00:03:36 +00:00
elseif ( $v [ 0 ] == 'm' ) {
$set = $v [ 1 ];
2018-02-18 15:58:45 +00:00
$form = $v [ 1 ];
2018-04-03 11:02:31 +00:00
$librerias_cabeza = '
2020-03-31 02:20:20 +00:00
< link rel = " stylesheet " type = " text/css " href = " //cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css " >
< script type = " text/javascript " charset = " utf8 " src = " //cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js " ></ script >
2018-07-03 05:11:19 +00:00
2018-04-03 11:02:31 +00:00
' ;
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , " " ) ;
$razon_social_portal = remplacetas ( 'empresa' , 'id' , " $empresa[0] " , 'razon_social' , '' ) ;
$titulo = remplacetas ( 'empresa' , 'id' , " $empresa[0] " , 'razon_social' , '' ) ;
2018-02-18 15:58:45 +00:00
$id_empresa = $empresa [ 0 ];
2018-02-16 00:03:36 +00:00
$embebido = " 1 " ;
if ( isset ( $_REQUEST [ 'print' ])) { $print = " window.print() " ;}
$onload = " " . checklist ( " $set " , @ $_REQUEST [ 'registros' ], @ $_REQUEST [ 'campo' ], @ $_REQUEST [ 'valor' ], '' ) . " <script type= \" text/javascript \" > $print </script> " ;
}
2017-11-11 03:56:06 +00:00
elseif ( $v [ 0 ] == 'n' ) {
2018-02-24 23:52:33 +00:00
$form = $v [ 1 ];
2017-11-11 13:51:40 +00:00
$embebido = " 1 " ;
2017-11-11 03:56:06 +00:00
$no_mostrar = " display:none; " ;
2018-07-03 05:11:19 +00:00
2019-07-27 00:47:48 +00:00
$publico = remplacetas ( 'form_id' , 'id' , $form , 'publico' , '' ) ;
$empresa_seguridad = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , '' ) ;
2017-11-11 13:51:40 +00:00
if ( $publico [ 0 ] != " 1 " and ( $_SESSION [ 'id_empresa' ] != $empresa_seguridad [ 0 ] ) ) {
$resultado = " <div class='alert alert-danger'><h1><a href='./milfs/'>Ingresa</a> con tu usuario para consultar esta aplicación. <i class='fa fa-user-circle-o'></i></h1> " ;
$onload = $resultado ;
2018-07-03 05:11:19 +00:00
2017-11-11 13:51:40 +00:00
}
else {
2018-07-03 05:11:19 +00:00
2017-12-17 16:51:53 +00:00
$librerias_cabeza = "
2017-11-11 03:56:06 +00:00
< script type = 'text/javascript' src = 'librerias/notas/script.js' ></ script >
2018-07-03 05:11:19 +00:00
< script type = 'text/javascript' src = './librerias/jquery/jquery-ui.min.js' ></ script >
< script type = 'text/javascript' src = './librerias/jquery/jquery.ui.touch-punch.js' ></ script >
< script type = 'text/javascript' src = './librerias/jquery/jquery.touch.js' ></ script >
2017-11-11 03:56:06 +00:00
< script type = 'text/javascript' src = './librerias/notas/jquery.infinitedrag.js' ></ script >
< link rel = 'stylesheet' type = 'text/css' href = './librerias/notas/styles.css' />
" ;
2018-07-03 05:11:19 +00:00
2017-11-11 03:56:06 +00:00
$tablero = notas_tablero ( " $form " );
2017-11-11 13:51:40 +00:00
$onload = " $tablero " ;
2016-11-26 21:44:45 +00:00
}
2017-11-11 13:51:40 +00:00
}
2018-07-03 05:11:19 +00:00
2018-04-02 14:06:08 +00:00
elseif ( $v [ 0 ] == 'o' ) {
/// f= FORMULARIO
$form = $v [ 1 ];
//$presentacion = contenido_presentacion("$form");
$presentacion = contenido_parallax ( " $form " , " $plantilla " );
$embebido = " 1 " ;
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $form " , 'id_empresa' , " " ) ;
2018-04-02 14:06:08 +00:00
$id_empresa = $empresa [ 0 ];
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , $id_empresa , 'imagen' , '' ) ;
2018-04-02 14:06:08 +00:00
$no_mostrar = " display:none; " ;
// if($_REQUEST['tema'] !="") { $tema= "$_REQUEST[tema]";} else {$tema="moon";}
////$librerias_cabeza =$presentacion_cabeza;
//$librerias_pie =$presentacion_pie;
$banner = banner_empresa ( " $id_empresa " , " $form " );
2018-04-02 17:03:33 +00:00
$aplicaciones_listado = aplicaciones_listado ( " $id_empresa " , '' , 'lista' , '' );
$geo = buscar_campo_tipo ( $form , " 14 " );
if ( $geo [ 0 ] != " " ) {
$mapa = "
< a name = 'mapa' ></ a >
2018-07-03 05:11:19 +00:00
2018-04-02 17:03:33 +00:00
< embed class = '' src = 'mapero.php?id=$form' width = '100%' style = 'height: calc(100vh - 50px);' webkitAllowFullScreen mozallowfullscreen allowFullScreen ></ embed >
" ;
2018-07-03 05:11:19 +00:00
2018-04-02 17:03:33 +00:00
$boton_mapa = " <li><a href='#mapa'><i class='fa fa-map-o' aria-hidden='true'></i> Mapa</a></li> " ;
} else { $mapa = " " ; $boton_mapa = " " ;}
2018-04-02 14:06:08 +00:00
$onload = "
< style >
2018-07-03 05:11:19 +00:00
. parallax_banner {
2018-04-02 14:06:08 +00:00
/* The image used */
background - image : url ( 'milfs/images/secure/?file=600/$logo[0]' );
/* Full height */
2018-07-03 05:11:19 +00:00
height : 50 % ;
2018-04-02 14:06:08 +00:00
/* Create the parallax scrolling effect */
background - attachment : fixed ;
background - position : center ;
background - repeat : no - repeat ;
background - size : cover ;
}
2018-04-02 17:03:33 +00:00
. barra {
padding : 10 px 16 px ;
background : white ;
color : #f1f1f1;
width : 100 % ;
z - index : 10000 ;
}
. sticky {
position : fixed ;
top : 0 ;
width : 100 % ;
}
2018-04-02 14:06:08 +00:00
</ style >
2018-07-03 05:11:19 +00:00
2018-04-02 14:06:08 +00:00
< div class = 'parallax_banner' ></ div >
< div style = 'min-height:200px;' >
$banner
2018-07-03 05:11:19 +00:00
2018-04-02 14:06:08 +00:00
</ div >
2018-11-05 19:27:09 +00:00
2018-10-28 03:14:00 +00:00
< div class = 'barra navbar-collapse collapse ' id = 'barra_aplicaciones' >
< div class = 'navbar-header' >
< button type = 'button' class = 'navbar-toggle collapsed' data - toggle = 'collapse' data - target = '#menu_colapsible' aria - expanded = 'false' >
< span class = 'sr-only' > Toggle navigation </ span >
< span class = 'fa fa-bars' ></ span >
</ button >
< a class = 'nav navbar-brand' href = 'e$id_empresa' >< i class = 'fa fa-home' ></ i ></ a >
</ div >
< div class = 'collapse navbar-collapse' id = 'menu_colapsible' >
< ul class = 'nav navbar-nav' >
< li class = 'dropdown' >
< a href = '#' class = 'dropdown-toggle ' data - toggle = 'dropdown' role = 'button' aria - haspopup = 'true' aria - expanded = 'false' >
Secciones < span class = 'caret' ></ span >
</ a >
2018-11-22 23:49:24 +00:00
< ul class = 'dropdown-menu' id = 'listado_aplicaciones' >
2018-10-28 03:14:00 +00:00
$aplicaciones_listado
</ ul >
</ li >
$boton_mapa
</ ul >
< ul class = 'nav navbar-nav navbar-right' >
< li >< a href = 'http://tupale.co' > Tupale . co </ a ></ li >
</ ul >
</ div >
</ div >
< div id = 'mapa' class = 'container' >< a name = 'mapa' ></ a > $mapa </ div >
$presentacion
2018-11-05 19:27:09 +00:00
2018-07-03 05:11:19 +00:00
2018-04-02 17:03:33 +00:00
< script >
2018-07-03 05:11:19 +00:00
// When the user scrolls the page, execute myFunction
2018-04-02 17:03:33 +00:00
window . onscroll = function () { myFunction ()};
// Get the header
var header = document . getElementById ( 'barra_aplicaciones' );
// Get the offset position of the navbar
var sticky = header . offsetTop ;
// Add the sticky class to the header when you reach its scroll position. Remove 'sticky' when you leave the scroll position
function myFunction () {
if ( window . pageYOffset >= sticky ) {
header . classList . add ( 'sticky' );
} else {
header . classList . remove ( 'sticky' );
}
}
2018-07-03 05:11:19 +00:00
2018-04-02 17:03:33 +00:00
</ script >
2018-04-02 14:06:08 +00:00
" ;
}
2016-11-26 21:44:45 +00:00
else {
}
2019-07-27 00:47:48 +00:00
$video = remplacetas ( 'form_parametrizacion' , 'campo' , " presentacion " , 'descripcion' , " tabla='empresa' and opcion = 'video' and id_empresa = ' $id_empresa ' " ) ;
2016-11-26 21:44:45 +00:00
if ( $video [ 0 ] != " " ) { $video = " <iframe type='text/html' width='640' height='385' src='https://www.youtube.com/embed/ $video[0] ' frameborder='0'></iframe> " ; }
else { $video = " " ;}
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
$direccion = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'direccion' , '' ) ;
$telefono = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'telefono' , '' ) ;
$email = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'email' , '' ) ;
$facebook = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'facebook' , '' ) ;
$twitter = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'twitter' , '' ) ;
$razon_social = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
2018-03-27 02:02:46 +00:00
if ( $slogan [ 0 ] == " " ){
2019-07-27 00:47:48 +00:00
$slogan = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
2018-03-27 02:02:46 +00:00
}
2019-07-27 00:47:48 +00:00
$sigla = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'sigla' , '' ) ;
2017-12-06 19:07:56 +00:00
2017-08-20 17:53:00 +00:00
$link_empresa = " e $id_empresa " ;
2016-11-26 21:44:45 +00:00
} else {
/*
if ( isset ( $_SESSION [ 'id_empresa' ])) {
$id_empresa = " $_SESSION[id_empresa] " ;
} else { $id_empresa = " " ; }
*/
$id_empresa = " " ;
$id = " " ;
2019-07-27 00:47:48 +00:00
$logo = remplacetas ( 'empresa' , 'id' , " 1 " , 'imagen' , '' ) ;
$background_imagen = remplacetas ( 'empresa' , 'id' , " 1 " , 'imagen' , '' ) ;
2017-08-20 17:53:00 +00:00
$background_imagen = $background_imagen [ 0 ];
2016-11-26 21:44:45 +00:00
//$titulo[0] ="Tupale.co";
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'empresa' , 'id' , " 1 " , 'razon_social' , '' ) ;
$slogan = remplacetas ( 'empresa' , 'id' , " 1 " , 'slogan' , '' ) ;
2016-11-26 21:44:45 +00:00
//$descripcion[0] ="Los datos no hacen la felicidad, pero pueden medirla";
2019-07-27 00:47:48 +00:00
$descripcion = remplacetas ( 'empresa' , 'id' , " 1 " , 'slogan' , '' ) ;
2016-11-26 21:44:45 +00:00
$twitter [ 0 ] = " tupaleco " ;
$facebook [ 0 ] = " https://www.facebook.com/Qwerty-co-146226688795185 " ;
$video = " <div class='text-center'>
<!-- < iframe src = 'https://player.vimeo.com/video/3514904?color=ffffff&title=0&byline=0&portrait=0' width = '640' height = '281' frameborder = '0' webkitallowfullscreen mozallowfullscreen allowfullscreen ></ iframe > -->
</ div >
" ;
2018-10-14 06:18:18 +00:00
$soporte = " <li><a href='./f587'><i class='fa fa-address-card' aria-hidden='true'></i> SOPORTE</a></li> " ;
2016-11-26 21:44:45 +00:00
}
2019-07-27 00:47:48 +00:00
$css_adicional = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='css' and opcion = 'adicional' and id_empresa = ' $id_empresa ' " ) ;
2016-11-26 21:44:45 +00:00
if ( $css_adicional [ 0 ] != " " ) {
$css_adicional = " <style >
2020-03-25 02:46:48 +00:00
2016-11-26 21:44:45 +00:00
$css_adicional [ 0 ]
</ style > " ;
}
else {
2018-04-17 16:01:18 +00:00
$css_adicional = " <style ><!-- css_adicional [ $id_empresa ] --></style> " ;
2016-11-26 21:44:45 +00:00
}
2017-09-27 13:56:52 +00:00
$uri = $_SERVER [ 'REQUEST_URI' ];
2016-11-26 21:44:45 +00:00
?>
2017-11-11 03:56:06 +00:00
2016-11-26 21:44:45 +00:00
< meta NAME = " Language " CONTENT = " Spanish " >
< meta NAME = " Revisit " CONTENT = " 1 days " >
< meta NAME = " Distribution " CONTENT = " Global " >
< meta NAME = " Robots " CONTENT = " All " >
< meta name = " twitter:card " content = " summary " >
< meta name = " twitter:site " content = " <?php echo $twitter[0] ; ?> " >
< meta name = " twitter:creator " content = " @qwerty_co " >
< meta name = " twitter:url " content = " <?php echo $uri ; ?> " >
< meta name = " twitter:title " content = " <?php echo $titulo[0] ; ?> " >
< meta name = " twitter:description " content = " <?php echo $descripcion_meta ; ?> " >
< meta name = " twitter:image " content = " <?php echo " $_SESSION [ url ] images / secure / ? file = full / $background_imagen " ; ?> " >
2017-08-20 17:53:00 +00:00
< meta property = " og:type " content = " article " >
2016-11-26 21:44:45 +00:00
< meta property = " og:title " content = " <?php echo $titulo[0] ; ?> " />
< meta property = " og:type " content = " website " />
< meta property = " og:url " content = " <?php echo " $uri " ; ?> " />
< meta property = " og:image " content = " <?php echo " $_SESSION [ url ] images / secure / ? file = full / $background_imagen " ; ?> " />
< meta property = " og:site_name " content = " <?php echo $razon_social[0] ; ?> " />
< meta property = " og:description " content = " <?php echo $descripcion_meta ; ?> " />
< link rel = " shortcut icon " href = " <?php echo " milfs / images / secure / ? file = 150 / $logo [ 0 ] " ; ?> " >
2017-10-28 15:40:57 +00:00
< meta name = 'viewport' content = 'width=device-width' >
2016-11-26 21:44:45 +00:00
< meta name = 'mobile-web-app-capable' content = 'yes' >
< link rel = 'icon' sizes = '192x192' href = '<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>' >
2017-11-03 01:10:57 +00:00
< script type = 'text/javascript' src = 'librerias/exif/exif.js' ></ script >
2016-11-26 21:44:45 +00:00
< link rel = " apple-touch-icon-precomposed " href = " <?php echo " milfs / images / secure / ? file = 150 / $logo [ 0 ] " ; ?> " >
< title >< ? php echo @ $titulo [ 0 ]; ?> <?php echo strip_tags($slogan[0]); ?> Tupale.co </title>
2018-07-03 05:11:19 +00:00
<!--
2018-03-12 15:02:21 +00:00
2018-06-20 12:44:01 +00:00
< link href = " ./librerias/sidebar/css/simple-sidebar.css " rel = " stylesheet " >
2017-11-13 14:28:13 +00:00
2018-06-20 12:44:01 +00:00
-->
2017-08-20 17:53:00 +00:00
< ? php $xajax -> printJavascript ( " milfs/xajax/ " );
2017-11-03 19:22:40 +00:00
2017-11-07 08:52:06 +00:00
$xajax -> statusMessagesOn ();
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
2019-07-27 00:47:48 +00:00
$css = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='css' and opcion = 'bootstrap' and id_empresa = ' $id_empresa ' " ) ;
2016-11-26 21:44:45 +00:00
if ( $css [ 0 ] != " " ) {
$css = "
<!-- incluir tema bootstrap parametrizado -->
< link rel = 'stylesheet' href = '$css[0]?".time()."' > " ;
$tema = " " ;
}
else {
2017-08-20 17:53:00 +00:00
2017-03-06 01:47:56 +00:00
// $tema= "magazine";
$tema = " " ;
2016-11-26 21:44:45 +00:00
$css = '
<!-- incluir tema bootstrap por defecto -->
2017-09-05 23:22:24 +00:00
< link rel = " stylesheet " href = " ./librerias/bootstrap/css/bootstrap.min.css?'.time().' " > ' ;
2016-11-26 21:44:45 +00:00
}
2018-10-12 17:25:05 +00:00
///
2016-11-26 21:44:45 +00:00
echo " <!-- tema $tema --> " ;
2018-10-14 04:25:13 +00:00
$panel_aplicaciones = panel_aplicaciones ( '1' , " " , " " );
if ( isset ( $_SESSION [ 'id' ])){ $boton_ingresar = "
2018-10-15 02:24:44 +00:00
< li id = 'user_dropdow' class = 'dropdown' >
< a href = 'milfs/' class = 'dropdown-toggle' data - toggle = 'dropdown' role = 'button' aria - haspopup = 'true' aria - expanded = 'false' > $_SESSION [ username ] < b class = 'caret' ></ b ></ a >
< ul id = 'menu_administrador' class = 'dropdown-menu' >
$panel_aplicaciones
2018-10-14 04:25:13 +00:00
< li class = 'divider' ></ li >
2018-10-24 14:15:14 +00:00
< li >< a onclick = \ " xajax_milfs_session('','','','salir') \" ><i class='fa fa-sign-out'></i> SALIR</a></li>
2018-10-14 04:25:13 +00:00
</ ul >
</ li >
" ;}
else { $boton_ingresar = " <li><a href='milfs/'>Ingresar</a></li> "
;}
2018-10-24 14:15:14 +00:00
if ( isset ( $_SESSION [ 'id' ])){
2018-10-21 18:09:27 +00:00
$form_tiempo_session = "
< li >
2018-11-05 19:27:09 +00:00
2018-10-21 18:09:27 +00:00
</ li > " ; } else { $form_tiempo_session = " " ;}
2017-08-20 17:53:00 +00:00
if ( $tema == " " ) {
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
$barra = "
2018-10-12 16:28:09 +00:00
< div class = 'noprint nomostrar container' id = 'cabecera' style = ' $no_mostrar ' >
2018-10-14 04:25:13 +00:00
< nav class = 'navbar navbar-fixed-top navbar-inverse navbar-toggleable-sm ' id = 'navbar-principal' >
2018-10-14 06:18:18 +00:00
< div class = 'container navegacion' id = 'menu_mobil' >
< div id = 'menu_hamburguesa' class = 'navbar-header' >
2018-10-14 04:25:13 +00:00
< button type = 'button' class = 'navbar-toggle collapsed' data - toggle = 'collapse' data - target = '#navbar' aria - expanded = 'false' aria - controls = 'navbar' >
2018-10-14 06:18:18 +00:00
< span class = 'sr-only' > Toggle navigation </ span >
< span class = 'icon-bar' ></ span >
< span class = 'icon-bar' ></ span >
< span class = 'icon-bar' ></ span >
2018-10-14 04:25:13 +00:00
</ button >
< a class = 'navbar-brand' href = '$link_empresa' >
< img id = 'logo_cabecera' class = 'center-block img img-responsive' style = '' src = 'milfs/images/secure/?file=300/$logo[0]' >
</ a >
</ div >
< div id = 'navbar' class = 'navbar-collapse collapse' >
2018-10-14 06:18:18 +00:00
< ul id = 'menu_milfs' class = 'nav navbar-nav' >
2018-10-14 04:25:13 +00:00
< li class = 'dropdown ' >
2018-10-14 06:18:18 +00:00
< a href = '#' class = 'dropdown-toggle img-rounded hidden-xs' data - toggle = 'dropdown' role = 'button' aria - haspopup = 'true' aria - expanded = 'false' >< i class = 'fa fa-bars' ></ i >< span > $portal_sigla < span ></ a >
< a href = '#' class = 'dropdown-toggle img-rounded visible-xs' data - toggle = 'dropdown' role = 'button' aria - haspopup = 'true' aria - expanded = 'false' >< i class = 'caret' ></ i >< span > $portal_sigla < span ></ a >
2018-10-14 06:53:38 +00:00
< ul class = 'menu_tupale dropdown-menu' >
2018-10-14 04:25:13 +00:00
< li >< a class = '' href = '$portal_url' >< i class = 'fa fa-home' ></ i > Portal </ a ></ li >
2018-10-27 19:29:03 +00:00
< li >< a class = '' href = '$link_empresa?home' > $sigla [ 0 ] Inicio </ a ></ li >
2018-10-14 04:25:13 +00:00
< li >< a href = 's363' > Blog </ a ></ li >
< li >< a href = 's133' > Ayuda y documentación </ a ></ li >
< li class = 'divider' > </ li >
" .aplicaciones_listado( " $id_empresa " ,'','nav',''). "
</ ul >
</ li >
2018-10-21 18:09:27 +00:00
$form_tiempo_session
2018-10-14 04:25:13 +00:00
</ ul >
2018-10-14 06:18:18 +00:00
< ul id = 'menu_social' class = 'nav navbar-nav navbar-right' >
2018-10-14 04:25:13 +00:00
$soporte
< li >< a href = 'https://twitter.com/$twitter[0]' >< i class = 'fa fa-twitter' ></ i ></ a ></ li >
< li >< a href = '$facebook[0]' >< i class = 'fa fa-facebook' ></ i ></ a ></ li >
2018-10-14 06:18:18 +00:00
$boton_ingresar
2018-10-14 04:25:13 +00:00
</ ul >
</ div >
</ nav >
</ div >
2016-11-26 21:44:45 +00:00
" ;
2018-10-12 16:28:09 +00:00
echo $css ;
?>
2018-03-12 15:32:40 +00:00
< script src = " ./librerias/jquery/jquery-2.1.4.min.js " ></ script >
< script src = " ./librerias/bootstrap/js/bootstrap.min.js " ></ script >
2018-06-20 12:44:01 +00:00
<!-- < script src = " ./librerias/charts/Chart.bundle.js " ></ script >
< script src = " ./librerias/charts/utils.js " ></ script > -->
2018-03-12 15:32:40 +00:00
< script src = " ./librerias/lazy/jquery.lazy.min.js " ></ script >
2018-07-03 05:11:19 +00:00
< script src = './librerias/summernote/summernote.js' ></ script >
2018-06-23 13:03:44 +00:00
< link href = './librerias/summernote/summernote.css' rel = 'stylesheet' >
< script type = 'text/javascript' > var edit = function () { $ ( '.wysiwyg' ) . summernote ({ height : 250 , codemirror : { theme : 'default' }, dialogsInBody : true , toolbar : [ [ 'style' , [ 'bold' , 'italic' , 'underline' , 'clear' ]], [ 'font' , [ 'strikethrough' , 'superscript' , 'subscript' , 'fontname' ]], [ 'fontsize' , [ 'fontsize' ]], [ 'color' , [ 'color' ]], [ 'para' , [ 'ul' , 'ol' , 'paragraph' , 'style' ]], [ 'height' , [ 'height' ]], [ 'insert' , [ 'picture' , 'link' , 'video' , 'table' , 'hr' ]], [ 'misc' , [ 'fullscreen' , 'codeview' , 'undo' , 'redo' ]] ] }); }; var save = function () { var makrup = $ ( '.wysiwyg' ) . summernote ( 'code' ); $ ( '.wysiwyg' ) . summernote ( 'destroy' ); }; $ ( document ) . ready ( function () { $ ( '.wysiwyg_auto' ) . summernote ({ dialogsInBody : true }); }); </ script >
2018-04-02 18:15:00 +00:00
< script >
2018-07-03 05:11:19 +00:00
2018-04-02 18:15:00 +00:00
$ ( function () {
$ ( '.lazy' ) . lazy ({
// your configuration goes here
2018-06-20 12:44:01 +00:00
//combined: true,
2018-04-02 18:15:00 +00:00
delay : 1000 ,
2018-06-20 12:44:01 +00:00
// scrollDirection: 'vertical',
//effect: 'fadeIn',
//visibleOnly: true,
2018-07-03 05:11:19 +00:00
2018-04-02 18:15:00 +00:00
onError : function ( element ) {
console . log ( 'error loading ' + element . data ( 'src' ));
}
});
});
</ script >
2018-04-02 18:29:32 +00:00
2018-02-18 16:37:54 +00:00
2018-03-12 15:32:40 +00:00
< ? php echo $librerias_cabeza ; ?>
2016-11-26 21:44:45 +00:00
2017-11-03 19:22:40 +00:00
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
< ? php
2016-11-26 21:44:45 +00:00
}
else {
echo "
< meta name = 'theme-color' content = '#DF0101' />
<!-- Windows Phone -->
< meta name = 'msapplication-navbutton-color' content = '#DF0101' />
<!-- iOS Safari -->
< meta name = 'apple-mobile-web-app-capable' content = 'yes' />
2017-08-20 17:53:00 +00:00
< meta name = 'apple-mobile-web-app-status-bar-style' content = 'black-translucent' />
2018-11-05 19:27:09 +00:00
2016-11-26 21:44:45 +00:00
" ;
2018-12-05 17:08:42 +00:00
echo $librerias_cabeza ;
2016-11-26 21:44:45 +00:00
include ( " temas/ $tema /cabecera " );
include ( " temas/ $tema /pie " );
2017-08-20 17:53:00 +00:00
$barra = "
2016-11-26 21:44:45 +00:00
< ul >
< li >< a class = '' href = '$portal_url' >< i class = 'fa fa-home' ></ i > Portal </ a ></ li >
< li >< a class = '' href = '$link_empresa' > " .@ $sigla[0] . " Inicio </ a ></ li >
2017-11-24 00:01:16 +00:00
< li >< a href = 's363' > Blog </ a ></ li >
2016-11-26 21:44:45 +00:00
< li role = 'separator' class = 'divider' ></ li >
" .aplicaciones_listado( " $id_empresa " ,'','nav',''). "
</ ul >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
" ;
$menu_lateral = "
2017-09-14 17:44:42 +00:00
< div id = 'fh5co-offcanvas' class = 'noprint' >
2016-11-26 21:44:45 +00:00
< a href = '#' class = 'fh5co-close-offcanvas js-fh5co-close-offcanvas' >< span >< i class = 'icon-cross3' ></ i > < span > Close </ span ></ span ></ a >
< div class = 'fh5co-bio' >
< figure >
2017-10-26 03:36:21 +00:00
< img src = 'milfs/images/secure/?file=full/$logo[0]' alt = '' class = 'img-responsive' >
2016-11-26 21:44:45 +00:00
</ figure >
< h3 data - toc - skip > LO QUE SOMOS </ h3 >
< h2 data - toc - skip > " .@ $razon_social[0] . " </ h2 >
< h3 > " .@ $titulo[0] . " </ h3 >
< p > " .@ $descripcion[0] . " </ p >
< ul class = 'fh5co-social' >
2018-07-03 05:11:19 +00:00
$soporte
2016-11-26 21:44:45 +00:00
< li >< a href = 'https://twitter.com/$twitter[0]' >< i class = 'icon-twitter' ></ i ></ a ></ li >
< li >< a href = 'https://www.facebook.com/$facebook[0]' >< i class = 'icon-facebook' ></ i ></ a ></ li >
2018-10-24 14:15:14 +00:00
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ ul >
</ div >
< div class = 'fh5co-menu' >
< div class = 'fh5co-box' >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
$barra
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
<!-- < div class = 'fh5co-box' >
< h3 class = 'heading' > Search </ h3 >
< form action = '#' >
< div class = 'form-group' >
< input type = 'text' class = 'form-control' placeholder = 'Type a keyword' >
</ div >
</ form >
</ div > -->
</ div >
</ div >
" ;
}
2020-03-25 11:00:41 +00:00
$hoja_css = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='hoja_css' and opcion = 'hoja_css' and id_empresa = ' $id_empresa ' " ) ;
2020-03-25 02:46:48 +00:00
if ( $hoja_css [ 0 ] == " " ){ $hoja_estilo = " <link href='./milfs/css/style.css' rel='stylesheet'> " ;}
else { $hoja_estilo = " <link href=' $hoja_css[0] ' rel='stylesheet'> " ;}
print $hoja_estilo ;
2016-11-26 21:44:45 +00:00
?>
2018-07-03 05:11:19 +00:00
2020-03-25 02:46:48 +00:00
2018-10-25 14:54:25 +00:00
2018-06-20 12:44:01 +00:00
2016-11-26 21:44:45 +00:00
2018-06-20 12:44:01 +00:00
<!-- tabla de contenido -->
<!--
< link rel = " stylesheet " href = " ./librerias/bootstrap-toc/bootstrap-toc.min.css " >
< script src = " ./librerias/bootstrap-toc/bootstrap-toc.min.js " ></ script >
-->
<!-- < script src = " ./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js " ></ script > -->
<!-- firma -->
2018-07-03 05:11:19 +00:00
<!--
2018-03-12 15:32:40 +00:00
< script src = " librerias/firma/signature_pad.js " ></ script >
2018-06-20 12:44:01 +00:00
<!-- firma pie -->
<!--
< script src = " librerias/firma/app.js " ></ script >
-->
2017-02-12 01:39:49 +00:00
2018-07-03 05:11:19 +00:00
< ? php echo $css_adicional ;
2017-11-07 08:52:06 +00:00
if ( ! isset ( $_SESSION [ 'id' ]) ){ ?>
2016-11-26 21:44:45 +00:00
< script type = " text/javascript " >
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
function addLink () {
var body_element = document . getElementsByTagName ( 'body' )[ 0 ];
var selection ;
selection = window . getSelection ();
2017-09-18 13:52:44 +00:00
var pagelink = " /* <br /><br />Gracias por compartir, por favor cítanos así:<br/><a href=' " + document . location . href + " '> " + document . location . href + " <br /><b>https://tupale.co</b> */ " ;
2016-11-26 21:44:45 +00:00
var copytext = selection + pagelink ;
var newdiv = document . createElement ( 'div' );
newdiv . style . position = 'absolute' ;
newdiv . style . left = '-99999px' ;
body_element . appendChild ( newdiv );
newdiv . innerHTML = copytext ;
selection . selectAllChildren ( newdiv );
window . setTimeout ( function () {
body_element . removeChild ( newdiv );
}, 0 );
}
document . oncopy = addLink ;
</ script >
2017-02-09 14:02:50 +00:00
< ? php } ?>
2016-11-26 21:44:45 +00:00
</ head >
2020-03-17 16:00:56 +00:00
< body data - spy = " scroll " data - target = " #toc " >
2018-10-30 15:59:25 +00:00
< ? php
if ( isset ( $_REQUEST [ 'debug' ])) {
print_r ( $_SESSION );
print_r ( $_REQUEST );
echo " $variable ( $pagina_inicio_definida[2] ) " ;
ini_set ( 'display_errors' , 'On' );}
?>
2016-11-26 21:44:45 +00:00
< ? php
2017-11-11 03:56:06 +00:00
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
if ( $tema == " " ) {
2016-11-26 21:44:45 +00:00
echo $barra ;
} else {
echo " " ;
}
2018-10-08 23:11:01 +00:00
if ( isset ( $_SESSION [ 'id' ] )) {
2018-10-09 05:37:38 +00:00
$id_empresa_portada = '1' ;
if ( $_SESSION [ 'grupo' ] == '3' ){
2018-10-11 03:22:34 +00:00
2018-10-14 04:25:13 +00:00
//echo " <li style=' $no_mostrar '>".panel_aplicaciones('1',"","")." </li>";
2018-10-08 23:11:01 +00:00
}
else { $usuario = $_SESSION [ 'username' ];
2018-10-14 04:25:13 +00:00
//echo " <li style=' $no_mostrar '>".panel_aplicaciones('1',"$_SESSION[id_empresa]","")." </li>";
2018-10-08 23:11:01 +00:00
}
2018-10-09 05:37:38 +00:00
2018-10-08 23:11:01 +00:00
} else { echo "
2018-10-25 14:54:25 +00:00
< span style = ' $no_mostrar ' ></ span >
2018-10-09 05:37:38 +00:00
2018-10-14 04:25:13 +00:00
" ;
2018-10-09 05:37:38 +00:00
2018-10-08 23:11:01 +00:00
}
2018-10-09 05:37:38 +00:00
2019-07-27 00:47:48 +00:00
$eventos = " " ;
2018-10-09 05:37:38 +00:00
2017-10-16 18:51:40 +00:00
if ( isset ( $_REQUEST [ 'eventos' ])) {
//$embebido='1';
2018-06-20 12:44:01 +00:00
$librerias_pie = "
2018-07-03 05:11:19 +00:00
2018-06-20 12:44:01 +00:00
< link href = 'librerias/calendar/fullcalendar.min.css' rel = 'stylesheet' />
< link href = 'librerias/calendar/fullcalendar.print.min.css' rel = 'stylesheet' media = 'print' />
< script src = 'librerias/calendar/lib/moment.min.js' ></ script >
< script src = 'librerias/calendar/fullcalendar.min.js' ></ script >
< script src = 'librerias/calendar/locale/es.js' ></ script >
" ;
2019-07-27 00:47:48 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $_REQUEST [ 'eventos' ], 'id_empresa' , " " ) ;
$css_adicional = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='css' and opcion = 'adicional' and id_empresa = ' $empresa[0] ' " ) ;
2018-04-17 16:01:18 +00:00
if ( $css_adicional [ 0 ] != " " ) {
$css_adicional = " <style >
2020-03-25 02:46:48 +00:00
2018-04-17 16:01:18 +00:00
$css_adicional [ 0 ]
</ style > " ;
}
2019-07-27 00:47:48 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , " $_REQUEST[eventos] " , 'nombre' , " " ) ;
2017-12-17 16:51:53 +00:00
$eventos = "
2018-04-17 16:01:18 +00:00
$css_adicional
2017-12-17 16:51:53 +00:00
< script >
$ ( document ) . ready ( function () {
2018-07-03 05:11:19 +00:00
2017-12-17 16:51:53 +00:00
$ ( '#calendar' ) . fullCalendar ({
header : {
left : 'prev,next today' ,
center : 'title' ,
right : 'listMonth,month,agendaWeek,agendaDay,listYear,timeLineYear'
},
2017-10-16 18:51:40 +00:00
//defaultDate: '2017-10-12',
2018-11-30 09:33:42 +00:00
defaultView : 'listYear' ,
2017-12-17 16:51:53 +00:00
themeSystem : 'bootstrap3' ,
navLinks : true , // can click day/week names to navigate views
2017-10-16 19:48:49 +00:00
editable : false ,
2018-07-03 05:11:19 +00:00
2017-12-17 16:51:53 +00:00
eventLimit : true , // allow \"more\" link when too many events
2017-10-16 18:51:40 +00:00
events : {
2018-04-17 16:01:18 +00:00
url : 'milfs/api.php' ,
2017-10-18 21:39:15 +00:00
type : 'GET' ,
data : {
id : '$_REQUEST[eventos]' ,
tipo : 'simple'
},
2017-10-16 18:51:40 +00:00
error : function () {
$ ( '#script-warning' ) . show ();
}
2018-07-03 05:11:19 +00:00
},
2017-10-16 22:27:03 +00:00
buttonText : {
listMonth : 'Agenda' ,
listYear : 'Año' ,
listDay : 'List Day'
},
2017-10-16 18:51:40 +00:00
loading : function ( bool ) {
$ ( '#loading' ) . toggle ( bool );
2017-12-17 16:51:53 +00:00
}
2018-07-03 05:11:19 +00:00
2018-04-17 16:01:18 +00:00
,
eventMouseover : function ( data , event , view ) {
tooltip = '<div class=\" alert alert-info tooltiptopicevent\" style=\"width:auto;height:auto;position:absolute;z-index:10001;padding:10px 10px 10px 10px ; line-height: 200%;\"><strong>' + data . title + '</strong></br>' + '' + '' + data . Descripcion + ' <br><span class=\" ' + data . className + '\">' + data . Inicio + ' ' + data . clase + '</span></div>' ;
$ ( 'body' ) . append ( tooltip );
$ ( this ) . mouseover ( function ( e ) {
$ ( this ) . css ( 'z-index' , 10000 );
$ ( '.tooltiptopicevent' ) . fadeIn ( '500' );
$ ( '.tooltiptopicevent' ) . fadeTo ( '10' , 1.9 );
}) . mousemove ( function ( e ) {
$ ( '.tooltiptopicevent' ) . css ( 'top' , e . pageY + 10 );
$ ( '.tooltiptopicevent' ) . css ( 'left' , e . pageX + 20 );
});
},
eventMouseout : function ( data , event , view ) {
$ ( this ) . css ( 'z-index' , 8 );
$ ( '.tooltiptopicevent' ) . remove ();
},
dayClick : function () {
tooltip . hide ()
},
eventResizeStart : function () {
tooltip . hide ()
},
eventDragStart : function () {
tooltip . hide ()
},
viewDisplay : function () {
tooltip . hide ()
},
2018-07-03 05:11:19 +00:00
2017-12-17 16:51:53 +00:00
});
2018-07-03 05:11:19 +00:00
2017-12-17 16:51:53 +00:00
});
2017-10-16 19:55:11 +00:00
</ script >< h1 class = 'titulo_eventos text-center' > $titulo [ 0 ] </ h1 >< div class = 'container-fluid' id = 'calendar' ></ div >< br > " ;
2016-11-26 21:44:45 +00:00
2017-10-16 18:51:40 +00:00
}
2016-11-26 21:44:45 +00:00
if ( $embebido == " 1 " ){ /* SI SE SOLICITA UN EMBEBIDO SE MUESTRA ESTO */
2017-08-20 17:53:00 +00:00
2018-02-18 14:21:57 +00:00
echo $css_adicional ;
2017-08-20 17:53:00 +00:00
echo $onload ;
if ( isset ( $set )) {
2016-11-26 21:44:45 +00:00
}
?>
<!-- </ div > -->
<!-- Modal -->
2019-03-25 21:52:18 +00:00
< div class = 'modal fade animated' id = 'muestraInfo' tabindex = '-1' role = 'dialog' aria - labelledby = 'myModalLabel' aria - hidden = 'true' >
2017-11-16 17:18:46 +00:00
< div id = " modal_landing " class = 'modal-dialog modal-lg' >
2016-11-26 21:44:45 +00:00
< div class = 'modal-content' >
2017-11-07 08:34:57 +00:00
< button type = 'button' class = 'close' data - dismiss = 'modal' aria - hidden = 'true' >< i class = 'fa fa-times-circle' ></ i > </ button >
< div class = 'modal-header hidden-xs' >
2017-11-02 14:00:23 +00:00
< div class = 'modal-title' id = 'titulo_modal' ></ div >
2016-11-26 21:44:45 +00:00
</ div >
< div class = 'modal-body' >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< div id = 'muestra_form' >
</ div >
</ div >
2017-11-02 14:00:23 +00:00
< div class = 'modal-footer' >
2018-10-28 03:14:00 +00:00
< div class = 'pull-left hidden-md hidden-xs ' >
2017-11-07 08:34:57 +00:00
< span class = " hidden-xs " > Poweredy by </ span >< a href = 'https://tupale.co' target = 'tupale' > tupale . co </ a >
2018-10-28 03:14:00 +00:00
< a href = 'milfs/?psi' target = '_psi' >< i class = 'fa fa-user-secret' ></ i >< span class = " hidden-sm " > Políticas de privacidad y protección de datos .</ span ></ a >
2017-11-07 08:34:57 +00:00
</ div >
2017-11-02 14:00:23 +00:00
< div class = 'pull-right' id = 'pie_modal' ></ div >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
</ div >
</ div >
</ div >
<!-- Modal -->
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ body >
</ html >
2017-08-20 17:53:00 +00:00
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
<!-- fin embebido -->
2017-08-20 17:53:00 +00:00
< ? php
2016-11-26 21:44:45 +00:00
}
else { /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
?>
2016-11-27 07:29:42 +00:00
2017-08-20 17:53:00 +00:00
2018-10-25 15:15:01 +00:00
< div class = " col-sm-<?php echo $cols_interior ; ?> col-lg-<?php echo $cols_interior ; ?> " id = 'principal_general' >
2018-10-24 22:37:05 +00:00
< ? php echo $menu_lateral ; ?>
2016-11-26 21:44:45 +00:00
<!-- END #fh5co-offcanvas -->
< header id = " fh5co-header " >
2018-10-24 22:37:05 +00:00
<!-- En el contenedor principal superior está : el nombre de empresa , el eslogan , el asistento -->
2019-03-26 18:02:46 +00:00
2020-03-25 14:17:39 +00:00
< div class = " container " id = 'principal_superior' >
2018-10-24 22:37:05 +00:00
< div id = 'formulario_login' class = '' ></ div >
< div id = 'div_panel_aplicaciones' class = '' ></ div >
2020-03-25 14:17:39 +00:00
< div class = 'container top contenedor_cabecera' id = 'contenedor_cabecera' >
2018-10-24 22:37:05 +00:00
< h1 class = " text-center " id = " titulo_cabecera " data - toc - skip >< a href = " <?php if( $id_form != " " ) { echo " s " . $id_form ;} ?> " >< ? php echo $titulo [ 0 ]; ?> </a></h1>
< div class = " text-center " id = 'slogan_cabecera' >< p >< ? php echo " $slogan[0] " ; ?> </p></div>
</ div >
< div id = " asistento " class = " col-md-12 text-center " >
< ? php
if ( isset ( $_REQUEST [ 'asistento' ])) {
echo asistente_aplicaciones ( " " , '' , '' , '' );
} else {
2020-03-25 14:17:39 +00:00
echo " <a href='?asistento' class='btn btn-success asistento'>Quiero crear una aplicación. </a> " ;
2018-10-24 22:37:05 +00:00
}
?>
</ div >
< div class = " col-md-push-1 col-md-10 " id = 'resaltado' >
< div class = 'center-block' >
< ? php
if ( $id_empresa == " " ) {
echo identificador_resaltado ( " 1 " , " " );
//echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
echo social_login ( " " , " " , " " ) ;
} else { echo identificador_resaltado ( $id_empresa , " landingpage " );}
?>
</ div >
</ div >
</ div >
<!-- FIN DEL CONTENEDOR Principal Superior -->
2016-11-26 21:44:45 +00:00
</ header >
2018-10-24 22:37:05 +00:00
<!-- FIN DE este < header > asociado a id = " fh5co-header que tiene protagonismo en el código -->
2020-03-26 11:35:35 +00:00
< div class = " contenedor " id = 'caja' >
2018-10-24 22:37:05 +00:00
< ? php
2018-03-27 03:21:19 +00:00
$id_campo = campo_titulo ( $set ) ;
$corpus = formulario_corpus ( " $set " , " $id_campo " , " contenido " , " barras " , " texto_articulo " );
2018-03-26 22:51:56 +00:00
$ultimos = mas_visto ( " ultimos " , " 5 " , " 1 " , " $set " , " $id_empresa " );
2018-07-03 05:11:19 +00:00
if ( $v [ 0 ] == 's' ){
$buscar_datos = buscar_datos ( " *formato* " , " $set " , " $plantilla " , " texto_articulo " );
2018-03-26 21:10:54 +00:00
echo "
2018-10-24 22:37:05 +00:00
< div class = 'col-md-3 hidden-xs ' >
< aside id = 'aside_index' >
$buscar_datos
< div id = 'grid_resultado_landing' ></ div >
< br >
< hr >
" .aplicaciones_listado( " $id_empresa " ,'','nav',''). "
< hr >
$corpus
< hr >
$ultimos
</ aside >
2018-03-26 21:10:54 +00:00
</ div >
2018-10-24 22:37:05 +00:00
< div class = 'col-md-9' id = 'texto_articulo' > "
2018-03-26 21:10:54 +00:00
;
2018-11-08 01:43:29 +00:00
} else { echo " <div class='col-md-12 col-lg-12' id='texto_articulo'> " ;}
2020-03-26 11:35:35 +00:00
echo $eventos ;
2016-11-26 21:44:45 +00:00
if ( $id_empresa == " " ) {
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
2017-07-04 23:01:32 +00:00
//echo mas_visto("aleatorios","4","");
echo "
2017-08-20 17:53:00 +00:00
2017-07-04 23:01:32 +00:00
" ;
2019-07-26 17:10:00 +00:00
echo mas_visto ( " ultimos " , " 4 " , " 4 " , " " , " " );
2016-11-26 21:44:45 +00:00
echo " <div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div> " ;
2017-07-04 23:01:32 +00:00
// echo mas_visto("identificador","4","");
//echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
//echo mas_visto("formulario","4","");
2018-10-24 21:39:07 +00:00
echo " </div> " ;
2016-11-26 21:44:45 +00:00
}
2018-07-03 05:11:19 +00:00
2016-11-26 21:44:45 +00:00
if ( $acceso == 1 ) {
2017-08-20 17:53:00 +00:00
if ( $set != " " ) {
2016-11-26 21:44:45 +00:00
echo " " . consultar_contenido_formulario ( " $set " , $cantidad_registros , '' , 'contenido' , " $orden " , " " );
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
}
elseif ( $identificador != " " ) {
2017-08-20 17:53:00 +00:00
//echo landingpage_contenido_identificador($identificador);
2018-03-26 21:10:54 +00:00
echo " <div class='container'> " . landingpage_contenido_identificador ( " $identificador_original " , " $id_form " , " landingpage " , 'simple' ) . " </div> " ;
2016-11-26 21:44:45 +00:00
}
2017-08-20 17:53:00 +00:00
else {
2016-11-26 21:44:45 +00:00
if ( $id_empresa == " " ) {
//echo multiempresa_listado('','')."Hola mundo";
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
}
else {
//echo landingpage_contenido($id_empresa);
2020-03-26 11:35:35 +00:00
if ( $plantilla_inicio [ 0 ] == 'grid' ){
2020-03-29 03:51:59 +00:00
//echo "('$pagina_inicio_definida[0]','$plantilla_inicio_filas[0]','','$plantilla_inicio[0]','$orden','$plantilla_inicio[0]')";
echo consultar_contenido_formulario ( " $pagina_inicio_definida[0] " , " $plantilla_inicio_filas[0] " , '' , " $plantilla_inicio[0] " , " $orden " , " $plantilla_inicio[0] " );
2020-03-29 01:12:06 +00:00
// echo landingpage_formularios("$id_empresa","$plantilla_inicio_filas[0]","$plantilla_inicio_columnas[0]","$plantilla_inicio[0]","$plantilla_inicio[0]");
2020-03-26 21:46:53 +00:00
// echo landingpage_contenido_grid($id_empresa,"$grid");
2020-03-25 14:17:39 +00:00
} else {
echo landingpage_contenido ( $id_empresa );
}
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
}
}
} else { echo multiempresa_listado ( '' , '' ); }
?>
2020-03-27 11:22:22 +00:00
2018-03-26 21:10:54 +00:00
</ div >
2018-10-24 22:37:05 +00:00
</ div >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< footer id = " fh5co-footer " >
< small >
< p class = " " > Tupale . co funciona gracias a < a href = 'https://QWERTY.co/milfs' >& copy ; MILFS Un proyecto de https :// QWERTY . co </ a > Se distribuye bajo licencia GPL V3
< a href = " milfs/?psi " >< i class = " fa fa-smile-o " ></ i > Políticas de privacidad y protección de datos .</ a ></ p >
2017-08-20 17:53:00 +00:00
</ small >
</ footer >
</ div >
2018-10-24 22:37:05 +00:00
< ? php echo $menu ; ?>
2016-11-26 21:44:45 +00:00
2019-03-25 21:52:18 +00:00
< div class = 'modal fade animated' id = 'muestraInfo' tabindex = '-1' role = 'dialog' aria - labelledby = 'myModalLabel' aria - hidden = 'true' >
2018-10-11 14:26:04 +00:00
< div < div id = " modal_landing " class = 'modal-dialog modal-lg' >
2016-11-26 21:44:45 +00:00
< div class = 'modal-content' >
< div class = 'modal-header' >
< button type = 'button' class = 'close' data - dismiss = 'modal' aria - hidden = 'true' >< i class = 'fa fa-times-circle' ></ i ></ button >
2017-11-02 14:00:23 +00:00
< div id = 'titulo_modal' ></ div >
2016-11-26 21:44:45 +00:00
</ div >
< div class = 'modal-body' >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< div id = 'muestra_form' >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
</ div >
2017-11-02 14:00:23 +00:00
< div class = 'modal-footer' >
< div class = 'pull-left' >
< span > Poweredy by < a href = 'https://tupale.co' target = 'tupale' > tupale . co </ a ></ span >
< a href = 'milfs/?psi' target = '_psi' >< i class = 'glyphicon glyphicon-smile-o ' ></ i > Políticas de privacidad y protección de datos .</ a ></ div >
< div class = 'pull-right' id = 'pie_modal' ></ div >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
</ div >
</ div >
</ div >
<!-- Modal -->
<!-- Footer -->
2017-08-20 17:53:00 +00:00
2017-11-07 08:52:06 +00:00
< ? php echo $onload ; } ?>
2017-11-03 19:22:40 +00:00
2016-11-26 21:44:45 +00:00
2018-06-20 12:44:01 +00:00
< script type = " text/javascript " >
2018-04-02 18:15:00 +00:00
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
$ ( document ) . delegate ( '*[data-toggle="lightbox"]' , 'click' , function ( event ) {
event . preventDefault ();
$ ( this ) . ekkoLightbox ();
2017-08-20 17:53:00 +00:00
});
2016-11-26 21:44:45 +00:00
2017-11-21 17:28:50 +00:00
$ ( " .menu-toggle " ) . click ( function ( e ) {
2017-11-17 16:13:46 +00:00
e . preventDefault ();
$ ( " #wrapper-sidebar " ) . toggleClass ( " toggled " );
});
2017-08-20 17:53:00 +00:00
</ script >
2018-04-03 11:02:31 +00:00
2020-03-27 08:50:09 +00:00
<!-- Piwik -->
2017-09-25 21:26:06 +00:00
< script type = " text/javascript " >
2016-11-26 21:44:45 +00:00
var _paq = _paq || [];
_paq . push ([ 'trackPageView' ]);
_paq . push ([ 'enableLinkTracking' ]);
( function () {
var u = " //stats.tupale.co/ " ;
_paq . push ([ 'setTrackerUrl' , u + 'piwik.php' ]);
_paq . push ([ 'setSiteId' , 1 ]);
var d = document , g = d . createElement ( 'script' ), s = d . getElementsByTagName ( 'script' )[ 0 ];
g . type = 'text/javascript' ; g . async = true ; g . defer = true ; g . src = u + 'piwik.js' ; s . parentNode . insertBefore ( g , s );
})();
</ script >
2017-09-25 21:26:06 +00:00
< noscript >< p >< img src = " //stats.tupale.co/piwik.php?idsite=1 " style = " border:0; " alt = " " /></ p ></ noscript >
2020-03-27 08:50:09 +00:00
<!-- Piwik Code -->
2017-11-07 08:52:06 +00:00
< ? php echo $librerias_pie ; ?>
2018-06-20 12:44:01 +00:00
< link href = " ./librerias/font-awesome/css/font-awesome.min.css " rel = " stylesheet " >
2017-11-06 16:23:43 +00:00
< style >
2017-11-06 21:29:33 +00:00
2017-11-06 16:23:43 +00:00
#scroll-content
{
2017-11-06 21:29:33 +00:00
2017-11-06 16:23:43 +00:00
}
</ style >
2017-11-02 14:00:23 +00:00
2018-10-09 05:37:38 +00:00
< script type = " text/javascript " src = " librerias/landingjs/scripts_landing.js " ></ script >
2018-11-23 01:01:32 +00:00
2018-12-05 17:08:42 +00:00
< ? php
2018-11-23 01:01:32 +00:00
if ( isset ( $_SESSION [ 'id' ] )) {
echo "
2018-10-25 14:54:25 +00:00
< form name = 'form_session' class = 'navbar-form navbar-left' >
< div class = 'input-group' >
< input type = 'text' name = 'tiempo_session' size = '18' class = 'form-control input-sm' readonly >
2018-11-23 01:01:32 +00:00
< span class = 'input-group-addon' >< a href = '#' onclick = \ " location.reload(); \" title='Renovar'> <i class='fa fa-refresh' aria-hidden='true'></i></a></span>
2018-10-25 14:54:25 +00:00
</ div >
2018-11-23 01:01:32 +00:00
</ form > " ;
2018-12-05 17:08:42 +00:00
2018-11-23 01:01:32 +00:00
}
?>
2018-11-05 19:36:33 +00:00
< script type = " text/javascript " >
2018-11-03 22:39:38 +00:00
$ ( '.navbar-collapse a' ) . click ( function (){
$ ( " .navbar-collapse " ) . collapse ( 'hide' );
});
2018-10-30 15:59:25 +00:00
2018-11-03 22:20:38 +00:00
var page_size_check = null , q_body ;
( q_body = $ ( '#body' )) . bind ( 'DOMSubtreeModified' , function () {
if ( page_size_check === null ) {
return ;
}
page_size_check = setTimeout ( function () {
q_body . css ( 'height' , '' );
if ( q_body . height () < window . innerHeight ) {
q_body . css ( 'height' , window . innerHeight + 'px' );
}
if ( ! ( window . pageYOffset > 1 )) {
window . scrollTo ( 0 , 1 );
}
page_size_check = null ;
}, 400 );
});
/*
window . addEventListener ( " load " , function () {
setTimeout ( function (){
window . scrollTo ( 0 , 1 );
}, 0 );
}); */
</ script >
2018-10-30 15:59:25 +00:00
2016-11-26 21:44:45 +00:00
</ body >
2018-10-09 05:37:38 +00:00
2016-11-26 21:44:45 +00:00
</ html >