1
0
Fork 0

adiccion de plantillas en geojson /geojson.php?id=321&plantilla=miplantilla

This commit is contained in:
fredyrivera 2017-03-02 08:35:25 -05:00
parent aa4aaa794c
commit 12711e4bd8
2 changed files with 9 additions and 3 deletions

View File

@ -3295,7 +3295,7 @@ $archivo = "$_SESSION[path_images_secure]/full/".$file; // Ponemos el . antes de
imagealphablending( $thumb, false );
imagesavealpha( $thumb, true ); // La redimensionamos imagecopyresampled($thumb, $img, 0, 0, 0, 0, $newwidth, $newheight, $file_info[0], $file_info[1]); // La mostramos como jpg //header("Content-type: image/jpeg"); imagejpeg($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 80);
imagepng($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 9);
//imagegif($thumb,"$_SESSION[path_images_secure]/".$width."/$file");
imagegif($thumb,"$_SESSION[path_images_secure]/".$width."/$file");
//imagejpeg($thumb,null, 80);
}
@ -8301,6 +8301,7 @@ return $resultado;
function imprime_geojson($id,$id2,$plantilla,$busqueda){
$id_form = mysql_seguridad($id);
$id_form2 = mysql_seguridad($id2);

View File

@ -7,9 +7,14 @@ require ('funciones/convert.php');
require ("funciones/conex.php");
if(!isset($_REQUEST['plantilla'])) {
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]");
}else{
$geojson = imprime_geojson("$_REQUEST[id]","","$_REQUEST[plantilla]","$_REQUEST[buscar]");
}
//header('Content-Type: application/json');
echo $geojson;