<?php session_start();
if($_SESSION){
?>

<!DOCTYPE html>
<html>
<head>
	<title>Heder File</title>

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
</body>


  <style type="text/css">
    /* Made with love by Mutiullah Samim*/



html,body{

background-size: cover;
background-repeat: no-repeat;


font-family: 'Numans', sans-serif;
}


#looo{
text-align: right;
color: #FDFEFE      ;

font-family:Monotype Corsiva;
font-size: 35px;"
 }
#navbar {
 overflow: visible;
  background-color:white;
  padding: 7px 5px;
  transition: 0.2s;
  position: fixed;
  width: 100%;
  top: 0px;
  font-family:Monotype Corsiva;
background-color:#2980B9  ;
color:   brown ;
  z-index: 91;
   flex-direction: row;
}

#navbar a {
  float: left;
  color:  black;

  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-size: 25px; 
  font-family:Monotype Corsiva;
  line-height: 10px;
  padding-right: .5rem !important;
      padding-left: .5rem !important;

}

#navbar #logo {
  font-size: 25px;
 
  transition: 0.4s;
  font-family:Monotype Corsiva;
}

#navbar #logoo {
  font-size: 25px;

  transition: 0.4s;
}

#navbar #loga {
  font-size: 25px;

  transition: 0.4s;
}
#navbar #log{
  font-size: 25px;

  transition: 0.4s;
}
#navbar #lo{
  font-size: 25px;

  transition: 0.4s;
}
#navbar #lgg{
  font-size: 25px;

  transition: 0.4s;

}
#navbar #loo{
  font-size: 25px;

  transition: 0.4s;
  float: right;
}
#navbar #lg{
  font-size: 25px;

  transition: 0.4s;
  float: right;
}
     .navbar-nav {
      flex-direction: row;
    }
    
    .nav-link {
      float: left;
  color:  white;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  font-size: 10px; 
  font-family:Monotype Corsiva;
  line-height: 10px;
  padding-right: .5rem !important;
      padding-left: .5rem !important;
    }
    
    /* Fixes dropdown menus placed on the right side */
    .ml-auto .dropdown-menu {
        padding-right: .5rem !important;
      padding-left: .5rem !important;
    }
#navbar a:hover {
  
  color:  #000080;
}

#navbar a.active {
  background-color: gold;
  color: gold;
    line-height: 10px;


}




@media screen and (max-width: 580px) {
  #navbar {
    padding: 20px 10px !important;
  }
  #navbar a {
    float: none;
    display: block;
    text-align: left;
  }
  #navbar-right {
    float: none;
  }

}

</style>
</head>
<body style="background-color: #5499C7;">
     



<nav class="navbar navbar-expand-lg navbar-dark " id="navbar" >
 <h3  class="text-red" style="text-align:right;color: #FDFEFE;font-family:Monotype Corsiva;
font-size: 20px;"><b>Event management System </b></h3>
<br>
  <ul class="navbar-nav mr-auto">
 <li class="nav-item">
      <a class="nav-link" id="logoo" style="font-family:Rockwell;font-size: 20px;color: black; " href="admin_details.php"><i>My_details</i></a>
    </li>
    <li class="nav-item dropdown">
       <a class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="navbarDropdown" style="font-family:Rockwell;font-size: 20px;color: black; "><i>Add_venue</i></a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="add_events.php"><i>Add_Place</i></a>
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="add_eqi1.php">Add_Events</a> 
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="add_eqi2.php">Add_Events_1</a>
        </div>
    </li>
     <li class="nav-item">
    <a  style="font-family:Rockwell;font-size: 20px;color: black; " href="Customer_book_an_event.php">Book_Event</a></li>
    <li class="nav-item">
      <a class="nav-link" id="logoo" style="font-family:Rockwell;font-size: 20px;color: black; " href="display2.php"><i>View_Bookings</i></a>
    </li>
    <li class="nav-item dropdown">
     
      <a class="nav-link dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="navbarDropdown" style="font-family:Rockwell;font-size: 20px;color: black; " href="all_view_venue.php"><i>view_Venues</i></a>
      <div class="dropdown-menu" aria-labelledby="navbarDropdown">
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="all_view_venue.php"><i>Place_details</i></a>
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="all_view_eqiment1.php">Add_Events</a>
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="all_view_eqiment2.php">Add_Events_1</a>
      </div>

    </li>

    <li class="nav-item">
                <a class="nav-link"  id="lgg" style="font-family:Rockwell;font-size: 20px;color: black; " href="feedbackdisplay.php"><i>View_Feedback</i></a>
            </li> <li class="nav-item"><br><br></li>
			<li class="nav-item">
                <a class="nav-link"  id="lgg" style="font-family:Rockwell;font-size: 20px;color: black; " href="view_contacts.php"><i>View_contacts</i></a>
            </li>
            <li class="nav-item">
                <a class="nav-link"  id="lgg" style="font-family:Rockwell;font-size: 20px;color: black; " href="Customer_Details_display.php"><i>Customer_Details</i></a>
            </li>
             <li class="nav-item"><br><br></li>
             
  </ul>
  <ul class="navbar-nav ml-auto">
    <li class="nav-item">
     <a id="lg" style="font-family:Rockwell;font-size: 20px;color: black; " href="http://localhost/event_managment_system/event2.php"><i class="fa fa-sign-in" style="font-size:24px"></i><i> Logout</i></a>
    </li>
    
  </ul>
</nav>

      



<script type="text/javascript">
  
          window.onscroll = function() {scrollFunction()};

          function scrollFunction() {
        if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50)    
        {
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("logo").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("logoo").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("log").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("lo").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("lgg").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("loo").style.fontSize = "25px";
          document.getElementById("navbar").style.padding = "10px 5px";
          document.getElementById("lg").style.fontSize = "25px";
        } else 
        {
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("logo").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("logoo").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("log").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("lo").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("lgg").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("loo").style.fontSize = "27px";
          document.getElementById("navbar").style.padding = "10px 10px";
          document.getElementById("lg").style.fontSize = "27px";
        }
      }



</script>




</body>
</html>
<?php
  }
  else{
    echo "<script>
   alert('You have to  login first...!');
   window.location.href='event2.php';
   </script>";
  }
  
?>  