-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
81 lines (64 loc) · 2.62 KB
/
header.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
<?php
require_once('db_core.php');
if(!isset($REG_TOKEN))
{
$REG_TOKEN = 'login_form.php';
}
function displayMenu()
{
//Display Menu Code ?>
<nav class="navbar fixed-top menu">
<div class="container-fluid">
<div>
<a class="blue_hyperlink" style="border:none;" href="http://localhost/Fabric" target="_self" class="nav-brand">
<span class="titletext_fabric">fabric
</span></a>
</div>
<form class="search_box_form" align="left" type="search">
<input type="text" id="search_box" placeholder="Search">
</form>
<div>
<ul class="menu_ul">
<li class="menu_item">
<a class="hyperlink" target="_self" href="<?php echo $_SESSION['user_un']?>">Profile</a></li>
<li class="menu_item">
<a class="hyperlink" href="logout.php" target="_self">Log Out</a></li>
</ul>
</div>
</div>
</nav>
<?php }?>
<!DOCTYPE html>
<!--Created by Aravind on 10 Oct 2017-->
<html lang="en">
<head>
<base target="_blank">
<link rel="icon" href="images/needle.png">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Fabric</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<!----------------GOOGLE FONTS----------------------->
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
<link rel="stylesheet" href="frameworks/animate.min.css">
<!--SMOOTH SCROLL-->
<script src="frameworks/TweenMax.min.js"></script>
<script src="frameworks/ScrollToPlugin.min.js"></script>
<!----------------BOOTSTRAP CSS----------------------->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
</head>
<body>
<!--Insert searchbox menu when user is signed in-->
<?php
if(isLoggedIn())
{
displayMenu();
}
else
{
echo"<nav class='navbar menu nav-brand' style='border:none;'>
<span class='titletext_fabric blue_hyperlink'>fabric</span>
</nav>";
}
?>