2017-08-20 17:53:00 +00:00
< ? php session_start ();
2016-11-26 21:44:45 +00:00
//ini_set('display_errors', 'On');
2017-08-20 17:53:00 +00:00
if ( isset ( $_REQUEST [ 'debug' ])) { ini_set ( 'display_errors' , 'On' );}
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 " );
require ( 'milfs/funciones/funciones.php' );
include ( 'milfs/addon/funciones.php' );
require ( " milfs/includes/markdown.php " );
require ( " milfs/includes/parametrizacion.php " );
require ( " milfs/includes/simple_html_dom.php " );
$xajax -> processRequests (); ?>
<! DOCTYPE html >
< html lang = " en " >
< head >
< 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 " >
<!-- Chrome , Firefox OS y Opera -->
2017-08-20 17:53:00 +00:00
< ? php
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-09-14 17:44:42 +00:00
/// l= Listado
2017-10-28 15:14:33 +00:00
/// p= Planilla
/// 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 = "";}
if ( isset ( $_REQUEST [ 'empresa' ])) { $variable = " e " . $_REQUEST [ 'empresa' ];}
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 {}
//$variable="b43";
//$variable="b115";
if ( isset ( $_REQUEST [ 'variable' ])){
$variable = $_REQUEST [ 'variable' ];
}
2017-10-29 18:12:57 +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
2017-10-29 18:12:57 +00:00
if ( $_REQUEST [ 'tema' ] != " " ) { $tema = " $_REQUEST[tema] " ;}
else {
if ( $v [ 0 ] == 'a' ) { $tema = 'aplicacion' ; } else { $tema = " moon " ;}
}
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' ;
link . href = window . location . search . match ( / print - pdf / gi ) ? 'lbrerias/reveal/css/print/pdf.css' : 'librerias/reveal/css/print/paper.css' ;
document . getElementsByTagName ( 'head' )[ 0 ] . appendChild ( link );
</ script >
<!-- [ if lt IE 9 ] >
< script src = 'lib/js/html5shiv.js' ></ script >
<! [ endif ] -->
" ;
$presentacion_pie = "
< 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 ,
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 }
]
});
</ script >
" ;
2016-11-26 21:44:45 +00:00
if ( $variable != '' ){
2017-10-29 18:12:57 +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 ;
2016-11-26 21:44:45 +00:00
$titulo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
2017-10-11 01:40:23 +00:00
if ( $titulo [ 0 ] != " " ) {
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2016-11-26 21:44:45 +00:00
$descripcion = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
2017-08-20 17:53:00 +00:00
//$background_imagen = buscar_imagen('',"","","$id_empresa");
2016-11-26 21:44:45 +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 = " " ;
$acceso = 1 ;
2017-10-14 21:01:51 +00:00
$menu = "
2016-11-26 21:44:45 +00:00
< div class = 'col-sm-2 hidden-xs hidden-sm' >
< div class = 'container' >
< nav style = ' max-height:95% !important ; overflow:auto !important; ' id = 'toc' data - spy = 'affix' data - toggle = 'toc' ></ nav >
</ div >
</ div > " ;
$cols_interior = " 10 " ;
2017-10-11 01:40:23 +00:00
} else {
$onload = " <script type= \" text/javascript \" >location.href='404';</script> " ;
}
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 ];
2016-11-26 21:44:45 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = @ remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
$id_empresa = $empresa [ 0 ];
//$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 = " " ;
2017-08-20 17:53:00 +00:00
$orden = " DESC " ;
2016-11-26 21:44:45 +00:00
$menu = "
< div class = 'col-sm-2 hidden-xs hidden-sm' >
< 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);
2016-11-26 21:44:45 +00:00
$publico = remplacetas ( 'form_id' , 'id' , " $set " , 'publico' , " " ) ;
2017-09-14 20:52:24 +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 ];
2016-11-26 21:44:45 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $set " , 'id_empresa' , " " ) ;
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa[0] " , 'imagen' , '' ) ;
$id_empresa = $empresa [ 0 ];
$titulo = remplacetas ( 'form_id' , 'id' , " $set " , 'nombre' , " " ) ;
$descripcion = 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")."";
2016-11-26 21:44:45 +00:00
$publico = remplacetas ( 'form_id' , 'id' , " $set " , 'publico' , " " ) ;
2017-09-14 20:52:24 +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 ];
/// 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 " ;
2017-09-14 19:00:33 +00:00
if ( isset ( $_REQUEST [ 'print' ])) { $print = " window.print() " ;}
$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 ];
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 ];
/// 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() " ;}
2017-09-30 21:31:00 +00:00
$onload = " " . planilla ( " $set " , " $_REQUEST[registros] " ) . " <script type= \" text/javascript \" > $print </script> " ;
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] " ;
2017-08-20 17:53:00 +00:00
//$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
2016-11-26 21:44:45 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $id_form , 'id_empresa' , " " ) ;
2017-07-05 21:28:46 +00:00
$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' );
2016-11-26 21:44:45 +00:00
$razon_social = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
$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 ;
2016-11-26 21:44:45 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $id_form , 'nombre' , " " ) ;
$descripcion = remplacetas ( 'form_id' , 'id' , $id_form , 'descripcion' , " " ) ;
$background_imagen = buscar_imagen ( " $id_form " , $identificador , " " , " " );
$uri_set = " <a class='' href='s $id_form '> $titulo[0] </a> " ;
$publico = remplacetas ( 'form_id' , 'id' , $id_form , 'publico' , " " ) ;
//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
$form = remplacetas ( 'form_datos' , 'control' , $identificador , 'form_id' , " " ) ;
2016-11-26 21:44:45 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , $form [ '0' ], 'id_empresa' , " " ) ;
$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 ;
2016-11-26 21:44:45 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $form [ '0' ], 'nombre' , " " ) ;
$background_imagen = buscar_imagen ( " $form[0] " , $identificador , " " , " " );
$uri_set = " <a class='' href='s $form[0] '> $titulo[0] </a> " ;
$publico = remplacetas ( 'form_id' , 'id' , $form [ 0 ], 'publico' , " " ) ;
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');
$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 ];
2017-08-20 17:53:00 +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 ];
$presentacion = contenido_presentacion ( " $form " );
$embebido = " 1 " ;
2017-10-28 15:40:57 +00:00
$empresa = remplacetas ( 'form_id' , 'id' , " $form " , 'id_empresa' , " " ) ;
$id_empresa = $empresa [ 0 ];
$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 ;
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 ];
2017-10-26 03:36:21 +00:00
$plantilla = " carousel " ;
2016-11-26 21:44:45 +00:00
/// a=Aplicacion
$geo = buscar_campo_tipo ( $form , " 14 " );
$embebido = " 1 " ;
$empresa = remplacetas ( 'form_id' , 'id' , $form , 'id_empresa' , " " ) ;
$razon_social_portal = remplacetas ( 'empresa' , 'id' , " 1 " , 'razon_social' , '' ) ;
$id_empresa = $empresa [ 0 ];
2017-10-26 03:36:21 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $form , 'nombre' , " " ) ;
$descripcion = remplacetas ( 'form_id' , 'id' , $form , 'descripcion' , " " ) ;
2017-10-29 18:12:57 +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 >
// More info https://github.com/hakimel/reveal.js#configuration
Reveal . initialize ({
width : '100%' ,
height : '95%' ,
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 : [
2017-10-29 19:29:17 +00:00
2017-10-29 18:12:57 +00:00
]
});
</ script >
< script src = 'librerias/slick/slick.js' type = 'text/javascript' charset = 'utf-8' ></ script >
" ;
$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
" ;
$librerias_cabeza = " $presentacion_cabeza $librerias_galeria " ;
2017-10-30 19:27:04 +00:00
$librerias_pie = " $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-10-30 19:27:04 +00:00
" ;
2017-10-29 18:12:57 +00:00
2017-10-26 03:36:21 +00:00
$registros = aplicacion_carrusel ( " $form " , '10' , '' , 'embebido' , '' , " carousel " );
2017-10-29 18:12:57 +00:00
//$registros="<div id='mostrar_carrusel'>$registros</div>";
2017-10-26 03:36:21 +00:00
// $formulario = formulario_embebido($form,$opciones);
2016-11-26 21:44:45 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , $form , 'nombre' , " " ) ;
$razon_social = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'razon_social' , '' ) ;
$slogan = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
$web = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'web' , '' );
$logo = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'imagen' , '' ) ;
2017-10-30 02:03:40 +00:00
$campo_imagen = buscar_campo_tipo ( $id , " 15 " );
$id_campo = $campo_imagen [ 0 ];
if ( $id_campo [ 0 ] == " " ) {
$galeria = " " ;
} else {
$galeria = "
< section id = 'galeria' style = 'width:100% ; background-color:#333;' >
< div id = 'mostrar_carrusel' >
$registros
</ div >
</ section >
" ;
}
2016-11-26 21:44:45 +00:00
if ( $geo [ 0 ] != " " ) {
2017-10-26 03:36:21 +00:00
$mapa = "
< a name = 'mapa' ></ a >
2017-10-30 02:21:27 +00:00
< iframe class = '' src = 'mapero.php?id=$form' width = '100%' height = '800px;' webkitAllowFullScreen mozallowfullscreen allowFullScreen ></ iframe >
" ;
2016-11-26 21:44:45 +00:00
} else { $mapa = " " ;}
2017-10-26 03:36:21 +00:00
$estadisticas = portal_listado_campos ( " $form " );
$acciones = formulario_acciones ( " $form " , " aplicacion " );
2017-10-28 15:14:33 +00:00
$no_mostrar = " display:none; " ;
$footer = "
2017-10-26 03:36:21 +00:00
< nav class = 'navbar navbar-inverse navbar-fixed-bottom' >
< div class = '' >
< ul class = 'nav navbar-nav center-block' style = '
float : none ;
margin : 0 auto ;
display : block ;
text - align : center ; ' >
$acciones
</ ul >
</ div >
</ nav > " ;
2017-10-29 18:44:02 +00:00
2017-10-28 17:07:30 +00:00
2017-10-29 18:12:57 +00:00
$onload = "
2017-10-29 19:29:17 +00:00
2017-10-29 18:12:57 +00:00
< div class = 'reveal' style = 'bottom: 80px !important; ' >
< div class = 'slides' >
2017-10-29 19:29:17 +00:00
< section id = 'inicio' class = 'text-center' >
< img style = ' width : 20 % ;
display : block ;
margin - left : auto ;
margin - right : auto ; ' src=' milfs / images / secure / ? file = 600 / $logo [ 0 ] ' alt=' ' class=' img img - responsive center - block ' >
< h1 > $titulo [ 0 ] </ h1 >
2017-10-29 19:38:38 +00:00
< h2 > $descripcion [ 0 ] </ h2 >
2017-10-29 19:29:17 +00:00
< hr >
< h2 > $razon_social [ 0 ] </ h2 >
< h3 > $slogan [ 0 ] </ h3 >
< hr >
< a href = 'https://tupale.co' > Tupale . co </ a >
</ section >
2017-10-30 02:03:40 +00:00
$galeria
2017-10-30 00:15:59 +00:00
< section id = 'estadisticas' class = 'scrollable' >
2017-10-29 18:12:57 +00:00
$estadisticas
</ section >
< section id = 'mapa' >
$mapa
</ section >
</ div >
</ div > $footer " ;
//$onload = "$footer $aplicacion ";
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
}
elseif ( $v [ 0 ] == 'g' ) {
/// g=FORMULARIO EMBEBIDO
$form = $v [ 1 ];
$embebido = " 1 " ;
$onload = formulario_embebido ( $form , $opciones );
}
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 ];
$embebido = " 1 " ;
$onload = include ( " milfs/addon/ $addon / $addon " . " .php " );
}
else {
}
$video = remplacetas ( 'form_parametrizacion' , 'campo' , " presentacion " , 'descripcion' , " tabla='empresa' and opcion = 'video' and id_empresa = ' $id_empresa ' " ) ;
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 = " " ;}
$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' , '' ) ;
$slogan = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'slogan' , '' ) ;
$sigla = remplacetas ( 'empresa' , 'id' , " $id_empresa " , 'sigla' , '' ) ;
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 = " " ;
$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";
$titulo = remplacetas ( 'empresa' , 'id' , " 1 " , 'razon_social' , '' ) ;
$slogan = remplacetas ( 'empresa' , 'id' , " 1 " , 'slogan' , '' ) ;
//$descripcion[0] ="Los datos no hacen la felicidad, pero pueden medirla";
$descripcion = remplacetas ( 'empresa' , 'id' , " 1 " , 'slogan' , '' ) ;
$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 >
" ;
}
$css_adicional = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='css' and opcion = 'adicional' and id_empresa = ' $id_empresa ' " ) ;
if ( $css_adicional [ 0 ] != " " ) {
$css_adicional = " <style >
$css_adicional [ 0 ]
</ style > " ;
}
else {
$css_adicional = " <style ></style> " ;
}
2017-09-27 13:56:52 +00:00
$uri = $_SERVER [ 'REQUEST_URI' ];
2016-11-26 21:44:45 +00:00
?>
2017-10-28 15:14:33 +00:00
< ? php echo $librerias_cabeza ; ?>
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>
2017-08-20 17:53:00 +00:00
< ? php $xajax -> printJavascript ( " milfs/xajax/ " );
2016-11-26 21:44:45 +00:00
//$xajax->debugOn();
$xajax -> statusMessagesOn ();
2017-11-03 19:22:40 +00:00
2016-11-26 21:44:45 +00:00
; ?>
< style >
2017-10-26 03:36:21 +00:00
2017-09-14 17:44:42 +00:00
@ media all {
div . saltopagina {
display : none ;
}
}
@ media print {
div . saltopagina {
display : block ;
page - break - before : always ;
}
div . noprint {
display : none ;
}
}
2016-11-26 21:44:45 +00:00
<!-- ESTILOS PRIORITARIOS -->
. modal - dialog {
2017-08-20 17:53:00 +00:00
width : 95 % ! important ;
2016-11-26 21:44:45 +00:00
height : auto ;
padding : 0 ;
}
. modal - lg {
2017-11-02 14:00:23 +00:00
width : 98 % ! important ;
2016-11-26 21:44:45 +00:00
height : auto ;
2017-11-02 14:00:23 +00:00
2016-11-26 21:44:45 +00:00
padding : 0 ;
}
. modal - content {
height : auto ;
2017-11-02 14:00:23 +00:00
2016-11-26 21:44:45 +00:00
}
. modal - body {
2017-11-02 14:00:23 +00:00
max - height : calc ( 100 vh - 300 px );
min - height : calc ( 100 vh - 300 px );
2016-11-26 21:44:45 +00:00
overflow - y : auto ;
2017-08-20 17:53:00 +00:00
}
2016-11-26 21:44:45 +00:00
fieldset . fieldset - borde {
border : 2 px solid #EDEDED !important;
border - radius : 3 px ;
padding : 0 1.4 em 1.4 em 1.4 em ! important ;
margin : 0 0 1.5 em 0 ! important ;
- webkit - box - shadow : 0 px 0 px 0 px 0 px #000;
box - shadow : 0 px 0 px 0 px 0 px #000;
}
legend . legend - area {
font - size : 1.2 em ! important ;
font - weight : bold ! important ;
text - align : left ! important ;
width : auto ;
padding : 0 10 px ;
border - bottom : none ;
}
</ style >
2017-09-05 23:22:24 +00:00
< link href = " ./librerias/font-awesome/css/font-awesome.min.css " rel = " stylesheet " >
2016-11-26 21:44:45 +00:00
2017-10-26 03:36:21 +00:00
2017-09-05 23:22:24 +00:00
<!-- < link href = " https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic " rel = " stylesheet " type = " text/css " > -->
2016-11-26 21:44:45 +00:00
<!-- HTML5 Shim and Respond . js IE8 support of HTML5 elements and media queries -->
<!-- WARNING : Respond . js doesn ' t work if you view the page via file :// -->
<!-- [ if lt IE 9 ] >
< script src = " https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js " ></ script >
< script src = " https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js " ></ script >
2017-08-20 17:53:00 +00:00
<! [ endif ] -->
< ? php
2016-11-26 21:44:45 +00:00
$css = remplacetas ( 'form_parametrizacion' , 'campo' , " index " , 'descripcion' , " tabla='css' and opcion = 'bootstrap' and id_empresa = ' $id_empresa ' " ) ;
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
}
echo " <!-- tema $tema --> " ;
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 = "
2017-10-28 15:14:33 +00:00
< div class = 'noprint nomostrar' style = ' $no_mostrar ' >
2017-11-04 15:35:44 +00:00
< nav class = 'navbar navbar-inverse navbar-fixed-top topnav navbar-principal ' role = 'navigation' >
2016-11-26 21:44:45 +00:00
< div style = 'padding:10px; ' class = 'container topnav ' >
2017-08-20 17:53:00 +00:00
2017-10-26 03:36:21 +00:00
< ul style = ' ' class = 'nav navbar-nav navbar-center navbar-principal ' >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< li class = 'dropdown' >
2017-11-04 16:17:37 +00:00
< a style = ' background - color : gray ; border - top - left - radius : 0 px ;
border - top - right - radius : 0 px ; ' href=' #' class='dropdown-toggle menu_tupale img-rounded' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'><i class='fa fa-bars'></i> $portal_sigla</a>
2016-11-26 21:44:45 +00:00
< ul class = 'dropdown-menu' style = 'background-color: white; width:500px;' >
< 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 >
< li >< a href = 'milfs/' > Administrador </ a ></ li >
< li role = 'separator' class = 'divider' ></ li >
" .aplicaciones_listado( " $id_empresa " ,'','nav',''). "
</ ul >
</ li >
</ ul >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ nav >
2017-09-14 17:44:42 +00:00
</ div >
2016-11-26 21:44:45 +00:00
" ;
2017-08-20 17:53:00 +00:00
?> <?php echo $css; ?>
2017-04-26 23:14:45 +00:00
< script src = " ./librerias/jquery/jquery-2.1.4.min.js " ></ script >
< script src = " ./librerias/bootstrap/js/bootstrap.min.js " ></ script >
2017-10-30 00:15:59 +00:00
< script src = " ./librerias/charts/Chart.bundle.js " ></ script >
< script src = " ./librerias/charts/utils.js " ></ script >
2017-10-30 15:35:28 +00:00
< script src = " ./librerias/lazy/jquery.lazy.min.js " ></ script >
2016-11-26 21:44:45 +00:00
2017-11-03 19:22:40 +00:00
2017-10-26 03:36:21 +00:00
<!-- morris -->
2017-10-30 15:35:28 +00:00
<!-- < link rel = " stylesheet " href = " //cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css " > -->
<!-- < script src = " //cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js " ></ script > -->
<!-- < script src = " //cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js " ></ script > -->
2017-10-26 03:36:21 +00:00
<!-- morris -->
2016-11-26 21:44:45 +00:00
< style >
2017-10-26 03:36:21 +00:00
. navbar . navbar - nav {
2016-11-26 21:44:45 +00:00
display : inline - block ;
float : none ;
}
2017-10-26 03:36:21 +00:00
. navbar . navbar - collapse . navbar - principal {
2016-11-26 21:44:45 +00:00
text - align : center ;
height : 30 px ;
margin - top : - 13 px ;
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
}
2017-10-26 03:36:21 +00:00
. navbar - principal > li > a , {
2016-11-26 21:44:45 +00:00
padding - top : 0 px ! important ; padding - bottom : 0 ! important ;
height : 30 px ;
margin - top : - 13 px ;
}
2017-10-26 03:36:21 +00:00
. navbar - principal { min - height : 30 px ! important ;}
2016-11-26 21:44:45 +00:00
2017-10-26 03:36:21 +00:00
. topnav {
2017-08-20 17:53:00 +00:00
width : 100 px ! important ;
2016-11-26 21:44:45 +00:00
display : inline ;
height : 30 px ;
2017-08-20 17:53:00 +00:00
padding - top :- 10 px ! important ;
padding - bottom : 0 ! important ;
height : 30 px ;
background : none ;
2016-11-26 21:44:45 +00:00
border : 0 px ;
- webkit - box - shadow : none ;
- moz - box - shadow : none ;
box - shadow : none ;
}
/* width : 80 px ; background : none ; border : 0 px ; - webkit - box - shadow : none ;
- moz - box - shadow : none ;
box - shadow : none ;
*/
</ style >
< style >
. fh5co - post - entry article h2 {
font - size : 28 px ; ! important ;
}
#fh5co-offcanvas .fh5co-bio img{
2017-08-20 17:53:00 +00:00
border - radius : 10 px ! important ;
2016-11-26 21:44:45 +00:00
}
fieldset . fieldset - borde {
border : 2 px solid #EDEDED !important;
border - radius : 3 px ;
padding : 0 1.4 em 1.4 em 1.4 em ! important ;
margin : 0 0 1.5 em 0 ! important ;
- webkit - box - shadow : 0 px 0 px 0 px 0 px #000;
box - shadow : 0 px 0 px 0 px 0 px #000;
}
legend . legend - area {
font - size : 1.2 em ! important ;
font - weight : bold ! important ;
text - align : left ! important ;
width : auto ;
padding : 0 10 px ;
border - bottom : none ;
}
</ style >
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' />
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 >
< li >< a href = 'milfs/' > Administrador </ a ></ li >
< 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' >
< 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 >
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 >
" ;
}
?>
2017-09-18 13:52:44 +00:00
<!-- include codemirror ( codemirror . css , codemirror . js , xml . js , formatting . js ) -->
2017-04-26 23:14:45 +00:00
< link rel = " stylesheet " type = " text/css " href = " ./librerias/codemirror/codemirror.css " >
< link rel = " stylesheet " type = " text/css " href = " ./librerias/codemirror/monokai.css " >
2017-09-18 13:52:44 +00:00
< script type = " text/javascript " src = " ./librerias/codemirror/codemirror.js " ></ script >
< script type = " text/javascript " src = " ./librerias/codemirror/xml.js " ></ script >
< script type = " text/javascript " src = " ./librerias/codemirror/formatting.js " ></ script >
2016-11-26 21:44:45 +00:00
<!-- wysiwyg -->
2017-07-17 20:24:10 +00:00
< script src = " ./librerias/summernote/summernote.js " ></ script >
2016-11-26 21:44:45 +00:00
<!-- include summernote css / js -->
2017-04-26 23:14:45 +00:00
< link href = " ./librerias/summernote/summernote.css " rel = " stylesheet " >
2016-11-26 21:44:45 +00:00
<!-- add after bootstrap . min . js -->
< script src = " milfs/js/scripts.js " ></ script >
2017-04-26 23:14:45 +00:00
< link rel = " stylesheet " href = " ./librerias/bootstrap-toc/bootstrap-toc.min.css " >
2016-11-26 21:44:45 +00:00
2017-04-26 23:14:45 +00:00
< script src = " ./librerias/bootstrap-toc/bootstrap-toc.min.js " ></ script >
< script src = " ./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js " ></ script >
2017-11-04 16:17:37 +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 >
2017-10-16 21:50:56 +00:00
< script src = 'librerias/calendar/fullcalendar.min.js' ></ script >
< script src = 'librerias/calendar/locale/es.js' ></ script >
2017-11-03 19:22:40 +00:00
< script src = " librerias/firma/signature_pad.js " ></ script >
2017-02-12 01:39:49 +00:00
2016-11-26 21:44:45 +00:00
< ? php echo $css_adicional ; ?>
2017-02-09 14:02:50 +00:00
< ? php if ( ! isset ( $_SESSION [ 'id' ]) ){ ?>
2016-11-26 21:44:45 +00:00
< script type = " text/javascript " >
2017-10-26 03:36:21 +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 >
< body data - spy = " scroll " data - target = " #toc " >
<!-- < div class = " text-center " >
< a href = " frida.php?redirect " >
< img class = 'center-block img img-responsive' src = 'https://tupale.co/milfs/images/frida.gif' >
</ a >
2017-02-09 14:02:50 +00:00
< a href = " frida.php " >< small class = " center-block " > ¿ Necesitas ayuda para apoyarnos ? </ small ></ a >
2016-11-26 21:44:45 +00:00
</ div > -->
< ? php
//echo "<h1>$identificador</h1>";
2017-08-20 17:53:00 +00:00
if ( $tema == " " ) {
2016-11-26 21:44:45 +00:00
echo $barra ;
} else {
echo " " ;
}
2017-08-20 17:53:00 +00:00
if ( isset ( $_SESSION [ 'id' ])) { $id_empresa_portada = '1' ; echo panel_aplicaciones ( '1' , " $_SESSION[id_empresa] " , " " ); }
2017-10-16 18:51:40 +00:00
if ( isset ( $_REQUEST [ 'eventos' ])) {
//$embebido='1';
2017-10-16 19:55:11 +00:00
$titulo = remplacetas ( 'form_id' , 'id' , " $_REQUEST[eventos] " , 'nombre' , " " ) ;
2017-11-04 16:17:37 +00:00
$eventos = "
< script >
$ ( document ) . ready ( function () {
$ ( '#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',
2017-10-16 22:22:45 +00:00
defaultView : 'listMonth' ,
2017-11-04 16:17:37 +00:00
themeSystem : 'bootstrap3' ,
navLinks : true , // can click day/week names to navigate views
2017-10-16 19:48:49 +00:00
editable : false ,
2017-11-04 16:17:37 +00:00
eventLimit : true , // allow \"more\" link when too many events
2017-10-16 18:51:40 +00:00
events : {
2017-10-18 21:39:15 +00:00
url : '$_SESSION[url]/api.php' ,
type : 'GET' ,
data : {
id : '$_REQUEST[eventos]' ,
tipo : 'simple'
},
2017-10-16 18:51:40 +00:00
error : function () {
$ ( '#script-warning' ) . show ();
}
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-11-04 16:17:37 +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
2017-10-16 18:51:40 +00:00
2017-08-20 17:53:00 +00:00
echo $onload ;
if ( isset ( $set )) {
2016-11-26 21:44:45 +00:00
}
?>
<!-- </ div > -->
<!-- Modal -->
< div class = 'modal fade ' id = 'muestraInfo' tabindex = '-1' role = 'dialog' aria - labelledby = 'myModalLabel' aria - hidden = 'true' >
< div class = 'modal-dialog modal-lg' >
< 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 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' >
< 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 -->
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
< ? php //echo $barra ?>
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
< div class = " col-sm-<?php echo $cols_interior ; ?> " >
2016-11-26 21:44:45 +00:00
< ? php echo $menu_lateral ; ?>
<!-- END #fh5co-offcanvas -->
< header id = " fh5co-header " >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< div class = " row " >
< div class = 'pull-right' >
< a href = " # " class = " js-fh5co-nav-toggle fh5co-nav-toggle " >< i ></ i ></ a >
< ul class = " fh5co-social list-inline intro-social-buttons " >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< li >< a href = " https://twitter.com/<?php echo $twitter[0] ; ?> " >< i class = " fa fa-twitter " ></ i ></ a ></ li >
< li >< a href = " <?php echo $facebook[0] ; ?> " >< i class = " fa fa-facebook " ></ i ></ a ></ li >
2017-07-05 21:13:11 +00:00
<!-- < li >< ? php echo milfs_session ( " $login_formulario " , " $login_campo_usuario " , " $login_campo_password " , " boton " , " " ); ?> </li> -->
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ ul >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
</ div >
2016-11-29 00:02:38 +00:00
< div id = 'meta_cabecera' class = " col-lg-12 col-md-12 " >
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< div class = " row " >
< div class = " col-md-12 " >
< div id = 'formulario_login' class = '' ></ div >
2016-11-28 20:19:27 +00:00
< img id = 'logo_cabecera' class = 'center-block img img-responsive' style = 'width:30%' src = " milfs/images/secure/?file=600/<?php echo $logo[0] ; ?> " >
2017-08-20 17:53:00 +00:00
</ div >
2016-11-26 21:44:45 +00:00
< div class = " col-md-12 text-center " >
< h1 id = " fh5co-logo " data - toc - skip >< a href = " ./ " >< ? php echo $titulo [ 0 ]; ?> </a></h1>
2017-08-20 17:53:00 +00:00
< div id = 'slogan_landingpage' >< p >< ? php echo " $slogan[0] " ; ?> </p></div>
2016-11-26 21:44:45 +00:00
</ div >
2016-11-27 18:16:13 +00:00
< div id = " asistento " class = " col-md-12 text-center " >
2016-11-26 21:44:45 +00:00
< ? php
if ( isset ( $_REQUEST [ 'asistento' ])) {
2017-08-20 17:53:00 +00:00
echo asistente_aplicaciones ( " " , '' , '' , '' );
2016-11-26 21:44:45 +00:00
} else {
2017-02-11 19:54:10 +00:00
echo " <a href='?asistento' class='btn btn-success'>Quiero crear una campaña </a> " ;
2017-08-20 17:53:00 +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
</ div >
2017-02-09 14:02:50 +00:00
2016-11-26 21:44:45 +00:00
< div class = " col-md-12 " >
2017-08-20 17:53:00 +00:00
< div class = 'center-block' >
< ? php
2016-11-26 21:44:45 +00:00
2017-08-20 17:53:00 +00:00
if ( $id_empresa == " " ) {
2016-11-26 21:44:45 +00:00
echo identificador_resaltado ( " 1 " , " " );
2017-08-20 17:53:00 +00:00
//echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
2016-11-26 21:44:45 +00:00
echo social_login ( " " , " " , " " ) ;
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
} else { echo identificador_resaltado ( $id_empresa , " landingpage " );} ?>
</ div >
</ div >
2017-08-20 17:53:00 +00:00
</ div >
</ div >
2016-11-26 21:44:45 +00:00
</ header >
2017-07-04 23:01:32 +00:00
< div class = " container-fluid " >
2017-10-16 18:51:40 +00:00
< ? php echo $eventos ; ?>
2016-11-26 21:44:45 +00:00
< ? php
2017-08-20 17:53:00 +00:00
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
" ;
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","");
echo " " ;
2016-11-26 21:44:45 +00:00
}
?>
2017-08-20 17:53:00 +00:00
2016-11-26 21:44:45 +00:00
< ? php
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);
2016-11-26 21:44:45 +00:00
echo " " . landingpage_contenido_identificador ( " $identificador_original " , " $id_form " , " landingpage " , 'simple' ) ;
}
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);
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 ( '' , '' ); }
?>
2017-08-20 17:53:00 +00:00
</ div >
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 >
2016-11-26 21:44:45 +00:00
< ? php echo $menu ; ?>
</ div >
< div class = 'modal fade ' id = 'muestraInfo' tabindex = '-1' role = 'dialog' aria - labelledby = 'myModalLabel' aria - hidden = 'true' >
< div class = 'modal-dialog modal-lg' >
< 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
< ? php echo $onload ; ?>
2016-11-26 21:44:45 +00:00
< ? php } ?>
2017-11-03 19:22:40 +00:00
< script src = " librerias/firma/app.js " ></ script >
< script type = " text/javascript " >
</ script >
2016-11-26 21:44:45 +00:00
< script type = " text/javascript " >
2017-10-30 15:35:28 +00:00
$ ( function () {
$ ( '.lazy' ) . Lazy ();
});
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
//// wysiwyg
var edit = function () {
$ ( '.wysiwyg' ) . summernote ({ height : 250 , codemirror : { theme : 'default' }, dialogsInBody : true });
};
var save = function () {
var makrup = $ ( '.wysiwyg' ) . summernote ( 'code' );
$ ( '.wysiwyg' ) . summernote ( 'destroy' );
};
$ ( document ) . ready ( function () {
$ ( '.wysiwyg_auto' ) . summernote ({ dialogsInBody : true });
});
2017-08-20 17:53:00 +00:00
</ script >
2016-11-26 21:44:45 +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 >
2016-11-26 21:44:45 +00:00
<!-- End Piwik Code -->
2017-11-02 14:00:23 +00:00
< ? php echo $librerias_pie ;
?>
2016-11-26 21:44:45 +00:00
</ body >
</ html >