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 CbnmedFormateur implements Formateur {
2
class CbnmedFormateur 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['cbnmed'], Config::get('cache.stockageChemin').$this->dest_map['cbnmed'], $qualite);
10
		imagejpeg($this->img['cbnmed'], Config::get('cache.stockageChemin').$this->dest_map['cbnmed'], $qualite);
Line 80... Line 79...
80
		}
79
		}
81
		return $usemap;
80
		return $usemap;
82
	}
81
	}
Line 83... Line 82...
83
	
82
	
84
	public function formaterCartes($usemap) {
83
	public function formaterCartes($usemap) {
-
 
84
		$retour = Config::get('Cartes.cel_dst').$this->dest_map['cbnmed'];
85
		$retour=  "<img src=\"".(Config::get('Cartes.cel_dst').$this->dest_map['cbnmed'])."\" style=\"border:none; cursor:crosshair\" alt=\"\" usemap=\"#themapcbnmed\"></img><br />\n";
85
		if ($this->info['retour'] == self::MIME_MAP) {
86
		$retour.=  "<map name=\"themapcbnmed\" id=\"themapcbnmed\">";
86
			$retour =  "<img src=\"".$retour."\" style=\"border:none; ".
87
		$retour.=  $usemap['cbnmed'];
87
					"cursor:crosshair\" alt=\"\" usemap=\"#themap\" /><br />\n".
88
		$retour.=  "</map>";
88
					"<map name=\"themap\" id=\"themap\">".utf8_encode($usemap['cbnmed'])."</map>";
89
 
89
		}
90
		return $retour;
90
		return $retour;