<?php include "layouts/menu.php";
$id = $_GET['fid'];
?>

<div class="right_col" role="main">
           
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Details
                        </div>
                        <div class="panel-body">
                            <div class="row">

   <form name="form1" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
   <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Customer ID</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="id" value="<?php echo $id; ?>" placeholder="" required>
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Reject Remark</label>
    <div class="col-sm-4">
      <textarea class="form-control" rows="3" name="details" value="" placeholder=""></textarea>
    </div>
  </div>  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default" name="s1">Save This</button>
    </div>
  </div>
      <div class="alert alert-success">
	 <?php
							if(isset($_POST['s1']))
							{
								extract($_POST);
	


	$update=mysqli_query($conn, "update entry set status='Reject',remarks='$details' where id='$id'");	

if($update){
echo "<script>alert('Cancelled successfully');window.location.href='eview.php'</script><br>";
}
}

?>
</div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>

