<?php
require_once("header.php");
require_once("menu.php");
?>

<div id="layoutSidenav_content">
<main class="mt-4">
    <div class="container-fluid">
        
        <div class="card mb-4">
            <div class="card-header">
                <i class="fas fa-user"></i> Profile
            </div>
                        
						<?php
						$id = $_SESSION['user_id'];
						$role = $_SESSION['role_id'];
						?>
						<div class="card-body">
                <div class="table-responsive">
						        <table class="table table-bordered" width="100%" cellspacing="0">
                            <?php
							$query= $obj->fetch_user($id,$role);
							while($query1 = mysqli_fetch_array($query)){
								?>

<!-- <tr>
    <th colspan="2"><img src="<?php echo $query1['profile'];?>" style="width:100px;"></th>
</tr> -->

  <!-- <tr>
    <th>Id</th>
    <td><?php echo $query1['user_id'];?></td>
  </tr> -->
   <tr>
    <th>Role</th>
    <td><?php echo $query1['role_name'];?></td>
  </tr>
  <tr>
    <th>Name</th>
    <td><?php echo $query1['user_name'];?></td>
  </tr>
  
  <!-- <tr>
    <th>Contact No</th>
    <td><?php echo $query1['contact_no'];?></td>
  </tr> -->
  <tr>
    <th>Email Id</th>
    <td><?php echo $query1['email_id'];?></td>
  </tr>
  <!-- <tr>
    <th>Address</th>
    <td><?php echo $query1['address'];?></td>
  </tr> -->
  <!-- <tr>
    <th>Created Date</th>
    <td><?php echo $query1['created_date'];?></td>
  </tr>
  <tr>
    <th>Updated Date</th>
    <td><?php echo $query1['updated_date'];?></td>
  </tr>
  <tr>
    <th>State</th>
    <td><?php echo $query1['state_id'];?></td>
  </tr> -->
  
								
<?php } ?>
</table>
      </div>
            </div>
        </div>
    </div>

</main>
                
 
<?php require_once("footer.php");?>
