diff --git a/index.php b/index.php
index 99583ca..f27b04a 100644
--- a/index.php
+++ b/index.php
@@ -73,6 +73,7 @@ $orden="";
$cantidad_registros ="10";
$librerias_cabeza ="";
$librerias_pie ="";
+$modo="";
@@ -98,6 +99,7 @@ $librerias_pie ="";
/// r = banner
/// s= SET DE DATOS *
/// S= SET DE DATOS EMBEBIDO
+/// t= tareas
//$destacados = mas_visto("ultimos","6","6");
@@ -145,7 +147,81 @@ if($plantilla_inicio[0] =="grid"){}else{
}
}
-}
+}elseif ($v[0] =='t') {
+ $modo="minimalista";
+ $plantilla_inicio[0]='grid';
+ $formulario_equipo ="998";
+ $formulario_tareas ="1071";
+ $equipo_titulo = remplacetas('form_id','id',"$formulario_equipo",'nombre',"") ;
+ $equipo_descripcion = remplacetas('form_id','id',"$formulario_equipo",'descripcion',"") ;
+ $tareas_titulo = remplacetas('form_id','id',"$formulario_tareas",'nombre',"") ;
+ $tareas_descripcion = remplacetas('form_id','id',"$formulario_tareas",'descripcion',"") ;
+ /// equipo ///
+ $equipo = listado_entradas("$formulario_equipo","","avatar");
+ $equipo_listado="";
+ foreach($equipo as $control => $valor)
+ {
+ // $onclick_avatar ="xajax_formulario_embebido_ajax('','$formulario','$control','edit') ";
+ $equipo_listado .="
$titulo[0]
$descripcion[0]
diff --git a/labcluster.php b/labcluster.php
index edb768d..41df277 100644
--- a/labcluster.php
+++ b/labcluster.php
@@ -113,30 +113,13 @@ map.on('click', 'clusters', function (e) {
);
});
-/*
+
// When a click event occurs on a feature in
// the unclustered-point layer, open a popup at
// the location of the feature, with
// description HTML from its properties.
- map.on('click', 'unclustered-point', function (e) {
- var coordinates = e.features[0].geometry.coordinates.slice();
- // var mag = e.features[0].properties.mag;
- var descripcion = e.features[0].properties.description;
- // Ensure that if the map is zoomed out such that
- // multiple copies of the feature are visible, the
- // popup appears over the copy being pointed to.
- while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) {
- coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360;
- }
- new mapboxgl.Popup()
- .setLngLat(coordinates)
- // .setHTML( 'magnitude: ' + mag + '
Was there a tsunami?: ' + tsunami )
- .setHTML( descripcion )
- .addTo(map);
- });
-*/
// Store IDs and cluster/marker HTMLElements
const markers = new Map();
@@ -148,7 +131,7 @@ map.on('click', 'clusters', function (e) {
const coords = features[ i ].geometry.coordinates;
const props = features[ i ].properties;
const icono = features[ i ].properties.imagen;
- const descripcion = features[ i ].properties.descripcion;
+ const descripcion = features[ i ].properties.description;
const featureID = features[ i ].properties.control;
const clusterID = props.cluster_id || null;
@@ -193,10 +176,11 @@ map.on('click', 'clusters', function (e) {
// el.style.borderRadius = '50%';
el.dataset.type = props.type;
el.addEventListener('click', function() {
- window.alert("Hola mundo");
+ // window.alert("Hola mundo");
- var popup = new mapboxgl.Popup()
+ var popup = new mapboxgl.Popup({ closeOnClick: false })
.setLngLat(coords)
+ //.setHTML(descripcion)
.setHTML(descripcion)
.addTo(map);
});
diff --git a/milfs b/milfs
index 1721573..8a13fc6 160000
--- a/milfs
+++ b/milfs
@@ -1 +1 @@
-Subproject commit 1721573c8e8131e229b4fb3d0575b12bbcb01975
+Subproject commit 8a13fc6683ae6ca5a8b08d3066e2fdc5ff6cb608