-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·110 lines (94 loc) · 3.26 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
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
<?php
// On démarre la session
//session_start();
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- jQuery -->
<script src="plugin/jQuery/jquery-3.6.0.min.js"></script>
<!-- CKEditor -->
<script type="text/javascript" src="plugin/ckeditor/build/ckeditor.js"></script>
<!-- Scripts -->
<script type="text/javascript" src="js/checkPassword.js"></script>
<script type="text/javascript" src="js/load.js"></script>
<script type="text/javascript" src="js/modal.js"></script>
<script type="text/javascript" src="js/responsiveNavbar.js"></script>
<script type="text/javascript" src="js/chatBot.js"></script>
<!-- FontAwesome -->
<link href="assets/fontawesome/css/all.min.css" rel="stylesheet">
<!-- FRAMEWORK -->
<link rel="stylesheet" type="text/css" href="plugin/bulma/css/bulma.css">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/chatbot.css">
<link rel="stylesheet" type="text/css" href="assets/css/colors.css">
<link rel="stylesheet" type="text/css" href="assets/css/font.css">
<link rel="stylesheet" type="text/css" href="assets/css/general.css">
<link rel="stylesheet" type="text/css" href="assets/css/home.css">
<link rel="stylesheet" type="text/css" href="assets/css/main.css">
<link rel="stylesheet" type="text/css" href="assets/css/modal.css">
<link rel="stylesheet" type="text/css" href="assets/css/navbar.css">
<title>Emploi - Listenbourg</title>
</head>
<?php
if (isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = "home";
}
?>
<body>
<?php
if ($page !== "main") {
?>
<div id="navbar"></div>
<script>
// Chargement du controlleur de la page demandée
loadView("navbar");
</script>
<?php
}
?>
<div id="controller"></div>
<!-- Chat bot -->
<div id="chat-circle" class="btn btn-raised">
<div id="chat-overlay"></div>
<i class="fa-solid fa-robot fa-lg"></i>
</div>
<div class="chat-box">
<div class="chat-box-header">
ChatBot
<span class="chat-box-toggle"><i class="material-icons">close</i></span>
</div>
<div class="chat-box-body">
<div class="chat-box-overlay">
</div>
<div class="chat-logs">
</div>
<!--chat-log -->
</div>
<div class="chat-input">
<form>
<input type="text" id="chat-input" placeholder="Send a message..." />
<button type="submit" class="chat-submit" id="chat-submit"><i class="material-icons">send</i></button>
</form>
</div>
</div>
<script>
// Chargement du controlleur de la page demandée
loadController("<?php echo $page ?>");
</script>
<!-- Les events -->
<?php
if (isset($_GET['event'])) {
$event = $_GET['event'];
if ($event == 'logout') {
session_destroy();
header('Location: .');
}
}
?>
</body>
</html>