| 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:/xamppkk/htdocs-khalafsons/khalafmaint/ |
Upload File : |
<html>
<head>
<title>Complaint</title>
<link rel="icon" type="image/jpg" href="http://khalafsons.com/kvt_con/khalaf_log.jpg" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/admin_com.css?<?php echo time(); ?>" />
<meta name="google-site-verification" content="nEoKUyYekjcLgAbbeNAIONnDC0jy0rsF5sXYTq8-YBA" /><!-- console code -->
</head>
<?php
session_start();
include('db_con.php');
?>
<?php
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
//}
?>
<input id="my_id" style="display:none;" value="<?php echo"$my_id";?>" />
<input id="my_cpr" style="display:none;" value="<?php echo"$my_cpr";?>" />
<div style="display:none;" >
<?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
*/
?></div>
<input type="text" id="country_user" class="helping_id" style="display:none;" value="<?php echo $country;?>">
<input type="text" id="region_user" class="helping_id" style="display:none;" value="<?php echo $region;?>">
<input type="text" id="city_user" class="helping_id" style="display:none;" value="<?php echo $city;?>">
<body id="body" >
<!--div class="home_div" >Khalaf Sons Real Estate</div-->
<div id="content_div" class="content_div" >
<div id="sub_content" class="sub_content" >
<div id="main_title" class="main_title" >
<span id="disp_title" >Khalaf sons real estate</span>
<a href="log_out"><button class="close_comp_disp_btn" >Logout</button></a>
<?php if($my_id == '1'){ ?><a href="complain"><button id="print_btn_normal" onclickk="print_all_report();" class="close_comp_disp_btn" style="color:blue;" >User</button></a><?php } ?>
<button id="print_btn_normal" onclick="print_all_report();" class="close_comp_disp_btn" style="color:blue;" >Print</button>
<button id="print_btn_search" onclick="print_single_search_report();" class="close_comp_disp_btn" style="color:blue;display:none;" >Print</button>
<a href="add_report"><button class="add_comp_btn" >+</button></a>
<img src="kvt_con/home_btn.png" onclick="disp_report();" class="report_search_btn" style="background:#fff;" />
<img src="kvt_con/search.png" onclick="show_search_div();" class="report_search_btn" />
</div>
<div class="lebal_div" >
<span class="lebal_span_mid" >STAFF NAME</span>
<span class="lebal_span_big" >DETAILS</span>
<span class="lebal_span_mid" >PROPERTY</span>
<span class="lebal_span_small" >FLAT</span>
<span class="lebal_span_small" >STATUS</span>
<span class="lebal_span_small" >TECH</span>
<span class="lebal_span_date" >DATE</span>
</div>
<div id="search_div" class="search_div" >
<div class="search_title">Search window
<button onclick="close_search_div();" class="search_close_btn" >x</button>
<button onclick="reset_search();" class="search_reset_btn" >Reset</button>
</div>
<select id="build_name" class="search_inputs1" >
<option selected disabled>Buliding name</option>
<option>Real Suites A</option>
<option>Real Suites B</option>
<option>Brown Tower</option>
<option>Tubli Center</option>
<option>Panorama</option>
<option>Patrex</option>
<option>Adliya Tower</option>
<option>Salmaniya Plaza</option>
<option>Saj 1</option>
<option>Saj 2</option>
<option>Saj 3</option>
<option>Lenox 1</option>
<option>Lenox 2</option>
<option>Lenox 3</option>
<option>Vintage</option>
<option>Korean Embassy</option>
<option>Indonesian Embassy</option>
</select>
<input id="flat_no" class="search_inputs2" placeholder="Flat no." />
<select id="work_status" class="search_inputs1" >
<option selected disabled>Work status</option>
<option>Done</option>
<option>Work on going</option>
<option>Not done</option>
</select>
<input id="tech_name" class="search_inputs2" placeholder="Tech name" />
<input id="staff_name" class="search_inputs1" placeholder="Staff name" />
<!--input class="search_inputs2" placeholder="Date 15/03/2023" /-->
<button onclick="start_search();" onclickk="close_search_div();" class="search_go_btn" >Ok</button>
</div>
<div id="report_output" ></div>
<div id="search_rept_output" ></div>
<input id="report_id" class="help_input" />
<!--div class="com_output_div" >
<span class="com_span_mid" >Sajesh</span>
<span class="com_span_big" >There is more birds passing over our building name the maine</span>
<span class="com_span_mid" >Real Suites B</span>
<span class="com_span_small" >54</span>
<span class="com_span_small" >Done</span>
<span class="com_span_small" >Sebin</span>
<span class="com_span_date" ></span>
</div-->
</div>
<div id="main_print_div" style="display:none" >
<div class="main_title" style="color:#000;" >
Khalaf Sons Real Estate Maintenance Report
</div>
<div class="lebal_div" style="color:#000;" >
<span class="lebal_span_mid" >STAFF NAME</span>
<span class="lebal_span_big" >DETAILS</span>
<span class="lebal_span_mid" >PROPERTY</span>
<span class="lebal_span_small" >FLAT</span>
<span class="lebal_span_small" >STATUS</span>
<span class="lebal_span_small" >TECH</span>
<span class="lebal_span_date" >DATE</span>
</div>
<div id="report_single_printout" ></div>
<div id="report_all_printout" ></div>
</div>
<div class="footer" >© 2023 Khalaf Sons Real Estate. All rights reserved.</div>
</div>
<script>
function show_play()
{
document.getElementById('pay_no').style.display="block";
}
disp_report_adm();
function disp_report_adm()
{
my_id = document.getElementById('my_id').value;
document.getElementById('report_output').style.display="block";
document.getElementById('disp_title').innerHTML="Khalaf sons real estate";
document.getElementById('print_btn_normal').style.display="block";
document.getElementById('print_btn_search').style.display="none";
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_report_adm",false);
xmlhttp.send(null);
document.getElementById('report_output').innerHTML =xmlhttp.responseText;
document.getElementById('search_rept_output').style.display="none";
}
function show_more_option_div(smod)
{
single_report = smod;
document.getElementById('more_option_div').style.display="block";
document.getElementById(single_report).style="color:red;background:#FFBCD7;";
document.getElementById('content_div').style="overflow:hidden;";
document.getElementById('report_id').value=single_report;
//alert(report_id);
}
function close_more_report_div()
{
document.getElementById('more_option_div').style.display="none";
document.getElementById(single_report).style="color:#505252;";
document.getElementById('content_div').style="overflow:auto;";
}
function del_report()
{
my_id = document.getElementById('my_id').value;
report_id = document.getElementById('report_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?report_id="+report_id+"&&my_id="+my_id+"&&status=del_report",false);
xmlhttp.send(null);
disp_report();
}
function edit_report()
{
report_id = document.getElementById('report_id').value;
window.open("rep_edit.php?report_id="+report_id,"_self");
}
function add_same_day_rep(asdr)
{
report_date = asdr;
window.open("add_report.php?report_date="+report_date,"_self");
}
function print_single_report(psr)
{
date_report_id = psr;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?date_report_id="+date_report_id+"&&status=print_single_report",false);
xmlhttp.send(null);
document.getElementById('report_single_printout').innerHTML = xmlhttp.responseText;
document.getElementById('main_print_div').style.display="block";
restore_original = document.body.innerHTML;
printable_page = document.getElementById('main_print_div').innerHTML;
document.body.innerHTML = printable_page;
window.print();
document.body.innerHTML = restore_original;
document.getElementById('main_print_div').style.display="none";
}
function print_all_report()
{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?status=print_all_report",false);
xmlhttp.send(null);
document.getElementById('report_all_printout').innerHTML = xmlhttp.responseText;
document.getElementById('main_print_div').style.display="block";
restore_original = document.body.innerHTML;
printable_page = document.getElementById('main_print_div').innerHTML;
document.body.innerHTML = printable_page;
window.print();
document.body.innerHTML = restore_original;
document.getElementById('main_print_div').style.display="none";
}
function show_search_div()
{
document.getElementById('search_div').style.display="block";
}
function close_search_div()
{
document.getElementById('search_div').style.display="none";
}
function start_search()
{
build_name = document.getElementById('build_name').value;
flat_no = document.getElementById('flat_no').value;
work_status = document.getElementById('work_status').value;
tech_name = document.getElementById('tech_name').value;
staff_name = document.getElementById('staff_name').value;
document.getElementById('report_output').style.display="none";
document.getElementById('search_div').style.display="none";
document.getElementById('print_btn_normal').style.display="none";
document.getElementById('print_btn_search').style.display="block";
document.getElementById('disp_title').innerHTML="Search results";
document.getElementById('search_rept_output').style.display="block";
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?build_name="+build_name+"&&flat_no="+flat_no+"&&work_status="+work_status+"&&tech_name="+tech_name+"&&staff_name="+staff_name+"&&status=search_report",false);
xmlhttp.send(null);
document.getElementById('search_rept_output').innerHTML = xmlhttp.responseText;
// document.getElementById('main_print_div').style.display="block";
//alert(cur_search);
}
function reset_search()
{
document.getElementById('build_name').value="Buliding name";
document.getElementById('flat_no').value="";
document.getElementById('work_status').value="Work status";
document.getElementById('tech_name').value="";
document.getElementById('staff_name').value="";
}
function print_single_search_report()
{
document.getElementById('main_title').style.display="none";
restore_original = document.body.innerHTML;
printable_page = document.getElementById('sub_content').innerHTML;
document.body.innerHTML = printable_page;
window.print();
document.body.innerHTML = restore_original;
document.getElementById('main_title').style.display="block";
}
</script>
<?php }else{ ?>
<a href="login" id="login" ></a>
<script>
login();
function login()
{
document.getElementById('login').click();
}
</script>
<?php } ?>
</body>
</html>