hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
u932676976
/
domains
/
goldeninfradeveloper.com
/
public_html
/
Upload FileeE
HOME
<?php include 'db.php'; function cname(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $name=$a['name']; echo $name; } function caddress(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $address=$a['address']; echo $address; } function ccity(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $city=$a['city']; echo $city; } function cstate(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $state=$a['state']; echo $state; } function cpincode(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $pincode=$a['pincode']; echo $pincode; } function ccontact(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $contact=$a['contact']; echo $contact; } function cwhatsapp(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $whatsapp=$a['whatsapp']; echo $whatsapp; } function cemail(){ include 'db.php'; $aaa="select * from company"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $email=$a['email']; echo $email; } function pot(){ include 'db.php'; $aaa="select * from plot"; $aa=mysqli_query($con,$aaa); while($a=mysqli_fetch_assoc($aa)){ $plotid=$a['plotid']; $availability=$a['availability']; $registry=$a['registrystatus']; $sitenameid=$a['sitename']; $siteareaid=$a['sitearea']; $price=$a['plotprice']; $size=$a['plotsize']; $plotno=$a['plotno']; $arazi=$a['arazi']; $phase=$a['phase'];$width=$a['width']; $lenth=$a['lenth']; if($availability=='1'){ $st="<img src='uploads/red.png' alt='' style='border-radius:7px;'>"; $stt="Booked"; }elseif($availability=='3'){ $st="<img src='uploads/prange.png' alt='' style='border-radius:7px;'>"; $stt="On Hold"; }else{ $st="<img src='uploads/green.png' alt='' style='border-radius:7px;'>"; $stt="Awaiting"; } if($registry=='1'){ $st="<img src='uploads/blue.avif' alt=''style='border-radius:7px;'>"; $stt="Registry Done"; }else{ } $bbb="select * from site where siteid='$sitenameid'"; $bb=mysqli_query($con,$bbb); $b=mysqli_fetch_assoc($bb); $sitename=$b['name']; $ccc="select * from sitearea where siteareaid='$siteareaid'"; $cc=mysqli_query($con,$ccc); $c=mysqli_fetch_assoc($cc); $sitearea=$c['name']; $city=$c['city']; $state=$c['state']; echo " <div class='col-md-4'> <div class='testimonial'> <div class='testimonial-image'> $st</div> <div class='testimonial-content'> <p>Plot No : $plotno Size : $size($width*$lenth)<br>Site : $sitename Area : $sitearea </p> <div class='testimonial-meta'>$stt</div> </div> </div> </div> "; } } function unbookedcount($siteid){ include 'db.php'; $aaa="select count(plotid) as dd from plot where availability='0' and sitename='$siteid'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $count=$a['dd']; echo $count; } function totalcount($siteid){ include 'db.php'; $aaa="select count(plotid) as dd from plot where sitename='$siteid'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $count=$a['dd']; echo $count; } function bookedcount($siteid){ include 'db.php'; $aaa="select count(plotid) as dd from plot where availability='1' and sitename='$siteid'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $count=$a['dd']; echo $count; } function holdcount($siteid){ include 'db.php'; $aaa="select count(plotid) as dd from plot where availability='3' and sitename='$siteid'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $count=$a['dd']; echo $count; } function registrycount($siteid){ include 'db.php'; $aaa="select count(plotid) as dd from plot where registrystatus='1' and sitename='$siteid'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $count=$a['dd']; echo $count; } if(isset($_POST['query'])){ $name = $_POST['name']; $contact = $_POST['contact']; $email = $_POST['email']; $sitename = $_POST['sitename']; $size = $_POST['size']; $date = date('Y-m-d'); $dt = date('Y-m-d H:i:s'); $aaa = "INSERT INTO inquiry (date, dt, status, name, contact, email, sitename, size) VALUES ('$date', '$dt', 'active', '$name', '$contact', '$email', '$sitename', '$size')"; $aa = mysqli_query($con, $aaa); if($aa){ header('location:https://www.goldeninfradeveloper.com'); } } function cimages(){ global $con; $aaa = "SELECT image FROM company LIMIT 1"; $aa = mysqli_query($con, $aaa); if($aa && mysqli_num_rows($aa) > 0){ $a = mysqli_fetch_assoc($aa); $image = htmlspecialchars($a['image']); echo "https://www.goldeninfradeveloper.com/admin/uploads/$image"; } else { echo "No image found"; } } ?>