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

	<title>Customer_Details</title>
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="bootstrap-checkbox-radio-list-group-item.min.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>

  <link rel="stylesheet" href="bootstrap.min.css">

<link rel="stylesheet" href="font-awesome.min.css">
		
		  <link rel="stylesheet" type="text/css" href="styles.css">
  <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: 10px 7px;
  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="wedding_plarners.php"><i>My_details</i></a>
    </li>
    
     <li class="nav-item">
    <a  style="font-family:Rockwell;font-size: 20px;color: black; " href="display1.php">Booking_History</a></li>
    <li class="nav-item">
      <a class="nav-link" id="logoo" style="font-family:Rockwell;font-size: 20px;color: black; " href="feedbackcreate.php"><i>Feedback</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=""><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="Customer_all_view_venue.php"><i>View_Place</i></a>
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="Customer_all_view_eqiment1.php">View_Event_Eqi1</a>
        <a class="dropdown-item" style="font-family:Rockwell;font-size: 20px;color: black;" href="Customer_all_view_eqiment2.php">View_Event_Eqi2</a>
      </div>

    </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>
 <br><br><br><br>
<div class="container" >
  

  <form action="event4.php" method="POST">
  			
  	
  	<h3  class="text-red" style="text-align: center;color:#8B0000 ;font-family:Monotype Corsiva;font-size: 40px;"><b>Details </b></h3>
  	<center> <?php
  error_reporting(0);
     $conn = new mysqli("localhost","root","","event");
     $CID= $_SESSION['user_details']['id'];
     $username= $_SESSION['user_details']['username'];
     $query="SELECT * FROM signup where id=$CID  ";
     $data=mysqli_query($conn,$query);
     $total =mysqli_fetch_assoc($data);
     
     
     
     
      ?>
      <h1 style="text-align: left;color:yellow;font-family:Monotype Corsiva;font-size: 30px;">Welcome, <?php echo $total['fname']." ".$total['lname']?></h1>
  	<table class="table table-striped table-hover" id="myTable">
  			 <tr>
          <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Customer ID :</td>  <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['id']?></td>
          </tr>
          
          <tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Username :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['username']?></td>
  				</tr>
          <!--<tr>
          <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Password :</td>  <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['password']?></td>
          </tr>!-->
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Name :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['fname']?> <?php echo $total['lname']?></td>
  				</tr>
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Email :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['email']?></td>
  				</tr>
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Address :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['address']?> </td>
  				</tr>
          <tr>
          <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Phone No :</td> <td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['phone']?> </td>
          </tr>
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Gender :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['gender']?></td>
  				</tr>
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">City :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['city']?></td>
  				</tr>
  				<tr>
  				<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 30px;">Country :</td>	<td style="text-align: left;color:black;font-family:Monotype Corsiva;font-size: 25px;"><?php echo $total['country']?></td>
  				</tr>
  			</table>
          	</center>

          <center>
          	<a href="event4.php">


    <button type="submit" class="btn btn-primary" name="Edit" value="Edit" style="text-align: center; font-size: 20px">Update</button>
</a>
    
</center>
  </form>
</div>

<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>




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