<link rel="stylesheet" href="../css/sweet-alert.css" /> 
<?php
require ("../connection.php");
require ("../user.php");
$user=$_SESSION['user'];
$cur_date=date("Y-m-d h:i:s");

$id=$_REQUEST['id'];

$sql=mysqli_query($con,"update location_master set status='2' where id='$id'");

if($sql)
	{
	?>
	<script>
	
	
    setTimeout(function() {
        swal({
            title: "Successfully",
            text: "Location is Deleted!",
            type: "success"
        }, function() {
           window.location = "location_master.php";
        });
    }, 100);
</script>  
    <?php
	}	
	else
	{
	?>
	<script>
    setTimeout(function() {
        swal({
            title: "Not",
            text: "Location is Not Deleted!",
            type: "error"
        }, function() {
          window.location = "location_master.php";
        });
    }, 100);
</script> 	  
	<?Php
	}	
?>
</html>

		
  <script src="../js/sweet-alert.js"></script>