| 745 | 
           delphine | 
           1 | 
           <div id="cel-observation-contenu">
  | 
        
        
            | 
            | 
           2 | 
            <?php if (isset($erreurs) || isset($informations)) : ?>
  | 
        
        
            | 
            | 
           3 | 
           	<h1>Erreur & informations</h1>
  | 
        
        
            | 
            | 
           4 | 
           	<p>Impossible d'afficher le flux.</p>
  | 
        
        
            | 
            | 
           5 | 
           	<!-- Affichage des erreurs et messages d'information : -->
  | 
        
        
            | 
            | 
           6 | 
           	<?php if ($erreurs) : ?>
  | 
        
        
            | 
            | 
           7 | 
           		<?php foreach ($erreurs as $erreur) : ?>
  | 
        
        
            | 
            | 
           8 | 
           			<p class="erreur"><?=$erreur;?></p>
  | 
        
        
            | 
            | 
           9 | 
           		<?php endforeach; ?>
  | 
        
        
            | 
            | 
           10 | 
           	<?php endif; ?>
  | 
        
        
            | 
            | 
           11 | 
              | 
        
        
            | 
            | 
           12 | 
           	<?php if ($informations) : ?>
  | 
        
        
            | 
            | 
           13 | 
           		<?php foreach ($informations as $information) : ?>
  | 
        
        
            | 
            | 
           14 | 
           			<p class="info"><?=$information;?></p>
  | 
        
        
            | 
            | 
           15 | 
           		<?php endforeach; ?>
  | 
        
        
            | 
            | 
           16 | 
           	<?php endif; ?>
  | 
        
        
            | 
            | 
           17 | 
           	<?php else : ?>
  | 
        
        
            | 
            | 
           18 | 
           		<h1>
  | 
        
        
           | 1479 | 
           aurelien | 
           19 | 
           			<? if (!empty($titre)) : ?>
  | 
        
        
            | 
            | 
           20 | 
           		 		<?=$titre?>
  | 
        
        
            | 
            | 
           21 | 
           		 	<? endif ; ?>
  | 
        
        
            | 
            | 
           22 | 
           			<? if($icone_rss) : ?>
  | 
        
        
           | 745 | 
           delphine | 
           23 | 
           			<a href="<?=$flux_rss_url?>" id="cel-observation-flux" title="Suivre les observations"
  | 
        
        
            | 
            | 
           24 | 
           				onclick="window.open(this.href);return false;">
  | 
        
        
            | 
            | 
           25 | 
           				<img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les observations" />
  | 
        
        
            | 
            | 
           26 | 
           			</a>
  | 
        
        
           | 1479 | 
           aurelien | 
           27 | 
           			<? endif; ?>
  | 
        
        
           | 745 | 
           delphine | 
           28 | 
           		</h1>
  | 
        
        
            | 
            | 
           29 | 
           		<div id="cel-liste-observation">
  | 
        
        
            | 
            | 
           30 | 
           			<?php foreach ($items as $item) : ?>
  | 
        
        
            | 
            | 
           31 | 
           				<div id="cel-observation-<?=$item['guid']?>" class="cel-observation" rel="<?=$item['guid']?>" >
  | 
        
        
            | 
            | 
           32 | 
           					<img id="imPlus-<?=$item['guid']?>" width="10" height="10"
  | 
        
        
            | 
            | 
           33 | 
           							name="imPlus-<?=$item['guid']?>" title="Voir les informations complémentaires" alt="+"
  | 
        
        
            | 
            | 
           34 | 
           							src="http://www.tela-botanica.org/sites/commun/generique/images/plus.png" />
  | 
        
        
            | 
            | 
           35 | 
           					<img id="imMoins-<?=$item['guid']?>" width="10" height="10" class="imMoins"
  | 
        
        
            | 
            | 
           36 | 
           							name="imMoins-<?=$item['guid']?>" title="Cacher les informations complémentaires" alt="+"
  | 
        
        
            | 
            | 
           37 | 
           							src="http://www.tela-botanica.org/sites/commun/generique/images/moins.png" />
  | 
        
        
            | 
            | 
           38 | 
           					<strong>
  | 
        
        
           | 1460 | 
           aurelien | 
           39 | 
           						<?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '' && $item['eflore_url'] != 'http://www.tela-botanica.org/bdtfx-nn-0') { ?>
  | 
        
        
           | 1451 | 
           aurelien | 
           40 | 
           							<a class="cel-img-titre" href="<?=$item['eflore_url']?>"
  | 
        
        
            | 
            | 
           41 | 
           								onclick="window.open(this.href);return false;"
  | 
        
        
            | 
            | 
           42 | 
           								title="Cliquez pour accéder à la fiche eFlore">
  | 
        
        
           | 745 | 
           delphine | 
           43 | 
           								<?=$item['titre']?>
  | 
        
        
           | 1451 | 
           aurelien | 
           44 | 
           							</a>
  | 
        
        
            | 
            | 
           45 | 
           						<?php } else { ?>
  | 
        
        
            | 
            | 
           46 | 
           							<?=$item['titre']?>
  | 
        
        
            | 
            | 
           47 | 
           						<?php } ?>
  | 
        
        
           | 745 | 
           delphine | 
           48 | 
           					</strong><br />
  | 
        
        
            | 
            | 
           49 | 
           					<span class="cel-img-date">Publiée le <?=$item['date']?></span><br />
  | 
        
        
            | 
            | 
           50 | 
              | 
        
        
            | 
            | 
           51 | 
           					<div id="cel-info-<?=$item['guid']?>" class="cel-infos">
  | 
        
        
            | 
            | 
           52 | 
           						<?=$item['description']?>
  | 
        
        
            | 
            | 
           53 | 
           					</div>
  | 
        
        
           | 739 | 
           delphine | 
           54 | 
           				</div>
  | 
        
        
           | 745 | 
           delphine | 
           55 | 
           			<?php endforeach; ?>
  | 
        
        
            | 
            | 
           56 | 
           		</div>
  | 
        
        
           | 1479 | 
           aurelien | 
           57 | 
           		<p id="cel-observation-pieds" class="cel-observation-pieds discretion nettoyage">
  | 
        
        
            | 
            | 
           58 | 
           			<span class="cel-observation-source">
  | 
        
        
            | 
            | 
           59 | 
           				Source :
  | 
        
        
            | 
            | 
           60 | 
           				<a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
  | 
        
        
            | 
            | 
           61 | 
           			 		CEL
  | 
        
        
            | 
            | 
           62 | 
           			 	</a>
  | 
        
        
            | 
            | 
           63 | 
           		 	</span>
  | 
        
        
            | 
            | 
           64 | 
           		 	<span class="cel-observation-date-generation">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></span>
  | 
        
        
            | 
            | 
           65 | 
           		</p>
  | 
        
        
           | 745 | 
           delphine | 
           66 | 
           		<script type="text/Javascript">
  | 
        
        
            | 
            | 
           67 | 
           				// Function pour cacher / afficher le détail des observations
  | 
        
        
            | 
            | 
           68 | 
           				$(document).ready(function() {
  | 
        
        
           | 739 | 
           delphine | 
           69 | 
              | 
        
        
           | 745 | 
           delphine | 
           70 | 
           					$('.cel-infos').hide();
  | 
        
        
            | 
            | 
           71 | 
           					$('.imMoins').hide();
  | 
        
        
            | 
            | 
           72 | 
           					$('.cel-observation').hover(function() {
  | 
        
        
            | 
            | 
           73 | 
           						var id_obs = $(this).attr("rel");
  | 
        
        
            | 
            | 
           74 | 
           						$('#cel-info-'+id_obs).show();
  | 
        
        
            | 
            | 
           75 | 
           						$('#imPlus-'+id_obs).hide();
  | 
        
        
            | 
            | 
           76 | 
           						$('#imMoins-'+id_obs).show();
  | 
        
        
            | 
            | 
           77 | 
           					},
  | 
        
        
            | 
            | 
           78 | 
           					function() {
  | 
        
        
            | 
            | 
           79 | 
           						var id_obs = $(this).attr("rel");
  | 
        
        
            | 
            | 
           80 | 
           						$('#cel-info-'+id_obs).hide();
  | 
        
        
            | 
            | 
           81 | 
           						$('#imPlus-'+id_obs).show();
  | 
        
        
            | 
            | 
           82 | 
           						$('#imMoins-'+id_obs).hide();
  | 
        
        
            | 
            | 
           83 | 
              | 
        
        
            | 
            | 
           84 | 
           					});
  | 
        
        
           | 739 | 
           delphine | 
           85 | 
              | 
        
        
           | 745 | 
           delphine | 
           86 | 
           				});
  | 
        
        
            | 
            | 
           87 | 
           		</script>
  | 
        
        
            | 
            | 
           88 | 
           	<?php endif; ?>
  | 
        
        
            | 
            | 
           89 | 
           </div>
  |