-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.php
More file actions
90 lines (64 loc) · 2.87 KB
/
event.php
File metadata and controls
90 lines (64 loc) · 2.87 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
<?php include("start.php"); ?>
<?php session_start(); ?>
<?php include("header.php"); ?>
<?php include("nav.php"); ?>
<section>
<aside class ="navg">
<?php include ("arbre.php"); ?>
</aside>
<aside class ="new">
<?php include('nouveauteEvenement.php'); ?>
<?php
if (!isset($_SESSION['ID'])) {
include("connexion.php");
}
if (isset($_SESSION['SWITCH']) AND $_SESSION['SWITCH'] == "organisateur" AND $_SESSION['ID'] != null) {
?>
<div class="positionBouton">
<a href="creationEvenement.php"><img src ="img/ampouleCreerEvenement.png"/></a>
</div>
<?php
}
?>
</aside>
<article class ="articleevent">
<?php
$bdd = new PDO('mysql:host=localhost;dbname=appinfo', 'root', '');
if (!isset($_GET['onglet'])) { //si ya rien
$result = $bdd->query('SELECT * FROM event LIMIT 0 , 30');
}
if (isset($_GET['onglet']) && !isset($_GET['sousOnglet'])) { //si ya juste onglet
$result = $bdd->query('SELECT * FROM event WHERE theme = "' . $_GET['onglet'] . '"');
}
if (isset($_GET['sousOnglet'])) { //si ya un sous onglet
$result = $bdd->query('SELECT * FROM event WHERE type = "' . $_GET['sousOnglet'] . '"');
}
while ($data = $result->fetch()) {
include("articleevent.php");
?>
<!-- <div class ="evenement">
<div class="color">
</div>
<?php
// echo '<img class = "imageflottante" alt="Photo de évenement" src= "'.$data["photo"].'"/>'
?>
<img class = "imageflottante" alt="Photo de évenement" src= "imgUser/gad_elmaleh.jpeg"/>
<div class ="texteEvent">
<h1><?php echo $data['nom']; ?></h1>
<strong>Adresse: </strong><?php echo $data['lieu']; ?><span><?php echo $data['lieu']; ?></span><br/>
<strong>Date et Heure :</strong><?php echo $data['date']; ?><br/>
<strong>Prix: </strong>30€ <br/>
<strong>Description: </strong> <?php echo $data['description']; ?><br/>
<strong>Note: </strong><img src="img/etoile.png" class="etoile" alt="Note" /><p id="note">(5,0 sur 5,0)</p><br/>
<p id="bouton1">Voir Plus de Détails</p>
<p id="bouton2">Voir Commentaires</p>
<p id="bouton3">Réserver</p>
</div>
</div> -->
<?php
}
$result->closeCursor();
?>
</article>
</section>
<?php include("footer.php"); ?>