1
0
forked from qwerty/milfs

creacion de datos con un click

This commit is contained in:
humano 2020-04-06 16:58:18 -05:00
parent 86b476631e
commit 53b34a046c
3 changed files with 36 additions and 87 deletions

View File

@ -12451,81 +12451,7 @@ function formulario_embebido_ajax($datos,$id,$opciones,$tipo){
$impresion
<!-- formulario_areas -->
</div>
<style>
.modal {
position: fixed;
top: 200;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.modal-dialog {
position: fixed;
margin: 200;
width: 100% !important;
height: 100% !important;
padding: 0;
}
.modal-content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 2px solid #3c7dcf;
border-radius: 0;
box-shadow: none;
}
.modal-header {
position: absolute;
top: 0;
right: 0;
left: 0;
height: 100px;
padding: 10px;
background: #ECEFEF;
border: 0;
}
.modal-title {
color: #fff;
line-height: 30px;
}
.modal-body {
position: absolute;
top: 100px;
bottom: 60px;
width: 100%;
// font-weight: 300;
overflow: auto;
}
.modal-footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
//height: 60px;
padding: 10px;
background: #f1f3f5;
}
::-webkit-scrollbar {
-webkit-appearance: none;
width: 10px;
background: #f1f3f5;
border-left: 1px solid darken(#f1f3f5, 10%);
}
::-webkit-scrollbar-thumb {
background: darken(#f1f3f5, 20%);
}
</style>
";
$respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
$respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
@ -17494,6 +17420,7 @@ $multiple=mysqli_result($sql,0,"multiple");
elseif($campo_tipo_accion == 'rango'){
$rango = rango("form_campos_valores","campo_valor","id_form_campo","$id_campo","$value","".$id_campo."[".$item."]",""); $render = "$rango <small>$campo_descripcion</small> ";}
elseif($campo_tipo_accion == 'mapa'){
$lat="";
$lon="";
$zoom="";

View File

@ -9,7 +9,12 @@ function delayTimer() {
var delayFunction = delayTimer();
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function revisarSession(sesion){
tiempo = "30";
gavela="19";

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
@ -16,7 +16,7 @@
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
crossorigin=""></script>
-->
<script src="js/scripts.js"></script>
<link rel="stylesheet" href="librerias/leaflet/leaflet.css"/>
<script src="librerias/leaflet/leaflet.js"></script>
<style>
@ -29,20 +29,37 @@
<div id='map'></div>
<?php
<?php
$ubicacion = $_COOKIE['ubicacion'];
$coordenadas = explode("|",$ubicacion);
if($coordenadas[0] !="" AND $coordenadas[1] !="" ){
$lon = $coordenadas[0];
$lat = $coordenadas[1];
$zoom = "20";
}else{
if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "20";}
}
?>
<script>
//var e.latlng= localizacion;
//alert(localizacion);
var map = L.map('map')
.setView([<?php echo $lon ?>, <?php echo $lat ?>], <?php echo $zoom ?>);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
<?php
<?php
if(!isset($_REQUEST['exif'])) { ?>
function onLocationFound(e) {
//var radius = e.accuracy / 2;
var marker = L.marker(e.latlng,{draggable: true}).addTo(map);
@ -53,14 +70,14 @@ function onLocationFound(e) {
map.setZoom(<?php echo $zoom; ?>);
var m = marker.getLatLng();
mapa.value= m.lng+' '+m.lat+' <?php echo $zoom; ?>';
function ondragend() {
var m = marker.getLatLng();
var z = map.getZoom();
map.setZoom(z);
mapa.value= m.lng+' '+m.lat+' '+z;
}
@ -81,7 +98,7 @@ function ondragend() {
map.on('locationfound', onLocationFound);
map.locate({setView: true, maxZoom: 20});
<?php }else{ ?>
var marker = L.marker([<?php echo $lon ?>,<?php echo $lat ?>],{draggable: true}).addTo(map);
var mapa = window.parent.document.getElementById('<?php echo $_REQUEST[id]?>');
marker.on('dragend', ondragend);
@ -91,7 +108,7 @@ function ondragend() {
var z = map.getZoom();
mapa.value= m.lng+' '+m.lat+' '+z;
}
<?php } ?>
@ -120,6 +137,6 @@ function ondragend() {
}*/
</script>
<?php echo " Hola mundo $lat / $lon / $zoom";; ?>
</body>
</html>