Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 87 → Rev 88

/trunk/controleurs/StatistiquesControleur.php
37,20 → 37,9
$graph['activite_bota'] = $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_rapport_activite_bota, $this->onto_rapport_activite_bota, 'Répartition des inscrits selon leur activité');
$graph['experience_bota'] = $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_experience_bota, $this->onto_experience_bota, 'Répartition des inscrits selon leur expérience botanique');
 
/*$WIDTH1 = $WIDTH2 = $WIDTH3 = 500;
$HEIGHT1 = $HEIGHT2 = $HEIGHT3 = 1500;
 
$image = imagecreatetruecolor(500,1500);
imagecopy($image, $graph['pays'],0, 0, 0, 0, $WIDTH1,$HEIGHT1);
imagecopy($image, $graph['activite_bota'],0, 500, 0, 0, $WIDTH1,$HEIGHT1);
imagecopy($image, $graph['experience_bota'],0, 1000, 0, 0, $WIDTH1,$HEIGHT1);*/
 
//Debug::printr($graph);
 
//TODO remplacer le fouillis ci dessus par ce qui suit
$image = $this->statistiques->combinerGraphiques($graph);
 
// Stream the result back as a PNG image
// Envoi d'une image png
header("Content-type: image/png");
imagepng ($image);