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