Repositorio para la herramienta Tupale completo
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.

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