Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1428 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1123 mathias 1
<? if (isset($organes) && (empty($organes) == false)) : ?>
2
<div id="galerie-organes">
3
	<ul class="liste-illustrations">
4
	<?php foreach($organes as $tag => $image) : ?>
5
		<li class="icone-organe">
1131 mathias 6
			<a class="lien-images-organes <? if (empty($image)) : ?>non-<? endif ?>fourni" data-tag="<?= $tag; ?>"
7
			  title="<? if (empty($image)) : ?>Aucune photo pour <? endif ?><?= $tag ?>">
1289 aurelien 8
				<img class="icone-organe" src="<?=Config::get('url_css_images')?>icones_tags/<?= $tag; ?>.png" alt="<?= $tag ?>" />
1123 mathias 9
				<?= $tag; ?>
10
			</a>
11
		</li>
12
	<?php endforeach; ?>
13
	</ul>
14
	<hr class="nettoyage" />
15
	<div id="galerie-organes-contenu" style="display: none;">
16
	<? foreach($organes as $tag => $image) : ?>
17
		<div class="onglet-organe" data-tag="<?= $tag; ?>">
18
		<?php if (empty($organes[$tag]) == false) :?>
19
			<ul class="liste-illustrations">
20
			<?php foreach($organes[$tag] as $image) : ?>
21
				<li class="miniature-organe">
22
					<?php if ($image != null) : ?>
23
						<a class="lien-grande-image-organe"
1349 mathias 24
							data-id-observation="<?= $image['observation']['id_observation'] ?>"
25
							data-url-mauvaise-ident="<?= $image['urlMauvaiseIdentification'] ?>"
1123 mathias 26
							data-id-image="<?= $image['id_image'] ?>" data-titre="<?= $image['observation']['determination.ns'] ?>"
27
							data-description="<?= $image['determination.libelle'] ?>" data-localisation="<?= $image['station.libelle'] ?>"
28
							data-auteur="<?= $image['auteur.libelle'] ?>" data-id-destinataire="<?= $image['auteur.id'] ?>"
29
							data-date="<?= $image['date'] ?>">
1363 mathias 30
							<img class="miniature-organe" src="<?= $image['binaire.href']; ?>" alt="<?= $image['auteur.libelle'] . ' - ' . $image['observation']['determination.ns'] ?>" />
1123 mathias 31
						</a>
32
					<?php else: ?>
33
					<p class="absent absent-mini">
34
						Pas de photo
35
						<br>
36
						<a class="contribuer" onclick="window.open(this.href); return false;"
37
						  title="Ajouter une photographie au moyen du Carnet en Ligne"
1320 aurelien 38
						  href="<?= Config::get('base_url_widget_saisie');?>?referentiel=<?= $referentiel; ?>&num_nom=<?= $nnr ?>&titre=<?= urlencode("Ajout d'une photo de ".$nomComplet); ?>">
1123 mathias 39
							Contribuer
40
						</a>
41
					</p>
42
					<?php endif; ?>
43
				</li>
44
			<?php endforeach; ?>
45
			</ul>
46
			<hr class="nettoyage" />
47
		<?php else: ?>
48
			Aucune illustration pour l'organe "<?= $tag ?>"
49
		<?php endif; ?>
50
		</div>
51
	<?php endforeach; ?>
52
	<div id="grande-image-organe">
1311 aurelien 53
		<a target="_blank" title="Voir cette image dans son format original (s'ouvre dans une nouvelle fenêtre)" href="">
1131 mathias 54
			<img src="" alt="Grande image" />
55
		</a>
1123 mathias 56
	</div>
57
	<div id="grande-image-legende">
58
		<div>
59
			<dl>
60
				<dt>Photo n°</dt><dd id="grande-image-legende-id-image"></dd>
61
				<dt>Titre</dt><dd id="grande-image-legende-titre"><br></dd>
62
				<dt>Description</dt><dd id="grande-image-legende-description"><br></dd>
63
				<dt>Localisation</dt><dd id="grande-image-legende-localisation"><br></dd>
64
				<dt>Auteur</dt>
65
				<dd>
1132 mathias 66
					<a id="grande-image-legende-auteur" href=""></a>
1303 aurelien 67
					<a id="grande-image-legende-id-destinataire" href="" class="mailto">
68
						<img class="icone_action_ill" src="<?=Config::get('url_css_images')?>contact.png" />
69
					</a>
1123 mathias 70
				</dd>
71
				<dt>Date d'observation</dt><dd id="grande-image-legende-date"><br></dd>
1512 delphine 72
				<dt>Licence</dt><dd><a href="http://www.tela-botanica.org/page:licence" class="lien-externe">CC-BY-SA 2.0 FR</a></dd>
1123 mathias 73
			</dl>
74
		</div>
75
	</div>
76
	</div>
77
</div>
78
<? endif ?>