2014-10-05 16:06:12 +00:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
//ini_set('display_errors', 'On');
|
|
|
|
require ('xajax/xajax.inc.php');
|
|
|
|
$xajax = new xajax();
|
|
|
|
require ('funciones/funciones.php');
|
|
|
|
require ('funciones/convert.php');
|
|
|
|
require ('funciones/login.php');
|
2015-07-10 23:38:47 +00:00
|
|
|
require ("funciones/conex.php");
|
2014-10-05 16:06:12 +00:00
|
|
|
$xajax->processRequests();
|
2014-09-25 15:46:41 +00:00
|
|
|
|
2014-10-05 16:06:12 +00:00
|
|
|
?>
|
2014-09-25 15:46:41 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head >
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="fredyrivera" >
|
2014-10-07 12:02:29 +00:00
|
|
|
<?php $xajax->printJavascript("xajax/"); ?>
|
2014-09-25 15:46:41 +00:00
|
|
|
<link rel="shortcut icon" href="favicon-152.png">
|
|
|
|
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
|
|
|
|
<link href="css/font-awesome/css/font-awesome.css" rel="stylesheet">
|
2015-07-10 13:03:27 +00:00
|
|
|
<link href="css/sticky-footer-navbar.css" rel="stylesheet">
|
2014-09-25 15:46:41 +00:00
|
|
|
|
2015-07-10 13:03:27 +00:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
|
2014-09-25 15:46:41 +00:00
|
|
|
|
2015-07-10 13:03:27 +00:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
|
2014-09-25 15:46:41 +00:00
|
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
2014-10-05 19:54:15 +00:00
|
|
|
<link href="css/estilos.php" rel="stylesheet">
|
2014-09-25 15:46:41 +00:00
|
|
|
<style type="text/css">
|
|
|
|
body { padding: 0; margin: 0; }
|
2014-10-05 16:06:12 +00:00
|
|
|
html, body, #cupcake-map { z-index: 10; position:absolute; top:0; bottom:0px; width:100%; }
|
2014-09-25 15:46:41 +00:00
|
|
|
.leaflet-popup-content {
|
2014-10-07 12:02:29 +00:00
|
|
|
width:600px !important;
|
2014-09-25 15:46:41 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2015-07-09 15:35:45 +00:00
|
|
|
<script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
|
2014-09-25 15:46:41 +00:00
|
|
|
<link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="cupcake-map"></div>
|
|
|
|
<script>
|
2015-07-09 15:35:45 +00:00
|
|
|
var cupcakeTiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
2014-09-25 15:46:41 +00:00
|
|
|
maxZooom: 18
|
|
|
|
});
|
|
|
|
|
|
|
|
$.getJSON($('link[rel="points"]').attr("href"), function(data) {
|
|
|
|
var geojson = L.geoJson(data, {
|
|
|
|
onEachFeature: function (feature, layer) {
|
|
|
|
layer.bindPopup(feature.properties.name,"autoPan");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
var map = L.map('cupcake-map').fitBounds(geojson.getBounds());
|
|
|
|
cupcakeTiles.addTo(map);
|
|
|
|
geojson.addTo(map);
|
|
|
|
});
|
|
|
|
</script>
|
2014-10-05 16:06:12 +00:00
|
|
|
<div class="center-block" style=" z-index:10000; position:absolute; bottom:10px;">
|
|
|
|
<div role='row' class='row center-block' style="width:95% ; "><?php echo aplicacion_datos("$_REQUEST[id]");?></div>
|
|
|
|
</div>
|
2014-10-07 12:02:29 +00:00
|
|
|
<!-- Modal -->
|
|
|
|
|
|
|
|
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>
|
|
|
|
<div class='modal-dialog' >
|
|
|
|
<div class='modal-content'>
|
|
|
|
<div class='modal-header' >
|
|
|
|
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>×</button>
|
|
|
|
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
|
|
|
|
</div>
|
|
|
|
<div class='modal-body'>
|
|
|
|
|
|
|
|
<div id='muestra_form'></div>
|
|
|
|
</div>
|
|
|
|
<div class='modal-footer' id='pie_modal'>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
|
|
================================================== -->
|
|
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
|
|
<script src="js/jquery.min.js"></script>
|
|
|
|
<script src="js/bootstrap.min.js"></script>
|
|
|
|
<script src="js/scripts.js"></script>
|
2014-09-25 15:46:41 +00:00
|
|
|
</body>
|
2015-07-09 15:35:45 +00:00
|
|
|
</html>
|