| 1210 | mathias | 1 | <!-- onglet "Vignettes" -->
 | 
        
           | 106 | jpm | 2 | <ul id="ef-resultats-determination">
 | 
        
           | 923 | delphine | 3 | 	<?php if ($noms) : ?>
 | 
        
           | 1189 | mathias | 4 |   | 
        
           | 135 | jpm | 5 | 		<? foreach ($noms as $nnTaxon => $nom) : ?>
 | 
        
           | 130 | jpm | 6 | 		 	<li class="zone-resultat">
 | 
        
           | 858 | mathilde | 7 | 		 	<div class="nom-sci">
 | 
        
           | 866 | aurelien | 8 | 				<a class="lien_fiche_eflore" href="<?=$nom['urlFiche']?>" >
 | 
        
           | 146 | jpm | 9 | 					<strong class="nom-sci-retenu"><?=$nom['nomSciRetenu']?></strong>
 | 
        
           | 130 | jpm | 10 | 				</a>
 | 
        
           | 858 | mathilde | 11 | 			</div>
 | 
        
           | 311 | jpm | 12 |   | 
        
           | 931 | delphine | 13 | 			<?php if (isset($repartition)) : ?>
 | 
        
           |  |  | 14 | 				<?php if (isset($repartition['urls'][$nnTaxon]) ) : ?>
 | 
        
           |  |  | 15 | 					<img class="illustration_resultat_choro" src="<?=htmlentities($repartition['urls'][$nnTaxon])?>" alt="Carte de répartition" />
 | 
        
           |  |  | 16 | 				<?php else : ?>
 | 
        
           |  |  | 17 | 					<div class="absent">Pas de carte</div>
 | 
        
           |  |  | 18 | 			<?php endif;endif; ?>
 | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 | 			<?php if ($nom['rang'] != 'Famille' &&  $nom['rang'] != 'Genre' && $nom['rang'] != 'Ordre') : ?>
 | 
        
           |  |  | 21 | 				<?php  if (isset($imagesUrls[$nnTaxon])) : ?>
 | 
        
           | 984 | aurelien | 22 | 					<img class="illustration_resultat_cel" src="<?=htmlentities($imagesUrls[$nnTaxon][0])?>" data-num-nom="<?= $nnTaxon; ?>" title="<?= $nnTaxon; ?>" alt="Image provenant du CEL" style="width:100px;height:100px;display:block;float:right;"/>
 | 
        
           | 931 | delphine | 23 | 				<?php else : ?>
 | 
        
           |  |  | 24 | 					<p class="absent">Pas de photo<br />
 | 
        
           |  |  | 25 | 						<a href="<?=$urlWidget?>"
 | 
        
           |  |  | 26 | 							title="Ajouter une photographie au moyen du Carnet en Ligne"
 | 
        
           |  |  | 27 | 							onclick="window.open(this.href); return false;" class="contribuer">
 | 
        
           |  |  | 28 | 							Contribuer
 | 
        
           |  |  | 29 | 						</a>
 | 
        
           |  |  | 30 | 					</p>
 | 
        
           | 311 | jpm | 31 | 				<?php endif; ?>
 | 
        
           | 931 | delphine | 32 |   | 
        
           |  |  | 33 | 				<?php  if (isset($dessins) && isset($dessins[$taxons[$nnTaxon]][0])) :  ?>
 | 
        
           |  |  | 34 | 					<img class="illustration_resultat_coste" src="<?=htmlentities($dessins[$taxons[$nnTaxon]][0])?>" alt="illustration de Coste" />
 | 
        
           |  |  | 35 | 				<?php endif; ?>
 | 
        
           |  |  | 36 | 			<?php endif; ?>
 | 
        
           |  |  | 37 |   | 
        
           |  |  | 38 | 			<?php if (isset($synonymes[$nnTaxon])) : ?>
 | 
        
           |  |  | 39 | 				<?php $nbrSynonymes = count($synonymes[$nnTaxon]) ?>
 | 
        
           | 132 | jpm | 40 | 					<ul class="synonymes" style="width:100%;">
 | 
        
           |  |  | 41 | 						<?php for ($i = 0; ($i < 3); $i++) : ?>
 | 
        
           | 252 | delphine | 42 | 							<?php if (isset($synonymes[$nnTaxon][$i])) : ?>
 | 
        
           |  |  | 43 | 								<li><b>syn.</b> <?=$synonymes[$nnTaxon][$i]['nomSci']?></li>
 | 
        
           | 130 | jpm | 44 | 							<?php endif; ?>
 | 
        
           |  |  | 45 | 						<? endfor; ?>
 | 
        
           | 215 | delphine | 46 | 						<?php if ($nbrSynonymes === 4) : ?>
 | 
        
           | 252 | delphine | 47 | 							<?php if (isset($synonymes[$nnTaxon][3])) : ?>
 | 
        
           |  |  | 48 | 								<li><b>syn.</b> <?=$synonymes[$nnTaxon][3]['nomSci']?></li>
 | 
        
           | 130 | jpm | 49 | 							<?php endif; ?>
 | 
        
           | 215 | delphine | 50 | 						<?php endif; ?>
 | 
        
           |  |  | 51 | 						<?php if ($nbrSynonymes > 3 && $nbrSynonymes != 4) : ?>
 | 
        
           |  |  | 52 | 							<li class="synonymes-autres">
 | 
        
           |  |  | 53 | 								<ul>
 | 
        
           |  |  | 54 | 									<?php for ($i = 3; $i < $nbrSynonymes; $i++) : ?>
 | 
        
           | 252 | delphine | 55 | 										<li><b>syn.</b> <?=$synonymes[$nnTaxon][$i]['nomSci']?></li>
 | 
        
           | 215 | delphine | 56 | 									<? endfor; ?>
 | 
        
           |  |  | 57 | 								</ul>
 | 
        
           |  |  | 58 | 							</li>
 | 
        
           |  |  | 59 | 						<?php endif; ?>
 | 
        
           | 130 | jpm | 60 | 					</ul>
 | 
        
           |  |  | 61 | 				<?php endif; ?>
 | 
        
           |  |  | 62 | 			</li>
 | 
        
           | 135 | jpm | 63 | 		<? endforeach; ?>
 | 
        
           |  |  | 64 | 	<?php endif; ?>
 | 
        
           |  |  | 65 | 	<?php if ($nomsSansCorrespondance) : ?>
 | 
        
           |  |  | 66 | 		<li class="zone-resultat" title="Aucun nom retenu n'a été trouvé pour ces noms scientifiques">
 | 
        
           |  |  | 67 | 			<strong>Noms sans correspondance</strong>
 | 
        
           |  |  | 68 | 			<ul class="noms-ss-correspondance">
 | 
        
           |  |  | 69 | 				<?php foreach ($nomsSansCorrespondance as $nomSC) : ?>
 | 
        
           |  |  | 70 | 					<li><?=$nomSC?></li>
 | 
        
           |  |  | 71 | 				<?php endforeach; ?>
 | 
        
           |  |  | 72 | 			</ul>
 | 
        
           |  |  | 73 | 		</li>
 | 
        
           |  |  | 74 | 	<?php endif; ?>
 | 
        
           | 106 | jpm | 75 | </ul>
 | 
        
           | 116 | jpm | 76 | <script type="text/javascript">
 | 
        
           |  |  | 77 | 	//<![CDATA[
 | 
        
           |  |  | 78 | 	$(document).ready(function() {
 | 
        
           |  |  | 79 | 		ajouterToggleSynonymesAutres();
 | 
        
           |  |  | 80 | 	});
 | 
        
           |  |  | 81 | 	function ajouterToggleSynonymesAutres() {
 | 
        
           |  |  | 82 | 		$("ul#ef-resultats-determination li").each(function(index) {
 | 
        
           |  |  | 83 | 			$(this).find('.synonymes-autres').prepend('<a id="bascule-'+index+'" href="#">et plus...</a>');
 | 
        
           |  |  | 84 | 			$(this).find('.synonymes-autres ul').css('display', 'none');
 | 
        
           |  |  | 85 | 			$(this).find('.synonymes-autres ul').attr('id', 'sa-'+index);
 | 
        
           |  |  | 86 |   | 
        
           |  |  | 87 | 			$('#bascule-'+index).on('click', function() {
 | 
        
           |  |  | 88 | 				$('#sa-'+index).toggle('blind', {}, 500);
 | 
        
           |  |  | 89 | 				return false;
 | 
        
           |  |  | 90 | 			});
 | 
        
           |  |  | 91 | 		});
 | 
        
           |  |  | 92 | 	}
 | 
        
           |  |  | 93 | 	//]]>
 | 
        
           | 106 | jpm | 94 | </script>
 |