-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·41 lines (28 loc) · 1.04 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
<?php
session_start();
$_SESSION['app_root'] = __DIR__;
include $_SESSION['app_root'].'/asset/analyticstracking.php';
include $_SESSION['app_root'].'/view/default/template_start.php';
include $_SESSION['app_root'].'/view/default/btn-admin.php';
include $_SESSION['app_root'].'/view/default/header.php';
?>
<section class="flex flex-column-center">
<div class="flex flex-column-space-around"><!-- ROW -->
<?php
if(isset($_SESSION['listeMetiers']) OR isset($_SESSION['liste_pays'])) {
echo "<h2>Resultats de votre recherche</h2>";
if(isset($_SESSION['listeMetiers'])) {
include $_SESSION['app_root'].'/view/result-country.php';
}
elseif(isset($_SESSION['liste_pays'])){
include $_SESSION['app_root'].'/view/result-shortage.php';
}
}
else{
include $_SESSION['app_root'].'/view/form/searchByCountry.php';
include $_SESSION['app_root'].'/view/form/searchByShortage.php';
}
?>
</div><!-- /endROW -->
</section>
<?php include $_SESSION['app_root'].'/view/default/template_end.php'; ?>