Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 314 Rev 315
Line 1... Line 1...
1
<?php
1
<?php
2
class CenlrFormateur implements Formateur {
2
class CenlrFormateur implements Formateur {
3
	public $dest_map = array();
3
	public $dest_map = array();
4
	public $img = array();
4
	public $img = array();
5
	public function __construct($parametres, $info) {
5
	public function __construct($info) {
6
		$this->param = $parametres;
-
 
7
		$this->info = $info;
6
		$this->info = $info;
8
	}
7
	}
9
	public function img() {
8
	public function img() {
10
		$qualite = 90;
9
		$qualite = 90;
11
		imagejpeg($this->img['cenlr'], Config::get('cache.stockageChemin').$this->dest_map['cenlr'], $qualite);
10
		imagejpeg($this->img['cenlr'], Config::get('cache.stockageChemin').$this->dest_map['cenlr'], $qualite);
Line 78... Line 77...
78
		}
77
		}
79
		return $usemap;
78
		return $usemap;
80
	}
79
	}
Line 81... Line 80...
81
	
80
	
82
	public function formaterCartes($usemap) {
81
	public function formaterCartes($usemap) {
-
 
82
		$retour = Config::get('Cartes.cel_dst').$this->dest_map['cenlr'];
83
		$retour =  "<img src=\"".(Config::get('Cartes.cel_dst').$this->dest_map['cenlr'])."\" style=\"border:none; cursor:crosshair\" alt=\"\" usemap=\"#themapcenlr\"></img><br />\n";
83
		if ($this->info['retour'] == self::MIME_MAP) {
84
		$retour .=  "<map name=\"themapcenlr\" id=\"themapcenlr\">";
84
			$retour =  "<img src=\"".$retour."\" style=\"border:none; ".
85
		$retour .=  $usemap['cenlr'];
85
					"cursor:crosshair\" alt=\"\" usemap=\"#themap\" /><br />\n".
86
		$retour .=  "</map>";
86
					"<map name=\"themap\" id=\"themap\">".utf8_encode($usemap['cenlr'])."</map>";
87
 
87
		}
88
		return $retour;
88
		return $retour;
Line 89... Line 89...
89
	}
89
	}
90
	
90