<?php
error_reporting(0);
session_start();


?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <link rel="stylesheet" href="bootstrap\css\bootstrap.min.css">
    <script src="bootstrap\js\bootstrap.min.js"></script>
    <script src="bootstrap\js\bootstrap.bundle.min.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<style>
.jumbotron, thead
{
    /*background-color:#000442;*/
    background-color:#000000;
    color:#ffae00;
}
/* .navbar
{
    background-color:#ffae00;
    background-color:#000442;
    color:#000442;
} */

</style>


<?php 


if($_SESSION["user_type"]=="admin")
{
   ?>
      
<nav class="navbar navbar-dark bg-primary navbar-expand-lg">
  <a class="navbar-brand" onclick="history.back()">Back</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse " id="navbarNav">
    <ul class="navbar-nav ml-auto pr-5">
      
      <li class="nav-item">
        <a class="nav-link active" href="admin_add_engineer.php">Add Engineer</a>
      </li>
      <li class="nav-item">
        <a class="nav-link active" href="admin_add_equipment.php">Add Equipment</a>
      </li>
      <li class="nav-item">
        <a class="nav-link active" href="admin_view_equipment.php">View equipment</a>
      </li>
     
      <li class="nav-item">
        <a class="nav-link active" href="logout.php">Logout</a>
      </li>
    </ul>
  </div>
</nav>


   <?php    
}
else
{
   ?>
      
<nav class="navbar navbar-dark bg-primary navbar-expand-lg">
  <a class="navbar-brand" onclick="history.back()">Back</a>
  <!--<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">-->
  <!--  <span class="navbar-toggler-icon"></span>-->
  <!--</button>-->
  <!--<div class="collapse navbar-collapse " id="navbarNav">-->
  <!--   <ul class="navbar-nav ml-auto pr-5">-->
  <!--    <li class="nav-item">-->
  <!--      <a class="nav-link active" href="index.php">Home</a>-->
  <!--    </li>-->
  <!--    <li class="nav-item">-->
  <!--      <a class="nav-link active" href="customer_list.php">Customer List</a>-->
  <!--    </li>-->
     
  <!--    <li class="nav-item">-->
  <!--      <a class="nav-link active" href="report.php">Report</a>-->
  <!--    </li>-->
  <!--    <li class="nav-item">-->
  <!--      <a class="nav-link active" href="logout.php">Logout</a>-->
  <!--    </li>-->
  <!--  </ul>-->
  <!--</div>-->
</nav>
   <?php    
}

?>


 <div class="jumbotron jumbotron-fluid">
  <div class="container">
    <!--<h1 class="display-4 text-center">E.P.M.S</h1>-->
    <img style="display: block; margin-left: auto; margin-right: auto; width: 50%;" src="images/default/logo.png" alt="Girl in a jacket">

  </div>
</div>