-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
executable file
·87 lines (69 loc) · 3.17 KB
/
navbar.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
<?php
session_start();
?>
<!DOCTYPE html>
<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">
<link rel="stylesheet" href="/navbar.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>Document</title>
</head>
<body>
<nav class="main_nav">
<div class="logo_explore">
<a href="/index.php"><img src="/RESSOURCES/css/img/logo.png" alt="Logo"></a>
<div class="drpdwn">
<button class="btn__ drpbtn"><span>Catégories</span>
<i class="fsa fcd"></i>
</button>
<div class="drpdwn_cntnt">
<a href="#">Développement</a>
<a href="#">Business</a>
<a href="#">Design</a>
<a href="#">Marketing</a>
<a href="#">Mode de vie</a>
<a href="#">Musique</a>
</div>
</div>
</div>
<form method="POST" action="/search.php">
<div class="recherche">
<button type="submit" class="btn" name="search">Search</button>
<input type="text" class='search_input' type="search" class="form-control" name="keyword" value="<?php echo isset($_POST['keyword']) ? $_POST['keyword'] : '' ?>" placeholder="chercher ici..." required="" />
</div>
</form>
<div class="sign_up_in">
<?php if ((isset($_SESSION['email_etd']))) { ?>
<div class="drpdwn compte">
<button class="drpbtn"> <a href="#"><img src="/RESSOURCES/css/img/profil_placeholder.png" alt=""></a>
<i class="fsa fcd"></i>
</button>
<div class="drpdwn_cntnt">
<a href="<?php echo ('/profil_etudiant.php') ?>">Mon tableau de bord</a>
<a href="<?php echo ('/parametres.php') ?>">parametres</a>
<a href="/logout.php">Déconnexion</a>
</div>
</div>
</div>
<?php } else if ((isset($_SESSION['email_ens']))) { ?>
<div class="drpdwn compte">
<button class="drpbtn"> <a href="#"><img src="/RESSOURCES/css/img/profil_placeholder.png" alt=""></a>
<i class="fsa fcd"></i>
</button>
<div class="drpdwn_cntnt">
<a href="<?php echo ('/profil_enseignant.php') ?>">Mon tableau de bord</a>
<a href="<?php echo ('/parametres.php') ?>">parametres</a>
<a href="/logout.php">Déconnexion</a>
</div>
</div>
<?php } else { ?>
<a class="btn_connect" href="/login.php">Se Connecter</a>
<a class="btn__ btn_inscrire" href="/registration.php">S'inscrire gratuitement</a>
<?php } ?>
</div>
</nav>
</body>
</html>