Subversion Repositories eFlore/Applications.cel

Rev

Rev 3039 | Rev 3079 | 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>Public observations of the 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, CEL map" />
        <meta name="description" content="Map widget for public plants observations submitted to the Carnet en Ligne (CEL)" />

                <!-- OpenGraph pour Facebook, Pinterest, Google+ -->
                <meta property="og:type" content="website" />
                <meta property="og:title" content="CEL public observations map" />
                <meta property="og:site_name" content="Tela Botanica" />
                <meta property="og:description" content="Map representation of Carnet en Ligne public observations" />
                <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" />
                <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" />
                
                <!-- Javascript : bibliothèques -->
                <!--    Google Map v3 -->
                <script type="text/javascript" src="https://maps.google.com/maps/api/js?key=<?php echo $cleGoogleMaps; ?>&v=3.5&amp;sensor=true&amp;language=en&amp;region=US"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/google/map/3/markermanager/1.0/markermanager-1.0.pack.js"></script>
                <!--    Jquery -->
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.6.2/jquery-1.6.2.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.15/js/jquery-ui-1.8.15.custom.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/pagination/2.2/jquery.pagination.js"></script>
                <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
                
                <!-- Javascript : appli carto -->
                <script type="text/javascript">
                //<![CDATA[
                    global_lang = "en"; // langue pour la traduction du JS

                        var urlWidgetSaisie = '<?= $url_widget_saisie; ?>',
                                urlsLimitesCommunales = '<?= $url_limites_communales; ?>',
                                nt = '<?=$num_taxon?>',
                                filtreCommun = 
                                        '&taxon=<?=rawurlencode($taxon)?>'+
                                        '&utilisateur=<?=$utilisateur?>'+
                                        '&projet=<?=rawurlencode($projet)?>'+
                                        '&tag=<?=rawurlencode($tag)?>'+
                                        '&date=<?=$date?>'+
                                        '&dept=<?=$dept?>'+
                                        '&commune=<?=rawurlencode($commune)?>'+
                                        '&pays=<?=rawurlencode($pays)?>'+
                                        '&commentaire=<?=rawurlencode($commentaire)?>'+
                                        '&groupe_zones_geo=<?=rawurlencode($groupe_zones_geo)?>',
                                utilisateur = '<?=$utilisateur?>',
                                photos = '<?= ($photos != null) ? $photos : "null"; ?>';
                                groupe_zones_geo = '<?= ($groupe_zones_geo != null) ? $groupe_zones_geo : "null"; ?>';
                        if (photos != null) {
                                filtreCommun += '&photos=<?=rawurlencode($photos)?>';
                        }
                        var nbJours = '<?= ($nbjours != null) ? $nbjours : "null"; ?>';
                        if (nbJours != null) {
                                filtreCommun += '&nbjours=<?=rawurlencode($nbjours)?>';
                        }
                        var annee = '<?= ($annee != null) ? $annee : "null"; ?>';
                        if (annee != null) {
                                filtreCommun += '&annee=<?=rawurlencode($annee)?>';
                        }
                        var referentiel = '<?= ($referentiel != null) ? $referentiel : "null"; ?>';
                        if (referentiel != null) {
                                filtreCommun += '&referentiel=<?=rawurlencode($referentiel)?>';
                        }
                        var titreCarte = '<?= ($titre != null) ? addslashes($titre) : "null"; ?>',
                                urlLogo = '<?= ($logo != null) ? $logo : "null"; ?>',
                                urlSite = '<?= ($url_site != null) ? $url_site : "null"; ?>',
                                urlImage = '<?= ($image != null) ? $image : "null"; ?>',
                                stationsUrl = '<?=$url_cel_carto?>/tout'+'?' + 'num_taxon=' + nt + filtreCommun,
                                taxonsUrl = '<?=$url_cel_carto?>/taxons'+'?' + 'num_taxon=' + nt + filtreCommun,
                                observationsUrl = '<?=$url_cel_carto?>/observations' + '?' +
                                        'station={stationId}'+
                                        '&num_taxon={nt}'+
                                        filtreCommun,
                                communeImageUrl = '<?= $communeImageUrl; ?>',
                                pointImageUrl = '<?= $pointImageUrl; ?>',
                                groupeImageUrlTpl = '<?= $groupeImageUrlTpl; ?>';
                //]]>
                </script>
                <script type="text/javascript" src="<?=$url_base?>modules/cartopoint/squelettes/scripts/carto.js"></script>
                <script type="text/javascript" src="<?=$url_base?>modules/cartopoint/squelettes/scripts/carto_msgs.js"></script>
                
                <!-- CSS -->
                <link rel="stylesheet" href="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
                <link rel="stylesheet" href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.15/css/smoothness/jquery-ui-1.8.15.custom.css" type="text/css" media="screen" />
                <link href="<?=$url_base?>modules/cartopoint/squelettes/css/<?=isset($_GET['style']) ? $_GET['style'] : 'carto'?>.css" rel="stylesheet" type="text/css" media="screen" />

                <!--  Google Analytics -->
                <?php if($prod): ?>
                        <?php include "analytics.html"; ?>
                <?php endif; ?>
        </head>

        <body>
                <div id="zone-chargement-point" class="element-overlay">                
                        <img id="img-chargement" src="<?=$url_base?>modules/cartopoint/squelettes/images/chargement_transparent.gif" alt="Chargement en cours..." />
                        <div id="legende-chargement">Loading points...</div>
                </div>
                <?php if($logo != null) { ?>
                        <?php if($logo != '0') { ?>
                                <div id="logo">
                                        <?php if($url_site != null) { ?>
                                        <a href="<?= $url_site; ?>" 
                                                title="<?= $url_site; ?>" 
                                                onclick="ouvrirNouvelleFenetre(this, event)">
                                                <img height="60px" class="image-logo" src="<?= $logo ?>" alt="logo" />
                                        </a>
                                        <?php } else { ?>
                                                <img class="image-logo" src="<?= $logo ?>" alt="logo" />
                                        <?php } ?>
                                </div>
                        <?php } ?>
                <?php } else { ?>       
                        <div id="logo">
                                <a href="http://www.tela-botanica.org/site:accueil" 
                                        title="Aller à l'accueil de Tela Botanica" 
                                        onclick="ouvrirNouvelleFenetre(this, event)">
                                        <img height="60px" class="image-logo" src="https://resources.tela-botanica.org/tb/img/128x128/logo_carre_officiel.png" alt="TB" />
                                </a>
                        </div>
                <?php } ?>
                <?php if($titre !== "0" && $titre != null) : ?>
                        <div id="zone-titre" class="element-overlay">
                                <h1 id="carte-titre">
                                        <span id="carte-titre-infos"><?= htmlspecialchars($titre); ?></span>
                                </h1>
                        </div>
                <?php endif; ?>
                <? if ($num_taxon == '*') : ?>
                <div id="panneau-lateral" class="element-overlay <?= ($titre != 0) ? 'carte_titree"': 'carte_non_titree"'; ?>>
                        <div id="pl-ouverture" title="Filter observations by species">
                                <span>Panel >></span>
                                <div id="pl-indication-filtre"> Filter 
                                </div>
                        </div>
                        <div id="pl-fermeture" title="Close side panel"><span><< Close [x]</span></div>
                        <div id="pl-contenu">
                                <div id="pl-entete">
                                        <h2>Filter on <span class="plantes-nbre">&nbsp;</span> plants</h2>      
                                        <p>
                                                Click a plant name to filter map observations.<br /> 
                                                To go back to initial state, click the selected name again.
                                        </p>
                                </div>
                                <hr class="nettoyage" />
                                <div id="pl-corps" onMouseOver="map.setOptions({'scrollwheel':false});" onMouseOut="map.setOptions({'scrollwheel':true});">
                                        <hr class="nettoyage" />
                                        <!-- Insertion des lignes à partir du squelette tpl-taxons-liste -->
                                        <span class="raz-filtre-taxons taxon-actif" title="Show all taxa">
                                                Show all taxa
                                        </span> 
                                        <ol id="taxons">
                                        </ol>
                                </div>
                        </div>
                </div>
                <? endif ?>
                <div id="carte" <?= ($titre != 0) ? 'class="carte_titree"': 'class="carte_non_titree"'; ?>></div>
                <div id="lien_plein_ecran" class="element-overlay">
                        <a href="#" title="Fullscreen (opens a new window)">
                                <img class="icone" src="<?=$url_base?>modules/cartopoint/squelettes/images/plein_ecran.png" alt="Fullscreen" />
                        </a>
                </div>
                <div id="zone-stats" style="display:none" class="element-overlay">
                                <h1>
                                </h1>
                </div>
                <div id="conteneur-filtre-utilisateur" class="ferme element-overlay">
                        <div id="lien-affichage-filtre-utilisateur">My map</div>
                        <div id="formulaire-filtre-utilisateur">
                                <span class="indication-filtre-utilisateur">Display a map of your observations</span>
                                <input type="text" id="filtre-utilisateur" placeholder="type your email" value="<?= ($utilisateur != '*') ? $utilisateur : '' ?>" title="type another user's email to see his⋅her data" />
                                <input id="valider-filtre-utilisateur" type="button" value="ok" />
                                <a href="#" id="raz-filtre-utilisateur">Show global map</a>
                        </div>
                </div>
                <?php if($image != null) { ?>
                        <div id="image-utilisateur">
                                <img width="155px" src="<?= $image ?>" alt="image" />
                        </div>
                <?php } ?>
                <div id="origine-donnees">
                        Network observations <a href="http://www.tela-botanica.org/site:botanique" 
                                onClick="ouvrirNouvelleFenetre(this, event)">
                                Tela Botanica
                        </a>
                        - Map : <a href="http://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>
                        - Tiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a>
                </div>
                <div id="lien-voir-cc" class="element-overlay">
                        <a href="<?=$url_base?>cartoPoint?carte=avertissement" title="Show this widget's information and terms of use">
                                ?
                        </a>
                </div>
                
                <!-- Blocs chargés à la demande : par défaut avec un style display à none -->
                
                <!-- Squelette du message de chargement des observations -->
                <script id="tpl-chargement" type="text/x-jquery-tmpl">
                        <div id="chargement" style="height:300px;">                     
                                <img src="<?=$url_base?>modules/cartopoint/squelettes/images/chargement.gif" alt="Loading..." />
                                <p>Loading observations...</p>
                        </div>
                </script>
                
                <!-- Squelette du contenu d'une info-bulle observation -->
                <script id="tpl-obs" type="text/x-jquery-tmpl">
                        <div id="info-bulle" style="width:{largeur}px;">        
                                <div id="obs">                          
                                        <h2 id="obs-station-titre">Station</h2>
                                        <div class="navigation">&nbsp;</div>                                    
                                        <div>
                                                <ul>
                                                        <li><a href="#obs-vue-tableau">Table</a></li>
                                                        <li><a href="#obs-vue-liste">List</a></li>
                                                </ul>
                                        </div>
                                        <div id="observations">
                                                <div id="obs-vue-tableau" style="display:none;">
                                                        <table id="obs-tableau">
                                                                <thead>
                                                                        <tr>
                                                                                <th title="User defined scientific name">Name</th>
                                                                                <th title="Observation date">Date</th>
                                                                                <th title="Observation location">Location</th>
                                                                                <th title="Observation author">Author</th>
                                                                        </tr>
                                                                </thead>
                                                                <tbody id="obs-tableau-lignes" class="obs-conteneur">
                                                                        <!-- Insertion des lignes à partir du squelette tpl-obs-tableau -->
                                                                </tbody>
                                                        </table>
                                                </div>
                                                <div id="obs-vue-liste" style="display:none;">
                                                        <ol id="obs-liste-lignes" class="obs-conteneur">
                                                                <!-- Insertion des lignes à partir du squelette tpl-obs-liste -->
                                                        </ol>
                                                </div>
                                        </div>
                                        <div id="obs-pieds-page">
                                                <p>Id : <span id="obs-station-id">&nbsp;</span></p>
                                        </div>
                                        <div class="navigation">&nbsp;</div>
                                        <div class="conteneur-lien-saisie" style="display:none;">
                                                <a href="#" class="lien-widget-saisie">
                                                        Add an observation on this site 
                                                </a>
                                        </div>
                                </div>
                        </div>
                </script>
                
                <!-- Squelette du contenu du tableau des observations -->
                <script id="tpl-obs-tableau" type="text/x-jquery-tmpl">
                        <tr class="cel-obs-${idObs}">
                                <td>
                                        <span class="nom-sci">&nbsp;
                                        {{if nn != null && nn != 0 && nn != ''}}
                                                <a href="${urlEflore}" 
                                                        onclick="ouvrirNouvelleFenetre(this, event)">
                                                        ${nomSci}
                                                </a>
                                        {{else}}
                                                ${nomSci}
                                        {{/if}}
                                        </span>
                                </td>
                                <td class="date">{{if date}}${date}{{else}}&nbsp;{{/if}}</td>
                                <td class="lieu">{{if lieu}}${lieu}{{else}}&nbsp;{{/if}}</td>
                                <td>
                                {{if observateur}}
                                        {{if observateurId}}                                    
                                                <a class="contact obs-${idObs} contributeur-${observateurId}" 
                                                href="#form-contact" 
                                                title="Write to this contributor">
                                                        ${observateur}
                                                </a>
                                        {{else}}
                                                <a class="contact obs-${idObs}" 
                                                href="#form-contact" 
                                                title="Write to this contributor">
                                                        ${observateur}
                                                </a>
                                        {{/if}}
                                {{else}}
                                        &nbsp;
                                {{/if}}
                                </td>
                        </tr>
                </script>
                
                <!-- Squelette du contenu de la liste des observations -->
                <script id="tpl-obs-liste" type="text/x-jquery-tmpl">
                        <li>
                                <div class="cel-obs-${idObs}">
                                        {{if images}}
                                        {{each(index, img) images}}
                                        <div{{if index == 0}} class="cel-img-principale" {{else}} class="cel-img-secondaire"{{/if}}>
                                                <a class="cel-img" 
                                                        href="${img.normale}" 
                                                        title="${nomSci} {{if nn != null && nn != 0 && nn != ''}} [${nn}] {{/if}} by ${observateur} - Published on ${datePubli} - GUID : ${img.guid}" 
                                                        rel="cel-obs-${idObs}">
                                                        <img src="${img.miniature}" alt="Image #${img.idImg} for observation #${nn}" />
                                                </a>
                                                <p id="cel-info-${img.idImg}" class="cel-infos">
                                                        <a class="cel-img-titre" href="${urlEflore}"
                                                                onclick="window.open(this.href);return false;"  
                                                                title="Click to show eFlore page">
                                                                <strong>${nomSci} {{if nn}} [nn${nn}] {{/if}}</strong> by <em>${observateur}</em>
                                                        </a>
                                                        <br />
                                                        <span class="cel-img-date">Published on ${datePubli}</span>
                                                </p>
                                        </div>
                                        {{/each}}
                                        {{/if}}
                                        <dl>
                                                <dt class="champ-nom-sci">Nom</dt>
                                                <dd title="User defined name{{if nn != 0}}. Click to show eFlore page.{{/if}}">
                                                        <span class="nom-sci">&nbsp;
                                                        {{if nn != null && nn != 0 && nn != ''}}
                                                                <a href="${urlEflore}" 
                                                                        onclick="ouvrirNouvelleFenetre(this, event)">
                                                                        ${nomSci}
                                                                </a>
                                                        {{else}}
                                                                ${nomSci}
                                                        {{/if}}
                                                        </span>
                                                </dd>
                                                <dt title="Observation location">Location</dt><dd class="lieu">&nbsp;${lieu}</dd>
                                                <dt title="Observation date">Date</dt><dd class="date">&nbsp;${date}</dd>
                                                <dt title="Observation author">Published by</dt>
                                                <dd>
                                                {{if observateur}}
                                                        {{if observateurId}}                                    
                                                                <a class="contact obs-${idObs} contributeur-${observateurId}" 
                                                                        href="#form-contact" 
                                                                        title="Write to this contributor">
                                                                        ${observateur}
                                                                </a>
                                                        {{else}}
                                                                <a class="contact obs-${idObs}" 
                                                                        href="#form-contact" 
                                                                        title="Write to this contributor">
                                                                        ${observateur}
                                                                </a>
                                                        {{/if}}
                                                {{else}}
                                                        &nbsp;
                                                {{/if}}
                                                </dd>
                                        </dl>
                                        <hr class="nettoyage"/>
                                </div>
                        </li>
                </script>
                
                <!-- Squelette de la liste des taxons -->
                <script id="tpl-taxons-liste" type="text/x-jquery-tmpl">
                                {{each(index, taxon) taxons}}
                                        <li id="taxon-${taxon.nt}">
                                                <span class="taxon" title="Taxinomic number : ${taxon.nt} - Family : ${taxon.famille}">
                                                        ${taxon.nom} <span class="nt" title="Taxinomic number">${taxon.nt}</span> 
                                                </span>
                                        </li>
                                {{/each}}
                        </ol>
                </script>
                
                <!-- Squelette du formulaire de contact -->
                <div id="tpl-form-contact" style="display:none;">
                        <form id="form-contact" method="post" action="">
                        <div id="fc-zone-dialogue"></div>
                        <dl>
                                <dt><label for="fc_sujet">Subject</label></dt>
                                        <dd><input id="fc_sujet" name="fc_sujet"/></dd>
                                        <dt><label for="fc_message">Message</label></dt>
                                        <dd><textarea id="fc_message" name="fc_message"></textarea></dd>
                                        <dt><label for="fc_utilisateur_courriel" title="Use the email address you provided when subscribing to Tela Botanica">Your email address</label></dt>
                                        <dd><input id="fc_utilisateur_courriel" name="fc_utilisateur_courriel"/></dd>
                                </dl>
                                <p>
                                        <input id="fc_destinataire_id" name="fc_destinataire_id" type="hidden" value="" />
                                        <input id="fc_copies" name="fc_copies" type="hidden" value="eflore_remarques@tela-botanica.org" />
                                        <input type="hidden" name="fc_type_envoi" id="fc_type_envoi" value="inscrit" />
                                        <button id="fc_annuler" type="button">Cancel</button>
                                        &nbsp;
                                        <button id="fc_effacer" type="reset">Clear</button>
                                        &nbsp;
                                        <input id="fc_envoyer" type="submit" value="Send" />
                                </p>
                        </form>
                </div>
        </body>
</html>