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

if ( $_SESSION["user"] != "Learner"){
    
     echo ("<script LANGUAGE='JavaScript'>
        window.location.href='http://www.commenta.co.za/mylearnerlogin.php';
    </script>");
    
      }
   
?>





<!doctype html>
<html lang="en">
  <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>Learner portal</title>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/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">


    

   
   <?php //include 'lmenu.php';    ?>
   
    <!-- Example Code -->

   
   
   
   
   
   <center> <h2>  <span class="badge rounded-pill text-bg-primary">Learner's portal   </h2> </center></span>

  
    

    <div class="alert alert-success" role="alert">
    <center> <a href="/learnerportal.php" class="alert-link"><?php echo $_SESSION["title"].' '.$_SESSION["names"].' '.$_SESSION["surname"]   ?></a></center>
   </div>
   
     <div class="alert alert-primary" role="alert">
   <center> <a href="https://chat.whatsapp.com/KqoRNw9A9gZFnAQWAYUlFR" class="alert-link">Join whatsapp group</a></center>
   </div>
   
   <div class="alert alert-primary" role="alert">
   <center> <a href="/learnerconcern.php" class="alert-link">Place concern</a></center>
   </div>
   
    <div class="alert alert-primary" role="alert">
   <center> <a href="/learnerportal.php" class="alert-link">My concerns</a></center>
   </div>
   
    <div class="alert alert-primary" role="alert">
   <center> <a href="/viewcsc.php" class="alert-link">Concerns stats</a></center></div>
   
    <div class="alert alert-primary" role="alert">
   <center> <a href="/logout.php" class="alert-link">Logout</a></center>
   </div>
   
  
    <!-- End Example Code -->
  </body>
</html>