/branches/v1.5-cisaille/widget/modules/carto/Carto.php |
---|
41,6 → 41,7 |
private $num_taxon = null; |
private $station = null; |
private $format = null;// Format des obs pour les stations (tableau/liste) |
private $photos = null; // Seulement les obs avec photos ou bien toutes |
/** |
* Méthode appelée par défaut pour charger ce widget. |
78,6 → 79,7 |
$this->commentaire = (isset($commentaire) ? $commentaire : null); |
$this->station = (isset($station) ? $station : null); |
$this->format = (isset($format) ? $format : null); |
$this->photos = (isset($photos) ? $photos : null); |
$this->start = (isset($start) ? $start : null); |
$this->limit = (isset($limit) ? $limit : null); |
} |
103,6 → 105,7 |
$widget['donnees']['date'] = $this->date; |
$widget['donnees']['taxon'] = $this->taxon; |
$widget['donnees']['commentaire'] = $this->commentaire; |
$widget['donnees']['photos'] = $this->photos; |
$widget['donnees']['url_limites_communales'] = $this->obtenirUrlsLimitesCommunales(); |
$widget['squelette'] = 'carte_defaut'; |
119,7 → 122,7 |
$parametres_retenus = array(); |
$parametres_a_tester = array('station', 'utilisateur', 'projet', 'tag', 'dept', 'commune', |
'num_taxon', 'taxon', 'date', 'commentaire', |
'start', 'limit'); |
'start', 'limit', 'photos'); |
foreach ($parametres_a_tester as $param) { |
if (isset($this->$param) && $this->$param != '*') { |
$parametres_retenus[$param] = $this->$param; |
139,7 → 142,7 |
private function obtenirUrlsLimitesCommunales() { |
$urls = null; |
if (isset($this->dept)) { |
// si on veut afficher les limites départemmentales on va compter et chercher les noms de fichiers |
// si on veut afficher les limites départementales on va compter et chercher les noms de fichiers |
$fichiersKml = $this->chercherFichierKml(); |
if (count($fichiersKml) > 0) { |
foreach ($fichiersKml as $kml => $dossier){ |
192,4 → 195,5 |
return $widget; |
} |
} |
} |
?> |
/branches/v1.5-cisaille/widget/modules/carto/squelettes/obs_tableau.tpl.html |
---|
18,7 → 18,7 |
<tr> |
<td> |
<? if (isset($obs['nn'])) : ?> |
<a href="http://www.tela-botanica.org/nn<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a> |
<a href="http://www.tela-botanica.org/bdtfx-nn-<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a> |
<? else : ?> |
<?=$obs['nom']?> |
<? endif; ?> |
/branches/v1.5-cisaille/widget/modules/carto/squelettes/obs_liste.tpl.html |
---|
24,7 → 24,7 |
<dt class="champ_nom_latin">Nom</dt> |
<dd> |
<? if (isset($obs['nn'])) : ?> |
<a href="http://www.tela-botanica.org/nn<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a> |
<a href="http://www.tela-botanica.org/bdtfx-nn-<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a> |
<? else : ?> |
<?=$obs['nom']?> |
<? endif; ?> |
/branches/v1.5-cisaille/widget/modules/carto/squelettes/carte_defaut.tpl.html |
---|
53,6 → 53,10 |
'&dept=<?=$dept?>'+ |
'&commune=<?=$commune?>'+ |
'&commentaire=<?=$commentaire?>'; |
var photos = '<?= ($photos != null) ? $photos : null; ?>'; |
if(photos != null) { |
filtreCommun += '&photos=<?=rawurlencode($photos)?>'; |
} |
var stationsUrl = '<?=$url_cel_carto?>/stations'+'?'+ |
'num_taxon='+nt+ |
filtreCommun; |
83,7 → 87,7 |
<img src="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" alt="TB" /> |
</a> |
</span> |
<span id="obs-nbre"> </span> observations |
<span id="obs-nbre"> </span> observations <?= ($photos != null && $photos == 1) ? 'avec photos' : ''; ?> |
<span class="plante-titre">de <span class="plantes-nbre"> </span> plantes</span> sur |
<span id="commune-nbre"> </span> communes |
- <a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href); arreter(event); return false;">CEL</a> (<a href="http://www.tela-botanica.org/" onclick="window.open(this.href); arreter(event); return false;">Tela Botanica</a>) |
175,7 → 179,7 |
<td> |
<span class="nom-sci"> |
{{if nn != 0}} |
<a href="http://www.tela-botanica.org/nn${nn}" |
<a href="http://www.tela-botanica.org/bdtfx-nn-${nn}" |
onclick="window.open(this.href); arreter(event); return false; "> |
${nomSci} |
</a> |
234,7 → 238,7 |
<dd title="Nom défini par l'utilisateur{{if nn != 0}}. Cliquez pour accéder à la fiche d'eFlore.{{/if}}"> |
<span class="nom-sci"> |
{{if nn != 0}} |
<a href="http://www.tela-botanica.org/nn${nn}" |
<a href="http://www.tela-botanica.org/bdtfx-nn-${nn}" |
onclick="window.open(this.href); arreter(event); return false; "> |
${nomSci} |
</a> |