Your IP : 52.14.49.59
<?php
session_start(); ob_start();
require_once('includes/headerquery.php');
$pro->loggedIn();
$sn = $_GET['property']??'';
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>My Properties</title>
<meta name="robots" content="noindex, follow" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Place favicon.png in the root directory -->
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon" />
<!-- Font Icons css -->
<link rel="stylesheet" href="css/font-icons.css">
<!-- plugins css -->
<link rel="stylesheet" href="css/plugins.css">
<!-- Main Stylesheet -->
<link rel="stylesheet" href="css/style.css">
<!-- Responsive css -->
<link rel="stylesheet" href="css/responsive.css">
<style type="text/css">
nav lis{text-transform: uppercase;}
</style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<!-- Body main wrapper start -->
<div class="body-wrapper">
<?php include('head.php'); ?>
<div class="ltn__utilize-overlay"></div>
<!-- BREADCRUMB AREA START -->
<div class="ltn__breadcrumb-area text-left bg-overlay-white-30 bg-image p-5 mb-5" data-bs-bg="img/bg/14.jpg">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="ltn__breadcrumb-inner">
<h1 class="page-title">Account</h1>
<div class="ltn__breadcrumb-list">
<ul>
<li><a href="index.html"><span class="ltn__secondary-color"><i class="fas fa-home"></i></span> Home</a></li>
<li>My Properties</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- BREADCRUMB AREA END -->
<div class="calll"></div>
<!-- APPOINTMENT AREA START -->
<div class="ltn__appointment-area pt-115--- pb-120">
<div class="container">
<div class="row">
<div class="col-lg-12">
<form method="POST" enctype="multipart/form-data">
<div class="ltn__tab-menu ltn__tab-menu-3 ltn__tab-menu-top-right-- text-uppercase--- text-center">
<div class="nav">
<a class="active show" data-bs-toggle="tab" href="#liton_tab_3_1">1. Description</a>
<a data-bs-toggle="tab" href="#liton_tab_3_2" class="">2. Media</a>
<a data-bs-toggle="tab" href="#liton_tab_3_3" class="">3. Location</a>
<a data-bs-toggle="tab" href="#liton_tab_3_4" class="">4. Details</a>
<a data-bs-toggle="tab" href="#liton_tab_3_5" class="">5. Amenities</a>
<a data-bs-toggle="tab" href="#liton_tab_3_6" class="">6. Update Price</a>
<a data-bs-toggle="tab" href="#liton_tab_3_7" class="">7. Payment Plan</a>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade" id="liton_tab_3_6">
<div class="ltn__apartments-tab-content-inner">
<h6>Price Change History</h6>
<table class="table">
<tr>
<th>SN</th><th>Previous Price</th><th>New Price</th><th>Change (%)</th> <th>Note</th><th>Date</th>
</tr>
<?php $i=1; $sql = $db->query("SELECT * FROM prices WHERE pid='$sn' ");
while($row = mysqli_fetch_assoc($sql)){ $e=$i++; if($e==1){ $opp = $row['oldprice']; } $op = $row['oldprice']; $np = $row['newprice'];
$p = 100*($np-$opp)/$opp; ?>
<tr>
<td><?= $e ?></td><td><?= number_format($op) ?></td><td><?= number_format($np) ?></td><td><?= number_format($p,2) ?>%</td><td><?= $row['note'] ?></td><td><?= $row['created'] ?></td>
</tr>
<?php } ?>
</table>
<h6>Update Current Property Value</h6>
<form method="post" enctype="multipart/form-data">
<label>Initial Price</label>
<input type="text" name="oldprice" value="<?= sqLx('properties','sn',$sn,'currentprice') ?>" disabled>
<label>New Price</label>
<input type="text" name="newprice">
<label>Note</label>
<textarea name="des"></textarea>
<button type="submit" name="UpdatePropertyPrice" class="btn theme-btn-1 btn-effect-1 text-uppercase">Update Property Price</button>
</form>
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_7">
<div class="ltn__apartments-tab-content-inner">
<h6>Property Payment Structure</h6>
<table class="table">
<tr>
<th>SN</th><th>Type</th><th>Structure</th><th>Total Payable</th><th>Initial Deposit</th><th>Monthly Deposit</th> <th>Note</th> <th>Action</th>
</tr>
<?php $i=1; $sql = $db->query("SELECT * FROM payplan WHERE pid='$sn' ");
while($row = mysqli_fetch_assoc($sql)){ $e=$i++;
?>
<tr>
<td><?= $e ?></td><td><?= $row['type'] ?></td><td><?= $row['plan'] ?></td><td>NGN<?= number_format($row['amount']) ?></td><td>NGN<?= number_format($row['initial']) ?></td><td>NGN<?= number_format($row['monthly']) ?></td><td><?= $row['des'] ?></td><td><a onclick="givePlan('<?= $row['type'] ?>','<?= $row['plan'] ?>','<?= $row['amount'] ?>','<?= $row['initial'] ?>','<?= $row['monthly'] ?>','<?= $row['des'] ?>','<?= $row['sn'] ?>')" href="javascript:;" data-bs-toggle="modal" data-bs-target="#editPayPlan">Edit</a></td>
</tr>
<?php } ?>
</table>
<h6>Add Payment Structure</h6>
<form method="post" enctype="multipart/form-data">
<label>Payment Type</label>
<input type="text" name="type" placeholder="Single Instalment" required>
<label>Payment Structure</label>
<input type="text" name="plan" placeholder="0 to 3 Months" required>
<label>Amount Payable</label>
<input type="text" name="amount" value="<?= sqLx('properties','sn',$sn,'currentprice') ?>" required >
<label>Initial Deposit</label>
<input type="text" name="initial" required >
<label>Monthly Deposit</label>
<input type="text" name="monthly" required >
<label>Note</label>
<textarea name="des"></textarea>
<button type="submit" name="UpdatePaymentStructure" class="btn theme-btn-1 btn-effect-1 text-uppercase">Update Payment Structure</button>
</form>
</div>
</div>
<div class="tab-pane fade active show" id="liton_tab_3_1">
<div class="ltn__apartments-tab-content-inner">
<h6>Update Property Description</h6>
<form method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-12">
<div class="input-item">
<select name="cat" class="nice-select" required>
<option value="" >Property Type</option>
<option value="Land" >Land Property</option>
<option value="House" >House Property</option>
<option value="<?= sqLx('properties','sn',$sn,'type') ?>" selected ><?= sqLx('properties','sn',$sn,'type') ?> Property</option>
</select>
<label>Title</label>
<input type="text" name="title" value="<?= sqLx('properties','sn',$sn,'name') ?>">
<label>Description</label>
<textarea name="note2"><?= sqLx('properties','sn',$sn,'des') ?></textarea>
<label>Property Price</label>
<input type="text" name="price" value="<?= sqLx('properties','sn',$sn,'currentprice') ?>">
<label>Old Price</label>
<input type="text" name="oldprice" value="<?= sqLx('properties','sn',$sn,'prevprice') ?>"> <label>Trading Slots</label>
<input type="text" name="slot" value="<?= sqLx('properties','sn',$sn,'slot') ?>"> <label>Trading Expiry Date</label>
<input type="date" name="expire" value="<?= sqLx('properties','sn',$sn,'expire') ?>">
</div>
</div>
</div>
<div class="btn-wrapper">
<button type="submit" name="UpdateProperty1" class="btn theme-btn-1 btn-effect-1 text-uppercase">Update Property Information</button>
</div>
</form>
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_2">
<div class="ltn__product-tab-content-inner">
<div class="row">
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoA" name="imageA" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoB" name="imageB" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoC" name="imageC" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoD" name="imageD" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoE" name="imageE" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
<div class="col-md-4">
<div class="input-item">
<h6>Listing Media</h6>
<input type="file" id="photoF" name="imageF" class="btn theme-btn-3 mb-10"><br>
<p>
<small>* Minimum size is 500/500px.</small><br>
</p>
</div>
</div>
</div>
<!-- <small id="images"></small><br> -->
<h6>Video Option</h6>
<div class="row">
<div class="col-md-6">
<div class="input-item">
<select name="videooption" class="nice-select">
<option selected disabled>Video from</option>
<option value="vimeo">vimeo</option>
<option class="youtube">youtube</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">Embed Video ID
<input type="text" name="video" placeholder="Embed Video ID">
</div>
</div>
</div>
<div class="btn-wrapper text-center--- mt-0">
<button type="submit" name="UpdateProperty2" class="btn theme-btn-1 btn-effect-1 text-uppercase">Update Property Information</button>
</div>
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_3">
<div class="ltn__product-tab-content-inner">
<h6>Listing Location</h6>
<div class="row">
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">*Address
<input type="text" id="add" onchange="thed()" name="address" value="<?= sqLx('properties','sn',$sn,'address') ?>" placeholder="*Address">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">Country
<input type="text" name="country" placeholder="Country" value="<?= sqLx('properties','sn',$sn,'country') ?>">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">State
<input type="text" name="state" value="<?= sqLx('properties','sn',$sn,'state') ?>" placeholder="State">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">City
<input type="text" id="ci" onchange="thed()" name="city" value="<?= sqLx('properties','sn',$sn,'city') ?>" placeholder="City">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">Neighborhood
<input type="text" name="neighborhood" placeholder="Neighborhood" value="<?= sqLx('properties','sn',$sn,'neighborhood') ?>">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">Zip
<input type="text" name="zip" value="<?= sqLx('properties','sn',$sn,'zip') ?>" placeholder="Zip">
</div>
</div>
<div class="col-lg-12">
<div id="calll">
</div>
</div>
</div>
<div class="btn-wrapper text-center--- mt-0">
<button type="submit" class="btn theme-btn-1 btn-effect-1 text-uppercase" name="UpdateProperty3">Update Property Location</button>
</div>
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_4">
<div class="ltn__product-tab-content-inner">
<h6>Listing Details</h6>
<div class="row">
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Size in m2 (*only numbers)
<input type="text" name="size" value="<?= sqLx('properties','sn',$sn,'size') ?>" placeholder="Size in m2 (*only numbers)">
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Lot Size in m2 (*only numbers)
<input type="text" name="lotsize" placeholder="Lot Size in m2 (*only numbers)" value="<?= sqLx('properties','sn',$sn,'lotsize') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Rooms (*only numbers)
<input type="text" name="room" placeholder="Rooms (*only numbers)" value="<?= sqLx('properties','sn',$sn,'room') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Bedrooms (*only numbers)
<input type="text" name="bedroom" placeholder="Bedrooms (*only numbers)" value="<?= sqLx('properties','sn',$sn,'bedroom') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Bathrooms (*only numbers)
<input type="text" name="bathroom" placeholder="Bathrooms (*only numbers)" value="<?= sqLx('properties','sn',$sn,'bathroom') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Custom ID (*text)
<input type="text" name="cid" placeholder="Custom ID (*text)" value="<?= sqLx('properties','sn',$sn,'cid') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Garages (*text)
<input type="text" name="garage" placeholder="Garages (*text)" value="<?= sqLx('properties','sn',$sn,'garage') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Year Built (*numeric)
<input type="text" name="year" placeholder="Year Built (*numeric)" value="<?= sqLx('properties','sn',$sn,'year') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Garage Size (*text)
<input type="text" name="garagesize" placeholder="Garage Size (*text)" value="<?= sqLx('properties','sn',$sn,'garagesize') ?>" >
</div>
</div>
<div class="col-md-6">
<div class="input-item input-item-textarea ltn__custom-icon">
Available from (*date)
<input type="text" name="avdate" placeholder="Available from (*date)" value="<?= sqLx('properties','sn',$sn,'avdate') ?>" >
</div>
</div>
<div class="col-lg-12">
<div class="input-item input-item-textarea ltn__custom-icon">
Owner/Agent notes (*not visible on front end)
<textarea name="note" placeholder="Owner/Agent notes (*not visible on front end)"><?= sqLx('properties','sn',$sn,'note') ?></textarea>
</div>
</div>
</div>
<div class="btn-wrapper text-center--- mt-0">
<button type="submit" class="btn theme-btn-1 btn-effect-1 text-uppercase" name="UpdateProperty4">Update Property Details</button>
</div>
</div>
</div>
<div class="tab-pane fade" id="liton_tab_3_5">
<div class="ltn__product-tab-content-inner">
<h6>Amenities and Features</h6>
<h6>Interior Details</h6>
<div class="row">
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Equipped Kitchen
<input name="amenities[]" value="Equipped Kitchen" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Gym
<input name="amenities[]" value="Gym" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Laundry
<input name="amenities[]" value="Laundry" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Media Room
<input name="amenities[]" value="Media Room" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</div>
<h6 class="mt-20">Outdoor Details</h6>
<div class="row">
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Back yard
<input name="amenities[]" value="Back yard" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Basketball court
<input name="amenities[]" value="Basketball court" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Front yard
<input name="amenities[]" value="Front yard" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Garage Attached
<input name="amenities[]" value="Garage Attached" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Hot Bath
<input name="amenities[]" value="Hot Bath" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Pool
<input name="amenities[]" value="Pool" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</div>
<h6 class="mt-20">Utilities</h6>
<div class="row">
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Electricity
<input name="amenities[]" value="Electricity" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Heating
<input name="amenities[]" value="Heating" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Natural Gas
<input name="amenities[]" value="Natural Gas" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Ventilation
<input name="amenities[]" value="Ventilation" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Borehole Water
<input name="amenities[]" value="Borehole Water" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</div>
<h6 class="mt-20">Other Features</h6>
<div class="row">
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Wheel Chair Accessible
<input name="amenities[]" value="Wheel Chair Accessible" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Elevator
<input name="Elevator" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Fireplace
<input name="amenities[]" value="Fireplace" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Smoke detectors
<input name="amenities[]" value="Smoke detectors" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">Washer and dryer
<input name="amenities[]" value="Washer and dryer" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
<div class="col-lg-4 col-md-6">
<label class="checkbox-item">WiFi
<input name="amenities[]" value="WiFi" type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</div>
<div class="btn-wrapper text-center--- mt-30">
<button type="submit" class="btn theme-btn-1 btn-effect-1 text-uppercase" name="UpdateProperty5">Update Property Amenities</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- APPOINTMENT AREA END -->
<!-- LOGIN AREA END -->
<?php include('modals.php') ?>
<?php include('foot.php') ?>
</div>
<!-- Body main wrapper end -->
<!-- All JS Plugins -->
<script src="js/plugins.js"></script>
<!-- Main JS -->
<script src="js/main.js"></script>
<script type="text/javascript">
function thed(){
var a = document.getElementById('add').value;
var b = document.getElementById('ci').value;
var adrr = a+', '+b;
var embed='<div class="property-details-google-map mb-60"><iframe src="https://maps.google.com/maps?&q='+encodeURIComponent(adrr)+'&output=embed" width="100%" height="100%" frameborder="0" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe></div>';
$('#calll').html(embed);
}
var a = document.getElementById('add').value;
if(a != ''){
thed();
}
function givePlan(a,b,c,d,e,f,g){
document.getElementById('p1').value=a;
document.getElementById('p2').value=b;
document.getElementById('p3').value=c;
document.getElementById('p4').value=d;
document.getElementById('p5').value=e;
document.getElementById('p6').value=f;
document.getElementById('p7').value=g;
}
</script>
</body>
</html>