-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivite.php
More file actions
479 lines (447 loc) · 24.4 KB
/
Copy pathactivite.php
File metadata and controls
479 lines (447 loc) · 24.4 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Association SPA - Activité</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="Free HTML Templates" name="keywords">
<meta content="Free HTML Templates" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans&family=Nunito:wght@600;700;800&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<!-- Flaticon Font -->
<link href="lib/flaticon/font/flaticon.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />
<!-- Customized Bootstrap Stylesheet -->
<link href="css/style.css" rel="stylesheet">
</head>
<style>
.gallery {
padding: 10px;
border: 3px solid #ccc;
float: left;
width: 90%;
height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 50px;
}
.gallery:hover {
border: 5px solid #777;
}
.galleryAll{
width: 95%;
height: auto;
display: flex;
flex-direction: column;
background-color: white;
align-items: center;
justify-content: space-around;
}
</style>
<body>
<?php
$mysqli = new mysqli(''); // Connexion BDD
if ($mysqli->connect_errno)
{
// Affichage d'un message d'erreur
echo "Error: Problème de connexion à la BDD \n";
echo "Errno: " . $mysqli->connect_errno . "\n";
echo "Error: " . $mysqli->connect_error . "\n";
// Arrêt du chargement de la page
exit();
}
// Instructions PHP à ajouter pour l'encodage utf8 du jeu de caractères
if (!$mysqli->set_charset("utf8")) {
printf("Pb de chargement du jeu de car. utf8 : %s\n", $mysqli->error);
exit();
}
$t_config ="SELECT * FROM t_configuration_con;";
$result2 = $mysqli->query($t_config);
if ($result2 == false) //Erreur lors de l’exécution de la requête
{ // La requête a echoué
echo "Error: La requête a echoué \n";
echo "Errno: " . $mysqli->errno . "\n";
echo "Error: " . $mysqli->error . "\n";
exit();
}
else //La requête s’est bien exécutée (<=> couleur verte dans phpmyadmin)
{
$asso = $result2->fetch_assoc();
}
?>
<!-- Topbar Start -->
<div class="container-fluid">
<div class="row bg-secondary py-2 px-lg-5">
<div class="col-lg-6 text-center text-lg-left mb-2 mb-lg-0">
<div class="d-inline-flex align-items-center">
<a class="text-white pr-3" href="">FAQs</a>
<span class="text-white">|</span>
<a class="text-white px-3" href="">Aide</a>
<span class="text-white">|</span>
<a class="text-white pl-3" href="">Support</a>
</div>
</div>
<div class="col-lg-6 text-center text-lg-right">
<div class="d-inline-flex align-items-center">
<a class="text-white px-3" href="">
<i class="fab fa-facebook-f"></i>
</a>
<a class="text-white px-3" href="">
<i class="fab fa-twitter"></i>
</a>
<a class="text-white px-3" href="">
<i class="fab fa-linkedin-in"></i>
</a>
<a class="text-white px-3" href="">
<i class="fab fa-instagram"></i>
</a>
<a class="text-white pl-3" href="">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div>
<div class="row py-3 px-lg-5">
<div class="col-lg-4">
<a href="" class="navbar-brand d-none d-lg-block">
<h1 class="m-0 display-5 text-capitalize"><span class="text-primary">Association </span>
<?php
echo($asso['con_nom']);
?>
</h1>
</a>
</div>
<div class="col-lg-8 text-center text-lg-right">
<div class="d-inline-flex align-items-center">
<div class="d-inline-flex flex-column text-center pr-3 border-right">
<h6>Heure D'ouverture</h6>
<p class="m-0">8 heures à 19 heures</p>
</div>
<div class="d-inline-flex flex-column text-center px-3 border-right">
<h6>Envoyez-nous un email</h6>
<p class="m-0">SPA@example.com</p>
</div>
<div class="d-inline-flex flex-column text-center pl-3">
<h6>Appelez-Nous</h6>
<p class="m-0">+35 2 00 00 00 00</p>
</div>
</div>
</div>
</div>
</div>
<!-- Topbar End -->
<!-- Navbar Start -->
<div class="container-fluid p-0">
<nav class="navbar navbar-expand-lg bg-dark navbar-dark py-3 py-lg-0 px-lg-5">
<a href="" class="navbar-brand d-block d-lg-none">
<h1 class="m-0 display-5 text-capitalize font-italic text-white"><span class="text-primary"><?php echo($asso['con_nom']);?></span></h1>
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between px-3" id="navbarCollapse">
<div class="navbar-nav mr-auto py-0">
<a href="index.php" class="nav-item nav-link">Accueil</a>
<a href="activite.php" class="nav-item nav-link">Activité</a>
<a href="service.php" class="nav-item nav-link">Service</a>
<a href="session.php" class="nav-item nav-link">Connexion</a>
<a href="inscription.php" class="nav-item nav-link">Inscription</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">Pages</a>
<div class="dropdown-menu rounded-0 m-0">
<a href="blog.html" class="dropdown-item">Blog Grid</a>
<a href="single.html" class="dropdown-item">Blog Detail</a>
</div>
</div>
<a href="contact.html" class="nav-item nav-link active">Contact</a>
</div>
<a href="" class="btn btn-lg btn-primary px-3 d-none d-lg-block">Get Quote</a>
</div>
</nav>
</div>
<!-- Navbar End -->
<!-- About Start -->
<div class="container py-5">
<div class="row py-5">
<div class="col-lg-7 pb-5 pb-lg-0 px-3 px-lg-5">
<h4 class="text-secondary mb-3">À Propos de nous</h4>
<h1 class="display-4 mb-4"><span class="text-primary">Vous</span> Désirez <span class="text-secondary">Adopter</span></h1>
<h5 class="text-muted mb-3">Amet stet amet ut. Sit no vero vero no dolor. Sed erat ut sea. Just clita ut stet kasd at diam sit erat vero sit.</h5>
<p class="mb-4">Dolores lorem lorem ipsum sit et ipsum. Sadip sea amet diam dolore sed et. Sit rebum labore sit sit ut vero no sit. Et elitr stet dolor sed sit et sed ipsum et kasd ut. Erat duo eos et erat sed diam duo</p>
<ul class="list-inline">
<li><h5><i class="fa fa-check-double text-secondary mr-3"></i>Meilleur le Secteur</h5></li>
<li><h5><i class="fa fa-check-double text-secondary mr-3"></i>Service d'Urgence</h5></li>
<li><h5><i class="fa fa-check-double text-secondary mr-3"></i>24/7 Support Animalier</h5></li>
</ul>
<a href="" class="btn btn-lg btn-primary mt-3 px-4">En Apprendre Plus</a>
</div>
<div class="galleryAll">
<?php
$t_pad_acti ='SELECT * FROM t_pad_activite_pad;';
$result2 = $mysqli->query($t_pad_acti);
if ($result2 == false) //Erreur lors de l’exécution de la requête
{ // La requête a echoué
echo "Error: La requête a echoué \n";
echo "Errno: " . $mysqli->errno . "\n";
echo "Error: " . $mysqli->error . "\n";
exit();
}
while($pad = $result2->fetch_assoc()){
// Requête pour la gallerie
$t_associe_asc ="SELECT * FROM t_associe_asc WHERE pad_id=".$pad['pad_id'].";";
$result3 = $mysqli->query($t_associe_asc);
if ($result3 == false) //Erreur lors de l’exécution de la requête
{ // La requête a echoué
echo "Error: La requête a echoué \n";
echo "Errno: " . $mysqli->errno . "\n";
echo "Error: " . $mysqli->error . "\n";
exit();
}
$t_res_nb ="SELECT COUNT(*) as res FROM t_pad_activite_pad JOIN t_atelier_ate USING (pad_id) JOIN t_ressource_res USING (ate_id) WHERE pad_id=".$pad['pad_id'].";";
$result4 = $mysqli->query($t_res_nb);
if ($result4 == false) //Erreur lors de l’exécution de la requête
{ // La requête a echoué
echo "Error: La requête a echoué \n";
echo "Errno: " . $mysqli->errno . "\n";
echo "Error: " . $mysqli->error . "\n";
exit();
}
$ressource = $result4->fetch_assoc();
// Création Gallerie
echo ('<div class="gallery">');
echo ('<img src="'.$pad['pad_fichier_image'].'" width="150" height="150" style="padding 15 0 0 0"></a>');
echo('<h1>'.$pad['pad_intitule'].'</h1>');
echo ('<br>');
echo ('<h2>Description activité :</h2>');
echo ('<br>');
echo ('<h3>'.$pad['pad_description'].'</h3>');
if (($result3->num_rows)>0){
echo ('<h4>Animat-eur(s)/trice(s) :</h4>');
while ($associe = $result3->fetch_assoc()){
echo('<br>');
echo('<h4 style="color: red">- '.$associe['com_pseudo'].'</h4>');
}
}else{
echo ('<h4>Animat-eur(s)/trice(s) :</h4>');
echo ('<br>');
echo('<h4 style="color: red"> Aucun animat-eur(s)/trice(s)</h4>');
}
echo('<br>');
echo('<h6>Nombre(s) de ressource(s) : '.$ressource['res'].'</h6>');
echo('</div>');
}
$mysqli -> close();
?>
</div>
<div class="col-lg-5">
<div class="row px-3">
<!-- <div class="col-12 p-0">
<img class="img-fluid w-100" src="img/about-1.jpg" alt="">
</div>
<div class="col-6 p-0">
<img class="img-fluid w-100" src="img/about-2.jpg" alt="">
</div>
<div class="col-6 p-0">
<img class="img-fluid w-100" src="img/about-3.jpg" alt="">
</div> -->
</div>
</div>
</div>
</div>
<!-- About End -->
<!-- Features Start -->
<!-- Features End -->
<!-- Team Start -->
<div class="container mt-5 pt-5 pb-3">
<div class="d-flex flex-column text-center mb-5">
<h4 class="text-secondary mb-3">Notre équipe</h4>
<h1 class="display-4 m-0">Rencontrez nos Responable<span class="text-primary"> & Animat-eur/rice</span></h1>
</div>
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="team card position-relative overflow-hidden border-0 mb-4">
<img class="card-img-top" src="img/team-1.jpg" alt="">
<div class="card-body text-center p-0">
<div class="team-text d-flex flex-column justify-content-center bg-light">
<h5>Julie Mao</h5>
<i>Responsable</i>
</div>
<div class="team-social d-flex align-items-center justify-content-center bg-dark">
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="team card position-relative overflow-hidden border-0 mb-4">
<img class="card-img-top" src="img/team-2.jpg" alt="">
<div class="card-body text-center p-0">
<div class="team-text d-flex flex-column justify-content-center bg-light">
<h5>Naomie Nagata</h5>
<i>Animatrice</i>
</div>
<div class="team-social d-flex align-items-center justify-content-center bg-dark">
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="team card position-relative overflow-hidden border-0 mb-4">
<img class="card-img-top" src="img/team-3.jpg" alt="">
<div class="card-body text-center p-0">
<div class="team-text d-flex flex-column justify-content-center bg-light">
<h5>Camina Drummer</h5>
<i>Animatrice</i>
</div>
<div class="team-social d-flex align-items-center justify-content-center bg-dark">
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="team card position-relative overflow-hidden border-0 mb-4">
<img class="card-img-top" src="img/team-4.jpg" alt="">
<div class="card-body text-center p-0">
<div class="team-text d-flex flex-column justify-content-center bg-light">
<h5>Lilly Fry</h5>
<i>Animatrice</i>
</div>
<div class="team-social d-flex align-items-center justify-content-center bg-dark">
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-primary rounded-circle text-center px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Team End -->
<!-- Footer Start -->
<div class="container-fluid bg-dark text-white py-5 px-sm-3 px-md-5">
<div class="row pt-5">
<div class="col-lg-4 col-md-12 mb-5">
<h1 class="mb-3 display-5 text-capitalize text-white"><span class="text-primary">Association </span>
<?php
echo($asso['con_nom']);
?>
</h1>
<p class="m-0">
ipsumhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
</p>
</div>
<div class="col-lg-8 col-md-12">
<div class="row">
<div class="col-md-4 mb-5">
<h5 class="text-primary mb-4">Entrez En Contact</h5>
<p><i class="fa fa-map-marker-alt mr-2"></i>
<?php
echo($asso['con_adresse_postale']);
?>
</p>
<p><i class="fa fa-phone-alt mr-2"></i>
<?php
echo($asso['con_telephone']);
?>
</p>
<p><i class="fa fa-envelope mr-2"></i>
<?php
echo($asso['con_adresse_mail']);
?>
</p>
<div class="d-flex justify-content-start mt-4">
<a class="btn btn-outline-light rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-light rounded-circle text-center mr-2 px-0" style="width: 36px; height: 36px;" href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
<div class="col-md-4 mb-5">
<h5 class="text-primary mb-4">Liens populaires</h5>
<div class="d-flex flex-column justify-content-start">
<a class="text-white mb-2" href="index.php"><i class="fa fa-angle-right mr-2"></i>Accueil</a>
<a class="text-white mb-2" href="activite.php"><i class="fa fa-angle-right mr-2"></i>Activité</a>
</div>
</div>
<div class="col-md-4 mb-5">
<h5 class="text-primary mb-4">Newsletter</h5>
<form action="">
<div class="form-group">
<input type="email" class="form-control border-0" placeholder="Votre Email" required="required" />
</div>
<div>
<button class="btn btn-lg btn-primary btn-block border-0" type="submit">Soumettre</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid text-white py-4 px-sm-3 px-md-5" style="background: #111111;">
<div class="row">
<div class="col-md-6 text-center text-md-left mb-3 mb-md-0">
<p class="m-0 text-white">
© <a class="text-white font-weight-bold" href="#">Your Site Name</a>. All Rights Reserved. Designed by
<a class="text-white font-weight-bold" href="https://htmlcodex.com">HTML Codex</a>
</p>
</div>
<div class="col-md-6 text-center text-md-right">
<ul class="nav d-inline-flex">
<li class="nav-item">
<a class="nav-link text-white py-0" href="#">Privacy</a>
</li>
<li class="nav-item">
<a class="nav-link text-white py-0" href="#">Terms</a>
</li>
<li class="nav-item">
<a class="nav-link text-white py-0" href="#">FAQs</a>
</li>
<li class="nav-item">
<a class="nav-link text-white py-0" href="#">Help</a>
</li>
</ul>
</div>
</div>
</div>
<!-- Footer End -->
<?php
$mysqli->close();
?>
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary back-to-top"><i class="fa fa-angle-double-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/tempusdominus/js/moment.min.js"></script>
<script src="lib/tempusdominus/js/moment-timezone.min.js"></script>
<script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Contact Javascript File -->
<script src="mail/jqBootstrapValidation.min.js"></script>
<script src="mail/contact.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>