<?php
// Start the session
session_start();

if ( $_SESSION["user"] != "Learner"){
    
     echo ("<script LANGUAGE='JavaScript'>
        window.location.href='http://www.commenta.co.za/csclogin.php';
    </script>");
    
      }
  
?>
<!DOCTYPE HTML>  
<html>
<head>
     <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://getbootstrap.com/docs/5.3/assets/css/docs.css" rel="stylesheet">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://getbootstrap.com/docs/5.3/assets/css/docs.css" rel="stylesheet">
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
  
  <style>
.error {color: #FF0000;}
body {
  background-color: aqua;
}
</style>
  
  </head>


<body class="p-3 m-0 border-0 bd-example m-0 border-0">  

   <font face = 'verdana'>     


<nav class="navbar navbar-dark bg-dark fixed-top">
  <div class="container-fluid">
   <center> <a class="navbar-brand" href="/learnerportal.php"><font color = "red"><?php echo $_SESSION['title'].' '. $_SESSION['surname'].' : '.$_SESSION['to1'];?></font></center></a>
    <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasDarkNavbar" aria-controls="offcanvasDarkNavbar" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="offcanvas offcanvas-end text-bg-dark" tabindex="-1" id="offcanvasDarkNavbar" aria-labelledby="offcanvasDarkNavbarLabel">
      <div class="offcanvas-header">
        <h5 class="offcanvas-title" id="offcanvasDarkNavbarLabel"><a href ="/logout.php" >Log out</a></h5>
        <button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas" aria-label="Close"></button>
      </div>
      <div class="offcanvas-body">
        <ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
          <li class="nav-item">
            <a class="nav-link active" aria-current="page" href="/learnerportal.php">Learner portal</a>
          </li>
          <!--
          <li class="nav-item">
            <a class="nav-link" href="/eduprofile.php">My profile</a>
          </li>
          -->
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
              Profile
            </a>
            <ul class="dropdown-menu dropdown-menu-dark">
                
              <li><a class="dropdown-item" href="/eduprofile.php">My profile</a></li>
             <!-- <li><a class="dropdown-item" href="/educity.php">City / Town</a></li> -->
              
              <li>
                <hr class="dropdown-divider">
              </li>
            <!--  <li><a class="dropdown-item" href="/edusub.php">Subject</a></li>
            -->
              <li><a class="dropdown-item" href="/edueditwork.php">Edit : Work info</a></li>
              
            </ul>
          </li>
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/edudb.php">Whole database</a>
          </li>
           <li class="nav-item">
            <a class="nav-link" href="/checkcellnum.php">View cell number</a>
          </li>
         <!--
          <li class="nav-item">
            <a class="nav-link" href="/educity.php">Search by city/town</a>
          </li>
         -->
         
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
              Search By
            </a>
            <ul class="dropdown-menu dropdown-menu-dark">
                
              <li><a class="dropdown-item" href="/edusub.php">Subject</a></li>
             <!-- <li><a class="dropdown-item" href="/educity.php">City / Town</a></li> -->
              
              <li>
                <hr class="dropdown-divider">
              </li>
            <!--  <li><a class="dropdown-item" href="/edusub.php">Subject</a></li>
            -->
              <li><a class="dropdown-item" href="/educity.php">City / Town</a></li>
              
              
              
            </ul>
          </li>
          
          
        </ul>
        <!--
        <form class="d-flex mt-3" role="search">
          <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
          <button class="btn btn-success" type="submit">Search</button>
        </form>
        -->
      </div>
    </div>
  </div>
</nav>

</font>

</body>
</html>