Subversion Repositories eFlore/Applications.del

Rev

Rev 995 | Rev 1027 | 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>Votez !</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, Aurélien Peronnet" />
        <meta name="keywords" content="Tela Botanica, photographie, DEL" />
        <meta name="description" content="Widget de vote sur les dernières images proposées dans DEL" />

                <!-- Spécial mobile -->
                <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
                <!-- 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" />
                <!-- Feuilles de styles -->
                <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
                <link rel="stylesheet" type="text/css" href="<?=$url_css?>vote.css" media="screen" />
                
                <!-- Javascript : bibliothèques -->
                <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
                <script type="text/Javascript">

                </script>
                <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
                <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
                <!-- attention le script suivant a besoin des variables globales initialisées ci dessous, donc, ne rien utiliser
                avant le document.ready() -->
                <script src="<?=$url_js?>vote.js"></script>
        </head>
        <body>
                <!-- WIDGET:DEL:VOTE - DEBUT -->
                <div data-role="page">
                        <!-- Variables globales à réinjecter à chaque changement de page 
                        (hors jquery mobile ne recharge pas le contenu du header -->
                        <script type="text/Javascript">
                                //<![CDATA[
                                        var g_urlServiceVotes = "<?= $donnees['url_service_votes']; ?>";
                                        var g_urlServiceUtilisateurs = "<?= $donnees['url_service_utilisateurs']; ?>";
                                        var g_idObservation = "<?= $donnees['id_observation']; ?>";
                                        <?= $donnees['votes_js']; ?>; 
                                //]]>
                        </script>
                        <!-- /navbar -->
                        <div data-role="header" data-position="fixed">
                                <div data-role="navbar" >
                                        <ul>
                                                <?php if($donnees['urls_navigation']['url_precedent'] != null) { ?>
                                                        <li><a id="url_precedent" href="<?= $donnees['urls_navigation']['url_precedent']; ?>" data-transition="reverse slide">Précédent</a></li>
                                                <?php } ?>
                                                <?php if($donnees['urls_navigation']['url_suivant'] != null) { ?>
                                                        <li><a id="url_suivant" href="<?= $donnees['urls_navigation']['url_suivant']; ?>" data-transition="slide">Suivant</a></li>
                                                <?php } ?>
                                        </ul>
                                </div>
                        </div>
                        <!-- /navbar -->
                        <div class="del-vote-contenu">
                                <div class="images">
                                        <img class="image_principale" src="<?= str_replace('XL', 'CRS', $donnees['url']); ?>" alt="image" />
                                        <div class="conteneur_image_secondaire">
                                                <?php $premiere_image = true; ?>
                                                <?php foreach($donnees['images'] as $image) : ?>
                                                        <img class="image_secondaire <?php if($premiere_image) { echo 'image_active';} ?>" src="<?= str_replace('XL', 'CRX2S', $image['binaire.href']); ?>" alt="image" />
                                                        <?php $premiere_image = false; ?>
                                                <?php endforeach ?>
                                        </div>
                                </div>
                                <div class="info_observation">
                                        <?= $donnees['titre']; ?>
                                </div>
                                <ul class="ui-listview" data-role="listview">
                                <?php foreach($donnees['liste_votes_determination'] as $vote_determination) : ?>
                                        <li class="ui-li ui-li-static ui-body-c">
                                                <div class="intitule_determination">
                                                        <div><?= $vote_determination['nom_sel']; ?></div>
                                                        <div class="auteur_determination">Proposé par : <?= $vote_determination['auteur.prenom']; ?> <?= $vote_determination['auteur.nom']; ?></div>
                                                </div>
                                                <div id="vote_determination_<?= $vote_determination['id_commentaire']; ?>" class="votes_determination">
                                                        <a href="#" class="bouton_vote bouton_vote_oui" data-role="button" data-mini="true" data-inline="true"> oui</a>
                                                                <span class="nb_votes nb_votes_oui">
                                                                        <?= $vote_determination['votes']['oui']; ?>
                                                                </span>
                                                        <a href="#" class="bouton_vote bouton_vote_non" data-role="button" data-mini="true" data-inline="true"> non</a>
                                                                <span class="nb_votes nb_votes_non">
                                                                        <?= $vote_determination['votes']['non']; ?>
                                                                </span>
                                                </div>
                                                <hr style="visibility:hidden;clear:both" />
                                        </li>
                                <?php endforeach ?>
                                </ul>
                        </div>
                        <div data-role="footer" data-theme="b"> 
                                <div data-role="navbar" >
                                        <ul>
                                                <li><a href="">Aide</a></li>
                                                <li><a href="">Se connecter</a></li>
                                        </ul>
                                </div>
                        </div>
                </div>  
                <!-- WIDGET:DEL:VOTE - FIN -->
        </body>
</html>