Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1111 → Rev 1112

/trunk/metier/api_0.1/Cartes.php
59,7 → 59,7
public function getUrlMapSvg() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'text/html');
'largeur' => $this->largeur, 'mime_type' => 'text/html', 'methode' => 'afficher');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
67,11 → 67,27
public function getUrlMapPng() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'image/png');
'largeur' => $this->largeur, 'mime_type' => 'image/png', 'methode' => 'afficher');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlTelechargementMapPng() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'image/png', 'methode' => 'telecharger');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlTelechargementMapHtml() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'text/html', 'methode' => 'telecharger');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlEflorePng() {
$tpl = Config::get('efloreCarteTpl');
$params = array('num_nom' => $this->nom->get('id'), 'num_tax' => $this->nom->get('num_taxonomique') ,
/trunk/modules/fiche/formateurs/Repartition.php
89,6 → 89,8
$this->cartes->setInfoNom($this->nomCourant->getNt());
$this->cartes->setInfoReferentiel($this->referentiel);
$eflore['mapUrl'] = $this->cartes->getUrlMapSvg();
$eflore['mapTelechargementUrls'] = array('png' => $this->cartes->getUrlTelechargementMapPng(),
'html' => $this->cartes->getUrlTelechargementMapHtml());
$eflore['legende'] = $this->cartes->getLegende();
$this->donnees['moissonnage'] = $eflore;
}
/trunk/modules/fiche/squelettes/fiche_repartition.tpl.html
39,6 → 39,11
</div>
<? endforeach; ?>
</div>
<div id="carte_telechargement">
<span>Télécharger la carte au format </span>
<a href="<?=$moissonnage['mapTelechargementUrls']['png']; ?>">png</a>&nbsp;
<a href="<?=$moissonnage['mapTelechargementUrls']['html']; ?>">html</a>
</div>
</div>
<hr class="nettoyage" />
<?endif;?>