-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathheader.php
106 lines (87 loc) · 3.64 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
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
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Intelligent Career Guidance</title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Lato:700%7CMontserrat:400,600" rel="stylesheet">
<!-- Bootstrap -->
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"/>
<!-- Font Awesome Icon -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Custom stlylesheet -->
<link type="text/css" rel="stylesheet" href="css/s.css"/>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--Header-->
<header id="header" class="transparent-nav" style="position: fixed;background-color: rgb(120, 70, 167); top: 0;">
<div class="container">
<div class="navbar-header">
<!-- Logo -->
<div class="navbar-brand">
<a class="logo" href="main.php">Career.ly</a>
</div>
<!-- /Logo -->
<!-- Mobile toggle -->
<button class="navbar-toggle">
<span></span>
</button>
<!-- /Mobile toggle -->
</div>
<?php
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true):
?>
<!-- Navigation -->
<nav id="nav">
<ul class="main-menu nav navbar-nav navbar-right">
<li><a href="main.php">Home</a></li>
<li class="dropdown">
<a class="dropbtn" href="javascript:void(0)">Services <span>⮟</span></a>
<div class="dropdown-content">
<a href="http://127.0.0.1/php%20CAREERLY/login.php">Career Prediction</a>
<a href="http://127.0.0.1/php%20CAREERLY/courses.php">Courses</a>
<a href="http://127.0.0.1/php%20CAREERLY/blog.php">Knowledge Network</a>
</div>
</li>
<li><a href="main.php#about">About Us</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li>
<a href="login.php">Login</a>
</li>
<li>
<a href="register.php">Register</a>
</li>
</ul>
</nav>
<!-- /Navigation -->
<?php else: ?>
<!-- Navigation -->
<nav id="nav">
<ul class="main-menu nav navbar-nav navbar-right">
<li><a href="main.php">Home</a></li>
<li class="dropdown">
<a class="dropbtn" href="javascript:void(0)">Services <span>⮟</span></i></a>
<div class="dropdown-content">
<a href="http://127.0.0.1:5000/">Career Prediction</a>
<a href="courses.php">Courses</a>
<a href="blog.php">Knowledge Network</a>
</div>
</li>
<li><a href="main.php#about">About Us</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="logout.php" >Log out</a></li>
</ul>
</nav>
<!-- /Navigation -->
<?php endif ?>
</div>
</header>
<!-- /Header -->