-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (42 loc) · 1.33 KB
/
index.php
File metadata and controls
46 lines (42 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/actualite_v1/">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<title>New</title>
</head>
<body>
<?php
include_once("Controller/controller.php");
if (isset($_GET['id'])) {
chargerDetails($_GET['id']);
}
if(isset($_GET['action'])) {
if ($_GET['action'] == 'sport') {
ChargerArticle("sport");
} else if ($_GET['action'] == 'education') {
ChargerArticle("education");
} else if ($_GET['action'] == 'sante') {
ChargerArticle("sante");
} else if ($_GET['action'] == 'politique') {
ChargerArticle("politique");
} else {
ChargerArticle("accueil");
}
} else {
if (!isset($_GET['id']))
ChargerArticle("accueil");
}
?>
</body>
<script>
$(".navbar li").on("click", function() {
$(".navbar li").removeClass("active");
$(this).addClass("active");
});
</script>
</html>