983 |
aurelien |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<title>Votez !</title>
|
1876 |
jpm |
5 |
|
983 |
aurelien |
6 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
|
|
7 |
<meta http-equiv="Content-style-type" content="text/css" />
|
|
|
8 |
<meta http-equiv="Content-script-type" content="text/javascript" />
|
|
|
9 |
<meta http-equiv="Content-language" content="fr" />
|
1876 |
jpm |
10 |
|
983 |
aurelien |
11 |
<meta name="revisit-after" content="15 days" />
|
|
|
12 |
<meta name="robots" content="index,follow" />
|
|
|
13 |
<meta name="author" content="Delphine Cauquil, Aurélien Peronnet" />
|
|
|
14 |
<meta name="keywords" content="Tela Botanica, photographie, DEL" />
|
|
|
15 |
<meta name="description" content="Widget de vote sur les dernières images proposées dans DEL" />
|
|
|
16 |
|
|
|
17 |
<!-- Spécial mobile -->
|
|
|
18 |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
|
19 |
<!-- Favicones -->
|
1993 |
mathias |
20 |
<link rel="icon" type="image/png" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
|
|
|
21 |
<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
|
983 |
aurelien |
22 |
<!-- Feuilles de styles -->
|
|
|
23 |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
|
|
|
24 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>vote.css" media="screen" />
|
1876 |
jpm |
25 |
|
983 |
aurelien |
26 |
<!-- Javascript : bibliothèques -->
|
|
|
27 |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
|
986 |
aurelien |
28 |
<script type="text/Javascript">
|
995 |
aurelien |
29 |
|
986 |
aurelien |
30 |
</script>
|
983 |
aurelien |
31 |
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
|
|
|
32 |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
|
995 |
aurelien |
33 |
<!-- attention le script suivant a besoin des variables globales initialisées ci dessous, donc, ne rien utiliser
|
|
|
34 |
avant le document.ready() -->
|
983 |
aurelien |
35 |
<script src="<?=$url_js?>vote.js"></script>
|
|
|
36 |
</head>
|
|
|
37 |
<body>
|
991 |
aurelien |
38 |
<!-- WIDGET:DEL:VOTE - DEBUT -->
|
|
|
39 |
<div data-role="page">
|
1876 |
jpm |
40 |
<!-- Variables globales à réinjecter à chaque changement de page
|
995 |
aurelien |
41 |
(hors jquery mobile ne recharge pas le contenu du header -->
|
|
|
42 |
<script type="text/Javascript">
|
|
|
43 |
//<![CDATA[
|
|
|
44 |
var g_urlServiceVotes = "<?= $donnees['url_service_votes']; ?>";
|
|
|
45 |
var g_urlServiceUtilisateurs = "<?= $donnees['url_service_utilisateurs']; ?>";
|
|
|
46 |
var g_idObservation = "<?= $donnees['id_observation']; ?>";
|
1876 |
jpm |
47 |
<?= $donnees['votes_js']; ?>;
|
995 |
aurelien |
48 |
//]]>
|
|
|
49 |
</script>
|
992 |
aurelien |
50 |
<!-- /navbar -->
|
|
|
51 |
<div data-role="header" data-position="fixed">
|
|
|
52 |
<div data-role="navbar" >
|
|
|
53 |
<ul>
|
|
|
54 |
<?php if($donnees['urls_navigation']['url_precedent'] != null) { ?>
|
995 |
aurelien |
55 |
<li><a id="url_precedent" href="<?= $donnees['urls_navigation']['url_precedent']; ?>" data-transition="reverse slide">Précédent</a></li>
|
992 |
aurelien |
56 |
<?php } ?>
|
|
|
57 |
<?php if($donnees['urls_navigation']['url_suivant'] != null) { ?>
|
995 |
aurelien |
58 |
<li><a id="url_suivant" href="<?= $donnees['urls_navigation']['url_suivant']; ?>" data-transition="slide">Suivant</a></li>
|
992 |
aurelien |
59 |
<?php } ?>
|
|
|
60 |
</ul>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
<!-- /navbar -->
|
991 |
aurelien |
64 |
<div class="del-vote-contenu">
|
995 |
aurelien |
65 |
<div class="images">
|
1027 |
aurelien |
66 |
<div style="height:305px">
|
|
|
67 |
<img class="image_principale" src="<?= str_replace('XL', 'CRS', $donnees['url']); ?>" alt="image" />
|
|
|
68 |
</div>
|
995 |
aurelien |
69 |
<div class="conteneur_image_secondaire">
|
|
|
70 |
<?php $premiere_image = true; ?>
|
|
|
71 |
<?php foreach($donnees['images'] as $image) : ?>
|
|
|
72 |
<img class="image_secondaire <?php if($premiere_image) { echo 'image_active';} ?>" src="<?= str_replace('XL', 'CRX2S', $image['binaire.href']); ?>" alt="image" />
|
|
|
73 |
<?php $premiere_image = false; ?>
|
|
|
74 |
<?php endforeach ?>
|
|
|
75 |
</div>
|
991 |
aurelien |
76 |
</div>
|
|
|
77 |
<div class="info_observation">
|
|
|
78 |
<?= $donnees['titre']; ?>
|
|
|
79 |
</div>
|
|
|
80 |
<ul class="ui-listview" data-role="listview">
|
|
|
81 |
<?php foreach($donnees['liste_votes_determination'] as $vote_determination) : ?>
|
|
|
82 |
<li class="ui-li ui-li-static ui-body-c">
|
|
|
83 |
<div class="intitule_determination">
|
|
|
84 |
<div><?= $vote_determination['nom_sel']; ?></div>
|
1876 |
jpm |
85 |
<div class="auteur_determination">Proposé par : <?= $vote_determination['auteur_intitule']; ?></div>
|
991 |
aurelien |
86 |
</div>
|
|
|
87 |
<div id="vote_determination_<?= $vote_determination['id_commentaire']; ?>" class="votes_determination">
|
|
|
88 |
<a href="#" class="bouton_vote bouton_vote_oui" data-role="button" data-mini="true" data-inline="true"> oui</a>
|
|
|
89 |
<span class="nb_votes nb_votes_oui">
|
|
|
90 |
<?= $vote_determination['votes']['oui']; ?>
|
|
|
91 |
</span>
|
|
|
92 |
<a href="#" class="bouton_vote bouton_vote_non" data-role="button" data-mini="true" data-inline="true"> non</a>
|
|
|
93 |
<span class="nb_votes nb_votes_non">
|
|
|
94 |
<?= $vote_determination['votes']['non']; ?>
|
|
|
95 |
</span>
|
|
|
96 |
</div>
|
|
|
97 |
<hr style="visibility:hidden;clear:both" />
|
|
|
98 |
</li>
|
983 |
aurelien |
99 |
<?php endforeach ?>
|
991 |
aurelien |
100 |
</ul>
|
983 |
aurelien |
101 |
</div>
|
1876 |
jpm |
102 |
<div data-role="footer" data-theme="b">
|
995 |
aurelien |
103 |
<div data-role="navbar" >
|
|
|
104 |
<ul>
|
|
|
105 |
<li><a href="">Aide</a></li>
|
|
|
106 |
<li><a href="">Se connecter</a></li>
|
|
|
107 |
</ul>
|
|
|
108 |
</div>
|
983 |
aurelien |
109 |
</div>
|
1876 |
jpm |
110 |
</div>
|
983 |
aurelien |
111 |
<!-- WIDGET:DEL:VOTE - FIN -->
|
|
|
112 |
</body>
|
|
|
113 |
</html>
|