| 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/khalafsons.gap/ |
Upload File : |
<html>
<?php
session_start();
include('db_con.php');
include('function.php');
?>
<?php
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
//$user_email = $_SESSION['email'];
//echo $_SESSION['id'];
// echo"$user_email";
}
?>
<input id="my_id" style="display:none;" value="<?php echo"$my_id";?>" />
<?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
*/
?>
<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;?>">
<head>
<title>Khala Sons Real Estate</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/purchase.css" />
</head>
<body id="body">
<div id="dash_container" class="dash_container" style="displayk:none;">
<a href="index"><div class="dash_icon_div" >Home</div></a>
<div onClick="show_new_order_entry();" class="dash_icon_div" >New Order</div>
<div onClick="show_new_order_list();" class="dash_icon_div" >Order List</div>
<div onClick="show_purchased_product_list();" class="dash_icon_div" >Purchased Products</div>
<div onClick="show_purchase_shops_div();" class="dash_icon_div" >Our Shops</div>
<div class="dash_icon_div" >Purchase Manager</div>
<div onClick="show_graph_shops_div();" class="dash_icon_div" >Graph</div>
<div class="dash_icon_div" >New Order</div>
<div class="dash_icon_div" >New Order</div>
<script>
function show_new_order_entry()
{
document.getElementById('order_new_input_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}
function close_order_new_input_div()
{
document.getElementById('order_new_input_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function show_new_order_list()
{
/*screen_size = screen.width;
if(screen_size < 700){
document.getElementById('purchase_list_mob_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}else{*/
document.getElementById('purchase_list_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}//}
function close_purchase_list_div()
{
document.getElementById('purchase_list_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function show_purchased_product_list()
{
document.getElementById('final_recept_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}
function close_final_recept_div()
{
document.getElementById('final_recept_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function close_new_sales_input_div()
{
document.getElementById('new_sales_input_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function close_edit_order_input_div()
{
document.getElementById('order_edit_input_output').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function show_order_option(soo)
{
transcation_option ='transcation_option_div'+soo;
transcation_option2 ='transcation_option_div2'+soo;
document.getElementById(transcation_option).style.display="block";
document.getElementById(transcation_option2).style.display="block";
//document.getElementById('dash_container').style.display="block";
}
function close_order_option(coo)
{
//transcation_option ='transcation_option_div'+coo;
//transcation_option2 ='transcation_option_div2'+coo;
document.getElementById(transcation_option).style.display="none";
document.getElementById(transcation_option2).style.display="none";
//document.getElementById('dash_container').style.display="block";
}
function close_order_option_mob(coom)
{
transcation_option2 ='transcation_option_div2'+coom;
document.getElementById(transcation_option2).style.display="none";
//document.getElementById('dash_container').style.display="block";
}
function show_delete_order_confirm_area(sdoca)
{
delete_order_confirm ='delete_order_confirm_area'+sdoca;
delete_order_confirm_mob ='delete_order_confirm_mob_area'+sdoca;
transcation_option ='transcation_option_div'+sdoca;
document.getElementById(delete_order_confirm).style.display="block";
document.getElementById(transcation_option).style.display="none";
document.getElementById(delete_order_confirm_mob).style.display="block";
}
function zoom_sample_images(zsi)
{
screen_size = screen.width;
zoomed_image_pc ='zoomed_sample_img_pc'+zsi;
zoomed_image ='zoomed_sample_img_div'+zsi;
document.getElementById(zoomed_image_pc).style.display="block";
document.getElementById(zoomed_image).style.display="block";
if(screen_size <600){
document.getElementById('body').style="overflow:hidden;";
zoomed_image.scrollTo(0,0);
scrollTo(0,0);
}else{document.getElementById('body').style="overflow:auto;";}
}
function close_zoom_sample_images(czsi)
{
zoomed_image_pc ='zoomed_sample_img_pc'+czsi;
zoomed_image ='zoomed_sample_img_div'+czsi;
document.getElementById(zoomed_image_pc).style.display="none";
document.getElementById(zoomed_image).style.display="none";
document.getElementById('body').style="overflow:auto;";
}
function no_del_order(ndo)
{
delete_order_confirm ='delete_order_confirm_area'+ndo;
delete_order_confirm_mob ='delete_order_confirm_mob_area'+ndo;
transcation_option ='transcation_option_div'+ndo;
document.getElementById(delete_order_confirm).style.display="none";
document.getElementById(delete_order_confirm_mob).style.display="none";
document.getElementById(transcation_option).style.display="none";
//document.getElementById('dash_container').style.display="block";
}
function close_delete_order_confirm_area()
{
document.getElementById(delete_order_confirm).style.display="none";
document.getElementById(transcation_option).style.display="none";
//document.getElementById('dash_container').style.display="block";
}
function show_purchase_shops_div()
{
document.getElementById('purchase_shops_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}
function close_purchase_shops_div()
{
document.getElementById('purchase_shops_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function show_graph_shops_div()
{
document.getElementById('show_graph_div').style.display="block";
document.getElementById('dash_container').style.display="none";
}
function close_graph_div()
{
document.getElementById('show_graph_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
</script>
</div><!--end of dash_container-->
<div id="purchase_list_div" class="purchase_list_div" style="display:none;">
<div id="display_new_orders_out_put" ></div>
<script>
display_new_orders();
function display_new_orders()
{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?status=disp_new_orders",false);
xmlhttp.send(null);
document.getElementById('display_new_orders_out_put').innerHTML=xmlhttp.responseText;
}
function check_out(co)
{
// document.getElementById('new_sales_input_div').style.display="block";
order_id =co;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?order_id="+order_id+"&&status=disp_checkout_order_inputs",false);
xmlhttp.send(null);
document.getElementById('order_check_input_output').innerHTML=xmlhttp.responseText;
document.getElementById('purchase_list_div').style.display="none";
}
function edit_order(eo)
{
document.getElementById('order_edit_input_output').style.display="block";
my_id = document.getElementById('my_id').value;
order_id = eo;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?order_id="+order_id+"&my_id="+my_id+"&status=disp_edit_order_inputs",false);
xmlhttp.send(null);
document.getElementById('order_edit_input_output').innerHTML=xmlhttp.responseText;
document.getElementById('purchase_list_div').style.display="none";
}
function delete_order(deo)
{
//document.getElementById('order_edit_input_output').style.display="block";
my_id = document.getElementById('my_id').value;
order_id = deo;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?order_id="+order_id+"&my_id="+my_id+"&status=delete_order",false);
xmlhttp.send(null);
document.getElementById('order_edit_input_output').innerHTML=xmlhttp.responseText;
//document.getElementById('purchase_list_div').style.display="none";
display_new_orders();
//alert(deo);
}
function sale_now_product(snp)
{
my_id = document.getElementById('my_id').value;
sale_bd_name = document.getElementById('sale_bd_name').value;
sale_flat_no = document.getElementById('sale_flat_no').value;
sale_product_name = document.getElementById('sale_product_name').value;
sale_product_qty = document.getElementById('sale_product_qty').value;
shop_per_iterm = document.getElementById('shop_per_iterm').value;
sale_total_price = document.getElementById('sale_total_price').value;
sale_order_by_id = document.getElementById('order_by_id').value;
sale_picked_by = document.getElementById('sale_picked_by').value;
bill_invoice = document.getElementById('bill_invoice').value;
if(sale_bd_name=="" || sale_flat_no=="" || sale_product_name=="" || sale_product_qty=="" || shop_per_iterm=="" || sale_total_price=="" || sale_picked_by=="" || bill_invoice=="" ){
document.getElementById('purchased_product_erorr_out_put').innerHTML="Fill All The Spaces";
document.getElementById('purchased_product_erorr_out_put').style="color:red;display:block";
}else{
// alert(sale_bd_name);
order_id =snp;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?order_id="+order_id+"&my_id="+my_id+"&sale_bd_name="+sale_bd_name+"&sale_flat_no="+sale_flat_no+"&sale_product_name="+sale_product_name+"&sale_product_qty="+sale_product_qty+"&shop_per_iterm="+shop_per_iterm+"&sale_total_price="+sale_total_price+"&&sale_order_by_id="+sale_order_by_id+"&sale_picked_by="+sale_picked_by+"&bill_invoice="+bill_invoice+"&status=insert_sold_products",false);
xmlhttp.send(null);
document.getElementById('purchased_product_erorr_out_put').innerHTML=xmlhttp.responseText;
document.getElementById('purchased_product_erorr_out_put').style="color:red;display:block";
//alert(sale_bd_name);
document.getElementById('sale_bd_name').value="";
document.getElementById('sale_flat_no').value="";
document.getElementById('sale_product_name').value="";
document.getElementById('sale_product_qty').value="";
document.getElementById('shop_per_iterm').value="";
document.getElementById('sale_total_price').value="";
document.getElementById('sale_picked_by').value="";
document.getElementById('bill_invoice').value="";
display_purchase_list();
document.getElementById('final_recept_div').style.display="block";
document.getElementById('new_sales_input_div').style.display="none";
display_new_orders();
}
}
function cancle_purchase()
{
document.getElementById('new_sales_input_div').style.display="none";
document.getElementById('dash_container').style.display="block";
}
function update_order_now(uon)
{
order_id = uon;
my_id = document.getElementById('my_id').value;
edit_bd_name = document.getElementById('edit_bd_name').value;
edit_flat_no = document.getElementById('edit_flat_no').value;
edit_product_name = document.getElementById('edit_product_name').value;
edit_product_qty = document.getElementById('edit_product_qty').value;
if(edit_bd_name=="" || edit_flat_no=="" || edit_product_name=="" || edit_product_qty=="" ){
document.getElementById('eidt_order_erorr_out_put').innerHTML="Fill All The Spaces";
document.getElementById('eidt_order_erorr_out_put').style="color:red;display:block";
}else{ //alert(uon);
order_id =uon;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?order_id="+order_id+"&my_id="+my_id+"&edit_bd_name="+edit_bd_name+"&edit_flat_no="+edit_flat_no+"&edit_product_name="+edit_product_name+"&edit_product_qty="+edit_product_qty+"&status=update_order_now",false);
xmlhttp.send(null);
document.getElementById('eidt_order_erorr_out_put').innerHTML=xmlhttp.responseText;
document.getElementById('eidt_order_erorr_out_put').style="color:red;display:block";
document.getElementById('edit_bd_name').value="";
document.getElementById('edit_flat_no').value="";
document.getElementById('edit_product_name').value="";
document.getElementById('edit_product_qty').value="";
display_new_orders();
document.getElementById('purchase_list_div').style="display:block;";
document.getElementById('order_edit_input_output').style="display:none;";
}
}
</script>
</div>
<div id="order_check_input_output" ></div>
<div id="order_edit_input_output" ></div>
<div id="order_new_input_div" class="order_new_input_div" style="display:none;">
<div class="order_new_input_title" >Purchase Entry <button onClick="close_order_new_input_div();" class="close_main_div" >x</button></div>
<form method="post" enctype="multipart/form-data">
<div class="order_input_lebal" >Building name</div>
<input id="building_name" name="building_name" class="order_bd_name_input" />
<div class="order_input_lebal" >Flat no.</div>
<input id="order_flat_no" name="order_flat_no" class="order_bd_name_input" />
<div class="order_input_lebal" >Product name</div>
<input id="product_name" name="product_name" class="order_bd_name_input" />
<div class="order_input_lebal" >Product qty</div>
<input id="product_qty" name="product_qty" class="order_bd_name_input" />
<input id="sample_image" name="sample_image" onchange="show_sample_img_name();" type="file" style="display:none;" />
<input id="sample_image2" name="sample_image2" onchange="show_sample_img_name2();" type="file" style="display:none;" />
<div class="order_input_lebal" >Order by</div>
<input id="order_by" name="order_by" class="order_bd_name_input" />
<button type="submit" id="save_new_order" name="save_new_order" class="new_order_publish_btn" style="display:none;"></button>
</form >
<button onClick="document.getElementById('sample_image').click();" id="sel_sample_image1" name="sel_sample_image1" class="sel_sample_image">Select Image 1</button>
<div id="sample_img_name_out1" class="sample_img_name_out" ></div>
<button onClick="document.getElementById('sample_image2').click();" id="sel_sample_image2" name="sel_sample_image2" class="sel_sample_image">Select Image 2</button>
<div id="sample_img_name_out2" class="sample_img_name_out" ></div>
<div id="order_erorr_out_put" class="erorr_out_put" ></div>
<button onClick="cancel_new_order();" class="new_order_cancel_btn">Cancel</button>
<button id="order_publish_btn" onClick="make_new_order();" class="new_order_publish_btn">Publish</button>
<button id="final_save_new_order_btn" onClick="document.getElementById('save_new_order').click();" style="display:none;" class="new_order_publish_btn">Finish</button>
<script>
function show_sample_img_name()
{
//image_name = document.getElementById('sample_image').file['name'];
image_name = document.getElementById("sample_image").files[0];
file_name = image_name.name;
document.getElementById('sample_img_name_out1').innerHTML = file_name;
document.getElementById('sel_sample_image1').innerHTML="<span style='color:green;'>Image 1 selected</span>";
//alert(image_n);
}
function show_sample_img_name2()
{
//image_name = document.getElementById('sample_image').file['name'];
image_name = document.getElementById("sample_image2").files[0];
file_name = image_name.name;
document.getElementById('sample_img_name_out2').innerHTML = file_name;
document.getElementById('sel_sample_image2').innerHTML="<span style='color:green;'>Image 2 selected</span>";
//alert(image_n);
}
function make_new_order()
{//alert('pool');
my_id = document.getElementById('my_id').value;
bd_name = document.getElementById('building_name').value;
flat_no = document.getElementById('order_flat_no').value;
name_product = document.getElementById('product_name').value;
qty_product = document.getElementById('product_qty').value;
ordered_by = document.getElementById('order_by').value;
/*
image_sample1 = document.getElementById('sample_image').files[0];
image_sample2 = document.getElementById('sample_image2').files[0];
var image_sampleone = image_sample1.type;
var image_sampletwo = image_sample2.type;
alert(image_sampletwo);
if(image_sampleone !=="image/png" || image_sampleone !=="image/jpeg" ){
document.getElementById('order_erorr_out_put').innerHTML="<span style='color:red;'>Image one Selected Formate Not Supported</span>";
document.getElementById('order_erorr_out_put').style.display="block";
}/*else if(image_sampletwo !=="image/png" || image_sampletwo !=="image/jpeg" ){
document.getElementById('order_erorr_out_put').innerHTML="<span style='color:red;'>Image Two Selected Formate Not Supported</span>";
document.getElementById('order_erorr_out_put').style.display="block";
}//else{alert('image_sample1');}*/
if(bd_name=="" || flat_no=="" || name_product=="" || qty_product=="" || ordered_by==""){
document.getElementById('order_erorr_out_put').innerHTML="Fill All The Spaces";
document.getElementById('order_erorr_out_put').style.display="block";
}else{
document.getElementById('final_save_new_order_btn').style.display="block";
document.getElementById('order_publish_btn').style.display="none";
/*
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?my_id="+my_id+"&building_name="+bd_name+"&order_flat_no="+flat_no+"&product_name="+name_product+"&product_qty="+qty_product+"&order_by="+ordered_by+"&status=make_new_order_insert",false);
xmlhttp.send(null);
document.getElementById('order_erorr_out_put').innerHTML=xmlhttp.responseText;
document.getElementById('order_erorr_out_put').style.display="block";*/
/*document.getElementById('building_name').value="";
document.getElementById('order_flat_no').value="";
document.getElementById('product_name').value="";
document.getElementById('product_qty').value="";
document.getElementById('order_by').value="";*/
//display_new_orders();
//document.getElementById('purchase_list_div').style.display="block";
//document.getElementById('order_new_input_div').style.display="none";
}
}
function cancel_new_order()
{
document.getElementById('building_name').value="";
document.getElementById('order_flat_no').value="";
document.getElementById('product_name').value="";
document.getElementById('product_qty').value="";
document.getElementById('order_by').value="";
document.getElementById('order_erorr_out_put').style.display="none";
}
</script>
<?php
if(isset($_POST['save_new_order']))
{
//$my_id = $_POST['my_id'];
$bd_name = $_POST['building_name'];
$flat_no = $_POST['order_flat_no'];
$name_product = $_POST['product_name'];
$qty_product = $_POST['product_qty'];
$ordered_by = $_POST['order_by'];
$image_url_one = $_FILES['sample_image']['name'];
$type_one = explode('.',$image_url_one);
$type_one =end($type_one);
$random_name_one =rand();
$image_one_tmp = $_FILES['sample_image']['tmp_name'];
$image_url_two = $_FILES['sample_image2']['name'];
$type_two = explode('.',$image_url_two);
$type_two =end($type_two);
$random_name_two =rand();
$image_two_tmp = $_FILES['sample_image2']['tmp_name'];
$insert_oreder ="insert into new_ordertb (my_id,building_name,flat_no,product_name,product_qty,order_by_id,image_url_one,image_url_two,curr_date,curr_time)
values('$my_id','$bd_name','$flat_no','$name_product','$qty_product','$my_id','$random_name_one.$type_one','$random_name_two.$type_two',CURDATE(),CURTIME() )";
$run_order_insert = mysqli_query($con,$insert_oreder);
if(!$run_order_insert){
echo"<span style='color:red;'>Something Went Wrong,Your Information Has Not Been Saved</span>";
?>
<script>
document.getElementById('order_new_input_div').style.display="block";
document.getElementById('dash_container').style.display="none";
</script>
<?php
}else{
move_uploaded_file($image_one_tmp,'new_order_sample_img/'.$random_name_one.'.'.$type_one);
move_uploaded_file($image_two_tmp,'new_order_sample_img/'.$random_name_two.'.'.$type_two);
?>
<script>
document.getElementById('purchase_list_div').style.display="block";
document.getElementById('dash_container').style.display="none";
</script>
<?php
}
}
?>
</div><!--end of order_new_input_div-->
<div id="final_recept_div" class="final_recept_div" style="display:none;">
<div id="purchase_list_output" ></div>
<script>
display_purchase_list();
function display_purchase_list()
{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?status=display_purchase_list",false);
xmlhttp.send(null);
document.getElementById('purchase_list_output').innerHTML=xmlhttp.responseText;
}
</script>
</div>
<div id="purchase_shops_div" class="purchase_shops_div" >
<div class="purchase_shops_header_div" >
<div class="purchase_shops_title" >Shops from where we purchase spare parts</div>
<button onClick="close_purchase_shops_div();" class="close_main_div" >x</button>
<button class="add_new_shop_btn" >Add Shop</button>
</div>
<div class="single_shop_div">
<div class="single_shop_image">Albaba fast spares</div>
<div class="single_shop_name">Albaba fast spares</div>
<div class="single_shop_location">Manama</div>
</div>
<div class="single_shop_div">
<div class="single_shop_image">Albaba fast spares</div>
<div class="single_shop_name">Albaba fast spares</div>
<div class="single_shop_location">Manama</div>
</div>
<div class="single_shop_div">
<div class="single_shop_image">Albaba fast spares</div>
<div class="single_shop_name">Albaba fast spares</div>
<div class="single_shop_location">Manama</div>
</div>
</div><!-- end of purchase_shops-->
<div id="show_graph_div" class="show_graph_div" >
<div class="graph_info_title">Maintenance Expenditure.
<button onClick="close_graph_div()" class="close_graph_btn">X</button>
<!--img src="kvt_con/print_btn.png" width="50px" height="50px" style="float:right;margin-right:20px;margin-top:5px;cursor:pointer;" /-->
<button id="show_graph_diagram_btn" onClick="show_graph_diagram()" class="datagraph_btn_two">Graph</button>
<button id="show_graph_text_btn" onClick="show_graph_text()" class="datagraph_btn_two" style="display:none;">Data</button>
</div>
<script>
function show_graph_diagram(sgd)
{ diff_id = sgd;
document.getElementById('graph_data').style.display="block";
document.getElementById('show_graph_text_btn').style.display="block";
document.getElementById('graph_contain_div').style.display="none";
//document.getElementById('graph_text_info_div').style.display="none";
document.getElementById('show_graph_diagram_btn').style.display="none";
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","transaction_auto.php?diff_id="+diff_id+"&status=show_graph_diagram",false);
xmlhttp.send(null);
document.getElementById('graph_data_output').innerHTML=xmlhttp.responseText;
alert(sgd);
}
function show_graph_text()
{
document.getElementById('graph_contain_div').style.display="block";
//document.getElementById('graph_text_info_head_div').style.display="block";
document.getElementById('show_graph_diagram_btn').style.display="block";
document.getElementById('graph_data').style.display="none";
document.getElementById('show_graph_text_btn').style.display="none";
}
</script>
</div>
<div id="helping_graph_div" class="helping_graph_div" ></div>
<div id="graph_contain_div">
<?php
$get_calender = "select * from graph_calendartb ";
$run_get_calender = mysqli_query($con,$get_calender);
while($row_calender = mysqli_fetch_array($run_get_calender)){
$calender_id = $row_calender['id'];
$start_date = $row_calender['start_date'];
$end_date = $row_calender['end_date'];
?>
<div id="graph_text_info_head_div" class="graph_text_info_head_div">
<div class="graph_building_lebal">Property Name</div>
<div class="graph_amount_lebal">Amount BD</div>
<div class="graph_percent_lebal">Percentage</div>
<div class="graph_date4m_lebal">Date From
<button class="graph_more_option_btn" style="">...</button>
<div class="graph_more_option_div" style="">
<button id="show_graph_diagram_btn" name="<?php echo"$start_date"; ?>" onClick="show_graph_diagram(this.name)" class="datagraph_btn">Graph</button>
<button class="datagraph_btn">Print</button>
<a href="extraction.php?calender_id=<?php echo"$calender_id"; ?>" ><button name="<?php echo"$calender_id"; ?>" onClick="show_add_graph_data_div(this.name)" class="datagraph_btn">add</button></a>
</div>
</div>
</div>
<?php
$disp_graph_info = "select * from graph_datatb where trans_start_date='$start_date' AND trans_end_date='$end_date'";
$run_disp_graph_info = mysqli_query($con,$disp_graph_info);
while($row_disp_graph_info = mysqli_fetch_array($run_disp_graph_info))
{
$propert_name = $row_disp_graph_info['property_name'];
$propert_amount = $row_disp_graph_info['amount'];
$amount_percentage = $row_disp_graph_info['amount_percentage'];
$trans_start_date = $row_disp_graph_info['trans_start_date'];
$trans_end_date = $row_disp_graph_info['trans_end_date'];
?>
<div id="graph_text_info_div" class="graph_text_info_div">
<div class="graph_building_out"><?php echo"$propert_name"; ?></div>
<div class="graph_amount_out"><?php echo"$propert_amount"; ?></div>
<div class="graph_percent_out"><?php echo"$amount_percentage"; ?></div>
<div class="graph_date4m_out"><?php echo"<span style='color:green'>$trans_start_date </span> = <span style='color:red'> $trans_end_date </span>"; ?></div>
</div><!-- end of graph_text_info_div-->
<?php } } ?>
</div><!-- end of graph_contain_div-->
<div id="graph_data" class="graph_data" style="display:none;" >
<div id="graph_data_output" ></div>
<!--div class="graph_draw" style="height:11.2%;margin-left:113px;position:fixed;bottom:60px;" >Tower B 11.1%</div>
<div class="graph_draw" style="height:10.8%;margin-left:200px;position:fixed;bottom:60px;" >Patrex 10.8%</div>
<div class="graph_draw" style="height:0%;margin-left:285px;position:fixed;bottom:60px;color:brown;" >Adliya</div>
<!--div class="graph_draw" style="height:2.02%;margin-left:370px;position:fixed;bottom:60px;" >Brown T 2%</div>
<div class="graph_draw" style="height:21.6%;margin-left:455px;position:fixed;bottom:60px;" >Salmaniya 21.6%</div>
<div class="graph_draw" style="height:3.4%;margin-left:540px;position:fixed;bottom:60px;" >C M C 3.4%</div>
<div class="graph_draw" style="height:1.6%;margin-left:625px;position:fixed;bottom:60px;">Tubli 1.6%</div>
<div class="graph_draw" style="height:1.9%;margin-left:710px;position:fixed;bottom:60px;" >Vintage 1.9%</div>
<div class="graph_draw" style="height:5.6%;margin-left:795px;position:fixed;bottom:60px;">Lenox1 5.6%</div>
<div class="graph_draw" style="height:5.5%;margin-left:880px;position:fixed;bottom:60px;">Lenox2 5.5%</div>
<div class="graph_draw" style="height:3.4%;margin-left:965px;position:fixed;bottom:60px;">Lenox3 3.4%</div>
<div class="graph_draw"style="height:1.6%;line-height:10px;margin-left:1050px;position:fixed;bottom:60px;">Saj 1</div>
<div class="graph_draw"style="height:1.1%;line-height:5px;margin-left:1135px;position:fixed;bottom:60px;">Saj 2</div>
<div class="graph_draw" style="height:3.5%;margin-left:1220px;position:fixed;bottom:60px;">Saj 3 .5%</div>
<div class="graph_draw"style="height:16.5%;margin-left:1305px;position:fixed;bottom:60px;">Others 13.8%</div>
<div class="graph_draw" style="height:0%;margin-left:1390px;position:fixed;bottom:60px;color:brown;">Indonesian Emb</div>
<div class="graph_draw"style="height:6.1%;margin-left:1475px;position:fixed;bottom:60px;">Panorama 6.1%</div-->
<div class="graph_bottom_div">1-sep-2019 to 15-sep-2019 Salman Fardan</div>
</div><!--end_of_show_graph_div-->
<script>
/*
function show_add_graph_data_div(sagdd)
{
calender_id = sagdd;
document.getElementById('adding_graph_data_div').style.display="block";
document.getElementById('graph_contain_div').style.display="none";
document.getElementById('show_graph_div').style.display="none";
document.getElementById('helping_graph_div').style.display="none";
//alert(sagdd);
}*/
</script>
</div>
</body>
</html>