Subversion Repositories eFlore/Applications.cel

Rev

Rev 3825 | Rev 3839 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>Photographies publiques du CEL - Tela Botanica</title>

                <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
                <meta http-equiv="Content-style-type" content="text/css" />
                <meta http-equiv="Content-script-type" content="text/javascript" />
                <meta http-equiv="Content-language" content="fr" />

                <meta name="revisit-after" content="15 days" />
        <meta name="robots" content="index,follow" />
        <meta name="author" content="Tela Botanica" />
        <meta name="keywords" content="Tela Botanica, photographie, CEL" />
        <meta name="description" content="Widget de présentation des dernières photo publiées sur le Carnet en Ligne de Tela Botanica" />

                <!-- OpenGraph pour Facebook, Pinterest, Google+ -->
                <meta property="og:type" content="website" />
                <meta property="og:title" content="Widget photo du CeL" />
                <meta property="og:site_name" content="Tela Botanica" />
                <meta property="og:description" content="Mini-galerie photo des observations publiques du Carnet en Ligne" />
                <?php if (isset($items[0])) : ?>
                        <meta property="og:image" content="<?php echo sprintf($items[0]['url_tpl'], 'CRS'); ?>" />
                <?php else : ?>
                        <meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
                        <meta property="og:image:type" content="image/png" />
                        <meta property="og:image:width" content="256" />
                        <meta property="og:image:height" content="256" />
                <?php endif; ?>
                <meta property="og:locale" content="fr_FR" />

                <!-- Spécial mobile -->
                <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

                <!-- Favicones -->
                <link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
                <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
                <!-- Jquery-ui custom css-->
                <link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen" />
                <!-- Bootstrap CSS -->
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
                <!-- Fontawesome -->
                <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous" />
                <!-- Leaflet -->
                <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>

                <!-- Feuilles de styles -->
                <link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photo.css" media="screen" />
                <link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>popup.css" media="screen" />
                <link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>contact.css" media="screen" />
                <link rel="stylesheet" type="text/css" href="<?php echo $url_css; ?>photoCommun.css" media="screen" />
                <style type="text/css">
                        <?php $dimention_basique = floor(93/$colonne);?>
                        #cel-photo-contenu<?php echo $id; ?> .grid-sizer,
                        #cel-photo-contenu<?php echo $id; ?> .grid-item {
                                width: <?php echo $dimention_basique; ?>vw;
                        }

                        #cel-photo-contenu<?php echo $id; ?> .grid-item {
                                height: <?php echo $dimention_basique; ?>vw;
                        }

                        #cel-photo-contenu<?php echo $id; ?> .grid-item--width2 {
                                width: <?php echo ($dimention_basique*2)+1; ?>vw;
                        }

                        #cel-photo-contenu<?php echo $id; ?> .grid-item--height2 {
                                height: <?php echo number_format((($dimention_basique*2)+0.99),2); ?>vw;
                        }
                </style>
                <!-- Javascript : bibliothèques -->
                <!-- Jquery -->
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>

                <!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
                <!-- Jquery Plugins -->
                <!-- Jquery Validate : nécessaire pour la validation des formulaires -->
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
                <!-- Jquery Form :nécessaire pour l'upload des images -->
                <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
                <!-- Bootstrap -->
                <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
                <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
                <!-- Masonry -->
                <script src="<?php echo $url_js; ?>masonry.pkgd.js"></script>
                <!-- Leaflet -->
                <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>

                <!-- Script WidgetPhoto -->
                <script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhotoCommun.js"></script>
                <script type="text/Javascript" src="<?php echo $url_js; ?>WidgetPhoto.js"></script>
                <script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoPopup.js"></script>
                <script type="text/javascript" src="<?php echo $url_js; ?>WidgetPhotoContact.js"></script>

                <!--  Google Analytics -->
                <?php if($prod): ?>
                        <?php include "analytics.html"; ?>
                <?php endif; ?>
        </head>
        <body style="margin: 0">
                <!-- WIDGET:CEL:PHOTO - DEBUT -->
                <div id="cel-photo-contenu<?php echo $id; ?>" class="cel-photo-contenu">
                <?php if (isset($erreurs) || isset($informations)) : ?>
                        <h1>Erreur &amp; informations</h1>
                        <p>Impossible d'afficher le flux.</p>
                        <!-- Affichage des erreurs et messages d'information : -->
                        <?php if ($erreurs) : ?>
                                <?php foreach ($erreurs as $erreur) : ?>
                                        <p class="erreur"><?php echo $erreur; ?></p>
                                <?php endforeach; ?>
                        <?php endif; ?>

                        <?php if ($informations) : ?>
                                <?php foreach ($informations as $information) : ?>
                                        <p class="info"><?php echo $information; ?></p>
                                <?php endforeach; ?>
                        <?php endif; ?>
                <?php else : ?>
                        <h1>
                                <?php if (!empty($titre)) : ?>
                                        <?php echo $titre; ?>
                                <?php endif ; ?>
                                <?php if($icone_rss) : ?>
                                <a href="<?php echo $flux_rss_url; ?>"
                                        class="cel-photo-flux"
                                        title="Suivre les images"
                                        onclick="window.open(this.href);return false;">
                                        <img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
                                </a>
                                <?php endif; ?>
                        </h1>
                        <?php if (!empty($champ_recherche)) : ?>
                                <form id="form-recherche<?php echo $id; ?>" class="form-recherche container" action="">
                                        <div id="bloc-recherche<?php echo $id; ?>" class="bloc-recherche form-inline d-flex justify-content-center w-100">
                                                <input type="text" id="champ-recherche<?php echo $id; ?>" name="champ-recherche<?php echo $id; ?>" class="recherche form-control mr-1" placeholder="Votre recherche">
                                                <input type="hidden" id="filtres<?php echo $id; ?>" name="filtres<?php echo $id; ?>">
                                                <a id="bouton-rechercher<?php echo $id; ?>" class="btn btn-success bouton-rechercher mr-1"><i class="fas fa-search"></i>&nbsp;Rechercher</a>
                                                <a id="bouton-plus-filtres<?php echo $id; ?>" class="btn btn-outline-secondary bouton-plus-filtres">
                                                        <span class="plus">
                                                                <i class="fas fa-chevron-down"></i>&nbsp;Plus&nbsp;de&nbsp;filtres
                                                        </span>
                                                        <span class="moins hidden">
                                                                <i class="fas fa-chevron-up"></i>&nbsp;Fermer&nbsp;les&nbsp;filtres
                                                        </span>
                                                </a>
                                        </div>
                                        <div id="autres-filtres<?php echo $id; ?>" class="autres-filtres row hidden">
                                                <a id="bouton-fermer-filtres<?php echo $id; ?>" class="btn bouton-fermer-filtres"><i class="fas fa-times"></i></a>
                                                <div id="bloc-filtres-gauche" class="bloc-filtres bloc-filtres-gauche col-lg-6">
                                                        <div class="row bloc-taxon bloc-filtre">
                                                                <label for="taxon">Taxon</label>
                                                                <input type="text" id="taxon" name="taxon" class="form-control">
                                                        </div>
                                                        <div class="row bloc-referentiel bloc-filtre">
                                                                <label for="referentiel">Référentiel</label>
                                                                <select name="referentiel" id="referentiel" class="custom-select form-control referentiel">
                                                                        <option value="bdtfxr" selected="selected" title="Trachéophytes de France métropolitaine">Métropole (index réduit)</option>
                                                                        <option value="bdtfx" title="Trachéophytes de France métropolitaine">Métropole (BDTFX)</option>
                                                                        <option value="bdtxa" title="Trachéophytes des Antilles">Antilles françaises (BDTXA)</option>
                                                                        <option value="bdtre" title="Trachéophytes de La Réunion">Réunion (BDTRE)</option>
                                                                        <option value="aublet" title="Guyane">Guyane (AUBLET2)</option>
                                                                        <option value="florical" title="Nouvelle-Calédonie">Nouvelle-Calédonie (FLORICAL)</option>
                                                                        <option value="isfan" title="Afrique du Nord">Afrique du Nord (ISFAN)</option>
                                                                        <option value="apd" title="Afrique de l'Ouest et du Centre">Afrique de l'Ouest et du Centre (APD)</option>
                                                                        <option value="lbf" title="Liban">Liban (LBF)</option>
                                                                        <option value="autre" title="Autre/Inconnu">Autre/Inconnu</option>
                                                                </select>
                                                        </div>
                                                        <div class="bloc-periode bloc-filtre">
                                                                <label for="periode" class="d-block">Date (début-fin)</label>
                                                                <div class="form-row">
                                                                        <div class="form-group mb-lg-0 mb-1 col">
                                                                                <input type="date" id="periode-debut" name="periode-debut" class="form-control">
                                                                        </div>
                                                                        <div class="form-group mb-0 col">
                                                                                <input type="date" id="periode-fin" name="periode-fin" class="form-control">
                                                                        </div>
                                                                </div>
                                                                <input type="hidden" id="periode" name="periode">
                                                        </div>
                                                        <div class="row  bloc-localite bloc-filtre">
                                                                <label for="localite">Localité</label>
                                                                <input type="text" id="localite" name="localite" class="form-control">
                                                        </div>
                                                        <div class="row  bloc- bloc-filtre">
                                                                <label for="departement">Département</label>
                                                                <input type="text" id="departement" name="departement" class="form-control" placeholder="Numéros (séparés par des virgules)">
                                                        </div>
                                                        <div class="row  bloc- bloc-filtre">
                                                                <label for="pays">Pays</label>
                                                                <input type="text" id="pays" name="pays" class="form-control">
                                                        </div>
                                                </div>
                                                <div id="bloc-filtres-droite" class="bloc-filtres bloc-filtres-droite col-lg-6">
                                                        <div class="row  bloc- bloc-filtre">
                                                                <label for="auteur">Auteur</label>
                                                                <input type="text" id="auteur" name="auteur" class="form-control" placeholder="Nom, email">
                                                        </div>
                                                        <div class="row  bloc- bloc-filtre">
                                                                <label for="programme">Programme</label>
                                                                <input type="text" id="programme" name="programme" class="form-control">
                                                        </div>
                                                        <div class="row  bloc- bloc-filtre">
                                                                <label for="tags">Tags (tous)</label>
                                                                <input type="text" id="tags" name="tags" class="form-control">
                                                        </div>
                                                        <div class="list bloc-photos-affichees bloc-filtre mt-3">
                                                                <div class="form-check mt-3">
                                                                        <input type="checkbox" id="non-standards" name="photos-affichees" class="non-standards form-check-input" value="non-standards">
                                                                        <label for="non-standards" class="non-standards form-check-label">Afficher les photos des observations non "standards"</label>
                                                                </div>
                                                                <div class="form-check mt-3">
                                                                        <input type="checkbox" id="indesirables" name="photos-affichees" class="indesirables form-check-input" value="indesirables">
                                                                        <label for="indesirables" class="indesirables form-check-label">Afficher les photos signalées comme indésirables</label>
                                                                </div>
                                                                <div class="form-check mt-3">
                                                                        <input type="checkbox" id="smartphone-anonyme" name="photos-affichees" class="smartphone-anonyme form-check-input" value="smartphone-anonyme">
                                                                        <label for="smartphone-anonyme" class="smartphone-anonyme form-check-label">Afficher les photos des observations smartphone anonyme</label>
                                                                </div>
                                                        </div>
                                                </div>
                                        </div>
                                </form>
                        <?php endif ; ?>
                        <div id="cel-galerie-photo<?php echo $id; ?>" class="cel-galerie-photo">
                                <div class="grid-sizer"></div>
                                <?php foreach ($items as $i => $item) : ?>
                                        <?php
                                                $dimention_img = 'CRS';
                                                $class_extra = '';
                                        ?>
                                        <?php if ( $i === 0 && $extra_actif ) : ?>
                                                <?php
                                                        $dimention_img = 'CRL';
                                                        $class_extra = ' grid-item--width2 grid-item--height2';
                                                ?>
                                        <?php endif; ?>
                                        <div class="cel-photo grid-item <?php echo $class_extra; ?>">
                                                <a href="<?php echo sprintf($item['url_tpl'], 'O'); ?>" class="cel-img" title="<?php echo $item['titre']; ?> - Publiée le <?php echo $item['date_redige']; ?> - GUID : <?php echo $item['id_photo_formate']; ?>" rel="galerie-princ<?php echo $id; ?>">
                                                        <img src="<?php echo sprintf($item['url_tpl'], $dimention_img); ?>" alt="<?php echo $item['titre']; ?>">
                                                </a>
                                                <div id="cel-info-<?php echo $item['id_photo_formate']; ?>" class="cel-infos">
                                                        <strong>
                                                                <?php if (!empty($item['lien'])) : ?>
                                                                        <a class="cel-img-titre" href="<?php echo $item['lien']; ?>"
                                                                                onclick="window.open(this.href);return false;"
                                                                                title="Cliquez pour accéder à la fiche eFlore">
                                                                                <?php echo $item['obs']['nom_sel']; ?>
                                                                        </a><br />
                                                                        par
                                                                        <a class="cel-img-contact"
                                                                                href="?mode=contact&nn=<?php echo urlencode($item['obs']['nom_sel_nn']); ?>&nom_sci=<?php echo urlencode($item['obs']['nom_sel']); ?>&date=<?php echo urlencode($item['date']); ?>&id_image=<?php echo $item['id_photo_formate']; ?>&auteur=<?php echo $item['utilisateur']['nom_utilisateur']; ?>"
                                                                                title="Cliquez pour contacter l'auteur de la photo">
                                                                                <?php echo $item['utilisateur']['nom_utilisateur']; ?>
                                                                        </a>
                                                                <?php else : ?>
                                                                        <?php echo $item['titre']; ?>
                                                                <?php endif; ?>
                                                        </strong>
                                                </div>
                                        </div>
                                <?php endforeach; ?>
                                <?php if ($total > ($start + $limit)): ?>
                                        <a id="bouton-photos-suivantes" href="<?php echo $url_widget_photos_suivantes;?>" class="btn btn-success"><i class="fas fa-forward"></i>&nbsp;Photos suivantes</a>
                                <?php else :?>
                                        <div class="alert alert-secondary mt-0 ml-1" role="alert" style="display: inline-block;">Toutes les photos disponibles, correspondant à vos critères, ont été affichées</div>
                                <?php endif;?>
                        </div>
                        <p class="cel-photo-pieds discretion nettoyage">
                                <span class="cel-photo-source">
                                        Source :
                                        <a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
                                                CEL
                                        </a>
                                </span>
                                <span class="cel-photo-date-generation">Au <?php echo strftime('%A %d %B %Y à %H:%M:%S'); ?></span>
                         </p>

                <?php endif; ?>
                </div>
                <!-- modale -->
                <div id="fenetre-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="fenetre-modal-label" style="display: none;" aria-hidden="true">
                        <div class="modal-dialog modal-dialog-centered" role="document">
                                <div class="modal-content">
                                        <div class="modal-header">
                                                <h5 class="modal-title" id="fenetre-modal-label"></h5>
                                                <button type="button" class="close btn btn-sm btn-secondary" data-dismiss="modal" aria-label="Close">
                                                        <span aria-hidden="true">&times;</span>
                                                </button>
                                        </div>
                                        <div class="modal-body row" id="print_content"></div>
                                        <div class="modal-footer hidden"></div>
                                </div>
                        </div>
                </div>
                <!-- WIDGET:CEL:PHOTO - FIN -->
                <script type="text/Javascript">
                        //<![CDATA[
                                var widgetProp = {
                                        'id'              : "<?php echo $id; ?>",
                                        'galerieId'       : "<?php echo $galerie_id; ?>"
                                };

                                $( document ).ready( function() {
                                        photo = new WidgetPhoto( widgetProp );
                                        photo.init();
                                });
                        //]]>
                </script>
        </body>
</html>