<?php require('includes/head.php');
  require 'connection/conn.php';
  $user="select * from `user` ";
  $user_r=$conn->query($user);
?>
<div class="container">
          <div class="page-inner">
            <div class="page-header">
              <h3 class="fw-bold mb-3">بەکارهێنەران</h3>
              <ul class="breadcrumbs mb-3">
                <li class="nav-home">
                  <a href="home.php">
                    <i class="icon-home"></i>
                  </a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
                <li class="separator">
                  <i class="icon-arrow-right"></i>
                </li>
                <li class="nav-item">
                  <a href="#"></a>
                </li>
              </ul>
            </div>
            <div class="row">
              <div class="col-md-12">
                <div class="card">
                  
                  <div class="card-body">
                    <div class="table-responsive">
                      <table id="basic-datatables"  class="display table table-striped table-hover"  >
<thead>
  <tr bgcolor="skyblue">
     
     <th>ناو</th>
     <th> بەکارهێنەر</th>
     <th>پاسوۆرد</th>
	 <th>ناونیشان</th>
     <th colspan=2><a href="user_new.php"><img src="icon/add.png" width=35px></a></th>
  </tr>
  </thead>
  <tbody>
  <?php while($row=mysqli_fetch_array($user_r)) { $em_id=$row['user_id'];?>
    <tr>
     <td><?php echo $row['full_name'];?></td>
	 <td><?php echo $row['user_mobile'];?></td>
	 <td><?php echo $row['user_password'];?></td>
     <td><?php if($row['user_position']==4) echo "Cashier";elseif($row['user_position']==3) echo "User";elseif($row['user_position']==2) echo "Admin"; else echo "SuperAdmin";?></td>
     

  
   
	 <th  width=65px><a href="user_edit.php?id=<?php echo $row['user_id'];?>"><img src="icon/edit.png" width=25px></a></th>
  <!-- <th  width=65px><a onclick='return confirm("are you sure?");' href="user_delete.php?id=<?php echo $row['user_id'];?>"><img src="icon/delete.png" width=25px></a></th>-->
  
     </tr>
  <?php } ?>
  </tbody>
</table>

</div>
                  </div>
                </div>
              </div>
			  
			  </div>
          </div>
        </div>
<?php require'includes/foot.php';?>



  