Subversion Repositories Applications.annuaire

Rev

Rev 61 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61 Rev 88
Line 35... Line 35...
35
		//$this->obtenirStatistiquesParPays($id_annuaire);
35
		//$this->obtenirStatistiquesParPays($id_annuaire);
36
		$graph['pays'] =  $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_pays, $this->onto_pays);
36
		$graph['pays'] =  $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_pays, $this->onto_pays);
37
		$graph['activite_bota'] = $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_rapport_activite_bota, $this->onto_rapport_activite_bota, 'Répartition des inscrits selon leur activité');
37
		$graph['activite_bota'] = $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_rapport_activite_bota, $this->onto_rapport_activite_bota, 'Répartition des inscrits selon leur activité');
38
		$graph['experience_bota'] =  $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_experience_bota, $this->onto_experience_bota, 'Répartition des inscrits selon leur expérience botanique');
38
		$graph['experience_bota'] =  $this->obtenirStatistiquesParCritere($id_annuaire, $this->champ_experience_bota, $this->onto_experience_bota, 'Répartition des inscrits selon leur expérience botanique');
Line 39... Line -...
39
 
-
 
40
		/*$WIDTH1 = $WIDTH2 = $WIDTH3 = 500;
-
 
41
		$HEIGHT1 = $HEIGHT2 = $HEIGHT3 = 1500;
-
 
42
 
-
 
43
		$image = imagecreatetruecolor(500,1500);
-
 
44
		imagecopy($image, $graph['pays'],0, 0, 0, 0, $WIDTH1,$HEIGHT1);
-
 
45
		imagecopy($image, $graph['activite_bota'],0, 500, 0, 0, $WIDTH1,$HEIGHT1);
-
 
46
		imagecopy($image, $graph['experience_bota'],0, 1000, 0, 0, $WIDTH1,$HEIGHT1);*/
-
 
47
 
-
 
48
		//Debug::printr($graph);
-
 
49
 
-
 
50
		//TODO remplacer le fouillis ci dessus par ce qui suit
39
 
Line 51... Line 40...
51
		$image = $this->statistiques->combinerGraphiques($graph);
40
		$image = $this->statistiques->combinerGraphiques($graph);
52
 
41
 
53
		// Stream the result back as a PNG image
42
		// Envoi d'une image png
Line 54... Line 43...
54
		header("Content-type: image/png");
43
		header("Content-type: image/png");
55
		imagepng ($image);
44
		imagepng ($image);