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

	<title>Admin_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">
  
</head>
<body >
 <?php include 'adminheader.php';?><br><br><br><br>
<div class="container" >
  

  <form action="admin_details_update.php" method="POST">
  			
  	
  	<h3  class="text-red" style="text-align: center;color:#8B0000 ;font-family:Monotype Corsiva;font-size: 40px;"><b>Admin 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;">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;">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="admin_details_update.php">


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




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