<?php
 include 'includes/config.php';
session_start();
if (strlen($_SESSION['id']==0)) {
  header('location:logout.php');
  } else{
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
  <title>RESS Bio data</title>

  <link rel="stylesheet" href="css/bootstrap.css" crossorigin="anonymous">
  <link rel="stylesheet" href="css/style.css" crossorigin="anonymous">
  <link rel="stylesheet" href="css/propeller.min.css" crossorigin="anonymous">
  <link rel="stylesheet" href="css/style.css" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  <!--Google Icon Font-->
    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  </head>
<body class="bg-grey">
<?php 
  $sql="SELECT * FROM users WHERE sid= '".$_SESSION['id']."' ";
$result = mysqli_query($con, $sql);
            $row = mysqli_fetch_array($result);
 ?>


<!-- Fixed Left Sidebar -->
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-gradient-custom pmd-navbar pmd-z-depth">
    <a href="javascript:void(0);" data-target="basicSidebar" data-placement="left" class="btn btn-sm pmd-btn-fab pmd-btn-flat pmd-ripple-effect pmd-sidebar-toggle"> <i class="fa fa-navicon"></i></a>
    <p class="text-center" style="margin: 0 auto;">
 <img src="../img/logo.png" width="50" height="50" style="float: left; padding-right: 10px; padding-top: 5px;">
      <a class="navbar-brand" href="#">RESS</a>
       <img src="../img/cris.png" width="50" height="50">
   </p>

    
    <!-- Navbar Right icon -->    
    <!-- <div class="pmd-navbar-right-icon ml-auto">
        <a href="javascript:void(0);" class="btn btn-sm pmd-btn-fab pmd-btn-flat pmd-ripple-effect"><i class="material-icons pmd-sm md-light">search</i></a>
    </div> -->
</nav>

<section id="pmd-main">

    <!-- Left sidebar -->
    <aside id="basicSidebar" class="pmd-sidebar bg-light pmd-z-depth" role="navigation">
        <ul class="nav flex-column pmd-sidebar-nav">
            <li class="nav-item pmd-user-info">
                <a data-toggle="collapse" href="#collapseExample" class="nav-link btn-user media align-items-center">
                    <img class="mr-3" src="../img/logo.png" width="40" height="40" alt="avatar">
                    <div class="media-body">
                       <?php echo $row['name']; ?>
                    </div>
                    <i class="fa fa-info-circle"></i>
                </a>
                <ul class="collapse" id="collapseExample" data-parent="#basicSidebar">
                    <li class="nav-item">
                        <a class="nav-link" href="profile.php">
                            <i class="fa fa-user"></i>
                            <span class="media-body"> View Profile</span>
                        </a>
                    </li>
                    <!-- <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="material-icons pmd-list-icon pmd-sm">settings</i>
                            <span class="media-body">Settings</span>
                        </a>
                    </li> -->
                    <li class="nav-item">
                        <a class="nav-link" href="logout.php">
                            <i class="fa fa-power-off"></i>
                            <span class="media-body">Logout</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="nav-item">
                <a class="nav-link active" href="profile.php">
                   <i class="fa fa-mobile"></i>
                    <span class="media-body">Mobile</span>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="profile.php">
                    <i class="fa fa-envelope"></i>
                    <span class="media-body">Email</span>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="profile.php">
                    <i class="fa fa-unlock"></i>
                    <span class="media-body">Password</span>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">
                    <i class="fa fa-id-badge"></i>
                    <span class="media-body">Image</span>
                </a>
            </li>
            <li class="nav-item" style="border-top: 2px solid black;">
                <a class="nav-link" href="#">
                    <i class="fa fa-globe"></i>
                    <span class="media-body"> About Us</span>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">
                   <i class="fa fa-question"></i>
                    <span class="media-body"> FAQ</span>
                </a>
            </li>
            <li class="nav-item" >
                <a class="nav-link" href="#">
                    <i class="fa fa-envelope"></i>
                    <span class="media-body">Contact Us</span>
                </a>
            </li>
        </ul>
    </aside>
    
    <!-- Sidebar Overlay -->
    <div class="pmd-sidebar-overlay"></div>
    
    <!-- Start Content -->
    <div class="pmd-content custom-pmd-content" id="content">
        <h1 class="headline text-center" style="font-weight: 900;">Bio Data</h1>
       <p class="text-center"><a href="index.php" class="btn btn-sm ">← Back</a></p>
        
    </div>

<div class="container">
      <div class="row">
        <div class="col-md-6 offset-md-3">
          
          <p style="background: #d98f06; border-radius:9px; margin-bottom: 2px;" class="text-center text-white">
           Personal Details
          </p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>Name</span><span style="float:right;"><?php echo $row['name'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>FATHER NAME</span><span style="float:right;"><?php echo $row['fname'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DOB</span><span style="float:right;"><?php echo $row['dob'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>MOBILE NO</span><span style="float:right;"><?php echo $row['mobile'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>EMAIL</span><span style="float:right;"><?php echo $row['email'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>AADHAAR</span><span style="float:right;"><?php echo $row['aadhaar'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>PAN</span><span style="float:right;"><?php echo $row['pan'] ?></span></p>
          <p style="background: #00f; border-radius:9px; margin-bottom: 2px;" class="text-center text-white">
          Job Details
          </p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>AU/RLY</span><span style="float:right;"><?php echo $row['aurly'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>BILL UNIT</span><span style="float:right;"><?php echo $row['billunit'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DESIGNATION</span><span style="float:right;"><?php echo $row['designation'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DEPARTMENT</span><span style="float:right;"><?php echo $row['department'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DOA</span><span style="float:right;"><?php echo $row['doa'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DOI</span><span style="float:right;"><?php echo $row['doi'] ?></span></p>
          <p style="background: #eadfdf; border-radius: 9px; padding: 2px; margin-bottom: 2px;"><span>DOR</span><span style="float:right;"><?php echo $row['dor'] ?></span></p>
      </div>
  </div>
</div>

<footer class="bg-dark">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <p id="mid" class="text-muted text-center ">Copy right @2024 and designed by CIRS</p>
      </div>
    </div>
  </div>
</footer>
<script src="js/jquery.js" ></script>
<script src="js/popper.min.js"  ></script>
<script src="js/bootstrap.min.js" ></script>
<script src="js/propeller.min.js" ></script>
<script src="js/script.js" ></script>
</body>
</html>
<?php } ?>