-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
42 lines (41 loc) · 1.46 KB
/
header.php
File metadata and controls
42 lines (41 loc) · 1.46 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
<?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">
<title>Chip advisor</title>
<link rel="stylesheet" href="style.css">
<script src="./js/dropdown.js" defer></script>
<script src="./js/main.js" defer></script>
</head>
<body>
<nav>
<div class="nav-flex span-max nav-cont">
<div class="nav-header">
<h3><a href="./index.php" style="color: #6a1b9a;">Chip advisor</a></h3>
</div>
<div class="dissapear dropdown">
<div class="drop-elms">
<a href="#pcs">Explore</a>
<a href="./pcs/recommend.php">Recommend</a>
<a href="./forum/index.php">Forum</a>
<br>
<?php if(isset($_SESSION['uid'])) {?>
<a href="#">Hi <?php echo $_SESSION['fname'] ?></a>
<?php } else {?>
<a href="./login/register.php">Sign up</a>
<?php }?>
<?php if(isset($_SESSION['uid'])) {?>
<a href="./login/logout.php">Log out</a>
<?php } else {?>
<a href="./login/login.php">Log in</a>
<?php }?>
</div>
</div>
<div class="link-toggle">
<img src="./assets/Hamburger Menu.svg" alt="hambuger menu">
</div>
</div>
</nav>