Subversion Repositories eFlore/Applications.cel

Rev

Rev 1840 | 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>Biodiversité 34</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="Delphine CAUQUIL, Jean-Pascal MILCENT" />
        <meta name="keywords" content="Tela Botanica, Biodiversité34, CG34, CEL" />
        <meta name="description" content="Widget de saisie simplifié pour le projet Biodiversité 34" />

                <!-- Favicones -->
                <link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
                <link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
                
                <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
                
                <!-- Javascript : bibliothèques -->
                <!--    Google Map v3 --> 
                <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=true&amp;language=fr&amp;region=FR"></script>
                <!--    Jquery -->
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.6.2/jquery-1.6.2.min.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.13/js/jquery-ui-1.8.13.custom.min.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.13/js/jquery.ui.datepicker-fr.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/jquery.validate.min.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.8.1/messages_fr.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/proj4js/1.0.1/proj4js-compressed.js"></script>
                <script src="<?=$url_base?>saisie?projet=biodiversite34&service=taxons" type="text/javascript"></script>
                
                <!-- Javascript : appli saisie -->
                <script type="text/javascript">
                //<![CDATA[
                        // La présence du parametre 'debug' dans l'URL enclenche le dégogage
                        var DEBUG = <?=isset($_GET['debug']) ? 'true' : 'false'?>; 
                        // URL du web service réalisant l'insertion des données dans la base du CEL.
                        var SERVICE_SAISIE_URL = "<?=$url_ws_saisie?>";
                        // Squelette d'URL du web service d'eFlore fournissant les noms de communes.
                        var SERVICE_NOM_COMMUNE_URL = "http://api.tela-botanica.org/service:eflore:0.1/osm/nom-commune?lon={lon}&lat={lat}";
                //]]>
                </script>
                <script type="text/javascript" src="<?=$url_base?>modules/saisie/squelettes/biodiversite34/js/biodiversite34.js"></script>
                
                <!-- CSS -->
                <link href="<?=$url_base?>modules/saisie/squelettes/biodiversite34/css/biodiversite34.css" rel="stylesheet" type="text/css" media="screen" />
                <link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.13/css/ui-darkness/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" />
                <link rel="stylesheet" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
        </head>

        <body>
                <div id="zone-appli">
                        <?php if($titre == 'defaut' ) { ?>
                                                        <h1>Biodiversité 34</h1>
                        <?php } else { ?>
                                <h1 id="widget-titre"><?= $titre ?></h1>
                        <?php } ?>
                        <h2>Saisie des observations</h2>
                        <form id="saisie-obs" action="#">
                                <fieldset id="partie-identification">
                                        <legend>1. Identification</legend>
                                        <ul>
                                                <li>
                                                        <label for="prenom"><span class="obligatoire" title="Champ obligatoire">*</span> Prénom</label>
                                                        <input id="prenom" name="prenom" type="text" value=""/>
                                                </li>
                                                <li>
                                                        <label for="nom"><span class="obligatoire" title="Champ obligatoire">*</span> NOM</label>
                                                        <input id="nom" name="nom" type="text" value=""/>
                                                </li>
                                                <li>
                                                        <label for="courriel"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel</label>
                                                        <input id="courriel" name="courriel" type="text" value=""/>
                                                        <input id="id_utilisateur" name="id_utilisateur" type="hidden"/>
                                                </li>
                                                <li>
                                                        <label for="courriel_confirmation"><span class="obligatoire" title="Champ obligatoire">*</span> Courriel (confirmation)</label>
                                                        <input id="courriel_confirmation" name="courriel_confirmation" type="text" value=""/>
                                                </li>
                                        </ul>
                                </fieldset>
                                <fieldset id="partie-station">
                                        <legend>2. Station / Localisation</legend>
                                        <input id="commune_nom" name="commune_nom" type="hidden" value="" />
                                        <input id="commune_code_insee" name="commune_code_insee" type="hidden" value="" />
                                        <ul>
                                                <li>
                                                        <label for="milieu"><span class="obligatoire" title="Champ obligatoire">*</span> Milieu</label>
                                                        <select id="milieu" name="milieu">
                                                                <option value="">Sélectionner un milieu</option>
                                                                <?php foreach ($milieux as $milieu => $description) : ?>
                                                                <option value="<?=$milieu?>" <?=($description != '') ? 'title="'.$description.'"': '' ?>><?=$milieu?></option>
                                                                <?php endforeach; ?>
                                                        </select>
                                                </li>
                                                <li><a id="localiser-gg-map" href="#gg-map-localisation">Localiser votre station sur une carte Google Map</a></li>
                                                <li id="partie-lat-lon">
                                                        <label for="latitude"><span class="obligatoire" title="Champ obligatoire">*</span> Latitude</label>
                                                        <input id="latitude" name="latitude" type="text" value=""/>
                                                        <label for="longitude"><span class="obligatoire" title="Champ obligatoire">*</span> Longitude</label>
                                                        <input id="longitude" name="longitude" type="text" value=""/>
                                                        <span id="lat-lon-info" class="info">(WGS84)</span>
                                                </li>
                                        </ul>
                                </fieldset>
                                <fieldset id="partie-observation">
                                        <legend>3. Observation</legend>
                                        <ul>
                                                <li>
                                                        <label for="date"><span class="obligatoire" title="Champ obligatoire">*</span> Date</label>
                                                        <input id="date" name="date" type="text" value="" />
                                                </li>
                                                <li>
                                                        <label for="taxon"><span class="obligatoire" title="Champ obligatoire">*</span> Espèce</label>
                                                        <select id="taxon" name="taxon">
                                                                <option value="">Sélectionner un taxon</option>
                                                        <?php foreach ($taxons as $taxon) : ?>
                                                                <option value="<?=$taxon['num_nom_sel']?>" title="<?=$taxon['nom_sel'].($taxon['nom_fr_autre'] != '' ? ' - '.$taxon['nom_fr_autre'] : '' )?>"><?=$taxon['nom_fr']?></option>
                                                        <?php endforeach; ?>
                                                        </select>
                                                </li>
                                                <li>
                                                        <label for="notes">Notes</label>
                                                        <textarea id="notes" name="notes"></textarea>
                                                </li>
                                        </ul>
                                        <button id="ajouter-obs" type="button">Ajouter</button>
                                </fieldset>
                                
                        </form>
                        
                        <h2>Liste des observations à transmettre</h2>
                        <form action="#">
                                <table id="liste-obs">
                                        <thead><tr><th>Numéro</th><th>Date</th><th>Nom</th><th>Milieu</th><th>Latitude</th><th>Longitude</th><th>Notes</th><th>Suppression</th></tr></thead>
                                        <tbody></tbody>
                                </table>
                                <button id="tramsmettre-obs" type="button">Transmettre</button>
                        </form>
                </div>
                
                <div id="gg-map" style="display: none;">
                        <div id="gg-map-localisation">
                                <div id="gg-map-carte">Carte en cours de chargement...</div>
                                        <ul id="gg-map-info">
                                                <li>
                                                        <span class="champ">Marqueur de station</span> 
                                                        <span id="marqueur-statut">Déplacer le marqueur sur le centre de votre station.</span>
                                                </li>
                                                <li>
                                                        <span class="champ">Coordonnées du marqueur</span>
                                                <span id="marqueur-coordonnees"><span title="Système géodésique mondial, révision de 1984 - Coordonnées non projetées">WGS84 : <span id="marqueur-wgs84">&nbsp;</span></span> / <span title="Système géodésique RGF93 - Coordonnées en projection Lambert 93">Lambert 93 : <span id="marqueur-lambert93">&nbsp;</span></span></span>
                                        </li>
                                        <li>
                                                <span class="champ">Commune</span>
                                                <span id="marqueur-commune">
                                                        <span id="commune-nom" class="commune-info">&nbsp;</span>
                                                        (<span id="commune-code-insee" class="commune-info" title="Code INSEE de la commune">&nbsp;</span>)
                                                </span>
                                                <span class="champ">Adresse</span>
                                                <span id="marqueur-adresse">&nbsp;</span>
                                        </li>
                                </ul>
                                    <form id="gg-map-form">
                                        <button id="valider-coordonnees" type="button">Valider</button>
                                        <button id="annuler-coordonnees" type="button">Annuler</button>
                                </form>
                        </div>
                        </div>  
                </div>
                
                
                <div id="dialogue-bloquer-copier-coller" style="display: none;" title="Information copier/coller">
                        <p>
                                Merci de ne pas copier/coller votre courriel.<br/>
                                La double saisie permet de vérifier l'absence d'erreurs.
                        </p>
                </div>
                <div id="dialogue-zero-obs" style="display: none;" title="Information aucune observation">
                        <p>
                                Veuillez saisir des observations pour les transmettres.
                        </p>
                </div>
                <div id="dialogue-form-invalide" style="display: none;" title="Validation du formulaire">
                        <p>Certains champs n'ont pas été saisis correctement, veuillez vérifier les champs saisis.</p>
                </div>
                
                <div id="dialogue-obs-transaction" style="display: none;" title="Transmission des observations">
                </div>
                
                <div id="dialogue-erreur" style="display: none;" title="Erreur">
                </div>          
        
                <!-- Stats : Google Analytics -->
                <script type="text/javascript">
                        //<![CDATA[
                        var _gaq = _gaq || [];
                        _gaq.push(['_setAccount', 'UA-20092557-1']);
                        _gaq.push(['_trackPageview']);
                        
                        (function() {
                          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                        })();
                        //]]>
                </script>
        </body>
</html>