From 53b34a046c034ff5436b49b05b517f3de3fa72e4 Mon Sep 17 00:00:00 2001 From: humano Date: Mon, 6 Apr 2020 16:58:18 -0500 Subject: [PATCH] creacion de datos con un click --- funciones/funciones.php | 75 +---------------------------------------- js/scripts.js | 7 +++- mapa.php | 41 +++++++++++++++------- 3 files changed, 36 insertions(+), 87 deletions(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 4a7dde0..486a6f1 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -12451,81 +12451,7 @@ function formulario_embebido_ajax($datos,$id,$opciones,$tipo){ $impresion - "; $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 $campo_descripcion ";} elseif($campo_tipo_accion == 'mapa'){ + $lat=""; $lon=""; $zoom=""; diff --git a/js/scripts.js b/js/scripts.js index d8d000c..2dca9ae 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -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"; diff --git a/mapa.php b/mapa.php index f556810..5dda255 100644 --- a/mapa.php +++ b/mapa.php @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA==" crossorigin=""> --> - +