Your IP : 3.148.115.43
<?php
session_start(); ob_start();
require_once('includes/headerquery.php');
$pro->loggedIn();
if($pro->Admin($uidx)==FALSE){exit; }
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>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">Admin</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>General Properties</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- BREADCRUMB AREA END -->
<!-- LOGIN AREA START -->
<div class="liton__wishlist-area pb-70 pt-0 mb-70">
<div class="container">
<div class="row">
<div class="col-lg-12">
<!-- PRODUCT TAB AREA START -->
<h4> Property Subscribers</h4>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>SN</th>
<th>Name</th>
<th>Phone No</th>
<th>Email</th>
<th>Property</th>
<th>Promoter</th>
<th>Detail</th>
</tr>
</thead>
<tbody>
<?php $e=0;
$sql = $db->query("SELECT * FROM subscriber ");
while($row = $sql->fetch_assoc()){ $e += 1;
?>
<tr>
<td><?= $e ?></td>
<td><?= $row['first_name'].' '.$row['middle_name'].' '.$row['last_name'] ?></td>
<td><?= $row['phone'] ?></td>
<td><?= $row['email'] ?></td>
<td><?= sqLx('properties','id',$row['pid'],'name') ?></td>
<td><?= userName($row['ref']) ?></td>
<td><a href="?subscriber=<?php echo $row['sn'] ?>"><i class="far fa-arrow-to-bottom mr-1"></i>Detail</a></td>
</tr>
<?php } ?>
</tbody>
</table>
<br><br>
<?php if(isset($_GET['subscriber'])){ $sn = $_GET['subscriber'];
$sql = $db->query("SELECT * FROM subscriber WHERE sn = '$sn' ");
$row = $sql->fetch_assoc(); ?>
<h4>Subscriber Information</h4>
<table class="table">
<tr>
<th>Title</th>
<th>Surname</th>
<th>Other Names</th>
<th>Sex</th>
<th>Marital Status</th>
<th>Date of Birth</th>
</tr>
<tr>
<td><?= $row['title'] ?></td>td><?= $row['last_name'] ?></td><td><?= $row['first_name'] ?></td><td><?= $row['sex'] ?></td><<td><?= $row['marital'] ?></td><td><?= $row['dob'] ?></td>
</tr>
<tr><th>Nationality</th>
<th>Residential Address</th>
<th>Phone Number</th>
<th>Email Address</th>
<th>Mode of Identification</th>
<th>ID Number</th>
</tr>
<tr>
<td><?= $row['nation'] ?></td><td><?= $row['address'] ?></td>td><?= $row['phone'] ?></td><td><?= $row['email'] ?></td><td><?= $row['idmode'] ?></td><<td><?= $row['idno'] ?></td>
</tr>
</table>
<h5>Social Media Handles</h5>
<table class="table">
<tr>
<th>Instagram</th>
<th>Facebook</th>
<th>Twitter</th>
</tr>
<tr>
<td><?= $row['instagam'] ?></td><td><?= $row['facebook'] ?></td><td><?= $row['twitter'] ?></td>
</tr>
</table>
<h5>Next-of-Kin</h5>
<table class="table">
<tr>
<th>Name</th>
<th>Phone No</th>
<th>Relationship</th>
<th>Address</th>
</tr>
<tr>
<td><?= $row['next_of_kin'] ?></td><td><?= $row['next_of_kin_phone'] ?></td><td><?= $row['next_of_kin_relationship'] ?></td><td><?= $row['next_of_kin_address'] ?></td>
</tr>
</table>
<h5>Employment Details</h5>
<table class="table">
<tr>
<th>Occupation</th>
<th>Employer</th>
<th>Employer Address</th>
</tr>
<tr>
<td><?= $row['occupation'] ?></td><td><?= $row['employer'] ?></td><td><?= $row['emaddress'] ?></td>
</tr>
</table>
<h5>Purchase Information</h5>
<table class="table">
<tr>
<th>Plots</th>
<th>Plot Size</th>
<th>Payment Structure</th>
<th>Amount Paid</th>
<r>
<tr>
<td><?= $row['plots'] ?></td><td><?= $row['plotsize'] ?></td><td><?= $row['payment_structure'] ?></td><td>NGN<?= $row['amount_paid'] ?></td>
</tr>
</table>
<h5>Attachements</h5>
<table class="table" width="100%">
<tr>
<th width="33.3%">Photograph</th>
<th width="33.3%">Identification</th>
<th width="33.3%">Proof of Payment</th>
<r>
<tr>
<td><img src="<?= $row['photo'] ?>" width="100%"></td><td><img src="<?= $row['identification'] ?>" width="100%"></td><td><img src="<?= $row['proof_of_payment'] ?>" width="100%"></td>
</tr>
</table>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- 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>
</body>
</html>