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>
|
|
|
5 |
|
|
|
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" />
|
|
|
10 |
|
|
|
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 |
|
|
|
20 |
<!-- Favicones -->
|
|
|
21 |
<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
|
|
|
22 |
<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
|
|
|
23 |
|
|
|
24 |
<!-- Feuilles de styles -->
|
|
|
25 |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
|
|
|
26 |
<link rel="stylesheet" type="text/css" href="<?=$url_css?>vote.css" media="screen" />
|
|
|
27 |
|
|
|
28 |
<!-- Javascript : bibliothèques -->
|
|
|
29 |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
|
986 |
aurelien |
30 |
<script type="text/Javascript">
|
|
|
31 |
//<![CDATA[
|
|
|
32 |
$(document).bind("mobileinit", function(){
|
|
|
33 |
$.extend( $.mobile , {
|
|
|
34 |
ajaxEnabled: false
|
|
|
35 |
});
|
|
|
36 |
});
|
|
|
37 |
//]]>
|
|
|
38 |
</script>
|
983 |
aurelien |
39 |
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
|
|
|
40 |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
|
|
|
41 |
<script type="text/Javascript">
|
|
|
42 |
//<![CDATA[
|
984 |
aurelien |
43 |
var g_urlServiceVotes = "<?= $donnees['url_service_votes']; ?>";
|
|
|
44 |
var g_urlServiceUtilisateurs = "<?= $donnees['url_service_utilisateurs']; ?>";
|
992 |
aurelien |
45 |
var g_idObservation = "<?= $donnees['id_observation']; ?>";
|
984 |
aurelien |
46 |
<?= $donnees['votes_js']; ?>;
|
983 |
aurelien |
47 |
//]]>
|
|
|
48 |
</script>
|
|
|
49 |
<script src="<?=$url_js?>vote.js"></script>
|
|
|
50 |
</head>
|
|
|
51 |
<body>
|
991 |
aurelien |
52 |
<!-- WIDGET:DEL:VOTE - DEBUT -->
|
|
|
53 |
<div data-role="page">
|
992 |
aurelien |
54 |
<!-- /navbar -->
|
|
|
55 |
<div data-role="header" data-position="fixed">
|
|
|
56 |
<div data-role="navbar" >
|
|
|
57 |
<ul>
|
|
|
58 |
<?php if($donnees['urls_navigation']['url_precedent'] != null) { ?>
|
|
|
59 |
<li><a href="<?= $donnees['urls_navigation']['url_precedent']; ?>" class="ui-btn-active">Précédent</a></li>
|
|
|
60 |
<?php } ?>
|
|
|
61 |
<?php if($donnees['urls_navigation']['url_suivant'] != null) { ?>
|
|
|
62 |
<li><a href="<?= $donnees['urls_navigation']['url_suivant']; ?>">Suivant</a></li>
|
|
|
63 |
<?php } ?>
|
|
|
64 |
</ul>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
<!-- /navbar -->
|
991 |
aurelien |
68 |
<div class="del-vote-contenu">
|
|
|
69 |
<img id="image_principale" src="<?= str_replace('XL', 'CRS', $donnees['url']); ?>" alt="image" />
|
|
|
70 |
<div class="conteneur_image_secondaire">
|
|
|
71 |
<?php $premiere_image = true; ?>
|
|
|
72 |
<?php foreach($donnees['images'] as $image) : ?>
|
|
|
73 |
<img class="image_secondaire <?php if($premiere_image) { echo 'image_active';} ?>" src="<?= str_replace('XL', 'CRX2S', $image['binaire.href']); ?>" alt="image" />
|
|
|
74 |
<?php $premiere_image = false; ?>
|
|
|
75 |
<?php endforeach ?>
|
|
|
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>
|
|
|
85 |
<div class="auteur_determination">Proposé par : <?= $vote_determination['auteur.prenom']; ?> <?= $vote_determination['auteur.nom']; ?></div>
|
|
|
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>
|
991 |
aurelien |
102 |
<div data-role="footer" data-theme="b" data-position="fixed">
|
983 |
aurelien |
103 |
</div>
|
991 |
aurelien |
104 |
</div>
|
983 |
aurelien |
105 |
<!-- WIDGET:DEL:VOTE - FIN -->
|
|
|
106 |
</body>
|
|
|
107 |
</html>
|