<?php 
include("conn.php"); 
 if(isset($_POST["employee_ids"]))  
 {  

      $query = "SELECT * FROM menu WHERE id = '".$_POST["employee_ids"]."'";  
      $result = mysqli_query($conn, $query);  
      while ($row=mysqli_fetch_array($result)) {
          $name=$row['name'];
          $status=$row['status'];
          $text='';

          if ($status==='1') {
            $text='Active';
            $read='btn-success';
            $de='deactivate';
            $sta=0;
          }
                                     else {
            $text='Inactive';
            $read='btn-danger';
           $de='activate';
           $sta=1;
          }


 }  
}
 ?>
<?php include("common/head.php");?>
<div class="activate-itme text-center m-5">
     <p class="activate"> Are you sure you want to delete <?php echo $name?> </p>
     <form action="delete/del_menu.php" method="post">
        <input type="hidden" name="id" value="<?php echo $_POST['employee_ids']?>">
        <input type="hidden" name="status" value="<?php echo $sta?>">
        <button name=submit class=" btn btn-danger m-2">Yes</button>
        <a href="<?php echo $item_location?>" class="btn btn-secondary m-2" >Close</a>
    </form>
     </div>
