Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1407 → Rev 1408

/trunk/modules/fiche/squelettes/fiche_statut.tpl.html
1,34 → 1,47
<div class="onglet_contenu" id="statut">
<h2>Statuts de protection</h2>
<?php if(!empty($statuts) && is_array($statuts)) { ?>
<table class="liste_statuts_protection largeur-11">
<tr>
<th>Zone géographique</th><th>Règle appliquée</th><th>Texte</th><th class="largeur-01">Nom</th>
</tr>
<?php if ($statuts != array()) : ?>
<?php foreach ($statuts as $za => $lois) : ?>
<?php if($za != "meta") : ?>
<?php foreach ($lois as $loi) : ?>
<tr>
<td><?= $za; ?></td>
<td><?= $loi['regle']; ?></td>
<td>
<?php if($loi['hyperlien_legifrance'] != "") : ?>
<a class="lien_externe" title="Voir le texte de loi relatif" href="<?= $loi['hyperlien_legifrance']; ?>">
<?= $loi['texte']; ?>
<?php if(isset($statuts[0])) { ?>
<table class="liste_statuts_protection">
<tr>
<th>Zone géographique</th><th>Règle appliquée</th><th>Texte</th>
</tr>
<?php if ($statuts != array()) : ?>
<?php foreach ($statuts as $index => $statut) : ?>
<?php if(is_numeric($index)) { ?>
<tr>
<td><?= $statut['zone_application']; ?></td>
<td><?= $statut['regle']; ?></td>
<td><a class="lien_externe" title="Voir le texte de loi relatif" href="<?= $statut['hyperlien_legifrance']; ?>">
<?= $statut['texte']; ?>
</a>
<?php else : ?>
<?= $loi['texte']; ?>
<?php endif; ?>
(<?= $loi['statut']; ?>)
</td>
<td><i><?php foreach ($loi['nom_sci'] as $nom_sci) { echo "- ".$nom_sci."<br /><br />"; } ?></i></td>
</tr>
<?php endforeach; ?>
(<?= $statut['statut']; ?>)
</td>
</tr>
<?php } ?>
<?php endforeach; ?><?php endif; ?>
</table>
<?php } else { ?>
<table class="liste_statuts_protection largeur-11">
<tr>
<th>Zone géographique</th><th>Règle appliquée</th><th>Texte</th><th class="largeur-01">Nom</th>
</tr>
<?php if ($statuts != array()) : ?>
<?php foreach ($statuts as $za => $lois) : ?>
<?php if($za != "meta") : ?>
<?php foreach ($lois as $loi) : ?>
<tr>
<td><?= $za; ?></td>
<td><?= $loi['regle']; ?></td>
<td><?= $loi['texte']; ?> (<?= $loi['statut']; ?>)</td>
<td><i><?php foreach ($loi['nom_sci'] as $nom_sci) { echo "- ".$nom_sci."<br /><br />"; } ?></i></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</table>
</table>
<?php } ?>
<div class="conteneur_lien_metadonnees">
<?=$statuts['meta']['citation']?>
<span class="conteneur_lien_metadonnees">