<?php session_start();
  if( $_SESSION["admin"]!=true)
  {
    header("location:login.php");
    exit;
  }
 
  ?> 
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Control Panel</title>
    <style>
        /* Basic CSS styling for the admin panel */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }

        #header {
            background-color: #333;
            color: #fff;
            padding: 10px;
            text-align: center;
        }

        #nav {
            background-color: #444;
            color: #fff;
            padding: 10px;
        }

        #nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        #nav ul li {
            display: inline;
            margin-right: 20px;
        }

        /* Style for the dropdown menu */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #444;
            min-width: 160px;
            z-index: 1;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        /* Style for menu items */
        #nav a {
            color: #fff;
            text-decoration: none;
        }

        /* Style for sub-menu items */
        .dropdown-content a {
            padding: 10px;
            display: block;
        }

        #content {
            padding: 20px;
        }
        
        
        button{
      border-radius: 10px;
      margin-left: 5px;
      background-color: black;
      color: white;
      border-color: cyan;
      padding: 4px;
      margin-top: 20px;
      margin-bottom: 5px;
    }
    button:hover{
      background-color: green;
      color:yellow;
    }
    button:active{
      background-color: red;
      color: white;
    }
input,select,textarea{
  width: 200px;
  padding: 4px;
  background-color: white;
  border-color: navy;
  border-radius: 7px;
}
input:focus{
  width: 230px;
}
        
        
    </style>
</head>
<body>
    <div id="header">
        <h1>Admin Control Panel</h1>
    </div>
    <div id="nav">
        <ul>
           <li><a  href="index.php">Home</a></li>
           <li class="dropdown">
                <a href="#">Uploads</a>
                <div class="dropdown-content">
                 <a href="./sections/Tenders.php">Tenders</a>
             
                 <a href="./sections/recruitments.php">Jobs</a>
                    <a href="./sections/announcements.php">Announcement </a>
                    <a href="./sections/Events.php">News & Events</a>
                    <a href="./sections/Judgments.php">Judgmetns</a>
                    <a href="./sections/offices.php">Judicial Officers/Courts</a>
                    <a href="./sections/officials.php">Staff</a>
                     <a href="./sections/constructions.php">Constructions</a>
                    <a href="./sections/upload_file.php">Upload Public Files</a>
                </div>
            </li>
    <li>     <a href="./sections/causelist.php">Causelist</a></li>
       <li>     <a href="./sections/Pendency.php">Pendency</a></li>
  <li><a href="users.php">Users</a></li>
            
       
  <li><a href="logout.php">Logout</a></li>
        </ul>
    </div>
  
</body>
</html>

