-
Notifications
You must be signed in to change notification settings - Fork 0
/
candidats.php
102 lines (60 loc) · 2.69 KB
/
candidats.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
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Osthoffen 2020</title>
<meta charset="UTF-8">
<meta name="description" content="Site Internet de la liste municipale Osthoffen 2020">
<meta name="keywords" content="Osthoffen, elections, municipal, 2020, mairie">
<meta name="author" content="Lucas LETT">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="files/logo.png" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include "overall/menu.php"; ?>
<div id="content_candidat" style="display:block;">
<center>
<h1 style="background-color:orange">Nos candidats</h1>
</center>
<?php
$bdd_req = $pdo->prepare("SELECT * FROM candidats ORDER BY ID");
$bdd_req->execute();
while ($row = $bdd_req->fetch()) {
if(($row['ID'] % 2) == 1 )
{
?>
<div class="candidat">
<div class="photo_candidat">
<img style="border-radius: 100%; width:250px; height:250px" src="files/candidats/<?php echo $row['PHOTO'] ?>">
</div>
<div class="presentation_candidat">
<h3 style="margin-bottom:0"><?php echo $row['NOM'] ?></h3>
<?php echo $row['INFOS'] ?><br><br>
<?php echo $row['DESCRIPTION'] ?>
</div>
</div>
<?php
} else {
?>
<div class="candidat">
<div class="presentation_candidat presentation_candidat_right" style="text-align:right">
<h3 style="margin-bottom:0"><?php echo $row['NOM'] ?></h3>
<?php echo $row['INFOS'] ?><br><br>
<?php echo $row['DESCRIPTION'] ?>
</div>
<div class="photo_candidat">
<img style="border-radius: 100%;width:250px; height:250px" src="files/candidats/<?php echo $row['PHOTO'] ?>">
</div>
<div class="presentation_candidat presentation_candidat_left">
<h3 style="margin-bottom:0"><?php echo $row['NOM'] ?></h3>
<?php echo $row['INFOS'] ?><br><br>
<?php echo $row['DESCRIPTION'] ?>
</div>
</div>
<?php
}
}
?>
</div>
</body>
</html>