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.

93 lines
3.3KB

  1. <?php
  2. session_start();
  3. //ini_set('display_errors', 'On');
  4. require ('xajax/xajax.inc.php');
  5. $xajax = new xajax();
  6. require ('funciones/funciones.php');
  7. require ('funciones/convert.php');
  8. require ('funciones/login.php');
  9. require ("funciones/conex.php");
  10. $xajax->processRequests();
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head >
  15. <meta charset="utf-8">
  16. <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19. <meta name="description" content="">
  20. <meta name="author" content="fredyrivera" >
  21. <?php $xajax->printJavascript("xajax/"); ?>
  22. <link rel="shortcut icon" href="favicon-152.png">
  23. <link rel="apple-touch-icon-precomposed" href="favicon-152.png">
  24. <link href="css/font-awesome/css/font-awesome.css" rel="stylesheet">
  25. <link href="css/sticky-footer-navbar.css" rel="stylesheet">
  26. <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
  27. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
  28. <link href="css/bootstrap.min.css" rel="stylesheet">
  29. <link href="css/estilos.php" rel="stylesheet">
  30. <style type="text/css">
  31. body { padding: 0; margin: 0; }
  32. html, body, #cupcake-map { z-index: 10; position:absolute; top:0; bottom:0px; width:100%; }
  33. .leaflet-popup-content {
  34. width:600px !important;
  35. }
  36. </style>
  37. <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
  38. <link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>">
  39. </head>
  40. <body>
  41. <div id="cupcake-map"></div>
  42. <script>
  43. var cupcakeTiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  44. maxZooom: 18
  45. });
  46. $.getJSON($('link[rel="points"]').attr("href"), function(data) {
  47. var geojson = L.geoJson(data, {
  48. onEachFeature: function (feature, layer) {
  49. layer.bindPopup(feature.properties.name,"autoPan");
  50. }
  51. });
  52. var map = L.map('cupcake-map').fitBounds(geojson.getBounds());
  53. cupcakeTiles.addTo(map);
  54. geojson.addTo(map);
  55. });
  56. </script>
  57. <div class="center-block" style=" z-index:10000; position:absolute; bottom:10px;">
  58. <div role='row' class='row center-block' style="width:95% ; "><?php echo aplicacion_datos("$_REQUEST[id]");?></div>
  59. </div>
  60. <!-- Modal -->
  61. <div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
  62. <div class='modal-dialog' >
  63. <div class='modal-content'>
  64. <div class='modal-header' >
  65. <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>
  66. <h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
  67. </div>
  68. <div class='modal-body'>
  69. <div id='muestra_form'></div>
  70. </div>
  71. <div class='modal-footer' id='pie_modal'>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- Bootstrap core JavaScript
  77. ================================================== -->
  78. <!-- Placed at the end of the document so the pages load faster -->
  79. <script src="js/jquery.min.js"></script>
  80. <script src="js/bootstrap.min.js"></script>
  81. <script src="js/scripts.js"></script>
  82. </body>
  83. </html>