You are on page 1of 1

Header.

php (must be in includes folder)


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ashesi Class Simulation</title>
<!--link to boostrap -->
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
>
</head>
<body>
<!--navigation bar code here-->
<div class="container"> <!-- to contain a collection of iterms i.e. 3
navigation items-->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="lecturer.php">
Lecturers
</a>
<a class="navbar-brand" href="student.php">
Students
</a>
<a class="navbar-brand" href="admin.php">
Admin
</a>

</div>

<div class ="navbar-nav ml-auto">


<!-- show username and logout button-->
<?php
if(isset($_SESSION['Username']))
{?>
<p>Hello :<?php echo $_SESSION["Username"] ?>!
<a href="logout.php" style ="float: center">Log Out </a>
</p>
<?php
}
?>

</div>
</div>
</nav>

</body>
</html>

You might also like