<?php

  //header.php
  
  session_start();

  if(!isset($_SESSION["admin_username"]))
  {
    header('location: login.html');
  }

?>

<!DOCTYPE html>
<html>
  <head>
    <style type="text/css">
    
    </style>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>Admin Panel</title>

    <!-- Custom CSS -->
    <link rel="stylesheet" type="text/css" href="../css/style.css">

    <!-- Bootstrap v4.4.1 -->
    <link rel="stylesheet" type="text/css" href="../vendor/bootstrap/bootstrap.min.css">

    <!-- Page level plugin CSS-->
    <link href="../vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">

    <!-- Font Awesome Free 5.12.0 -->
    <link rel="stylesheet" type="text/css" href="../vendor/fontawesome/css/all.css">

    <!-- favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="../images/favicon.jpg">

  </head>

    <body class="bg-light">
      
      <!-- Navigation -->
      <nav class="navbar navbar-expand-lg navbar-dark bg-primary static-top">
        <div class="container">
          <a class="navbar-brand" href="index.php">
            <img src="../images/logo2.png" alt="50">
          </a>
          <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav ml-auto">
              <li class="nav-item">
                  <a class="nav-link" href="index.php" title="Go Home"><span class="fas fa-home"></span> Home</a>
              </li>
              <li class="nav-item">
                  <a class="nav-link" href="user.php" title="Manage Users"><span class="fas fa-users"></span> Manage Users</a>
              </li>
               <li class="nav-item">
                  <a class="nav-link" href="manage_course.php" title="Manage Course"><span class="fas fa-user"></span>Manage Course</a>
              </li>
              <li class="nav-item">
                  <a class="nav-link" href="grade_card.php" title="Grade Card"><span class="fas fa-sign-out-alt"></span>Grade Card</a>
              </li>
             <li class="nav-item">
                  <a class="nav-link" href="profile.php" title="Go Admin Profile"><span class="fas fa-user"></span> Profile</a>
              </li>
              <li class="nav-item">
                  <a class="nav-link" href="logout.php" title="Click to Logout"><span class="fas fa-sign-out-alt"></span> Logout</a>
              </li>
            </ul>
          </div>
        </div>
      </nav>