Fork de milfs para hacer limpieza de algunas cosas
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.

237 lines
6.7KB

  1. <?php
  2. ///este archivo debe estar un nivel superior al directorio milfs
  3. session_start();
  4. //ini_set('display_errors', 'On');
  5. require ('milfs/xajax/xajax.inc.php');
  6. $xajax = new xajax();
  7. require ('milfs/funciones/funciones.php');
  8. require ('milfs/funciones/experimentales.php');
  9. //require ('milfs/funciones/convert.php');
  10. require ('milfs/funciones/login.php');
  11. require_once ('milfs/includes/markdown.php');
  12. require ("milfs/funciones/conex.php");
  13. $xajax->processRequests();
  14. $logo = remplacetas('empresa','id','1','imagen') ;
  15. $direccion = remplacetas('empresa','id','1','direccion') ;
  16. $telefono = remplacetas('empresa','id','1','telefono') ;
  17. $email = remplacetas('empresa','id','1','email') ;
  18. if($_REQUEST['formulario'] !="") {
  19. $formulario = $_REQUEST['formulario'];
  20. }
  21. else {
  22. $formulario = "40";
  23. }
  24. $id_campo = $_REQUEST['campo'];
  25. $formulario_descripcion = remplacetas('form_id','id',"$formulario",'descripcion',"") ;
  26. $formulario_nombre = remplacetas('form_id','id',"$formulario",'nombre',"") ;
  27. ?>
  28. <!DOCTYPE html>
  29. <html lang="en">
  30. <head >
  31. <meta charset="utf-8">
  32. <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
  33. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  34. <meta name="viewport" content="width=device-width, initial-scale=1">
  35. <meta name="description" content="">
  36. <meta name="author" content="fredyrivera" >
  37. <?php $xajax->printJavascript("milfs/xajax/"); ?>
  38. <link rel="shortcut icon" href="favicon-152.png">
  39. <link rel="apple-touch-icon-precomposed" href="favicon-152.png">
  40. <link href="milfs/css/font-awesome/css/font-awesome.css" rel="stylesheet">
  41. <!-- <link rel="stylesheet" href="milfs/css/style.css" media="screen" /> -->
  42. <!-- <link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet"> -->
  43. <!-- <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> -->
  44. <!-- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> -->
  45. <link href="milfs/css/bootstrap.min.css" rel="stylesheet">
  46. <!-- <link href="milfs/css/estilos.php" rel="stylesheet"> -->
  47. <script src="milfs/js/jquery.min.js"></script>
  48. <script src="milfs/js/jquery.timelinr-0.9.54.js"></script>
  49. <style type="text/css">
  50. /*@font-face {
  51. font-family: Brandon_light;
  52. src: url("milfs/patos/fuentes/Brandon_light.otf") format("opentype");
  53. }*/
  54. body{
  55. font-size: 18px;
  56. color: black;
  57. }
  58. .modal-dialog {
  59. width: 95%;
  60. height: 95%;
  61. padding: 0;
  62. }
  63. .modal-content {
  64. /*height: 100%;*/
  65. border-radius: 0;
  66. }
  67. .container-fluid {
  68. padding: 0px !important;
  69. }
  70. a.pie{
  71. color: white !important;
  72. }
  73. a.menu{
  74. color: white !important;
  75. }
  76. a:active{
  77. color: black !important;
  78. }
  79. /*
  80. .dropdown:hover{
  81. background-color: #fd0;
  82. font-weight: normal !important;
  83. color: black !important;
  84. }
  85. .dropdown-toggle:hover{
  86. background-color: #fd0;
  87. color: black !important;
  88. font-weight: normal !important;
  89. }
  90. .dropdown .open{
  91. background-color: #fd0;
  92. color: black !important;
  93. font-weight: normal !important;
  94. }
  95. a.menu:hover{
  96. background-color: #fd0 !important;
  97. color: black !important;
  98. }
  99. .dropdown-menu:hover{
  100. background-color: #fd0 !important;
  101. color: black !important;
  102. font-weight: normal !important;
  103. }
  104. ul.dropdown-menu{
  105. background-color: black !important;
  106. font-weight: normal !important;
  107. }
  108. ul.dropdown-menu:hover{
  109. background-color: #fd0;
  110. color: black !important;
  111. font-weight: normal !important;
  112. }
  113. */
  114. </style>
  115. </head>
  116. <body >
  117. <!-- Static navbar -->
  118. <div class="navbar navbar-fixed-top "style='color:black; background-color:white' role="navigation">
  119. <div class="navbar-header">
  120. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
  121. <span class="sr-only">Toggle navigation</span>
  122. <span class="icon-bar"></span>
  123. <span class="icon-bar"></span>
  124. <span class="icon-bar"></span>
  125. </button>
  126. <a class="navbar-brand" href="">
  127. <img class="img img-responsive" style="max-height:30px; display:inline" src="milfs/images/secure/?file=150/<?php echo $logo[0] ?>" >
  128. <span>
  129. <?php echo "<strong title='$formulario_descripcion[0]'>$formulario_nombre[0]</strong>"; ?>
  130. </span>
  131. </a>
  132. </div>
  133. <div class="navbar-collapse collapse">
  134. <ul class="nav navbar-nav">
  135. <?php echo portal_listado_formularios(); ?>
  136. </ul>
  137. <?php echo buscar_datos("","$formulario","","mostrar_contenido"); ?>
  138. </div><!--/.nav-collapse -->
  139. </div> <!--/.container-fluid -->
  140. <!-- /container -->
  141. <br> <br>
  142. <div id ='contenedor' style=' ' class="container">
  143. <div class='row'>
  144. <div class='col-md-3'>
  145. <div class='panel panel-default'>
  146. <div class='panel panel-heading'>
  147. <ul class='list-unstyled'>
  148. <?php echo portal_listado_formularios(); ?>
  149. </ul>
  150. </div>
  151. <div class='panel-body'>
  152. <?php
  153. if($id_campo =="") {
  154. echo portal_listado_campos("$formulario");
  155. }
  156. else {
  157. echo portal_filtro_campos($formulario,$id_campo);
  158. echo portal_filtro_campos_select($formulario,"$id_campo");
  159. }
  160. ?>
  161. </div>
  162. </div>
  163. </div>
  164. <div class='col-md-9'>
  165. <div id='mostrar_contenido'>
  166. <h1>Bienvenido a nuestro portal de datos</h1>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="" style="background-color: black; color:white; ">
  172. <!-- <img class='img img-resposive' src="milfs/patos/images/pie.png" style="width:100%" alt=""> -->
  173. </div>
  174. </div>
  175. <!-- Modal -->
  176. <div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
  177. <div class='modal-dialog modal-lg' style=' ' >
  178. <div class='modal-content' style=' '>
  179. <div class="modal-header">
  180. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  181. <br>
  182. </div>
  183. <div class='modal-body'>
  184. <div id='muestra_form' class="row"></div>
  185. </div>
  186. </div>
  187. </div>
  188. <!--
  189. <div class='pie' style=" position: fixed;
  190. bottom: 0;
  191. width: 100%;
  192. /* Set the fixed height of the footer here */
  193. ">
  194. </div> -->
  195. <!-- Bootstrap core JavaScript
  196. ================================================== -->
  197. <!-- Placed at the end of the document so the pages load faster -->
  198. <!-- <script src="milfs/js/jquery.min.js"></script> -->
  199. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  200. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
  201. <!-- <script src="milfs/js/bootstrap.min.js"></script> -->
  202. <script src="milfs/js/scripts.js"></script>
  203. </body>
  204. </html>