/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html |
---|
1,6 → 1,7 |
<div id="repartition"> |
<img src="<?=$img?>" /><br /> |
<div id="legende" style="padding:15px;"> |
<h3>Légende</h3><br /> |
<? foreach ($legende as $id => $details) :?> |
<div style="clear:left; "> |
<div style="float:left; margin-right:5px; margin-bottom:3px; width:15px; height:15px; border:solid 1px black; background:<?=$details['couleur']?>"></div> |
8,4 → 9,6 |
</div> |
<? endforeach; ?> |
</div> |
<div id="metadonnees"> |
<?=$metadonnees[0]['citation']?> |
</div> |
/trunk/modules/fiche/Fiche.php |
---|
67,6 → 67,7 |
$repartition = new Repartition($this->num_nom); |
$donnees['img'] = $repartition->getUrlImage(); |
$donnees['legende'] = $repartition->getLegende(); |
$donnees['metadonnees'] = $repartition->getMetaDonnees(); |
} |
return $donnees; |
} |
/trunk/modules/fiche/formateurs/Repartition.php |
---|
13,18 → 13,23 |
* @version $Id$ |
*/ |
class Repartition extends aControleur { |
private $serviceRepartition = null; |
private $serviceChorodep = null; |
public function __construct($num_nom, $type = 'nn') { |
$this->serviceRepartition = new Cartes($num_nom, $type); |
} |
$this->serviceChorodep = new Cartes('chorodep', $num_nom, $type); |
$this->serviceMetaDonneesChorodep = new MetaDonnees('chorodep'); |
} |
public function getUrlImage() { |
return $this->serviceRepartition->getUrlImage(); |
return $this->serviceChorodep->getUrlImage(); |
} |
public function getLegende () { |
return $this->serviceRepartition->getLegende(); |
return $this->serviceChorodep->getLegende(); |
} |
public function getMetaDonnees () { |
return $this->serviceMetaDonneesChorodep->getMetaDonnees(); |
} |
} |
?> |