| Server IP : 127.0.0.1 / Your IP : 216.73.216.48 Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64 User : win 10 ( 0) PHP Version : 8.2.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/khalafsite-backup/21-8-2019/New/htdocs/khalaf/ |
Upload File : |
<html>
<?php
session_start();
include('db_con.php');
include('function.php');
?>
<?php
if(isset($_SESSION['id']))
{
$user_id = $_SESSION['id'];
//$user_email = $_SESSION['email'];
//echo"$user_id";
// echo"$user_email";
}
?>
<head>
<title>Khala Sons Real Estate</title>
<link rel="stylesheet" type="text/css" href="main_css/index.css" />
</head>
<body onLoad="star_auto_machine();" >
<div class="main_home">
<div class="main_log">
<img src="kvt_con/khalaf_log.jpg" width="100%" height="100%" style="border-radius:20px;" classk="main_home_icon" />
</div>
<div class="main_home_title">Khala Sons Real Estate</div>
<div class="icon_div_right" >
<img onClick="show_search_area();" src="kvt_con/search_icon.png" class="top_right_icons" />
<img src="kvt_con/fb_icon.png" class="top_right_icons" />
<img src="kvt_con/instagram_icon.png" class="top_right_icons" />
<img src="kvt_con/linkedin.png" class="top_right_icons" />
</div>
</div>
<div class="postion_main_home">kk</div>
<div class="main_home_left">
<a href="index.php"><button class="left_home_btn" >Home</button></a>
<button class="left_home_btn">Project</button>
<a href="property.php"><button class="left_home_btn">Property</button></a>
<button onClick="show_upload_cv_div();" class="left_home_btn">Vacancies</button>
<a href="contact.php"><button class="left_home_btn">Contacts</button></a>
<a href="agent_page.php"><button class="left_home_btn">Our Agents</button></a>
<a href="extraction.php"><button class="left_home_btn">About</button></a>
<a href="log_in.php"><button class="left_home_btn">Sign in</button></a>
</div>
<div class="main_banner">
<!--img src="main_building_images/<?php //echo"$bd_image"; ?>" width="100%" height="100%" /-->
<div id="banner_preview" classk="main_banner"></div>
<?php
$disp_building_name ="select * from main_buildingtb ";
$run_building_name = mysqli_query($con,$disp_building_name);
$check_rows = mysqli_num_rows($run_building_name);
while($row_building_name = mysqli_fetch_array($run_building_name))
{
$building_name = $row_building_name['building_name'];
$image_id = $row_building_name['id'];
$bd_image = $row_building_name['image_url'];
// $curr_date = $row_building_name['curr_date'];
?>
<input type="text" id="kvt<?php echo"$image_id"; ?>" value="<?php echo"$bd_image"; ?>" style="display:none;" />
<?php } ?>
<img src="main_building_images/<?php echo"$bd_image"; ?>" width="100%" height="100%" id="master_banner_div" style="displayk:none;" />
<input type="text" id="image_id_row_total" value="<?php echo"$check_rows"; ?>" style="display:none;" />
<!--button style="height:50px;width:50px;position:absolute;top:40%;left:18%;">Back</button-->
<!--button style="height:50px;width:50px;position:absolute;top:40%;right:4%;">Next</button-->
<img src="kvt_con/bk_icon_btn.png" id="back_btn" onClick="back_banner_image();" style="height:50px;width:50px;position:absolute;top:40%;left:18%;" />
<img src="kvt_con/next_icon_btn.png" id="next_btn" onClick="next_banner_image();" style="height:50px;width:50px;position:absolute;top:40%;right:4%;" />
<script>
function star_auto_machine()
{
setInterval('show_main_banner_image()',10000);
}
var wss_i=1;
function next_banner_image()
{
document.getElementById('banner_preview').innerHTML="";
image_row_total =document.getElementById('image_id_row_total').value;
main_total = image_row_total;
pro_id= wss_i++;
if(pro_id >= main_total){wss_i=1;}
new_image_next = 'kvt'+ pro_id;
my_image =document.getElementById(new_image_next).value;
var x = document.createElement("IMG");
x.style="float:left;width:100%;height:100%;";
x.setAttribute("src", "main_building_images/"+my_image);
document.getElementById('banner_preview').appendChild(x);
document.getElementById('master_banner_div').style.display="none";
}
function back_banner_image()
{
document.getElementById('banner_preview').innerHTML="";
image_row_total =document.getElementById('image_id_row_total').value;
main_total = image_row_total;
pro_id= wss_i--;
if(pro_id <= main_total){wss_i = main_total}
new_image_next = 'kvt'+ pro_id;
my_image =document.getElementById(new_image_next).value;
var x = document.createElement("IMG");
x.style="float:left;width:100%;height:100%;";
x.setAttribute("src", "main_building_images/"+my_image);
document.getElementById('banner_preview').appendChild(x);
document.getElementById('master_banner_div').style.display="none";
}
function show_main_banner_image()
{
document.getElementById('banner_preview').innerHTML="";
image_row_total =document.getElementById('image_id_row_total').value;
main_total ='kvt'+image_row_total;
pro_id='kvt'+wss_i++;
if(pro_id >= main_total){wss_i=1;}
my_image =document.getElementById(pro_id).value;
var x = document.createElement("IMG");
x.style="float:left;width:100%;height:100%;";
x.setAttribute("src", "main_building_images/"+my_image);
document.getElementById('banner_preview').appendChild(x);
document.getElementById('master_banner_div').style.display="none";
}
</script>
</div>
<div id="search_area" class="search_area" >
<select id="search_description" class="main_select_search">
<option selected >Building Type</option>
<option >Residential</option>
<option >Commercial</option>
<option >Medical Shop</option>
<option >Office</option>
<option >Shop</option>
</select>
<select id="search_location" class="main_select_search">
<option selected disabled >Select Location</option>
<?php option_building_location(); ?>
</select>
<select id="search_furniture" class="main_select_search" style="">
<option selected disabled >Furniture Status</option>
<option>Fully Furnished</option>
<option>Semi Furnished</option>
<option>No Furniture</option>
</select>
<select id="search_bedroom" class="main_select_search">
<option selected disabled >Select Bedroom</option>
<option>studio</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<button onClick="start_search();" class="main_search_btn" style="">Filter</button>
<button onClick="close_search_area_btn();" class="hide_search_area_btn" >Hide</button>
</div><!-- end of search_area-->
<div id="content_area" class="content_area">
<!--img src="background_image/DSC_2740.jpg" width="100%" height="100%" style="" classk="main_home_icon" /-->
<?php
$get_advert ="select * from adverttb";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
$post_id = $row_advert['id'];
$_SESSION['id']= $post_id;
$building_name = $row_advert['building_name'];
$location = $row_advert['location'];
$bedroom = $row_advert['bedroom_no'];
$bathroom = $row_advert['bathroom_no'];
$furniture = $row_advert['furniture'];
$image_url = $row_advert['image_url'];
?>
<div class="single_ad_div" >
<a href="ad_detail.php?ad_detail_id=<?php echo"$post_id";?>" ><img onClick="show_more_advert_images();" src="advert_images/<?php echo"$image_url"; ?>" class="advert_images" /></a>
<div class="single_ad_name" ><?php echo"$building_name"; ?></div>
<div class="single_ad_location" >
<img src="kvt_con/location_icon2.png" width="30px" height="30px;" style="float:left;margin-top:5px;" />
<?php echo"$location"; ?>
</div>
<div class="single_ad_bedroom" >
<img src="kvt_con/bedroom_icon.png" width="40px" height="30px;" style="float:left;" />
<span style="float:left;width:30px;height:30px;line-height:40px;color:#33C125;margin-left:10px;backgroundk:green;"><?php echo"$bedroom"; ?></span>
<img src="kvt_con/bathroom_icon.png" width="40px" height="30px;" style="float:left;margin-left:20px;" />
<span style="float:left;width:30px;height:30px;line-height:40px;color:#33C125;margin-left:10px;backgroundk:green;"><?php echo"$bathroom"; ?></span>
</div>
<div class="single_furnished" ><?php echo"$furniture"; ?></div>
<!--a href="extraction.php?ad_id=<?php //echo"$post_id";?>" ><button>Add Image</button></a-->
</div>
<?php } ?>
</div><!--end of content_area-->
<div id="upload_cv_div" onClick="close_upload_cv_div();" class="upload_cv_div" >
<div onClick="close_upload_cv_div();" class="close_upload_cv_div" >x</div>
</div><!-- end of upload_cv_div-->
<div id="upload_cv_input_area" class="upload_cv_input_area" >
<div class="upload_cv_company_title" >Khalaf Sons Estate</div>
<div class="upload_cv_company_country" >Bahrain Manama</div>
<div class="cv_label_input" >Name</div>
<input class="cv_input" type="text" />
<div class="cv_label_input" >Phone Number</div>
<input class="cv_input" type="text" />
<div class="cv_label_input" >Email</div>
<input class="cv_input" type="text" />
<input id="file_cv" style="display:none;" type="file" />
<button class="cv_upload_btn" onClick="document.getElementById('file_cv').click();">Choose File</button>
<div class="cv_file_name" >No File</div>
<div class="cv_label_input" >Cv cover optional</div>
<textarea class="cv_cover" type="text"> </textarea>
<button class="cv_submit_btn">Submit cv</button>
</div><!-- end of upload_cv_input_area-->
<script>
function show_search_area()
{
document.getElementById('search_area').style.display="block";
window.scrollTo(0,0);
}
function close_search_area_btn()
{
document.getElementById('search_area').style.display="none";
}
function show_upload_cv_div()
{//alert('yui');
document.getElementById('upload_cv_div').style.display="block";
document.getElementById('upload_cv_input_area').style.display="block";
}
function close_upload_cv_div()
{//alert('yui');
document.getElementById('upload_cv_div').style.display="none";
document.getElementById('upload_cv_input_area').style.display="none";
}
function start_search()
{
search_description = document.getElementById('search_description').value;
search_location = document.getElementById('search_location').value;
search_furniture = document.getElementById('search_furniture').value;
search_bedroom = document.getElementById('search_bedroom').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","khalaf_auto.php?search_description="+search_description+"&search_location="+search_location+"&search_furniture="+search_furniture+"&search_bedroom="+search_bedroom+"&status=search_advert_disp",false);
xmlhttp.send(null);
document.getElementById('search_result_output').innerHTML =xmlhttp.responseText;
document.getElementById('content_area').style.display="none";
document.getElementById('search_result_div').style.display="block";
//alert(search_description);
}
</script>
<div id="search_result_div" style="float:left;width:81%;min-height:500px;height:auto;backgroundk:orange;margin-left:17%;margin-top:20px;display:none;">
<div id="search_result_output"></div>
</div>
<div class="main_remmie">@Khalaf Sons Real Estate</div>
</body>
</html>