creacion de datos a un click

This commit is contained in:
humano 2020-04-06 16:57:47 -05:00
parent a78b786cac
commit 838540d135
2 changed files with 33 additions and 2 deletions

View File

@ -63,6 +63,7 @@ $buscador ="
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="description" content="">
<meta NAME="Language" CONTENT="Spanish">
<meta NAME="Revisit" CONTENT="1 days">
<meta NAME="Distribution" CONTENT="Global">
<meta NAME="Robots" CONTENT="All">
@ -85,6 +86,7 @@ $buscador ="
<link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
<link rel="stylesheet" href="librerias/leaflet/leaflet.css" />
<script src="milfs/js/scripts.js"></script>
<?php
$otro_json = remplacetas('form_parametrizacion','campo',$_REQUEST[id],'descripcion'," tabla='form_id' and opcion = 'json'","","") ;;
//$obj = file_get_contents('https://www.kleper.net/wiki/RutaPazTerritorial.geojson');
@ -156,6 +158,23 @@ $ids = json_decode($otro_json[0]);
</head>
<body onload="">
<!-- modal -->
<div class='modal fade ' id='muestraInfo' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true' data-backdrop='static' data-keyboard='false'>
<div class='modal-dialog modal-MD' style='' >
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</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>
<!-- modal -->
<!-- optionally define the sidebar content via HTML markup -->
<div id="sidebar" class="leaflet-sidebar collapsed">
@ -213,7 +232,10 @@ $ids = json_decode($otro_json[0]);
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js" ></script>
<script src="./librerias/bootstrap/js/bootstrap.min.js" ></script>
<!-- <script src="librerias/jquery/jquery-2.1.4.min.js"></script> -->
<?php $cadena_busqueda = $_REQUEST['buscar']; ?>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $cadena_busqueda ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
@ -285,6 +307,15 @@ function openMarkerPopup(e){
marker.openPopup();
}
function onMapClick(e) {
var coordenadas =""+e.latlng.lat+"|"+e.latlng.lng;
setCookie('ubicacion',coordenadas, 1);
// alert("You clicked the map at " + e.latlng);
sidebar.close();
xajax_formulario_embebido_ajax("","34","","");
}
map.on('click', onMapClick);
// add panels dynamically to the sidebar

2
milfs

@ -1 +1 @@
Subproject commit b2896adc7bc1f1e4e08b90843459075d42863fdb
Subproject commit 86b476631e7d8db5165c04718908791f9b0114e1