$primer
Creado por: $propietario[0] |
Creación: $row[creacion] |
- $mapa $estado
+ $mapa $estado $modificable
Modificar campos |
Llenar |
@@ -2701,10 +2824,15 @@ function formulario_modal($id,$form_respuesta,$control,$tipo) {
$pie .= empresa_datos("$id_empresa",'pie');
$formulario_descripcion = remplacetas('form_id','id',$id,'descripcion') ;
$cabecera ="$encabezado
$formulario_nombre[0]
$formulario_descripcion[0]
$nuevo_formulario ";
+/*
+ $modificable = remplacetas('form_id','id',$id,'modificable') ;
$publico = remplacetas('form_id','id',$id,'publico') ;
- if($publico[0] != 1 AND (!isset ( $_SESSION[id]) )) {
+ if($modificable[0] != "1" and (!isset ( $_SESSION[id]) )){$restringido = 1;}
+ elseif($publico[0] != "1" and (!isset ( $_SESSION[id]) )) {$restringido = 1;}
+ else{$restringido=0;}
+ if($restringido === 1 ) {
$muestra_form ="
-
+ $restringido $modificable[0]
Este formulario no esta disponible publicamente.
";
$respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
@@ -2712,27 +2840,31 @@ $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
$respuesta->addAssign("pie_modal","innerHTML","$pie");
$respuesta->addscript("$('#muestraInfo').modal('toggle')");
return $respuesta;
-
- }
+ }
+*/
$nuevo_formulario = "
Llenar otro formulario ";
- if($control !='' AND $tipo =='' ) {
-
-$impresion = formulario_imprimir("$id","$control","");
-
-$formulario_nombre = remplacetas('form_id','id',$id,'nombre') ;
-$muestra_form = "
$impresion
";
-
-
-$respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
-$respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
-$respuesta->addAssign("pie_modal","innerHTML","$pie");
-$respuesta->addscript("$('#muestraInfo').modal('toggle')");
-return $respuesta;
-
-
-}
-
+if($control !='' AND $tipo =='' ) {
+ $impresion = formulario_imprimir("$id","$control","");
+ $formulario_nombre = remplacetas('form_id','id',$id,'nombre') ;
+ $muestra_form = "
$impresion
";
+ $respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
+ $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
+ $respuesta->addAssign("pie_modal","innerHTML","$pie");
+ $respuesta->addscript("$('#muestraInfo').modal('toggle')");
+ return $respuesta;
+ }
+ $modificable = remplacetas('form_id','id',$id,'modificable') ;
+ if($modificable[0] != "1" and (!isset ( $_SESSION[id]) )) {
+ $resultado ="
Acceso restringido
No se pueden consultar los datos.";
+ $respuesta->addAssign("muestra_form","innerHTML","$resultado");
+ $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
+ $respuesta->addAssign("pie_modal","innerHTML","$pie");
+ $respuesta->addscript("$('#muestraInfo').modal('toggle')");
+ return $respuesta;
+ }
+
+
$consulta = "
SELECT * FROM form_id, form_contenido_campos
WHERE form_id.id = form_contenido_campos.id_form
diff --git a/milfs/images/100x100.png b/milfs/images/100x100.png
new file mode 100755
index 0000000..5f90606
Binary files /dev/null and b/milfs/images/100x100.png differ
diff --git a/milfs/images/200x200.png b/milfs/images/200x200.png
new file mode 100755
index 0000000..3b6945c
Binary files /dev/null and b/milfs/images/200x200.png differ
diff --git a/milfs/images/transparente40.png b/milfs/images/transparente40.png
new file mode 100644
index 0000000..94ae095
Binary files /dev/null and b/milfs/images/transparente40.png differ
diff --git a/milfs/images/transparente50.png b/milfs/images/transparente50.png
new file mode 100644
index 0000000..ba3b13a
Binary files /dev/null and b/milfs/images/transparente50.png differ
diff --git a/milfs/json.lab.php b/milfs/json.lab.php
new file mode 100755
index 0000000..8625d67
--- /dev/null
+++ b/milfs/json.lab.php
@@ -0,0 +1,114 @@
+$lat,'lon'=>$lon);
+
+ $formulario = formulario_imprimir($row[id],$row[control],'full');
+ $propiedades = formulario_imprimir_linea($row[id],$row[control],"array");//
+ $propiedades["name"] ="
$formulario
";
+ //$propiedades["title"] ="images/pin.png";
+ //$propiedades[icon][iconUrl] = "images/pin.png";
+
+ //formulario_imprimir($id,$control)
+ //$marcador["zoom"] = $zoom;
+ //$geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK).",\"properties\":{}},";
+ $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT)."},";
+ $features[] = $marcador;
+ //$resultado .= "
$row[tipo]
$row[title]
$row[description]
";
+
+ $id++;
+ }
+
+}
+/*
+//encode and output jsonObject
+header('Content-Type: text/plain');
+//echo $consulta;
+$resultado = " { \"type\": \"FeatureCollection\",
+ \"features\": ";
+$resultado .= json_encode($features,JSON_NUMERIC_CHECK);
+$resultado .= "}";
+//echo $resultado;
+$geometria = substr("$geometria",0,-1);
+$geometria = "{
+ \"type\": \"FeatureCollection\",
+ \"features\": [$geometria ]}";
+return $geometria;
+*/
+
+//-75.58295 6.25578 16
+//{"geometry": {"type": "Point", "coordinates": [48.460711540220927, 39.562486386735543]}, "type": "Feature", "properties": {}}
+//encode and output jsonObject
+header('Content-Type: application/json');
+//echo $consulta;
+//$resultado = " { \"type\": \"FeatureCollection\", \"features\": ";
+$resultado .= json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
+//$resultado .= "}";
+//echo $resultado;
+$geometria = substr("$geometria",0,-1);
+/*$geometria = "{
+ \"type\": \"FeatureCollection\",
+ \"features\": [$geometria ]}";
+ */
+echo $geometria;
+
+?>
\ No newline at end of file
diff --git a/milfs/map.php b/milfs/map.php
index 4bf63be..8b53b23 100644
--- a/milfs/map.php
+++ b/milfs/map.php
@@ -5,7 +5,10 @@ $xajax = new xajax();
//require ('json.lab.php');
require ('funciones/funciones.php');
//require ('funciones/convert.php');
+$xajax->processRequests();
+if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
+$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ;
?>
@@ -52,7 +55,7 @@ $formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
-
">
+
@@ -61,7 +64,7 @@ L.mapbox.accessToken = 'pk.eyJ1IjoiaHVtYW5vIiwiYSI6IlgyRTFNdFEifQ.OmQBXmcVg_zq-v
var map = L.mapbox.map('map', 'humano.jki5hno0')
.setView([40, -74.50], 8);
-var geoJson = [ ];
+var geoJson = [ ];
var myLayer = L.mapbox.featureLayer()
.setGeoJSON(geoJson)
.addTo(map);
@@ -87,6 +90,7 @@ myLayer.setGeoJSON(geoJson);
diff --git a/milfs/mapa.php b/milfs/mapa.php
index bf256b5..5713fa7 100644
--- a/milfs/mapa.php
+++ b/milfs/mapa.php
@@ -17,6 +17,38 @@
+
var map = L.map('map')
- .setView([, ], );
+ // .setView([, ], );
+ .setView([latitude, longitude], );
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
//var lat = window.parent.document.getElementById('lat');
diff --git a/milfs/rt.php b/milfs/rt.php
new file mode 100644
index 0000000..b777b3c
--- /dev/null
+++ b/milfs/rt.php
@@ -0,0 +1,156 @@
+processRequests();
+if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
+$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
+$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ;
+?>
+
+
+
+
+
MILFS
+
+
+
+
+
+
+
+
+
MILFS
+
+
+
+
+
+
+ printJavascript("xajax/"); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file