Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 314 → Rev 315

/trunk/services/modules/0.1/eflore/cartes/CbnmedFormateur.php
2,8 → 2,7
class CbnmedFormateur implements Formateur {
public $dest_map = array();
public $img = array();
public function __construct($parametres, $info) {
$this->param = $parametres;
public function __construct($info) {
$this->info = $info;
}
public function img() {
82,11 → 81,12
}
public function formaterCartes($usemap) {
$retour= "<img src=\"".(Config::get('Cartes.cel_dst').$this->dest_map['cbnmed'])."\" style=\"border:none; cursor:crosshair\" alt=\"\" usemap=\"#themapcbnmed\"></img><br />\n";
$retour.= "<map name=\"themapcbnmed\" id=\"themapcbnmed\">";
$retour.= $usemap['cbnmed'];
$retour.= "</map>";
 
$retour = Config::get('Cartes.cel_dst').$this->dest_map['cbnmed'];
if ($this->info['retour'] == self::MIME_MAP) {
$retour = "<img src=\"".$retour."\" style=\"border:none; ".
"cursor:crosshair\" alt=\"\" usemap=\"#themap\" /><br />\n".
"<map name=\"themap\" id=\"themap\">".utf8_encode($usemap['cbnmed'])."</map>";
}
return $retour;
}