<?php require('includes/head.php');
  require 'connection/conn.php';
  $item="select * from `items` where `active`=0 ";
  $item_r=$conn->query($item);
?>
<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>
	 <?php if($pos==1){ ?>
    <th ><a  href="item_list.php">Back</a></th>
   <?php }?>
    
  </tr>
  </thead>
  <tbody>
  <?php while($row=mysqli_fetch_array($item_r)) { ?>
    <tr>
     <td><?php echo $row['code'];?></td>
	 <td><?php echo $row['name'];?></td>
	 <td><?php echo $row['name_latin'];?></td>
     <th  width=65px>
   <?php if($pos==1){ ?>
   <a onclick='return confirm("دڵنیای لە گەڕانەوە");' href="item_hide.php?id2=<?php echo $row['code'];?>"><img src="icon/show.png" width=25px></a>
   <?php }?></th>
   </tr>
  <?php } ?>
  </tbody>
</table>

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



  