Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 696 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!-- REPARTITION -->
<div class="bloc no-break">
        <div class="categorie"> Répartition </div>

        <!-- CHOROLOGIE DEPARTEMENTALE -->      
        <? if (!empty($repartition['chorodep']['svgUrl']) && !empty($repartition['chorodep']['legende']) ) : ?>
        <div class="deux-colonnes">
                <h2>Chorologie départementale</h2>
                <div class="repartition_observations allow-break">
                 <!--version svg laisser attribut alt au cas où svg ne marche pas -->
                        <object  style=" height:200px;" type="image/svg+xml" data="<?=$repartition['chorodep']['svgUrl']?>"  alt="<?=$repartition['min']['chorodep']?>">     
                        </object>
                        <!-- version png  --><!--  <img src="<?=$repartition['min']['chorodep']?>" />-->
                </div>
                <div class="legende_r allow-break">
                        <? foreach ($repartition['chorodep']['legende'] as $id => $details) :?>
                                        <div style="clear:left; ">
                                                <div class="bloc_legende_repartition" style="background:<?=$details['couleur']?>"></div>
                                                <div class="texte_legende_repartition"><b><?=$details['nom']?></b></div>
                                        </div>
                        <? endforeach;  ?>
                </div>
        </div>
        <?php endif; ?>
        
        <!-- OBSERVATIONS -->
        <? if (!empty($repartition['eflore']['min']) && !empty($repartition['eflore']['legende'])) : ?>
        <div class="deux-colonnes">
        <h2>Observations</h2>
           <div class="repartition_observations allow-break" >
                        <img src="<?=$repartition['eflore']['min']?>" />        
                </div>
                <div  class="legende_r allow-break">
                        <? foreach ($repartition['eflore']['legende'] as $id => $details) :?>
                                        <div style="clear:left;">
                                                <div class="bloc_legende_repartition" style="background:<?=$details['couleur']?>"></div>
                                                <div class="texte_legende_repartition" ><b><?=$details['nom']?> : </b><?=$details['description']?></div>
                                        </div>
                        <? endforeach;  ?>
                </div>
        </div>
        <?php endif; ?>
        
        <hr class="nettoyage" />
        
        <!-- VIDE DE DONNEES -->
        <?php if (empty($repartition['chorodep']['svgUrl']) 
        && empty($repartition['chorodep']['legende'])
        &&  empty($repartition['eflore']['min']) 
        && empty($repartition['eflore']['legende'])) : ?>
        Aucune donnée.
        <?php endif; ?>
        
</div>
<br/>
<br/>