-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsection.php
More file actions
137 lines (121 loc) · 5.92 KB
/
section.php
File metadata and controls
137 lines (121 loc) · 5.92 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
<section>
<?php
$bdd->exec('SET NAMES utf8');
?>
<aside class ="new">
<?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
}
if (isset($_GET['valider'])) {
$valeurInscription = $_GET['valider'];
if ($valeurInscription == 1) {
?>
<div class="positionMessageInscription">
<h2>Bonjour, votre inscription a bien été prise en compte!</h2>
</div>
<?php
}
}
include('nouveauteEvenement.php');
?>
</aside>
<aside class ="navg">
<?php include ("arbre.php"); ?>
</aside>
<aside class ="toporg">
<div class="titreToporg">
<p> Top Organisateur:</p>
</div><br/>
1 - COMEXPOSIUM <br/>
2 - FeteInfo <br/>
3 - Kompass <br/>
4 - Night-Fever-Animation <br/>
5 - JeffNight <br/>
6 - Initial-Isefac <br/>
7 - FlunchJobs <br/>
8 - SCOexpo <br/>
9 - Animafac <br/>
10 - France Festivals <br/>
</aside>
<article>
<!-- <div class ="topevent"> -->
<div>
<?php
$result = $bdd->query('SELECT ID,nom,note,photo FROM event ORDER BY note DESC LIMIT 0 , 12');
$compte = 1;
?><br/><br><br/><img src="img/TitreTopEventv1.1.png"/> <br/><img src ="img/SousTopEventv1.1.png"/><br/><br/> <br/><?php
$resultat = array();
$i = 0;
while ($data = $result->fetch()) {
$resultat[$i++] = $data;
}
$result->closeCursor();
//print_r($resultat);
?>
<table style="margin-left : 100px;">
<tr>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[0]["ID"] ; ?>"><img src= "<?php echo $resultat[0]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[1]["ID"] ; ?>"><img src= "<?php echo $resultat[1]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[2]["ID"] ; ?>"><img src= "<?php echo $resultat[2]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
</tr>
<tr>
<td><?php echo $resultat[0]['nom']; ?></td>
<td><?php echo $resultat[1]['nom']; ?></td>
<td><?php echo $resultat[2]['nom']; ?></td>
</tr>
<tr>
<td><?php echo $resultat[0]['note']; ?></td>
<td><?php echo $resultat[1]['note']; ?></td>
<td><?php echo $resultat[2]['note']; ?></td>
</tr>
<tr>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[3]["ID"] ; ?>"><img src= "<?php echo $resultat[3]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[4]["ID"] ; ?>"><img src= "<?php echo $resultat[4]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[5]["ID"] ; ?>"><img src= "<?php echo $resultat[5]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
</tr>
<tr>
<td><?php echo $resultat[3]['nom']; ?></td>
<td><?php echo $resultat[4]['nom']; ?></td>
<td><?php echo $resultat[5]['nom']; ?></td>
</tr>
<tr>
<td><?php echo $resultat[3]['note']; ?></td>
<td><?php echo $resultat[4]['note']; ?></td>
<td><?php echo $resultat[5]['note']; ?></td>
</tr>
<tr>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[6]["ID"] ; ?>"><img src= "<?php echo $resultat[6]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[7]["ID"] ; ?>"><img src= "<?php echo $resultat[7]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
<td rowspan="3"><a href="<?php echo 'eventDetaille.php?ID='.$resultat[8]["ID"] ; ?>"><img src= "<?php echo $resultat[8]["photo"] ; ?>" height="200" width="160"/></a></td>
<td><?php echo $compte++ ?></td>
</tr>
<tr>
<td><?php echo $resultat[6]['nom']; ?></td>
<td><?php echo $resultat[7]['nom']; ?></td>
<td><?php echo $resultat[8]['nom']; ?></td>
</tr>
<tr>
<td><?php echo $resultat[6]['note']; ?></td>
<td><?php echo $resultat[7]['note']; ?></td>
<td><?php echo $resultat[8]['note']; ?></td>
</tr>
</table>
</div>
</article>
</section>