1,47 → 1,34 |
<div class="onglet_contenu" id="statut"> |
<h2>Statuts de protection</h2> |
<?php if(!empty($statuts) && is_array($statuts)) { ?> |
<?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']; ?> |
<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']; ?> |
</a> |
(<?= $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 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; ?> |
<?php endif; ?> |
</table> |
<?php } ?> |
<?php endforeach; ?> |
<?php endif; ?> |
</table> |
<div class="conteneur_lien_metadonnees"> |
<?=$statuts['meta']['citation']?> |
<span class="conteneur_lien_metadonnees"> |