Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1122 → Rev 1123

/trunk/modules/fiche/squelettes/fiche_illustrations_organes.tpl.html
New file
0,0 → 1,71
<? if (isset($organes) && (empty($organes) == false)) : ?>
<div id="galerie-organes">
<ul class="liste-illustrations">
<?php foreach($organes as $tag => $image) : ?>
<li class="icone-organe">
<a class="lien-images-organes<?php if (empty($image) == false) : ?> fourni<?php endif; ?>" data-tag="<?= $tag; ?>">
<img class="icone-organe" src="presentations/images/icones_tags/<?= $tag; ?>.png" alt="<?= $tag ?>" />
<?= $tag; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<hr class="nettoyage" />
<div id="galerie-organes-contenu" style="display: none;">
<? foreach($organes as $tag => $image) : ?>
<div class="onglet-organe" data-tag="<?= $tag; ?>">
<?php if (empty($organes[$tag]) == false) :?>
<ul class="liste-illustrations">
<?php foreach($organes[$tag] as $image) : ?>
<li class="miniature-organe">
<?php if ($image != null) : ?>
<a class="lien-grande-image-organe"
data-id-image="<?= $image['id_image'] ?>" data-titre="<?= $image['observation']['determination.ns'] ?>"
data-description="<?= $image['determination.libelle'] ?>" data-localisation="<?= $image['station.libelle'] ?>"
data-auteur="<?= $image['auteur.libelle'] ?>" data-id-destinataire="<?= $image['auteur.id'] ?>"
data-date="<?= $image['date'] ?>">
<img class="miniature-organe" src="<?= $image['binaire.href']; ?>" alt="<?= $image['binaire.href']; ?>" />
</a>
<?php else: ?>
<p class="absent absent-mini">
Pas de photo
<br>
<a class="contribuer" onclick="window.open(this.href); return false;"
title="Ajouter une photographie au moyen du Carnet en Ligne"
href="http://localhost/widget:cel:saisie?referentiel=bdtfx&num_nom=<?= $nnr ?>&titre=Ajout d'une photo de <?= $nomComplet ?>">
Contribuer
</a>
</p>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<hr class="nettoyage" />
<?php else: ?>
Aucune illustration pour l'organe "<?= $tag ?>"
<?php endif; ?>
</div>
<?php endforeach; ?>
<div id="grande-image-organe">
<img src="" alt="Grande image" />
</div>
<div id="grande-image-legende">
<div>
<dl>
<dt>Photo n°</dt><dd id="grande-image-legende-id-image"></dd>
<dt>Titre</dt><dd id="grande-image-legende-titre"><br></dd>
<dt>Description</dt><dd id="grande-image-legende-description"><br></dd>
<dt>Localisation</dt><dd id="grande-image-legende-localisation"><br></dd>
<dt>Auteur</dt>
<dd>
<span id="grande-image-legende-auteur"></span>
<a id="grande-image-legende-id-destinataire" href="" class="mailto">(Contacter ...)</a>
</dd>
<dt>Date d'observation</dt><dd id="grande-image-legende-date"><br></dd>
<dt>Licence</dt><dd><a href="http://www.tela-botanica.org/page:licence" class="lien-externe">CC-BY-SA</a></dd>
</dl>
</div>
</div>
</div>
</div>
<? endif ?>