-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
159 lines (149 loc) · 5.88 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php require("w/0fonctions.php");
?>
<?php
require("w/1head.php");
?>
<script type="text/javascript">
<?php
include("lib/creerBdd.php");
global $id;
$reponse = $bdd->query('SELECT img_link FROM article ORDER BY article_uid DESC');
// Affichage de chaque message (toutes les données sont protégées par htmlspecialchars)
$images = array();
echo 'window.images = [' ;
$compteur=1;
while ($donnees = $reponse->fetch())
{
$compteur++;
echo '"'.htmlspecialchars($donnees['img_link']).'",';
}
echo "];";
$reponse->closeCursor();
?>
</script>
</head>
<body class="home page page-id-4 page-template page-template-page-home-php custom-background">
<?php
require("w/2lightbox.php");
require("w/3intro.php");
# PAGE 1/2 ===========================================================================-->
require("w/4headerScroller.php");
require("w/5notification.php");
?>
<div class="mobile-content">
<div class="flexslider">
<ul class="slides">
<?php
// DestinationClock();
?>
</ul>
</div>
</div>
<div class='timeline' style="">
<div class='timeline-bg timeline-bg1 show'></div>
<div class='timeline-controller'>
<div class='mode-icon mode-icon1 show'>
<?php
include("lib/creerBdd.php");
global $id;
$reponse = $bdd->query('SELECT img_link FROM article WHERE article_uid = '.$compteur);
// Affichage de chaque message (toutes les données sont protégées par htmlspecialchars)
while ($donnees = $reponse->fetch() ){
echo '<img class="centreImgTime" src="'.htmlspecialchars($donnees['img_link']).'">';
}
$reponse->closeCursor();
?>
</div>
</div>
<div class='inside'>
<div class='clocks'>
<div class='time'>
<span class='hours'>1</span>
</div>
</div>
<div class='modes' id="dest">
<?php
include("lib/creerBdd.php");
global $id;
$nom = ($lang==="fr") ? "nom" : "name" ;
$voirlarticle = ($lang==="fr") ? 'Voir l\'article' : 'See the article' ;
$reponse = $bdd->query('SELECT article_uid,'.$nom.' FROM article ORDER BY article_uid DESC LIMIT 3;');
// Affichage de chaque message (toutes les données sont protégées par htmlspecialchars)
while ($donnees = $reponse->fetch() ){
$au=$compteur + 1 - htmlspecialchars($donnees['article_uid']);
echo '<p class="mode mode'.$au.'" data-bg="'.$au.'">
<br/> <span class="titreArticle"> '.htmlspecialchars($donnees[$nom]).' </span>
<br/> <br/> <a class="btn btn-lg btn-primary" href="article.php?id='.htmlspecialchars($donnees['article_uid']).'"> <span style="display:block; font-size: 30px; font-weight: normal;font-family: inherit;"> '.$voirlarticle.'</span> </a>
</p>';
}
$reponse->closeCursor();
?>
</div>
</div>
</div>
<div id="lesArticles"></div>
<div class="carousel">
<div class="ourArticles" >
<a href="articles.php" class="discover btn btn-xs btn-primary" role="button" title="<?php echo ALTDAOA; ?>">
<h1 class="paddingZero"> <?php echo DAOA; ?></h1>
</a>
</div>
<div class="flex-slider carousel">
<ul class="slides">
<?php
include("lib/creerBdd.php");
$reponse = $bdd->query('SELECT nom, name,article_uid,img_link FROM article ORDER BY article_uid DESC');
while ($donnees = $reponse->fetch())
{
$nome = ($lang==='fr') ? 'nom' : 'name' ;
ImgCarroussel(htmlspecialchars($donnees[$nome]),htmlspecialchars($donnees['article_uid']),'article', htmlspecialchars($donnees['img_link']));
}
$reponse->closeCursor();
?>
</ul>
</div>
</div>
<div class="carousel" >
<div class="ourArticles">
<a href="challenges.php" class="discover btn btn-xs btn-primary" role="button" title="<?php echo ALTDAOC; ?>">
<h1> <?php echo DAOC; ?> </h1>
</a>
</div>
<div class="flex-slider carousel">
<ul class="slides">
<?php
include("lib/creerBdd.php");
$reponse = $bdd->query('SELECT nom, name,challenge_uid,img_link FROM challenge ORDER BY challenge_uid DESC');
while ($donnees = $reponse->fetch())
{
$nome = ($lang==='fr') ? 'nom' : 'name' ;
ImgCarroussel(htmlspecialchars($donnees[$nome]),htmlspecialchars($donnees['challenge_uid']),'challenge', htmlspecialchars($donnees['img_link']));
}
$reponse->closeCursor();
?>
</ul>
</div>
</div>
<div id="caracteristiques"></div><!--INDISPENSABLE : WHY?-->
<div class="galery" id="gallery">
<div class="inside">
<div class="slider">
<div class="flexslider">
<ul class="slides">
<li><img alt="Pedra Da Gavea, Rio de Janeiro, Brazil" src="https://www.dropbox.com/s/hvif42n3l17rgog/H1.jpg?dl=1" /></li>
<li><img alt="Aguas Calientes, Tupiza Tours, Bolivia" src="https://www.dropbox.com/s/xlwjnz50oj6igc3/H2.jpg?dl=1" /></li>
<li><img alt="Salar de Uyuni, Bolivia" src="https://www.dropbox.com/s/w5yhhma435scqqm/H3.jpg?dl=1" /></li>
<li><img alt="Death Road, La Paz, Bolivia" src="https://www.dropbox.com/s/f9d3taiq7692c5t/H4.jpg?dl=1" /></li>
<li><img alt="Machu Picchu, Cuzco, Peru" src="https://www.dropbox.com/s/jiv0yfhr1svilbq/H5.jpg?dl=1" /></li>
<li><img alt="Cañon del Colca, Cabanaconde, Peru" src="https://www.dropbox.com/s/o25hln4wil9kwat/H6.jpg?dl=1" /></li>
<li><img alt="Kuelap, Peru" src="https://www.dropbox.com/s/jrn4g6ql75u13z3/H7.jpg?dl=1" /></li>
<li><img alt="Rotoroa lake, Nelson Lakes Park, New Zealand" src="https://www.dropbox.com/s/q8h0ofbx1gf20lu/H8.jpg?dl=1" /></li>
<li><img alt="Cascade Saddle, New Zealand" src="https://www.dropbox.com/s/fhd7gt6l42vdc6j/H9.jpg?dl=1" /></li>
<li><img alt="Mount Cook, New Zealand" src="https://www.dropbox.com/s/odqibwa2rk9ly61/H10.jpg?dl=1" /></li>
</ul>
</div>
</div>
</div>
</div>
<?php require("w/8footer.php");?>
<?php require("w/9end.php");?>