Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 467 → Rev 468

/trunk/modules/fiche/squelettes/fiche_classification.tpl.html
1,46 → 1,40
<div id="classification">
<h2>Taxons Supérieurs</h2>
<?php if($taxons_sup != array()) { ?>
<h2>Place du taxon dans la classification</h2>
<table class="liste_taxons_superieurs">
<tr>
<th>Rang</th><th>Nom Scientifique</th><th>Num Nom</th>
<th>Rang</th><th>Nom Scientifique</th><th>Num Nom</th>
</tr>
<?php foreach($taxons_sup as $taxon) : ?>
<tr>
<td><?= $taxon['rang.libelle'] ?></td>
<td><a title="Voir la fiche de ce nom" href="<?= $urls->obtenirUrlFiche($taxon['num_nom'],'nom_scientifique', $taxon['nom_sci']); ?>">
<?= $taxon['nom_sci'] ?>
</a>
</td>
<td><?= $taxon['num_nom'] ?></td>
<?php if($taxons_sup != array()) { ?>
<?php foreach($taxons_sup as $taxon) : ?>
<tr>
<td><?= $taxon['rang.libelle'] ?></td>
<td><a title="Voir la fiche de ce nom" href="<?= $urls->obtenirUrlFiche($taxon['num_nom'],'nom_scientifique', $taxon['nom_sci']); ?>">
<?= $taxon['nom_sci'] ?>
</a>
</td>
<td><?= $taxon['num_nom'] ?></td>
</tr>
<?php endforeach; ?>
<?php } ?>
<tr class='surlignage'>
<td><?= $taxon_courant['rang.libelle'] ?></td>
<td><?= $taxon_courant['nom_sci'] ?></td>
<td><?= $taxon_courant['num_nom'] ?></td>
</tr>
<?php endforeach; ?>
<?php if($taxons_inf != array()) { ?>
<?php foreach($taxons_inf as $taxon) : ?>
<tr>
<td><?= $taxon['rang.libelle'] ?></td>
<td>
<a title="Voir la fiche de ce nom" href="<?= $urls->obtenirUrlFiche($taxon['num_nom'],'nom_scientifique', $taxon['nom_sci']); ?>">
<?= $taxon['nom_sci'] ?>
</a>
</td>
<td><?= $taxon['num_nom'] ?></td>
</tr>
<?php endforeach; ?>
<?php } ?>
</table>
<?php } else { ?>
<h3 class="aucune_info"> Aucun taxon supérieur référencé </h3>
<?php } ?>
<h2>Taxons Inférieurs</h2>
<?php if($taxons_inf != array()) { ?>
<table class="liste_taxons_inferieurs">
<tr>
<th>Rang</th><th>Nom Scientifique</th><th>Num Nom</th>
</tr>
<?php foreach($taxons_inf as $taxon) : ?>
<tr>
<td><?= $taxon['rang.libelle'] ?></td>
<td>
<a title="Voir la fiche de ce nom" href="<?= $urls->obtenirUrlFiche($taxon['num_nom'],'nom_scientifique', $taxon['nom_sci']); ?>">
<?= $taxon['nom_sci'] ?>
</a>
</td>
<td><?= $taxon['num_nom'] ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php } else { ?>
<h3 class="aucune_info"> Aucun taxon inférieur référencé </h3>
<?php } ?>
<div class="conteneur_lien_metadonnees">
<?= $meta['titre']?>
<span class="conteneur_lien_metadonnees">
/trunk/modules/fiche/formateurs/Classification.php
38,6 → 38,9
 
public function obtenirDonnees() {
$donnees['taxons_sup'] = $this->nomCourant->taxons_sup;
$donnees['taxon_courant']['rang.libelle'] = $this->nomCourant->getNomRetenu()->get('rang.libelle');
$donnees['taxon_courant']['nom_sci'] = $this->nomCourant->getNomRetenu()->get('nom_sci');
$donnees['taxon_courant']['num_nom'] = $this->nomCourant->getNomRetenu()->get('id');
$donnees['taxons_inf'] = $this->getTaxonsInferieurs();
$this->meta->setProjet('bdtfx');
$meta = $this->meta->getMetaDonnees();