-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
59 lines (50 loc) · 1.96 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
<?php
session_start();
if (isset($_GET['module'])) {
$module = htmlspecialchars($_GET['module']);
if ($module == 'connexion' || $module == 'inscription' || $module == 'profil' || $module == 'liste' || $module == 'contact' || $module == 'forum') {
require_once __DIR__.'/module/'.$module.'/'.$module.'.php';
} else {
require_once __DIR__.'/template/404.php';
}
} else {
$titre = 'Accueil';
ob_start();
$_SESSION['current_page'] = $_SERVER['REQUEST_URI'];
?> <div class="responsive index main">
<div class="bloc-index mx-auto">
<div class="container fadeInLeftBig animated text-center">
<div class="titre-bloc-index">
<img src="image/systeme/logo.png" alt="index"/>
</div>
<div class="choix-bloc-index">
<form method="GET">
<input type="hidden" name="module" value="liste"/>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="filtre" value="nom" checked="checked">Nom <i class="fas fa-sort-alpha-down"></i>
</label>
<label class="btn btn-secondary">
<input type="radio" name="filtre" value="ville">Ville <i class="fas fa-city"></i>
</label>
<label class="btn btn-secondary">
<input type="radio" name="filtre" value="pays">Pays <i class="fas fa-flag-usa"></i>
</label>
</div>
<div class="saisie-bloc-index mx-auto">
<input type="text" placeholder="Recherchez votre aéroport avec le filtre" name="saisie"/>
</div>
<div class="mx-auto">
<p><button class="btn btn-secondary" type="submit">Rechercher <i class="fas fa-search"></i></button></p>
</div>
</form>
<a href="?module=liste" class="btn btn-secondary">Voir tous les aéroports</a>
</div>
</div>
</div>
</div>
<?php
$contenu = ob_get_clean();
require_once __DIR__.'/template/layout.php';
}
?>