| 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/old/htdocs old/ |
Upload File : |
<?php
session_start();
include("db_con.php");
//include("function.php");
?>
<?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$region = $geo["geoplugin_regionName"];
$country = $geo["geoplugin_countryName"];
/*echo"$user_ip";
echo "City: ".$city."<br>";
echo "Region: ".$region."<br>";
echo "Country: ".$country."<br>";
/*
geoplugin_request
geoplugin_status
geoplugin_credit
geoplugin_city
geoplugin_region
geoplugin_areaCode
geoplugin_dmaCode
geoplugin_countryCode
geoplugin_countryName
geoplugin_continentCode
geoplugin_latitude
geoplugin_longitude
geoplugin_regionCode
geoplugin_regionName
geoplugin_currencyCode
geoplugin_currencySymbol
geoplugin_currencySymbol_UTF8
geoplugin_currencyConverter
*/
?>
<?php
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
$my_cpr = $_SESSION['user_cpr'];
//echo $_SESSION['id'];
// echo"$user_email";
}
?>
<input id="my_id" style="display:none;" value="<?php echo"$my_id";?>" />
<input id="my_cpr" style="display:none;" value="<?php echo"$my_cpr";?>" />
<html>
<head>
<title>Khalaf sons</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="kvt_con/khalaf_log.jpg" type="image/ico">
<link rel="stylesheet" type="text/css" href="main_css/jobs.css" >
</head>
<body id="body">
<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_text_title">Khalaf Sons Estate</div>
<a href="index.php"><button class="main_home_btn" onmouseover="close_more_home_btn_area();">Home</button></a>
<button onClick="show_jobs_div();" class="main_home_btn" onmouseover="close_more_home_btn_area();">Jobs</button>
<?php if(isset($_SESSION['id'])){ ?>
<button onClick="new_jobs_div();" class="main_home_btn" onmouseover="close_more_home_btn_area();">New Jobs</button>
<button onClick="show_applys_div();" class="main_home_btn" onmouseover="close_more_home_btn_area();">Applys</button>
<?php } ?>
<a href="contact.php" ><button class="main_home_btn" onmouseover="close_more_home_btn_area();">Contact</button></a>
<div class="icon_div_right" >
<a href="maintenance"><span id="complaint_notif_output" ></span></a>
<img onClick="show_search_area();" src="kvt_con/search_icon.png" class="top_right_icons" />
<a href="https://www.facebook.com/Khalaf-Sons-Real-Estate-WLL-899406336847138/" ><img src="kvt_con/fb_icon.png" class="top_right_icons" /></a>
<!--img src="kvt_con/instagram_icon.png" class="top_right_icons" /-->
<a href="https://www.linkedin.com/company/khalaf-sons-real-estate/?viewAsMember=true" ><img src="kvt_con/linkedin.png" class="top_right_icons" /></a>
</div>
<div class="icon_div_right_mob" >
<img id="show_mob_menu_btn" onClick="show_mob_menu();" src="kvt_con/menu.png" class="top_right_mob_menu_icon" />
<img id="close_mob_menu_btn" onClick="close_mob_menu();" src="kvt_con/close_mob_menu.png" class="top_right_mob_menu_icon" style="display:none;" />
<script>
setInterval(function(){ complaint_notif_disp(); }, 6000);
complaint_notif_disp();
function complaint_notif_disp()
{
my_cpr =document.getElementById('my_cpr').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","khalaf_auto.php?my_cpr="+my_cpr+"&&status=complaint_notif_disp",false);
xmlhttp.send(null);
document.getElementById('complaint_notif_output').innerHTML =xmlhttp.responseText;
//alert(54);
}
function show_mob_menu()
{
document.getElementById('main_home_left_mob').style.display="block";
document.getElementById('show_mob_menu_btn').style.display="none";
document.getElementById('close_mob_menu_btn').style.display="block";
//alert('woop');
window.scrollTo(0,0);
}
function close_mob_menu()
{
document.getElementById('main_home_left_mob').style.display="none";
document.getElementById('show_mob_menu_btn').style.display="block";
document.getElementById('close_mob_menu_btn').style.display="none";
}
</script>
</div><!-- end of icon_div_right_mob-->
</div>
<div class="positioning_main_home"></div>
<div class="main_home_left_mob" >
<div id="main_home_left_mob" style="display:none;" class="sub_home_left_mob" >
<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="jobs.php"><button class="left_home_btn">Jobs</button></a>
<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=""><button class="left_home_btn">About</button></a>
<!--button onClick="show_mob_share_div();" class="left_home_btn">Share</button-->
<?php
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
$get_user ="select * from khalaf_admintb where user_id_adm='$my_id' ";
$run_get_user = mysqli_query($con,$get_user);
$check_user = mysqli_num_rows($run_get_user);
if($check_user >0){
?>
<a href="extraction.php"><button class="left_home_btn">Extraction</button></a>
<?php } ?>
<a href="myaccount.php"><button class="left_home_btn">Myaccount</button></a>
<a href="log_out.php"><button class="left_home_btn">Log out</button></a>
<?php
}else{?>
<a href="log_in.php"><button class="left_home_btn">Sign in</button></a>
<?php } ?>
</div>
</div><!-- end of main_home_left_mob-->
<div id="upload_new_job_input" class="upload_new_job_input" >
<div class="input_new_job_title" >Post new job vacancy</div>
<form method="post" enctype="multipart/form-data" >
<input name="new_job_position" class="job_input_position" placeholder="Job position" />
<input name="new_job_location" class="job_input_location" placeholder="Location" />
<textarea name="new_job_details" class="job_input_details" placeholder="Job Details" ></textarea>
<button name="insert_new_jobs" class="new_jobs_send_btn" >Send</button>
<?php
if(isset($_POST['insert_new_jobs']))
{
$new_job_position = $_POST['new_job_position'];
$new_job_location = $_POST['new_job_location'];
$new_job_details = $_POST['new_job_details'];
$insert_new_job ="insert into jobstb (user_id,job_title,job_description,job_location,user_ip,country,city,curr_date,curr_time) values('$my_id','$new_job_position','$new_job_details','$new_job_location','$user_ip','$country','$city',CURDATE(),CURTIME())";
$run_insert_new_job = mysqli_query($con,$insert_new_job);
echo"$new_job_details";
}
?>
</form>
</div><!-- end of upload_new_job_input-->
<div id="all_new_jobs_div" >
<div class="jobs_header_div">Trending jobs
<?php if(isset($_SESSION['id'])){ ?>
<button onClick="show_applys_div();" class="apply_btn" onmouseover="close_more_home_btn_area();">Applys</button>
<?php } ?>
</div>
<?php
$get_job_post ="select * from jobstb order by id desc ";
$run_get_job_post = mysqli_query($con,$get_job_post);
while($row_get_job_post = mysqli_fetch_array($run_get_job_post)){
$job_id = $row_get_job_post['id'];
$job_title = $row_get_job_post['job_title'];
$job_description = $row_get_job_post['job_description'];
$job_location = $row_get_job_post['job_location'];
$curr_date = $row_get_job_post['curr_date'];
?>
<div class="main_job_div">
<div class="job_company_log"><img src="kvt_con/khalaf_log.jpg" width="100%" heightk="100%" /></div>
<?php if(isset($_SESSION['id'])){ ?>
<button onClick="show_upload_cv_div(this.name);" name="<?php echo"$job_id"; ?>" class="job_apply_btn">Apply Now</button>
<?php }else{ ?>
<a href="log_in.php"><button class="job_apply_btn">Apply Now</button></a>
<?php } ?>
<div id="job_title_name<?php echo"$job_id"; ?>" class="job_title"><?php echo"$job_title"; ?></div>
<div class="job_post_date"><?php echo"$curr_date"; ?></div>
<div class="job_view_div">10 Views</div>
<div class="job_location"><?php echo"$job_location"; ?></div>
<div class="job_description"><?php echo"$job_description"; ?></div>
</div>
<?php } ?>
<!--div class="main_job_div">
<div class="job_company_log"><img src="kvt_con/khalaf_log.jpg" width="100%" heightk="100%" /></div>
<div class="job_title">Truck Diver</div>
<div class="job_description">Ready to start work on the spot go</div>
<div class="job_location">Bahrain manama</div>
<div class="job_post_date">1-3-2019</div>
<div class="job_view_div">10 Views</div>
</div>
<div class="main_job_div">
<div class="job_company_log"><img src="kvt_con/khalaf_log.jpg" width="100%" heightk="100%" /></div>
<div class="job_title">Font Desk Agent</div>
<div class="job_description">Ready to start work on the spot go</div>
<div class="job_location">Bahrain manama</div>
<div class="job_post_date">1-3-2019</div>
<div class="job_view_div">10 Views</div>
</div>
<div class="main_job_div">
<div class="job_company_log"><img src="kvt_con/khalaf_log.jpg" width="100%" heightk="100%" /></div>
<div class="job_title">Font Desk Agent</div>
<div class="job_description">Ready to start work on the spot go</div>
<div class="job_location">Bahrain manama</div>
<div class="job_post_date">1-3-2019</div>
<div class="job_view_div">10 Views</div>
</div>
<div class="main_job_div">
<div class="job_company_log"><img src="kvt_con/khalaf_log.jpg" width="100%" heightk="100%" /></div>
<div class="job_title">Font Desk Agent</div>
<div class="job_description">Ready to start work on the spot go</div>
<div class="job_location">Bahrain manama</div>
<div class="job_post_date">1-3-2019</div>
<div class="job_view_div">10 Views</div>
</div-->
</div>
<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 onClick="close_upload_cv_div();" class="close_upload_cv_div_mob" >x</div>
</div>
<form method="post" enctype="multipart/form-data" >
<input id="cv_title_out" name="cv_title_out" class="upload_cv_company_country" />
<div class="cv_label_input" >Name</div>
<input name="cv_input_name" class="cv_input" type="text" />
<div class="cv_label_input" >Phone Number</div>
<input name="cv_input_mobile" class="cv_input" type="text" />
<div class="cv_label_input" >Email</div>
<input name="cv_input_email" class="cv_input" type="text" />
<input name="file_cv" class="cv_upload_btn" style="displayk:none;" type="file" />
<!--button onchange="show_file_name();" class="cv_upload_btn" onClick="document.getElementById('file_cv').click();">Choose File</button>
<div id="cv_file_output" class="cv_file_name" >No File</div-->
<div class="cv_label_input" >Cv cover optional</div>
<textarea name="cv_input_cover" class="cv_cover" type="text"> </textarea>
<button type="submit" name="insert_cv" class="cv_submit_btn">Submit cv</button>
</form>
<?php
if(isset($_POST['insert_cv'])){
$cv_title = $_POST['cv_title_out'];
$cv_name = $_POST['cv_input_name'];
$cv_mobile = $_POST['cv_input_mobile'];
$cv_email = $_POST['cv_input_email'];
$cv_cover = $_POST['cv_input_cover'];
$cv_file = $_FILES['file_cv']['name'];
$type = explode('.',$cv_file);
$type =end($type);
if($cv_file=="" || $cv_name=="" || $cv_mobile=="" || $cv_email=="" || $cv_cover==""){
echo"<div style='float:left;width:100%;text-align:center;font-size:1.1em;color:red;'>Fill All The Spaces</div>";
?>
<script>
document.getElementById('body').style="background:#5D6D7E";
document.getElementById('all_new_jobs_div').style.display="none";
document.getElementById('upload_cv_div').style="display:none;position:static;";
document.getElementById('upload_cv_input_area').style="display:block;position:static;";
</script>
<?php
}else{
if($type !=='txt' && $type !=='docx' && $type !=='pdf' ){
echo"<div style='float:left;width:100%;text-align:center;font-size:1.1em;color:red;'>File Format Not Supported</div>";
}else{
$random_name =rand();
$file_tmp = $_FILES['file_cv']['tmp_name'];
$insert_more_property_image = "insert into khalaf_cvtb (user_id,cv_title,name,contact,email,cv_cover,file_url,user_ip,country,city,curr_date,curr_time)
values('$my_id','$cv_title','$cv_name','$cv_mobile','$cv_email','$cv_cover','$random_name.$type','$user_ip','$country','$city',CURDATE(),CURTIME() )";
$run_more_property_image = mysqli_query($con,$insert_more_property_image);
if($run_more_property_image){
move_uploaded_file($file_tmp,'user_work_cv/'.$random_name.'.'.$type);
echo"<div style='float:left;width:100%;text-align:center;font-size:1.1em;color:green;'>New Curriculum Vitae Uploaded</div>";
}else{
echo"<div style='float:left;width:100%;text-align:center;font-size:1.1em;color:red;'>Something Went Wrong,Data Not Saved</div>";
}
}
}
}
?>
</div><!-- end of upload_cv_input_area-->
<script>
function show_upload_cv_div(sucd)
{
screen_size = screen.width;
if(screen_size < 700){
document.getElementById('body').style="background:#5D6D7E";
document.getElementById('upload_cv_div').style="display:none;position:static;";
document.getElementById('upload_cv_input_area').style="display:block;position:static;";
document.getElementById('all_new_jobs_div').style.display="none";
}else{
document.getElementById('upload_cv_div').style.display="block";
document.getElementById('upload_cv_input_area').style.display="block";
}
job_title_name ='job_title_name'+sucd;
title_job = document.getElementById(job_title_name).innerHTML;
document.getElementById('cv_title_out').value = title_job;
//alert(title_job);
}
function close_upload_cv_div()
{//alert('yui');
document.getElementById('upload_cv_div').style.display="none";
document.getElementById('upload_cv_input_area').style.display="none";
document.getElementById('all_new_jobs_div').style.display="block";
document.getElementById('body').style="background:#ededed";
}
function new_jobs_div()
{
document.getElementById('upload_new_job_input').style.display="block";
document.getElementById('display_job_applys').style.display="none";
document.getElementById('all_new_jobs_div').style.display="none";
}
function show_applys_div()
{
document.getElementById('display_job_applys').style.display="block";
document.getElementById('upload_new_job_input').style.display="none";
document.getElementById('all_new_jobs_div').style.display="none";
}
function show_jobs_div()
{
document.getElementById('display_job_applys').style.display="none";
document.getElementById('upload_new_job_input').style.display="none";
document.getElementById('all_new_jobs_div').style.display="block";
}
</script>
<div id="display_job_applys" style="display:none;">
<div class="display_user_cvs_header" >Curriculum Vitae</div>
<?php
$get_work_cv ="select * from khalaf_cvtb ";
$run_work_cv = mysqli_query($con,$get_work_cv);
while($row_get_work_cv = mysqli_fetch_array($run_work_cv))
{
$cv_id = $row_get_work_cv['id'];
$cv_title = $row_get_work_cv['cv_title'];
$name = $row_get_work_cv['name'];
$contact = $row_get_work_cv['contact'];
$email = $row_get_work_cv['email'];
$cv_cover = $row_get_work_cv['cv_cover'];
$file_url = $row_get_work_cv['file_url'];
$curr_date = $row_get_work_cv['curr_date'];
$curr_time = $row_get_work_cv['curr_time'];
// $fileContents = file_get_contents("user_profile_images/$agent");
// echo $fileContents;
//echo"$name";
//echo"$agent";
//}
?>
<div class="display_user_cvs" >
<div class="cv_title"><?php echo"<span style='font-weight:bold;'>Job title:</span>"; echo" "; echo"$cv_title"; ?></div>
<div class="cv_user_name"><?php echo"<span style='font-weight:bold;'>Name:</span>"; echo" "; echo"$name"; ?></div>
<div class="cv_user_contact"><?php echo"<span style='font-weight:bold;'>Phone:</span>"; echo" "; echo"$contact"; ?></div>
<div class="cv_user_email"><?php echo"<span style='font-weight:bold;'>Email:</span>"; echo" "; echo"$email"; ?></div>
<div class="cv_user_cover"><?php echo"<span style='font-weight:bold;'>Cv cover:</span>"; echo" "; echo"$cv_cover"; ?></div>
<div id="worker_cv<?php echo"$cv_id";?> " class="worker_cv" >
<?php echo"<span style='font-weight:bold;'>Cv file:</span>"; echo" "; //echo"$file_url"; ?>
<button id="<?php echo"$cv_id";?> " onClick="document.getElementById('download_work_cv<?php echo"$cv_id";?>').click();" onClickk="mycv(this.id);" class="preview_cv_btn" >Preview Cv</button>
</div>
<a href="/user_work_cv/<?php echo"$file_url";?>" id="download_work_cv<?php echo"$cv_id";?>" download="KSR-estate" style="display:none;">download
<div src="/user_work_cv/<?php echo"$file_url";?>" alt="KSR-estate"></div>
</a>
<div class="cv_post_date"><?php echo"<span style='font-weight:bold;'>Apply Date:</span>"; echo" "; echo"$curr_date"; ?></div>
<div id="cvmy" ></div>
<script>
function mycv(mc)
{
//current_cv='worker_cv'+mc;
/* cv_previwe = mc;//document.getElementById(current_cv).innerHTML;
var x = document.createElement("IFRAME");
x.style="float:left;width:100px;height:100px;display:none;";
x.setAttribute("src", "user_work_cv/"+cv_previwe);
document.getElementById('cvmy').appendChild(x);
*/
}
</script>
</div>
<?php } ?>
</div>
<div style="float:left;width:100%;height:100px;background:black;color:white;margin-top:20px;text-align:center;font-size:1.2em;display:none;">@Khalaf Sons Real Estate 2019.</div>
</body>
</html>