-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
41 lines (40 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cybersecurity</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link href="style.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Group 20</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<?php if (strpos($_SERVER['REQUEST_URI'], "index") !== false) : ?>
<li class="active"><a href="index.php">HOME</a></li>
<?php else : ?>
<li><a href="index.php">Home</a></li>
<?php endif; ?>
<?php if (strpos($_SERVER['REQUEST_URI'], "questionnaire") !== false) : ?>
<li class="active"><a href="questionnaire.php">QUESTIONNAIRE</a></li>
<?php else : ?>
<li><a href="questionnaire.php">Questionnaire</a></li>
<?php endif; ?>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
</div>
</nav>