diff --git a/funciones/funciones.php b/funciones/funciones.php index 573777b..f13b839 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -8487,7 +8487,7 @@ mysqli_set_charset($link, "utf8"); //$campo_titulo_nombre = remplacetas('form_campos','id',$campo_titulo[0],'campo_nombre',"") ; if($categoria_campo >0 ) { $consulta = " - SELECT distinct(contenido) , md5(binary contenido) as md5_contenido, control FROM form_datos + SELECT distinct(contenido) , md5(binary contenido) as md5_contenido, control , timestamp FROM form_datos WHERE form_id = '$perfil' AND contenido = '$categoria' GROUP BY control @@ -8528,7 +8528,7 @@ $resultadox .= " $contenido "; //$resultado .="
  • $contenido
  • "; -$resultado .="
  • $titulo[0]
  • "; +$resultado .="
  • $titulo[0]
  • "; } $resultado .= " "; } @@ -12572,12 +12572,12 @@ function imprime_geojson($id,$id2,$plantilla,$busqueda,$item){ $busqueda = explode(':',$busqueda); if($busqueda[1] !="") { $busqueda[1] = htmlentities($busqueda[1]); - $consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data FROM `form_datos` WHERE (form_id = '$id_form' $w_id2 AND id_campo ='$busqueda[0]' AND contenido COLLATE utf8_spanish2_ci like '%$busqueda[1]%' ) group by control ORDER BY orden desc"; + $consulta = "SELECT form_id as id, control, timestamp, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data FROM `form_datos` WHERE (form_id = '$id_form' $w_id2 AND id_campo ='$busqueda[0]' AND contenido COLLATE utf8_spanish2_ci like '%$busqueda[1]%' ) group by control ORDER BY orden desc"; } elseif($item !=""){ -$consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data +$consulta = "SELECT form_id as id, control, timestamp, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data FROM `form_datos` WHERE control= '$item' limit 1"; @@ -12585,7 +12585,7 @@ limit 1"; else{ -$consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data +$consulta = "SELECT form_id as id, control, timestamp , GROUP_CONCAT(contenido ORDER by timestamp desc ) as data FROM `form_datos` WHERE (form_id = '$id_form' $w_id2 ) AND ( id_campo ='$id_campo' $or_2 ) @@ -12641,7 +12641,7 @@ while( $row = mysqli_fetch_array( $sql ) ) { $propiedades['description'] ="$titulo[0]"; } $propiedades['control'] = "$row[control]"; $propiedades["latLng"] = array($lat,$lon); - $propiedades['id'] = rand();; + $propiedades['time'] = $row['timestamp'];; $propiedades['name'] = rand();; //$propiedades[description] ="
    $formulario
    "; $propiedades['description'] ="$formulario
    Mostrar todos Mostar solo este
    ";