Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 314 → Rev 315

/trunk/services/modules/0.1/eflore/cartes/CelFormateur.php
2,8 → 2,7
class CelFormateur 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() {
78,12 → 77,13
return $usemap;
}
public function formaterCartes($usemap) {
$retour= "<img src=\"".(Config::get('Cartes.cel_dst').$this->dest_map['cel'])."\" style=\"border:none; cursor:crosshair\" alt=\"\" usemap=\"#themapcel\"></img><br />\n";
$retour.= "<map name=\"themapcel\" id=\"themapcel\">";
$retour.= $usemap['cel'];
$retour.= "</map>";
public function formaterCartes($usemap) {
$retour = Config::get('Cartes.cel_dst').$this->dest_map['cel'];
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['cel'])."</map>";
}
return $retour;
}