<?php 
include("conn.php"); 
 if(isset($_POST["employee_idse"]))  
 {  
      $data=$_POST['employee_idse'];
      $connect = mysqli_connect("localhost", "root", "", "resto");  
      $query = "SELECT * FROM tax WHERE id = '".$_POST["employee_idse"]."'";  
      $result = mysqli_query($connect, $query);  
      while ($row=mysqli_fetch_array($result)) {
          $name=$row['tax'];
          $percent=$row['percent'];
          $text='';



 }  
}
 ?>
<?php include("common/head.php");?>
<div class="activate-itme text-center m-5">
     <form action="edit/edit_tax.php" method="post" class="text-dark">
                <div class="form-group">
                  <label for="exampleFormControlInput1">Tax Name</label>
                  <input type="text" class="form-control" name="name" id="exampleFormControlInput1" value="<?php echo $name?>"  required>
                </div>
                <div class="form-group">
                  <label for="exampleFormControlInput1">Percent</label>
                  <input type="number" class="form-control" value="<?php echo $percent?>" name="percent" id="exampleFormControlInput1" required>
                </div>
                <input type="hidden" name="id" value="<?php echo $data ?>">
                <input type="hidden" name="by" value="<?php echo $id_user ?>">
                <input type="hidden" name="date" value="<?php echo date("F j, Y") ?>">
                
                  <button class="btn btn-success btn-sm"  name="submit">Submit</button>
        <button data-dismiss="modal" class=" btn btn-warning btn-sm m-2">Cancel</button>
    </form>
     </div>


   