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

@ -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,13 +29,30 @@
<div id='map'></div>
<?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);
@ -120,6 +137,6 @@ function ondragend() {
}*/
</script>
<?php echo " Hola mundo $lat / $lon / $zoom";; ?>
</body>
</html>