Repositorio para la herramienta Tupale completo https://tupale.co
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1845 lines
59KB

  1. <?php session_start();
  2. require ('milfs/xajax/xajax.inc.php');
  3. //$xajax = new xajax();
  4. $xajax = new xajax("");
  5. //$xajax = new xajax("https://tupale.co/index.php");
  6. require ("milfs/funciones/conex.php");
  7. include ('milfs/librerias/parsedown/Parsedown.php');
  8. require ('milfs/funciones/funciones.php');
  9. include ('milfs/addon/funciones.php');
  10. // require ("milfs/includes/markdown.php");
  11. require ("milfs/includes/parametrizacion.php");
  12. require ("milfs/includes/simple_html_dom.php");
  13. $xajax->processRequests();
  14. $timestamp=time();
  15. setcookie("timestamp",$timestamp,($timestamp + 5000));
  16. $_SESSION['timestamp']= $timestamp;
  17. ?>
  18. <!DOCTYPE html>
  19. <html lang="en">
  20. <head >
  21. <script src="milfs/js/scripts.js"></script>
  22. <meta http-equiv="Cache-control" content="public">
  23. <meta charset="UTF-8">
  24. <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
  25. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  26. <meta name="viewport" content="width=device-width, initial-scale=1">
  27. <meta name='theme-color' content='#333'/>
  28. <!-- Windows Phone -->
  29. <meta name='msapplication-navbutton-color' content='#333'/>
  30. <!-- iOS Safari -->
  31. <meta name='apple-mobile-web-app-capable' content='yes'/>
  32. <meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
  33. <!-- Chrome, Firefox OS y Opera -->
  34. <link rel='stylesheet' href='./librerias/animate/animate.min.css'>
  35. <?php
  36. $index="";
  37. $tema="";
  38. $print="";
  39. $no_mostrar="";
  40. $registros="";
  41. $embebido =0;
  42. $acceso = 0;
  43. $onload="";
  44. $menu_lateral="";
  45. $id_empresa="";
  46. $link_empresa="";
  47. $razon_social="";
  48. $opciones="";
  49. $background_imagen = "";
  50. $titulo = array();
  51. $sigla = "";
  52. $slogan[] = "";
  53. $uri_set = "";
  54. $uri = "";
  55. $set = "";
  56. $descripcion_meta ="";
  57. $identificador = "";
  58. if(isset($_REQUEST['v'])) {
  59. $variable = $_REQUEST['v'];
  60. }else { $variable="";}
  61. $cols_interior ="12";
  62. $menu="";
  63. $orden="";
  64. $cantidad_registros ="10";
  65. $librerias_cabeza ="";
  66. $librerias_pie ="";
  67. /// a= Aplicacion
  68. /// b = libro
  69. /// c= Presentacion
  70. /// d= IDENTIFICADOR EDITABLE *
  71. /// e = EMPRESA *
  72. /// f= FORMULARIO *
  73. /// g=FORMULARIO EMBEBIDO *
  74. /// h=ADDON *
  75. /// i= IDENTIFICADOR *
  76. /// I= IDENTIFICADOR EMBEBIDO*
  77. /// j=ADDON EMBEBIDO *
  78. /// k= suite
  79. /// l= Listado
  80. /// m = checklist
  81. /// n=notas
  82. /// o=parallax
  83. /// p= Planilla
  84. /// q = lab
  85. /// s= SET DE DATOS *
  86. /// S= SET DE DATOS EMBEBIDO
  87. //$destacados = mas_visto("ultimos","6","6");
  88. //$aleatorios = mas_visto("aleatorios","6","6");
  89. //if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";}
  90. if (isset($_REQUEST['empresa'])) {
  91. $variable = "e".$_REQUEST['empresa'];
  92. }
  93. elseif (isset($_REQUEST['form']) AND isset($_REQUEST['embebido']) ) {$variable = "g".$_REQUEST['form'];}
  94. elseif (isset($_REQUEST['identificador']) AND $_REQUEST['t'] =='edit' ) {$variable = "d".$_REQUEST['identificador'];}
  95. elseif (isset($_REQUEST['addon']) AND isset($_REQUEST['embebido']) ) {$variable = "j".$_REQUEST['addon'];}
  96. elseif (isset($_REQUEST['set'])) {$variable = "s".$_REQUEST['set'];}
  97. elseif (isset($_REQUEST['identificador'])) {$variable = "i".$_REQUEST['identificador'];}
  98. elseif (isset($_REQUEST['form'])) {$variable = "f".$_REQUEST['form'];}
  99. elseif (isset($_REQUEST['addon'])) {$variable = "h".$_REQUEST['addon'];}
  100. else {}
  101. //$variable="b43";
  102. //$variable="b115";
  103. if(isset($_REQUEST['variable'])){
  104. $variable= $_REQUEST['variable'];
  105. }
  106. $v = decodifica_parametro($variable);
  107. if ($v[0] =='e') {
  108. if(!isset($_REQUEST['home'])){
  109. $pagina_inicio_definida = remplacetas('form_parametrizacion','id_empresa',$v[1],'descripcion'," tabla='empresa' AND opcion='pagina_inicio'","") ;
  110. $vista_favorita = vista_favorita($pagina_inicio_definida[0]);
  111. // $onload = "<script type=\"text/javascript\">window.location.href='$vista_favorita';</script> ";
  112. if($vista_favorita[0] !=""){
  113. $variable = $vista_favorita;//"e".$_REQUEST['empresa'];
  114. }else{
  115. $variable= "$v[0]$v[1]";
  116. }
  117. }
  118. }
  119. $v = decodifica_parametro($variable);
  120. if(isset($_REQUEST['plantilla'])){
  121. $plantilla= $_REQUEST['plantilla'];
  122. }else {$plantilla= "landingpage";}
  123. if(isset($_REQUEST['tema']) AND $_REQUEST['tema'] !="") { $tema= "$_REQUEST[tema]";}
  124. else {
  125. // if($v[0] =='a' OR $v[0] =='k') { $tema=''; }else{$tema="moon";}
  126. }
  127. $presentacion_cabeza = "
  128. <link rel='stylesheet' href='librerias/reveal/css/reveal.css'>
  129. <link rel='stylesheet' href='librerias/reveal/css/theme/$tema.css' id='theme'>
  130. <!-- Theme used for syntax highlighting of code -->
  131. <link rel='stylesheet' href='librerias/reveal/lib/css/zenburn.css'>
  132. <!-- Printing and PDF exports -->
  133. <script>
  134. var link = document.createElement( 'link' );
  135. link.rel = 'stylesheet';
  136. link.type = 'text/css';
  137. link.href = window.location.search.match( /print-pdf/gi ) ? 'librerias/reveal/css/print/pdf.css' : 'librerias/reveal/css/print/paper.css';
  138. document.getElementsByTagName( 'head' )[0].appendChild( link );
  139. </script>
  140. <!--[if lt IE 9]>
  141. <script src='lib/js/html5shiv.js'></script>
  142. <![endif]-->
  143. ";
  144. $presentacion_pie="
  145. <script src='librerias/lazy/jquery.lazy.min.js'></script>
  146. <script src='librerias/reveal/lib/js/head.min.js'></script>
  147. <script src='librerias/reveal/js/reveal.js'></script>
  148. <script>
  149. // More info https://github.com/hakimel/reveal.js#configuration
  150. Reveal.initialize({
  151. controls: true,
  152. progress: true,
  153. history: true,
  154. center: true,
  155. mouseWheel: true,
  156. transition: 'slide', // none/fade/slide/convex/concave/zoom
  157. // More info https://github.com/hakimel/reveal.js#dependencies
  158. dependencies: [
  159. { src: 'librerias/reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
  160. { src: 'librerias/reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  161. { src: 'librerias/reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  162. { src: 'librerias/reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  163. { src: 'librerias/reveal/plugin/zoom-js/zoom.js', async: true },
  164. { src: 'librerias/reveal/plugin/notes/notes.js', async: true }
  165. ]
  166. });
  167. </script>
  168. ";
  169. if ($variable !=''){
  170. if($v[0] =='e') {
  171. /// e = EMPRESA
  172. $id_empresa = $v[1];
  173. $id =$id_empresa;
  174. $titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
  175. $librerias_cabeza ="
  176. <!-- tabla de contenido -->
  177. <link rel='stylesheet' href='./librerias/bootstrap-toc/bootstrap-toc.min.css'>
  178. <script src='./librerias/bootstrap-toc/bootstrap-toc.min.js'></script>
  179. ";
  180. if($titulo[0] !="") {
  181. $logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
  182. $descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
  183. //$background_imagen = buscar_imagen('',"","","$id_empresa");
  184. $background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
  185. $background_imagen = $background_imagen[0];
  186. $uri_set = "";
  187. $pagina_inicio_definida = remplacetas('form_parametrizacion','id_empresa',$id_empresa,'descripcion'," tabla='empresa' AND opcion='pagina_inicio'") ;
  188. /*if($pagina_inicio_definida[0] !="" and !isset($_REQUEST['home'])){
  189. $vista_favorita = vista_favorita($pagina_inicio_definida[0]);
  190. //$set= $pagina_inicio_definida[0];
  191. $onload = "<script type=\"text/javascript\">window.location.href='$vista_favorita';</script> ";
  192. }
  193. * */
  194. //echo "<br><br><br><br><br><br><br><br>$logo[2] / $logo[0]";
  195. $acceso = 1;
  196. $menu ="
  197. <div class='col-sm-3 col-lg-2 hidden-xs hidden-sm' id='caja_lateral_derecha'>
  198. <div class='container'>
  199. <nav id='toc' data-spy='affix' data-toggle='toc'></nav>
  200. </div>
  201. </div>";
  202. $cols_interior ="10";
  203. }else {
  204. $onload = "<script type=\"text/javascript\">location.href='404';</script> ";
  205. }
  206. }
  207. elseif($v[0] =='b') {
  208. /// s= SET DE DATOS
  209. $set =$v[1];
  210. $empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
  211. $logo = @remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
  212. $id_empresa = $empresa[0];
  213. //$titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
  214. //$descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
  215. $titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
  216. $descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
  217. $background_imagen = buscar_imagen("$set","","","$id_empresa");
  218. $uri_set = "";
  219. $cantidad_registros="";
  220. $librerias_cabeza ="
  221. <!-- tabla de contenido -->
  222. <link rel='stylesheet' href='./librerias/bootstrap-toc/bootstrap-toc.min.css'>
  223. <script src='./librerias/bootstrap-toc/bootstrap-toc.min.js'></script>
  224. ";
  225. $orden="";
  226. $menu ="</div>
  227. <div class='col-sm-2 hidden-xs hidden-sm' id='caja_lateral_derecha'>
  228. <div class='container'>
  229. <nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
  230. </div>
  231. </div>";
  232. $cols_interior ="10";
  233. //$onload = landingpage_contenido_formulario($set);
  234. $publico = remplacetas('form_id','id',"$set",'publico',"") ;
  235. if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
  236. }
  237. elseif($v[0] =='s') {
  238. /// s= SET DE DATOS
  239. $set =$v[1];
  240. $empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
  241. $logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
  242. $id_empresa = $empresa[0];
  243. $titulo = remplacetas('form_id','id',"$set",'nombre',"") ;
  244. $descripcion = remplacetas('form_id','id',"$set",'descripcion',"") ;
  245. $slogan = remplacetas('form_id','id',"$set",'descripcion',"") ;
  246. $background_imagen = buscar_imagen("$set","","","$id_empresa");
  247. $uri_set = "";
  248. //$onload = landingpage_contenido_formulario($set);
  249. //$onload = "".consultar_contenido_formulario("$set",'5','','','',"$plantilla")."";
  250. $publico = remplacetas('form_id','id',"$set",'publico',"") ;
  251. if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
  252. //$acceso=1;
  253. }
  254. elseif($v[0] =='S') {
  255. $set =$v[1];
  256. $empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
  257. $logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
  258. $id_empresa = $empresa[0];
  259. /// s= SET DE DATOS
  260. $embebido = "1";
  261. $onload = "".consultar_contenido_formulario("$set",'5','','embebido','',"$plantilla")."";
  262. }
  263. elseif($v[0] =='l') {
  264. $set =$v[1];
  265. /// s= SET DE DATOS
  266. $embebido = "1";
  267. if(isset($_REQUEST['print'])) {
  268. //$print = "window.print()";
  269. }
  270. $onload = "".consultar_contenido_formulario("$set",'',"",'listado','',"$plantilla")." <script type=\"text/javascript\">$print</script> ";
  271. }
  272. elseif($v[0] =='I') {
  273. $identificador =$v[1];
  274. $formulario = remplacetas('form_datos','control',"$identificador",'form_id',"") ;
  275. $set = $formulario[0];
  276. $empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
  277. $logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
  278. $id_empresa = $empresa[0];
  279. if(strlen($identificador) > 32) {
  280. $identificador_original= $identificador;
  281. $key = substr($identificador, 32, $length = 40);
  282. $identificador = substr($identificador, 0, $length = 32);
  283. } else {$identificador_original = $identificador;}
  284. $impresion = landingpage_contenido_identificador("$identificador_original","$id_form","social",'head');
  285. $impresion = strip_tags($impresion);
  286. //$impresion= str_replace('\t', '', $impresion);
  287. $impresion = preg_replace("[\n|\r|\n\r|\t]",'', $impresion);
  288. $descripcion_meta = $impresion;
  289. $primer = formulario_uso("","$identificador",'primer') ;
  290. $id_form="$primer[3]";
  291. $embebido = "1";
  292. //$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
  293. $onload = landingpage_contenido_identificador("$identificador_original","$id_form","$plantilla",'simple');
  294. }
  295. elseif($v[0] =='p') {
  296. $set =$v[1];
  297. $form =$v[1];
  298. $librerias_cabeza='
  299. <link rel="stylesheet" type="text/css" href="librerias/datatables/datatables.css">
  300. <script type="text/javascript" charset="utf8" src="librerias/datatables/datatables.js"></script>
  301. ';
  302. $empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
  303. $razon_social_portal = remplacetas('empresa','id',"$empresa[0]",'razon_social','') ;
  304. $titulo = remplacetas('empresa','id',"$empresa[0]",'razon_social','') ;
  305. $id_empresa = $empresa[0];
  306. /// s= SET DE DATOS
  307. $embebido = "1";
  308. if(isset($_REQUEST['print'])) { $print = "window.print()";}
  309. $onload = "".planilla("$set","$_REQUEST[registros]",'')." <script type=\"text/javascript\">$print</script>
  310. ";
  311. }
  312. elseif($v[0] =='i') {
  313. /// i= IDENTIFICADOR
  314. $identificador =$v[1];
  315. if(strlen($identificador) > 32) {
  316. $identificador_original= $identificador;
  317. $key = substr($identificador, 32, $length = 40);
  318. $identificador = substr($identificador, 0, $length = 32);
  319. } else {$identificador_original = $identificador;}
  320. $primer = formulario_uso("","$identificador",'primer') ;
  321. $id_form="$primer[3]";
  322. //$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
  323. $empresa = remplacetas('form_id','id',$id_form,'id_empresa',"") ;
  324. $logo = @remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
  325. $id_empresa = $empresa[0];
  326. $id = $empresa[0];
  327. $embebido = "0";
  328. //$impresion = mostrar_identificador("$identificador","$id_form[0]","landingpage",'simple');
  329. $impresion = landingpage_contenido_identificador("$identificador_original","$id_form","social",'head');
  330. $razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
  331. $impresion = strip_tags($impresion);
  332. //$impresion= str_replace('\t', '', $impresion);
  333. $impresion = preg_replace("[\n|\r|\n\r|\t]",'', $impresion);
  334. $descripcion_meta = $impresion;
  335. $titulo = remplacetas('form_id','id',$id_form,'nombre',"") ;
  336. $descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
  337. $background_imagen = buscar_imagen("$id_form",$identificador,"","");
  338. $uri_set = "<a class='' href='s$id_form'>$titulo[0]</a>";
  339. $publico = remplacetas('form_id','id',$id_form,'publico',"") ;
  340. //if($publico[0] =='1') {$acceso = 1;}
  341. $acceso = 1;
  342. }
  343. elseif($v[0] =='d') {
  344. /// d= IDENTIFICADOR EDITABLE
  345. $identificador =$v[1];
  346. // $form =$v[1];
  347. //$embebido = "1";
  348. //$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
  349. $librerias_cabeza ="
  350. <script src='./librerias/summernote/summernote.js'></script>
  351. <link href='./librerias/summernote/summernote.css' rel='stylesheet'>
  352. ";
  353. $librerias_pie ="
  354. <script type='text/javascript'>
  355. //// wysiwyg
  356. var edit = function() {
  357. $('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
  358. [
  359. ['style', ['bold', 'italic', 'underline', 'clear']],
  360. ['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
  361. ['fontsize', ['fontsize']],
  362. ['color', ['color']],
  363. ['para', ['ul', 'ol', 'paragraph', 'style']],
  364. ['height', ['height']],
  365. ['insert', ['picture', 'link', 'video', 'table', 'hr']],
  366. ['misc', ['fullscreen', 'codeview', 'undo', 'redo']]
  367. ]
  368. });
  369. };
  370. var save = function() {
  371. var makrup = $('.wysiwyg').summernote('code');
  372. $('.wysiwyg').summernote('destroy');
  373. };
  374. $(document).ready(function() {
  375. $('.wysiwyg_auto').summernote({dialogsInBody: true});
  376. });
  377. </script>
  378. ";
  379. $form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
  380. $empresa = remplacetas('form_id','id',$form['0'],'id_empresa',"") ;
  381. $id_empresa = $empresa[0];
  382. $id = $empresa[0];
  383. $impresion = mostrar_identificador("$identificador","","landingpage",'');
  384. $impresion = strip_tags($impresion);
  385. $descripcion_meta = $impresion;
  386. $titulo = remplacetas('form_id','id',$form['0'],'nombre',"") ;
  387. $background_imagen = buscar_imagen("$form[0]",$identificador,"","");
  388. $uri_set = "<a class='' href='s$form[0]'>$titulo[0]</a>";
  389. $publico = remplacetas('form_id','id',$form[0],'publico',"") ;
  390. if($publico[0] =='1') {$acceso = 1;}
  391. $t = "edit";
  392. $embebido = "1";
  393. // $onload = $identificador;
  394. // $onload = formulario_embebido_ajax("$form[0]","$identificador",'edit');
  395. $onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('',$form[0],'$identificador','edit')</script>";
  396. }
  397. elseif($v[0] =='f') {
  398. /// f= FORMULARIO
  399. $form =$v[1];
  400. $empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
  401. $id_empresa = $empresa[0];
  402. $librerias_cabeza ="
  403. <script src='./librerias/summernote/summernote.js'></script>
  404. <link href='./librerias/summernote/summernote.css' rel='stylesheet'>
  405. ";
  406. $librerias_pie ="
  407. <script type='text/javascript'>
  408. //// wysiwyg
  409. var edit = function() {
  410. $('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
  411. [
  412. ['style', ['bold', 'italic', 'underline', 'clear']],
  413. ['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
  414. ['fontsize', ['fontsize']],
  415. ['color', ['color']],
  416. ['para', ['ul', 'ol', 'paragraph', 'style']],
  417. ['height', ['height']],
  418. ['insert', ['picture', 'link', 'video', 'table', 'hr']],
  419. ['misc', ['fullscreen', 'codeview', 'undo', 'redo']]
  420. ]
  421. });
  422. };
  423. var save = function() {
  424. var makrup = $('.wysiwyg').summernote('code');
  425. $('.wysiwyg').summernote('destroy');
  426. };
  427. $(document).ready(function() {
  428. $('.wysiwyg_auto').summernote({dialogsInBody: true});
  429. });
  430. </script>
  431. ";
  432. // $no_mostrar="display:none; ";
  433. $onload =" <script type=\"text/javascript\">xajax_formulario_embebido_ajax('','$form','','nuevo')</script>";
  434. }
  435. elseif($v[0] =='c') {
  436. /// f= FORMULARIO
  437. $form =$v[1];
  438. //$presentacion = contenido_presentacion("$form");
  439. $presentacion = contenido_presentacion("$form");
  440. $embebido = "1";
  441. //$no_mostrar ="display:none; ";
  442. $empresa = remplacetas('form_id','id',"$form",'id_empresa',"") ;
  443. $id_empresa= $empresa[0];
  444. $logo = remplacetas('empresa','id',$id_empresa,'imagen','') ;
  445. $no_mostrar ="display:none; ";
  446. if($_REQUEST['tema'] !="") { $tema= "$_REQUEST[tema]";}
  447. else {$tema="moon";}
  448. $librerias_cabeza =$presentacion_cabeza;
  449. $librerias_pie =$presentacion_pie;
  450. $onload="
  451. <div class='reveal'>
  452. <div class='slides'>
  453. $presentacion
  454. </div>
  455. </div>";
  456. }
  457. elseif($v[0] =='a') {
  458. $form =$v[1];
  459. $embebido = "1";
  460. $no_mostrar ="display:none; ";
  461. $aplicacion_pie="
  462. <script src='librerias/reveal/lib/js/head.min.js'></script>
  463. <script src='librerias/reveal/js/reveal.js'></script>
  464. <script>
  465. // max-height: calc(100vh - 300px);
  466. // min-height: calc(100vh - 300px);
  467. // More info https://github.com/hakimel/reveal.js#configuration
  468. Reveal.initialize({
  469. width: '100%',
  470. height: '100%',
  471. touch: false,
  472. controls: false,
  473. progress: true,
  474. history: true,
  475. center: true,
  476. transition: 'slide', // none/fade/slide/convex/concave/zoom
  477. // More info https://github.com/hakimel/reveal.js#dependencies
  478. dependencies: [
  479. ]
  480. });
  481. </script>
  482. <script src='librerias/slick/slick.js' type='text/javascript' charset='utf-8'></script>
  483. ";
  484. $librerias_galeria ="
  485. <!-- <link rel='manifest' href='manifest.json'> -->
  486. <link rel='stylesheet' type='text/css' href='librerias/slick/slick.css'>
  487. <link rel='stylesheet' type='text/css' href='librerias/slick/slick-theme.css'>
  488. <link rel='stylesheet' type='text/css' href='librerias/slick/style.css'>
  489. <script src='manup.js'></script>
  490. ";
  491. $registros=1;
  492. $plantilla="landingpage";
  493. $librerias_cabeza ="
  494. <style>
  495. .control_planilla{
  496. display:none
  497. }
  498. </style>
  499. <script src='./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js'></script>
  500. <script src='./librerias/charts/Chart.bundle.js'></script>
  501. <script src='./librerias/charts/utils.js'></script>
  502. $presentacion_cabeza $librerias_galeria
  503. ";
  504. $librerias_pie ="
  505. $aplicacion_pie
  506. <!-- <script>
  507. if('serviceWorker' in navigator) {
  508. navigator.serviceWorker
  509. .register('pwabuilder-sw.js')
  510. .then(function() { console.log('Service Worker Registered'); });
  511. }
  512. </script> -->
  513. <script type = 'text/javascript' >
  514. $(document).ready(function() {
  515. loadArticle(1,$form,'$plantilla',$registros,'scroll-content','li');
  516. loadArticle(2,$form,'$plantilla',$registros,'scroll-content','li');
  517. loadArticle(3,$form,'$plantilla',$registros,'scroll-content','li');
  518. loadArticle(4,$form,'$plantilla',$registros,'scroll-content','li');
  519. loadArticle(5,$form,'$plantilla',$registros,'scroll-content','li');
  520. loadArticle(6,$form,'$plantilla',$registros,'scroll-content','li');
  521. loadArticle(7,$form,'$plantilla',$registros,'scroll-content','li');
  522. loadArticle(8,$form,'$plantilla',$registros,'scroll-content','li');
  523. loadArticle(7,$form,'$plantilla',$registros,'scroll-content','li');
  524. loadArticle(9,$form,'$plantilla',$registros,'scroll-content','li');
  525. loadArticle(10,$form,'$plantilla',$registros,'scroll-content','li');
  526. loadArticle(11,$form,'$plantilla',$registros,'scroll-content','li');
  527. loadArticle(12,$form,'$plantilla',$registros,'scroll-content','li');
  528. loadArticle(13,$form,'$plantilla',$registros,'scroll-content','li');
  529. loadArticle(14,$form,'$plantilla',$registros,'scroll-content','li');
  530. var count = 15;
  531. $('div').scroll(function() {
  532. var offset = $('#scroll-content div').length;
  533. var \$this = $(this);
  534. var height = this.scrollHeight - \$this.height(); // Get the height of the div
  535. var scroll = \$this.scrollTop(); // Get the vertical scroll position
  536. var isScrolledToEnd = (scroll >= height);
  537. if (isScrolledToEnd) {
  538. loadArticle(count,$form,'$plantilla',$registros,'scroll-content','li');
  539. count++;
  540. }
  541. });
  542. loadArticle(1,$form,'galeria',$registros,'scroll-galeria','galeria');
  543. loadArticle(2,$form,'galeria',$registros,'scroll-galeria','galeria');
  544. loadArticle(3,$form,'galeria',$registros,'scroll-galeria','galeria');
  545. loadArticle(4,$form,'galeria',$registros,'scroll-galeria','galeria');
  546. loadArticle(5,$form,'galeria',$registros,'scroll-galeria','galeria');
  547. loadArticle(6,$form,'galeria',$registros,'scroll-galeria','galeria');
  548. loadArticle(7,$form,'galeria',$registros,'scroll-galeria','galeria');
  549. loadArticle(8,$form,'galeria',$registros,'scroll-galeria','galeria');
  550. loadArticle(9,$form,'galeria',$registros,'scroll-galeria','galeria');
  551. loadArticle(10,$form,'galeria',$registros,'scroll-galeria','galeria');
  552. var count2 = 11;
  553. $('div').scroll(function() {
  554. var offset = $('#scroll-galeria div').length;
  555. var \$this = $(this);
  556. var height = this.scrollHeight - \$this.height(); // Get the height of the div
  557. var scroll = \$this.scrollTop(); // Get the vertical scroll position
  558. var isScrolledToEnd = (scroll >= height);
  559. if (isScrolledToEnd) {
  560. loadArticle(count2,$form,'galeria',$registros,'scroll-galeria','galeria');
  561. count2++;
  562. }
  563. });
  564. });
  565. </script>
  566. ";
  567. $onload = vista_aplicacion($form);
  568. }elseif($v[0] =='q') {
  569. $form =$v[1];
  570. if($form==""){$form='0';}
  571. $embebido = "1";
  572. $no_mostrar ="display:none; ";
  573. $librerias_galeria ="
  574. <!-- <link rel='manifest' href='manifest.json'> -->
  575. <link rel='stylesheet' type='text/css' href='librerias/slick/slick.css'>
  576. <link rel='stylesheet' type='text/css' href='librerias/slick/slick-theme.css'>
  577. <link rel='stylesheet' type='text/css' href='librerias/slick/style.css'>
  578. <script src='manup.js'></script>
  579. ";
  580. $registros=1;
  581. $registros_pagina=5;
  582. $plantilla="landingpage";
  583. $librerias_cabeza ="
  584. <style>
  585. img { display: block;
  586. max-width: 100%;
  587. height: auto;}
  588. .control_planilla{
  589. display:none
  590. }
  591. </style>
  592. $librerias_galeria
  593. ";
  594. $librerias_pie ="
  595. <script type = 'text/javascript' >
  596. $(document).ready(function() {
  597. loadArticle(1,$form,'galeria',$registros,'scroll-galeria','voyeur');
  598. loadArticle(2,$form,'galeria',$registros,'scroll-galeria','voyeur');
  599. loadArticle(3,$form,'galeria',$registros,'scroll-galeria','voyeur');
  600. loadArticle(4,$form,'galeria',$registros,'scroll-galeria','voyeur');
  601. loadArticle(5,$form,'galeria',$registros,'scroll-galeria','voyeur');
  602. loadArticle(6,$form,'galeria',$registros,'scroll-galeria','voyeur');
  603. loadArticle(7,$form,'galeria',$registros,'scroll-galeria','voyeur');
  604. loadArticle(8,$form,'galeria',$registros,'scroll-galeria','voyeur');
  605. loadArticle(9,$form,'galeria',$registros,'scroll-galeria','voyeur');
  606. loadArticle(10,$form,'galeria',$registros,'scroll-galeria','voyeur');
  607. var count2 = 11;
  608. $('div').scroll(function() {
  609. var offset = $('#scroll-galeria div').length;
  610. var \$this = $(this);
  611. var height = this.scrollHeight - \$this.height(); // Get the height of the div
  612. var scroll = \$this.scrollTop(); // Get the vertical scroll position
  613. var isScrolledToEnd = (scroll >= height);
  614. if (isScrolledToEnd) {
  615. loadArticle(count2,$form,'voyeur',$registros,'scroll-galeria','voyeur');
  616. count2++;
  617. }
  618. });
  619. });
  620. </script>
  621. ";
  622. $onload = vista_voyeur($form);
  623. }
  624. elseif($v[0] =='g') {
  625. /// g=FORMULARIO EMBEBIDO
  626. $no_mostrar ="display:none; ";
  627. $form =$v[1];
  628. if($form =="" ){ header ("Location:./"); }
  629. $empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
  630. $razon_social_portal = remplacetas('empresa','id',"1",'razon_social','') ;
  631. $id_empresa = $empresa[0];
  632. $embebido = "1";
  633. $onload = formulario_embebido($form,$opciones);
  634. $librerias_cabeza ="
  635. <script src='./librerias/summernote/summernote.js'></script>
  636. <link href='./librerias/summernote/summernote.css' rel='stylesheet'>
  637. ";
  638. $librerias_pie ="
  639. <script type='text/javascript'>
  640. //// wysiwyg
  641. var edit = function() {
  642. $('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
  643. [
  644. ['style', ['bold', 'italic', 'underline', 'clear']],
  645. ['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
  646. ['fontsize', ['fontsize']],
  647. ['color', ['color']],
  648. ['para', ['ul', 'ol', 'paragraph', 'style']],
  649. ['height', ['height']],
  650. ['insert', ['picture', 'link', 'video', 'table', 'hr']],
  651. ['misc', ['fullscreen', 'codeview', 'undo', 'redo']]
  652. ]
  653. });
  654. };
  655. var save = function() {
  656. var makrup = $('.wysiwyg').summernote('code');
  657. $('.wysiwyg').summernote('destroy');
  658. };
  659. $(document).ready(function() {
  660. $('.wysiwyg_auto').summernote({dialogsInBody: true});
  661. });
  662. </script>
  663. ";}
  664. elseif($v[0] =='h') {
  665. /// h=ADDON
  666. $addon =$v[1];
  667. $onload = include("milfs/addon/$addon/$addon".".php");
  668. }
  669. elseif($v[0] =='j') {
  670. /// j=ADDON EMBEBIDO
  671. $addon =$v[1];
  672. //$embebido = "1";
  673. $onload = include("milfs/addon/$addon/$addon".".php");
  674. }
  675. elseif($v[0] =='k') {
  676. $id_empresa = $v[1];
  677. $id =$id_empresa;
  678. $titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
  679. $no_mostrar ="display:none; ";
  680. /*if($titulo[0] !="") {
  681. $logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
  682. $descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
  683. //$background_imagen = buscar_imagen('',"","","$id_empresa");
  684. $background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
  685. $background_imagen = $background_imagen[0];
  686. $uri_set = "";
  687. $acceso = 1;
  688. $cols_interior ="10";
  689. }else {}*/
  690. $acceso = 1;
  691. $embebido =1;
  692. $aplicacion_pie="
  693. <script src='librerias/reveal/lib/js/head.min.js'></script>
  694. <script src='librerias/reveal/js/reveal.js'></script>
  695. <script>
  696. // max-height: calc(100vh - 300px);
  697. // min-height: calc(100vh - 300px);
  698. // More info https://github.com/hakimel/reveal.js#configuration
  699. Reveal.initialize({
  700. width: '100%',
  701. height: '90%',
  702. touch: false,
  703. controls: false,
  704. progress: true,
  705. history: true,
  706. center: true,
  707. embedded: true,
  708. transition: 'slide', // none/fade/slide/convex/concave/zoom
  709. // More info https://github.com/hakimel/reveal.js#dependencies
  710. dependencies: [
  711. ]
  712. });
  713. </script>
  714. <script src='librerias/slick/slick.js' type='text/javascript' charset='utf-8'></script>
  715. ";
  716. $librerias_pie = "$aplicacion_pie";
  717. $librerias_cabeza ="
  718. $presentacion_cabeza ";
  719. $suite_listado = suite_listado("$id","$_REQUEST[suite]");
  720. $onload = "$suite_listado";
  721. }
  722. elseif($v[0] =='m') {
  723. $set =$v[1];
  724. $form =$v[1];
  725. $librerias_cabeza='
  726. <link rel="stylesheet" type="text/css" href="librerias/datatables/datatables.css">
  727. <script type="text/javascript" charset="utf8" src="librerias/datatables/datatables.js"></script>
  728. ';
  729. $empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
  730. $razon_social_portal = remplacetas('empresa','id',"$empresa[0]",'razon_social','') ;
  731. $titulo = remplacetas('empresa','id',"$empresa[0]",'razon_social','') ;
  732. $id_empresa = $empresa[0];
  733. $embebido = "1";
  734. if(isset($_REQUEST['print'])) { $print = "window.print()";}
  735. $onload = "".checklist("$set",@$_REQUEST['registros'],@$_REQUEST['campo'],@$_REQUEST['valor'],'')." <script type=\"text/javascript\">$print</script> ";
  736. }
  737. elseif($v[0] =='n') {
  738. $form =$v[1];
  739. $embebido = "1";
  740. $no_mostrar ="display:none; ";
  741. $publico = remplacetas('form_id','id',$form,'publico','') ;
  742. $empresa_seguridad = remplacetas('form_id','id',$form,'id_empresa','') ;
  743. if($publico[0] != "1" and ( $_SESSION['id_empresa'] != $empresa_seguridad[0] ) ) {
  744. $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>";
  745. $onload =$resultado;
  746. }
  747. else {
  748. $librerias_cabeza ="
  749. <script type='text/javascript' src='librerias/notas/script.js'></script>
  750. <script type='text/javascript' src='./librerias/jquery/jquery-ui.min.js'></script>
  751. <script type='text/javascript' src='./librerias/jquery/jquery.ui.touch-punch.js'></script>
  752. <script type='text/javascript' src='./librerias/jquery/jquery.touch.js'></script>
  753. <script type='text/javascript' src='./librerias/notas/jquery.infinitedrag.js'></script>
  754. <link rel='stylesheet' type='text/css' href='./librerias/notas/styles.css' />
  755. ";
  756. $tablero = notas_tablero("$form");
  757. $onload = "$tablero";
  758. }
  759. }
  760. elseif($v[0] =='o') {
  761. /// f= FORMULARIO
  762. $form =$v[1];
  763. //$presentacion = contenido_presentacion("$form");
  764. $presentacion = contenido_parallax("$form","$plantilla");
  765. $embebido = "1";
  766. $empresa = remplacetas('form_id','id',"$form",'id_empresa',"") ;
  767. $id_empresa= $empresa[0];
  768. $logo = remplacetas('empresa','id',$id_empresa,'imagen','') ;
  769. $no_mostrar ="display:none; ";
  770. // if($_REQUEST['tema'] !="") { $tema= "$_REQUEST[tema]";} else {$tema="moon";}
  771. ////$librerias_cabeza =$presentacion_cabeza;
  772. //$librerias_pie =$presentacion_pie;
  773. $banner = banner_empresa("$id_empresa","$form");
  774. $aplicaciones_listado= aplicaciones_listado("$id_empresa",'','lista','');
  775. $geo = buscar_campo_tipo($form,"14");
  776. if($geo[0] != "") {
  777. $mapa = "
  778. <a name='mapa'></a>
  779. <embed class='' src='mapero.php?id=$form' width='100%' style='height: calc(100vh - 50px);' webkitAllowFullScreen mozallowfullscreen allowFullScreen ></embed>
  780. ";
  781. $boton_mapa ="<li><a href='#mapa'><i class='fa fa-map-o' aria-hidden='true'></i> Mapa</a></li>";
  782. }else {$mapa = ""; $boton_mapa="";}
  783. $onload="
  784. <style>
  785. .parallax_banner {
  786. /* The image used */
  787. background-image: url('milfs/images/secure/?file=600/$logo[0]');
  788. /* Full height */
  789. height: 50%;
  790. /* Create the parallax scrolling effect */
  791. background-attachment: fixed;
  792. background-position: center;
  793. background-repeat: no-repeat;
  794. background-size: cover;
  795. }
  796. .barra {
  797. padding: 10px 16px;
  798. background: white;
  799. color: #f1f1f1;
  800. width: 100%;
  801. z-index:10000;
  802. }
  803. .sticky {
  804. position: fixed;
  805. top: 0;
  806. width: 100%;
  807. }
  808. </style>
  809. <div class='parallax_banner'></div>
  810. <div style='min-height:200px;'>
  811. $banner
  812. </div>
  813. <div class='barra navbar-collapse collapse ' id='barra_aplicaciones'>
  814. <div class='navbar-header'>
  815. <button type='button' class='navbar-toggle collapsed' data-toggle='collapse' data-target='#menu_colapsible' aria-expanded='false'>
  816. <span class='sr-only'>Toggle navigation</span>
  817. <span class='fa fa-bars'></span>
  818. </button>
  819. <a class='nav navbar-brand' href='e$id_empresa'><i class='fa fa-home'></i></a>
  820. </div>
  821. <div class='collapse navbar-collapse' id='menu_colapsible'>
  822. <ul class='nav navbar-nav' >
  823. <li class='dropdown'>
  824. <a href='#' class='dropdown-toggle ' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>
  825. Secciones<span class='caret'></span>
  826. </a>
  827. <ul class='dropdown-menu' id='listado_aplicaciones'>
  828. $aplicaciones_listado
  829. </ul>
  830. </li>
  831. $boton_mapa
  832. </ul>
  833. <ul class='nav navbar-nav navbar-right'>
  834. <li ><a href='http://tupale.co'>Tupale.co</a></li>
  835. </ul>
  836. </div>
  837. </div>
  838. <div id='mapa' class='container'><a name ='mapa' ></a>$mapa</div>
  839. $presentacion
  840. <script>
  841. // When the user scrolls the page, execute myFunction
  842. window.onscroll = function() {myFunction()};
  843. // Get the header
  844. var header = document.getElementById('barra_aplicaciones');
  845. // Get the offset position of the navbar
  846. var sticky = header.offsetTop;
  847. // Add the sticky class to the header when you reach its scroll position. Remove 'sticky' when you leave the scroll position
  848. function myFunction() {
  849. if (window.pageYOffset >= sticky) {
  850. header.classList.add('sticky');
  851. } else {
  852. header.classList.remove('sticky');
  853. }
  854. }
  855. </script>
  856. ";
  857. }
  858. else{
  859. }
  860. $video = remplacetas('form_parametrizacion','campo',"presentacion",'descripcion'," tabla='empresa' and opcion = 'video' and id_empresa = '$id_empresa'") ;
  861. if($video[0] !="") { $video ="<iframe type='text/html' width='640' height='385' src='https://www.youtube.com/embed/$video[0]' frameborder='0'></iframe>"; }
  862. else {$video ="";}
  863. $logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
  864. $direccion = remplacetas('empresa','id',"$id_empresa",'direccion','') ;
  865. $telefono = remplacetas('empresa','id',"$id_empresa",'telefono','') ;
  866. $email = remplacetas('empresa','id',"$id_empresa",'email','') ;
  867. $facebook = remplacetas('empresa','id',"$id_empresa",'facebook','') ;
  868. $twitter = remplacetas('empresa','id',"$id_empresa",'twitter','') ;
  869. $razon_social = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
  870. if($slogan[0] ==""){
  871. $slogan = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
  872. }
  873. $sigla = remplacetas('empresa','id',"$id_empresa",'sigla','') ;
  874. $link_empresa = "e$id_empresa";
  875. }else {
  876. /*
  877. if(isset($_SESSION['id_empresa'])) {
  878. $id_empresa ="$_SESSION[id_empresa]";
  879. }else { $id_empresa =""; }
  880. */
  881. $id_empresa="";
  882. $id="";
  883. $logo = remplacetas('empresa','id',"1",'imagen','') ;
  884. $background_imagen = remplacetas('empresa','id',"1",'imagen','') ;
  885. $background_imagen = $background_imagen[0];
  886. //$titulo[0] ="Tupale.co";
  887. $titulo = remplacetas('empresa','id',"1",'razon_social','') ;
  888. $slogan = remplacetas('empresa','id',"1",'slogan','') ;
  889. //$descripcion[0] ="Los datos no hacen la felicidad, pero pueden medirla";
  890. $descripcion = remplacetas('empresa','id',"1",'slogan','') ;
  891. $twitter[0] ="tupaleco";
  892. $facebook[0] ="https://www.facebook.com/Qwerty-co-146226688795185";
  893. $video ="<div class='text-center'>
  894. <!-- <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> -->
  895. </div>
  896. ";
  897. $soporte = "<li><a href='./f587'><i class='fa fa-address-card' aria-hidden='true'></i> SOPORTE</a></li>";
  898. }
  899. $css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$id_empresa'") ;
  900. if($css_adicional[0] !="") {
  901. $css_adicional ="<style >
  902. <!-- css_adicional -->
  903. $css_adicional[0]
  904. </style>";
  905. }
  906. else {
  907. $css_adicional ="<style ><!-- css_adicional [ $id_empresa ] --></style>";
  908. }
  909. $uri = $_SERVER['REQUEST_URI'];
  910. ?>
  911. <meta NAME="Language" CONTENT="Spanish">
  912. <meta NAME="Revisit" CONTENT="1 days">
  913. <meta NAME="Distribution" CONTENT="Global">
  914. <meta NAME="Robots" CONTENT="All">
  915. <meta name="twitter:card" content="summary">
  916. <meta name="twitter:site" content="<?php echo $twitter[0]; ?>">
  917. <meta name="twitter:creator" content="@qwerty_co">
  918. <meta name="twitter:url" content="<?php echo $uri ; ?>">
  919. <meta name="twitter:title" content="<?php echo $titulo[0]; ?>">
  920. <meta name="twitter:description" content=" <?php echo $descripcion_meta; ?>">
  921. <meta name="twitter:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>">
  922. <meta property="og:type" content="article">
  923. <meta property="og:title" content="<?php echo $titulo[0]; ?>" />
  924. <meta property="og:type" content="website" />
  925. <meta property="og:url" content="<?php echo "$uri"; ?>" />
  926. <meta property="og:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>" />
  927. <meta property="og:site_name" content="<?php echo $razon_social[0]; ?>" />
  928. <meta property="og:description" content=" <?php echo $descripcion_meta; ?>" />
  929. <link rel="shortcut icon" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
  930. <meta name='viewport' content='width=device-width' >
  931. <meta name='mobile-web-app-capable' content='yes'>
  932. <link rel='icon' sizes='192x192' href='<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>'>
  933. <script type='text/javascript' src='librerias/exif/exif.js'></script>
  934. <link rel="apple-touch-icon-precomposed" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
  935. <title><?php echo @$titulo[0]; ?> <?php echo strip_tags($slogan[0]); ?> Tupale.co </title>
  936. <!--
  937. <link href="./librerias/sidebar/css/simple-sidebar.css" rel="stylesheet" >
  938. -->
  939. <?php $xajax->printJavascript("milfs/xajax/");
  940. $xajax->statusMessagesOn();
  941. $css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$id_empresa'") ;
  942. if($css[0] !="") {
  943. $css ="
  944. <!-- incluir tema bootstrap parametrizado -->
  945. <link rel='stylesheet' href='$css[0]?".time()."' >";
  946. $tema="";
  947. }
  948. else {
  949. // $tema= "magazine";
  950. $tema ="";
  951. $css ='
  952. <!-- incluir tema bootstrap por defecto -->
  953. <link rel="stylesheet" href="./librerias/bootstrap/css/bootstrap.min.css?'.time().'" >';
  954. }
  955. ///
  956. echo " <!-- tema $tema --> ";
  957. $panel_aplicaciones = panel_aplicaciones('1',"","");
  958. if(isset($_SESSION['id'])){ $boton_ingresar="
  959. <li id='user_dropdow' class='dropdown'>
  960. <a href='milfs/' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>$_SESSION[username]<b class='caret'></b></a>
  961. <ul id='menu_administrador' class='dropdown-menu'>
  962. $panel_aplicaciones
  963. <li class='divider'></li>
  964. <li><a onclick=\"xajax_milfs_session('','','','salir') \"><i class='fa fa-sign-out'></i> SALIR</a></li>
  965. </ul>
  966. </li>
  967. ";}
  968. else{$boton_ingresar="<li><a href='milfs/'>Ingresar</a></li>"
  969. ;}
  970. if(isset($_SESSION['id'])){
  971. $form_tiempo_session = "
  972. <li>
  973. </li> "; } else{ $form_tiempo_session = "";}
  974. if($tema=="") {
  975. $barra="
  976. <div class='noprint nomostrar container' id='cabecera' style=' $no_mostrar '>
  977. <nav class='navbar navbar-fixed-top navbar-inverse navbar-toggleable-sm ' id='navbar-principal'>
  978. <div class='container navegacion' id='menu_mobil'>
  979. <div id='menu_hamburguesa' class='navbar-header'>
  980. <button type='button' class='navbar-toggle collapsed' data-toggle='collapse' data-target='#navbar' aria-expanded='false' aria-controls='navbar'>
  981. <span class='sr-only'>Toggle navigation</span>
  982. <span class='icon-bar'></span>
  983. <span class='icon-bar'></span>
  984. <span class='icon-bar'></span>
  985. </button>
  986. <a class='navbar-brand' href='$link_empresa'>
  987. <img id='logo_cabecera' class='center-block img img-responsive' style='' src='milfs/images/secure/?file=300/$logo[0]'>
  988. </a>
  989. </div>
  990. <div id='navbar' class='navbar-collapse collapse'>
  991. <ul id='menu_milfs' class='nav navbar-nav'>
  992. <li class='dropdown '>
  993. <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>
  994. <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>
  995. <ul class='menu_tupale dropdown-menu'>
  996. <li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
  997. <li><a class='' href='$link_empresa?home'>$sigla[0] Inicio</a></li>
  998. <li><a href='s363'>Blog</a></li>
  999. <li><a href='s133'>Ayuda y documentación</a></li>
  1000. <li class='divider'> </li>
  1001. ".aplicaciones_listado("$id_empresa",'','nav','')."
  1002. </ul>
  1003. </li>
  1004. $form_tiempo_session
  1005. </ul>
  1006. <ul id='menu_social' class='nav navbar-nav navbar-right'>
  1007. $soporte
  1008. <li><a href='https://twitter.com/$twitter[0]'><i class='fa fa-twitter'></i></a></li>
  1009. <li><a href='$facebook[0]'><i class='fa fa-facebook'></i></a></li>
  1010. $boton_ingresar
  1011. </ul>
  1012. </div>
  1013. </nav>
  1014. </div>
  1015. ";
  1016. echo $css;
  1017. ?>
  1018. <script src="./librerias/jquery/jquery-2.1.4.min.js" ></script>
  1019. <script src="./librerias/bootstrap/js/bootstrap.min.js" ></script>
  1020. <!-- <script src="./librerias/charts/Chart.bundle.js"></script>
  1021. <script src="./librerias/charts/utils.js"></script> -->
  1022. <script src="./librerias/lazy/jquery.lazy.min.js"></script>
  1023. <script src='./librerias/summernote/summernote.js'></script>
  1024. <link href='./librerias/summernote/summernote.css' rel='stylesheet'>
  1025. <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>
  1026. <script>
  1027. $(function() {
  1028. $('.lazy').lazy({
  1029. // your configuration goes here
  1030. //combined: true,
  1031. delay: 1000,
  1032. // scrollDirection: 'vertical',
  1033. //effect: 'fadeIn',
  1034. //visibleOnly: true,
  1035. onError: function(element) {
  1036. console.log('error loading ' + element.data('src'));
  1037. }
  1038. });
  1039. });
  1040. </script>
  1041. <?php echo $librerias_cabeza; ?>
  1042. <?php
  1043. }
  1044. else {
  1045. echo "
  1046. <meta name='theme-color' content='#DF0101'/>
  1047. <!-- Windows Phone -->
  1048. <meta name='msapplication-navbutton-color' content='#DF0101'/>
  1049. <!-- iOS Safari -->
  1050. <meta name='apple-mobile-web-app-capable' content='yes'/>
  1051. <meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
  1052. ";
  1053. echo $librerias_cabeza;
  1054. include("temas/$tema/cabecera");
  1055. include("temas/$tema/pie");
  1056. $barra="
  1057. <ul >
  1058. <li><a class='' href='$portal_url'><i class='fa fa-home'></i> Portal</a></li>
  1059. <li><a class='' href='$link_empresa'>".@$sigla[0]." Inicio</a></li>
  1060. <li><a href='s363'>Blog</a></li>
  1061. <li role='separator' class='divider'></li>
  1062. ".aplicaciones_listado("$id_empresa",'','nav','')."
  1063. </ul>
  1064. ";
  1065. $menu_lateral = "
  1066. <div id='fh5co-offcanvas' class='noprint'>
  1067. <a href='#' class='fh5co-close-offcanvas js-fh5co-close-offcanvas'><span><i class='icon-cross3'></i> <span>Close</span></span></a>
  1068. <div class='fh5co-bio'>
  1069. <figure>
  1070. <img src='milfs/images/secure/?file=full/$logo[0]' alt='' class='img-responsive'>
  1071. </figure>
  1072. <h3 data-toc-skip >LO QUE SOMOS</h3>
  1073. <h2 data-toc-skip >".@$razon_social[0]." </h2>
  1074. <h3 >".@$titulo[0]."</h3>
  1075. <p>".@$descripcion[0]." </p>
  1076. <ul class='fh5co-social'>
  1077. $soporte
  1078. <li><a href='https://twitter.com/$twitter[0]'><i class='icon-twitter'></i></a></li>
  1079. <li><a href='https://www.facebook.com/$facebook[0]'><i class='icon-facebook'></i></a></li>
  1080. </ul>
  1081. </div>
  1082. <div class='fh5co-menu'>
  1083. <div class='fh5co-box'>
  1084. $barra
  1085. </div>
  1086. <!-- <div class='fh5co-box'>
  1087. <h3 class='heading'>Search</h3>
  1088. <form action='#'>
  1089. <div class='form-group'>
  1090. <input type='text' class='form-control' placeholder='Type a keyword'>
  1091. </div>
  1092. </form>
  1093. </div> -->
  1094. </div>
  1095. </div>
  1096. ";
  1097. }
  1098. ?>
  1099. <link href="./milfs/css/style.css" rel="stylesheet">
  1100. <!-- tabla de contenido -->
  1101. <!--
  1102. <link rel="stylesheet" href="./librerias/bootstrap-toc/bootstrap-toc.min.css">
  1103. <script src="./librerias/bootstrap-toc/bootstrap-toc.min.js"></script>
  1104. -->
  1105. <!-- <script src="./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js"></script> -->
  1106. <!--firma -->
  1107. <!--
  1108. <script src="librerias/firma/signature_pad.js"></script>
  1109. <!-- firma pie -->
  1110. <!--
  1111. <script src="librerias/firma/app.js"></script>
  1112. -->
  1113. <?php echo $css_adicional;
  1114. if(!isset($_SESSION['id']) ){ ?>
  1115. <script type="text/javascript">
  1116. function addLink() {
  1117. var body_element = document.getElementsByTagName('body')[0];
  1118. var selection;
  1119. selection = window.getSelection();
  1120. 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> */";
  1121. var copytext = selection + pagelink;
  1122. var newdiv = document.createElement('div');
  1123. newdiv.style.position='absolute';
  1124. newdiv.style.left='-99999px';
  1125. body_element.appendChild(newdiv);
  1126. newdiv.innerHTML = copytext;
  1127. selection.selectAllChildren(newdiv);
  1128. window.setTimeout(function() {
  1129. body_element.removeChild(newdiv);
  1130. },0);
  1131. }
  1132. document.oncopy = addLink;
  1133. </script>
  1134. <?php } ?>
  1135. </head>
  1136. <body data-spy="scroll" data-target="#toc" onload="revisarSession(); "; >
  1137. <?php
  1138. if(isset($_REQUEST['debug'])) {
  1139. print_r( $_SESSION );
  1140. print_r( $_REQUEST );
  1141. echo "$variable ($pagina_inicio_definida[2])";
  1142. ini_set('display_errors', 'On');}
  1143. ?>
  1144. <?php
  1145. if($tema=="") {
  1146. echo $barra ;
  1147. }else{
  1148. echo " " ;
  1149. }
  1150. if(isset($_SESSION['id'] )) {
  1151. $id_empresa_portada='1';
  1152. if($_SESSION['grupo'] == '3'){
  1153. //echo " <li style=' $no_mostrar '>".panel_aplicaciones('1',"","")." </li>";
  1154. }
  1155. else{ $usuario = $_SESSION['username'];
  1156. //echo " <li style=' $no_mostrar '>".panel_aplicaciones('1',"$_SESSION[id_empresa]","")." </li>";
  1157. }
  1158. }else{ echo "
  1159. <span style=' $no_mostrar '></span>
  1160. ";
  1161. }
  1162. $eventos="";
  1163. if(isset($_REQUEST['eventos'])) {
  1164. //$embebido='1';
  1165. $librerias_pie="
  1166. <link href='librerias/calendar/fullcalendar.min.css' rel='stylesheet' />
  1167. <link href='librerias/calendar/fullcalendar.print.min.css' rel='stylesheet' media='print' />
  1168. <script src='librerias/calendar/lib/moment.min.js'></script>
  1169. <script src='librerias/calendar/fullcalendar.min.js'></script>
  1170. <script src='librerias/calendar/locale/es.js'></script>
  1171. ";
  1172. $empresa = remplacetas('form_id','id',$_REQUEST['eventos'],'id_empresa',"") ;
  1173. $css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$empresa[0]'") ;
  1174. if($css_adicional[0] !="") {
  1175. $css_adicional ="<style >
  1176. <!-- css_adicional -->
  1177. $css_adicional[0]
  1178. </style>";
  1179. }
  1180. $titulo = remplacetas('form_id','id',"$_REQUEST[eventos]",'nombre',"") ;
  1181. $eventos= "
  1182. $css_adicional
  1183. <script>
  1184. $(document).ready(function() {
  1185. $('#calendar').fullCalendar({
  1186. header: {
  1187. left: 'prev,next today',
  1188. center: 'title',
  1189. right: 'listMonth,month,agendaWeek,agendaDay,listYear,timeLineYear'
  1190. },
  1191. //defaultDate: '2017-10-12',
  1192. defaultView: 'listYear',
  1193. themeSystem: 'bootstrap3',
  1194. navLinks: true, // can click day/week names to navigate views
  1195. editable: false,
  1196. eventLimit: true, // allow \"more\" link when too many events
  1197. events: {
  1198. url: 'milfs/api.php',
  1199. type: 'GET',
  1200. data: {
  1201. id: '$_REQUEST[eventos]',
  1202. tipo:'simple'
  1203. },
  1204. error: function() {
  1205. $('#script-warning').show();
  1206. }
  1207. },
  1208. buttonText: {
  1209. listMonth: 'Agenda',
  1210. listYear: 'Año',
  1211. listDay: 'List Day'
  1212. },
  1213. loading: function(bool) {
  1214. $('#loading').toggle(bool);
  1215. }
  1216. ,
  1217. eventMouseover: function (data, event, view) {
  1218. 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>';
  1219. $('body').append(tooltip);
  1220. $(this).mouseover(function (e) {
  1221. $(this).css('z-index', 10000);
  1222. $('.tooltiptopicevent').fadeIn('500');
  1223. $('.tooltiptopicevent').fadeTo('10', 1.9);
  1224. }).mousemove(function (e) {
  1225. $('.tooltiptopicevent').css('top', e.pageY + 10);
  1226. $('.tooltiptopicevent').css('left', e.pageX + 20);
  1227. });
  1228. },
  1229. eventMouseout: function (data, event, view) {
  1230. $(this).css('z-index', 8);
  1231. $('.tooltiptopicevent').remove();
  1232. },
  1233. dayClick: function () {
  1234. tooltip.hide()
  1235. },
  1236. eventResizeStart: function () {
  1237. tooltip.hide()
  1238. },
  1239. eventDragStart: function () {
  1240. tooltip.hide()
  1241. },
  1242. viewDisplay: function () {
  1243. tooltip.hide()
  1244. },
  1245. });
  1246. });
  1247. </script><h1 class='titulo_eventos text-center'>$titulo[0]</h1><div class='container-fluid' id='calendar'></div><br>";
  1248. }
  1249. if( $embebido =="1" ){ /* SI SE SOLICITA UN EMBEBIDO SE MUESTRA ESTO */
  1250. echo $css_adicional;
  1251. echo $onload;
  1252. if(isset($set)) {
  1253. }
  1254. ?>
  1255. <!-- </div> -->
  1256. <!-- Modal -->
  1257. <div class='modal fade animated' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
  1258. <div id="modal_landing" class='modal-dialog modal-lg' >
  1259. <div class='modal-content'>
  1260. <button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i> </button>
  1261. <div class='modal-header hidden-xs' >
  1262. <div class='modal-title' id='titulo_modal'></div>
  1263. </div>
  1264. <div class='modal-body'>
  1265. <div id='muestra_form'>
  1266. </div>
  1267. </div>
  1268. <div class='modal-footer' >
  1269. <div class='pull-left hidden-md hidden-xs '>
  1270. <span class="hidden-xs">Poweredy by </span><a href='https://tupale.co' target='tupale'>tupale.co</a>
  1271. <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>
  1272. </div>
  1273. <div class='pull-right' id='pie_modal'></div>
  1274. </div>
  1275. </div>
  1276. </div>
  1277. </div>
  1278. <!-- Modal -->
  1279. </body>
  1280. </html>
  1281. <!-- fin embebido -->
  1282. <?php
  1283. }
  1284. else{ /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
  1285. ?>
  1286. <div class="col-sm-<?php echo $cols_interior; ?> col-lg-<?php echo $cols_interior; ?>" id='principal_general'>
  1287. <?php echo $menu_lateral ; ?>
  1288. <!-- END #fh5co-offcanvas -->
  1289. <header id="fh5co-header">
  1290. <!-- En el contenedor principal superior está: el nombre de empresa, el eslogan, el asistento -->
  1291. <div class="container-fluid" id='principal_superior'>
  1292. <div id='formulario_login' class='' ></div>
  1293. <div id='div_panel_aplicaciones' class=''></div>
  1294. <div class='container top' id='contenedor_cabecera'>
  1295. <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>
  1296. <div class="text-center"id='slogan_cabecera'><p><?php echo "$slogan[0] "; ?> </p></div>
  1297. </div>
  1298. <div id="asistento" class="col-md-12 text-center">
  1299. <?php
  1300. if(isset($_REQUEST['asistento'])) {
  1301. echo asistente_aplicaciones("",'','','');
  1302. }else {
  1303. echo "<a href='?asistento' class='btn btn-success'>Quiero crear una aplicación. </a>";
  1304. }
  1305. ?>
  1306. </div>
  1307. <div class="col-md-push-1 col-md-10" id='resaltado'>
  1308. <div class='center-block'>
  1309. <?php
  1310. if($id_empresa=="") {
  1311. echo identificador_resaltado("1","");
  1312. //echo milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
  1313. echo social_login("","","") ;
  1314. }else {echo identificador_resaltado($id_empresa,"landingpage");}
  1315. ?>
  1316. </div>
  1317. </div>
  1318. </div>
  1319. <!-- FIN DEL CONTENEDOR Principal Superior -->
  1320. </header>
  1321. <!-- FIN DE este <header> asociado a id="fh5co-header que tiene protagonismo en el código -->
  1322. <div class="container-fluid" id='caja'>
  1323. <?php
  1324. $id_campo = campo_titulo($set) ;
  1325. $corpus = formulario_corpus("$set","$id_campo","contenido","barras","texto_articulo");
  1326. $ultimos = mas_visto("ultimos","5","1","$set","$id_empresa");
  1327. if ($v[0]=='s'){
  1328. $buscar_datos = buscar_datos("*formato*","$set","$plantilla","texto_articulo");
  1329. echo "
  1330. <div class='col-md-3 hidden-xs '>
  1331. <aside id='aside_index'>
  1332. $buscar_datos
  1333. <div id='grid_resultado_landing'></div>
  1334. <br>
  1335. <hr>
  1336. ".aplicaciones_listado("$id_empresa",'','nav','')."
  1337. <hr>
  1338. $corpus
  1339. <hr>
  1340. $ultimos
  1341. </aside>
  1342. </div>
  1343. <div class='col-md-9' id='texto_articulo'>"
  1344. ;
  1345. }else{ echo "<div class='col-md-12 col-lg-12' id='texto_articulo'>" ;}
  1346. ?>
  1347. <?php echo $eventos;
  1348. if($id_empresa=="") {
  1349. //echo mas_visto("aleatorios","4","");
  1350. echo "
  1351. ";
  1352. echo mas_visto("ultimos","4","4","","");
  1353. echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
  1354. // echo mas_visto("identificador","4","");
  1355. //echo "<div class='clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block'></div>";
  1356. //echo mas_visto("formulario","4","");
  1357. echo "</div>";
  1358. }
  1359. if($acceso ==1) {
  1360. if($set != "") {
  1361. echo " ".consultar_contenido_formulario("$set",$cantidad_registros,'','contenido',"$orden","");
  1362. }
  1363. elseif($identificador !="") {
  1364. //echo landingpage_contenido_identificador($identificador);
  1365. echo "<div class='container'>".landingpage_contenido_identificador("$identificador_original","$id_form","landingpage",'simple')."</div>" ;
  1366. }
  1367. else{
  1368. if($id_empresa =="") {
  1369. //echo multiempresa_listado('','')."Hola mundo";
  1370. }
  1371. else {
  1372. //echo landingpage_contenido($id_empresa);
  1373. echo landingpage_contenido($id_empresa);
  1374. }
  1375. }
  1376. }else{ echo multiempresa_listado('',''); }
  1377. ?>
  1378. </div>
  1379. </div>
  1380. <footer id="fh5co-footer">
  1381. <small>
  1382. <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
  1383. <a href="milfs/?psi" ><i class="fa fa-smile-o "></i> Políticas de privacidad y protección de datos.</a></p>
  1384. </small>
  1385. </footer>
  1386. </div>
  1387. <?php echo $menu; ?>
  1388. <div class='modal fade animated' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
  1389. <div <div id="modal_landing" class='modal-dialog modal-lg' >
  1390. <div class='modal-content'>
  1391. <div class='modal-header' >
  1392. <button type='button' class='close' data-dismiss='modal' aria-hidden='true'><i class='fa fa-times-circle'></i></button>
  1393. <div id='titulo_modal'></div>
  1394. </div>
  1395. <div class='modal-body'>
  1396. <div id='muestra_form'>
  1397. </div>
  1398. </div>
  1399. <div class='modal-footer' >
  1400. <div class='pull-left'>
  1401. <span>Poweredy by <a href='https://tupale.co' target='tupale'>tupale.co</a></span>
  1402. <a href='milfs/?psi' target='_psi'><i class='glyphicon glyphicon-smile-o '></i> Políticas de privacidad y protección de datos.</a></div>
  1403. <div class='pull-right' id='pie_modal'></div>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. <!-- Modal -->
  1409. <!-- Footer -->
  1410. <?php echo $onload; } ?>
  1411. <script type="text/javascript">
  1412. $(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
  1413. event.preventDefault();
  1414. $(this).ekkoLightbox();
  1415. });
  1416. $(".menu-toggle").click(function(e) {
  1417. e.preventDefault();
  1418. $("#wrapper-sidebar").toggleClass("toggled");
  1419. });
  1420. </script>
  1421. <!-- Piwik -->
  1422. <script type="text/javascript">
  1423. var _paq = _paq || [];
  1424. _paq.push(['trackPageView']);
  1425. _paq.push(['enableLinkTracking']);
  1426. (function() {
  1427. var u="//stats.tupale.co/";
  1428. _paq.push(['setTrackerUrl', u+'piwik.php']);
  1429. _paq.push(['setSiteId', 1]);
  1430. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  1431. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  1432. })();
  1433. </script>
  1434. <noscript><p><img src="//stats.tupale.co/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
  1435. <!-- End Piwik Code -->
  1436. <?php echo $librerias_pie; ?>
  1437. <link href="./librerias/font-awesome/css/font-awesome.min.css" rel="stylesheet" >
  1438. <style>
  1439. #scroll-content
  1440. {
  1441. }
  1442. </style>
  1443. <script type="text/javascript" src="librerias/landingjs/scripts_landing.js"></script>
  1444. <?php
  1445. if(isset($_SESSION['id'] )) {
  1446. echo "
  1447. <form name='form_session' class='navbar-form navbar-left'>
  1448. <div class='input-group'>
  1449. <input type='text' name='tiempo_session' size='18' class='form-control input-sm' readonly>
  1450. <span class='input-group-addon'><a href='#' onclick=\"location.reload();\" title='Renovar'> <i class='fa fa-refresh' aria-hidden='true'></i></a></span>
  1451. </div>
  1452. </form>";
  1453. }
  1454. ?>
  1455. <script type="text/javascript">
  1456. $('.navbar-collapse a').click(function(){
  1457. $(".navbar-collapse").collapse('hide');
  1458. });
  1459. var page_size_check = null, q_body;
  1460. (q_body = $('#body')).bind('DOMSubtreeModified', function() {
  1461. if (page_size_check === null) {
  1462. return;
  1463. }
  1464. page_size_check = setTimeout(function() {
  1465. q_body.css('height', '');
  1466. if (q_body.height() < window.innerHeight) {
  1467. q_body.css('height', window.innerHeight + 'px');
  1468. }
  1469. if (!(window.pageYOffset > 1)) {
  1470. window.scrollTo(0, 1);
  1471. }
  1472. page_size_check = null;
  1473. }, 400);
  1474. });
  1475. /*
  1476. window.addEventListener("load",function() {
  1477. setTimeout(function(){
  1478. window.scrollTo(0, 1);
  1479. }, 0);
  1480. });*/
  1481. </script>
  1482. </body>
  1483. </html>