| 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-coblaa/sn_re/ |
Upload File : |
<html>
<?php
session_start();
include('db.php');
//include('function.php');
?>
<?php
if(isset($_SESSION['my_id']))
{
$my_id = $_SESSION['my_id'];
$tenant_name = $_SESSION['tenant_name'];
$rented_sn_unit = $_SESSION['rented_sn_unit'];
}
?>
<div style="display:none;">
<input type="text" id="my_id" class="helping_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;?>">
<input type="text" id="ip_user" class="helping_id" style="display:none;" value="<?php echo $user_ip;?>">
</div>
<head>
<title>SN Water Pay</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/wt_dashboard.css" />
</head>
<body id="body">
<!--a href="entering"><!--button onClickk="history.back();" class="back_bnt" >Home</button-->
<img onClick="history.back();" src="main_icon/back_btn.png" id="main_log_home" class="back_bnt" />
<a href="logout_tenant"><!--button class="logout_btn" >Logout</button-->
<img src="main_icon/login.png" id="main_log_home" class="logout_btn" />
</a>
<span class="user_main_name" > <?php echo"$tenant_name"; ?></span>
<div class="main_content_div" >
<!--div class="main_title_name" >SN REAL ESTATE</div>
<div class="main_title_location" >MAGERE</div>
<div class="main_title_contact" ><?php echo"$tenant_name"; ?> </div-->
<div class="wt_acc_details" >
<span class="wt_acc_details_lebal" style="color:#09bb80;" >HOUSE UNIT</span>
<span class="wt_acc_details_output" ><?php echo"$rented_sn_unit"; ?></span>
<span class="wt_acc_details_lebal" style="color:#c2096c;" >PENDING BALANCE</span>
<span id="disp_water_pend_amt_output" class="wt_acc_details_output" ></span>
</div>
<div id="action_btn_div" class="action_btn_div" >
<div onClick="show_payment_method();" class="main_dash" >Pay Water Bills</div>
<a href="water_receipt_list?db_id7=<?php echo"$my_id"; ?>"><div class="main_dash" >Water Receipts </div></a>
<a href="sn_tenant_water_pay?inid2=<?php echo"$my_id"; ?>"><div class="main_dash" >Water Bills</div></a>
</div>
<div id="payment_method_div" class="pay_water_input_div" >
<span class="pay_water_input_title" >Payment Methords Available</span>
<span class="payment_method_img_span" >
<img src="main_icon/crane logv.png" class="payment_method_img" />
<span class="payment_method_lebal" >CrinePay</span>
<a href="https://coblaa.com/cranepay/pay_water?mit_no=<?php echo"$rented_sn_unit"; ?>"><button class="payment_method_btn" >Add</button></a>
</span>
<button onClick="close_payment_method();" class="payment_method_div_close_btn" >Close</button>
</div>
</div>
<script>
disp_water_pend_amt();
function disp_water_pend_amt()
{
my_id = document.getElementById('my_id').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&status=disp_water_pend_amt",false);
xmlhpttp.send(null);
document.getElementById("disp_water_pend_amt_output").innerHTML =xmlhpttp.responseText;
}
function show_payment_method()
{
document.getElementById('action_btn_div').style.display="none";
document.getElementById('payment_method_div').style.display="block";
}
function close_payment_method()
{
document.getElementById('action_btn_div').style.display="block";
document.getElementById('payment_method_div').style.display="none";
}
</script>
</body>
</html>