Your IP : 3.141.201.46


Current Path : /home/lentoinv/reloxpropertiesltd.com/
Upload File :
Current File : //home/lentoinv/reloxpropertiesltd.com/subscribe.php

<?php
session_start(); ob_start();
require_once('includes/headerquery.php');
//$pro->loggedIn();
$sn = $_GET['property']??'';
$sub = $_GET['sub']??'';


$sql = $db->query("SELECT * FROM properties WHERE id = '$sn' ");
$row = $sql->fetch_assoc();
 $expire = $row['expire'];

if(mysqli_num_rows($sql)==0){header('location: .'); }

if(array_key_exists('Subscribe', $_POST)){
extract($_POST);
//$photo = $identification = $proof_of_payment = 0;
$image_loc = $_FILES['photo']['tmp_name'];
$image_name = $_FILES['photo']['name'];
$photo = "uploads/" . basename($image_name);
move_uploaded_file($image_loc, $photo);

$image_loc = $_FILES['identification']['tmp_name'];
$image_name = $_FILES['identification']['name'];
$identification = "uploads/" . basename($image_name);
move_uploaded_file($image_loc, $identification);

$image_loc = $_FILES['proof_of_payment']['tmp_name'];
$image_name = $_FILES['proof_of_payment']['name'];
$proof_of_payment = "uploads/" . basename($image_name);
move_uploaded_file($image_loc, $proof_of_payment);


$sql = $db->query("INSERT INTO subscriber (pid,ref,email,title,first_name,last_name,phone,occupation,address,photo,identification,next_of_kin,next_of_kin_address,next_of_kin_relationship,next_of_kin_phone,plots,payment_structure,amount_paid,proof_of_payment,sex,marital,nation,idmode,idno,plotsize,instagam,facebook,twitter) VALUES ('$sn','$sub','$email','$title','$first_name','$last_name','$phone','$occupation','$address','$photo','$identification','$next_of_kin','$next_of_kin_address','$next_of_kin_relationship','$next_of_kin_phone','$plots','$payment_structure','$amount_paid','$proof_of_payment','$sex','$marital','$nation','$idmode','$idno','$plotsize','$instagam','$facebook','$twitter') ") or die(mysqli_error($db));

}

?>
<!doctype html>
<html class="no-js" lang="zxx">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Property Subscription</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">Subscribe</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> Properties</li>
                                <li><?= $row['name'] ?></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>Subscribe to <?= $row['name'] ?></h4>

                        
                <?php if(sqL1('user','id',$sub)==1){ ?>
        <div class="boxed bg--secondary boxed--sm boxed--border">
        <span>You were invited by <strong><?= userName($sub) ?></strong></span>
    </div>
<?php } ?>
</div>
    <br><strong><br></strong>
<?php if(time()>strtotime($expire)){ ?> <p><strong>This property is sold out and no longer available</strong></p> <?php } else{ ?>

<h4> Property Overview</h4>
<div class="table-responsive">                                                   
<table class="table">
 <tr><th>Name</th><th>Description</th><th>Type</th></tr>
<tr><td><?= $row['name'] ?></td><td><?= $row['des'] ?></td><td><?= $row['type'] ?></td></tr>
</table>
</div>
<br>                
<h4> Property Location</h4>
<div class="table-responsive">                                                   
<table class="table">
 <tr><th>Address</th><th>State</th><th>Country</th></tr>
<tr><td><?= $row['address'].', '.$row['city'] ?></td><td><?= $row['state'] ?></td><td><?= $row['country'] ?></td></tr>
</table>
</div>
<br>                
<h4> Payment Structures</h4>
<div class="table-responsive">                                                   
<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> 
    </tr>

    <?php $pid = $row['sn']; $i=1; $sql = $db->query("SELECT * FROM payplan WHERE pid='$pid' ");
    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>
</tr>
    <?php } ?>
</table>
</div>









<section>
        <div class="container">
            <div class="row justify-content-between">
                <div class="col-md-6 mb-5">
                    
                    <form id="new-subscription" enctype="multipart/form-data" method="POST" data-parsley-validate>
                
         
        <p class="">
            <h4>Subscription Form</h4>
        Please enter your personal information
    </p>

    <div id="client-data">
       


        <div class="form-group">
            <label for="title">Title</label>
            <div class="input-item">
                <select id="title" name="title" class="nice-select" data-parsley-required="true">
                    <option value="">Select An Option</option>
                    <option value="Mr" >Mr</option>
                    <option value="Miss" >Miss</option>
                    <option value="Mrs" >Mrs</option>
                    <option value="Chief" >Chief</option>
                </select>
            </div>
        </div>

        <div class="row">
           <div class="col-md-6 form-group" >
                <label for="last-name">Surname:</label>
                <input id="last-name" type="text" name="last_name" value="" class="personal-info" data-parsley-required="true" />
            </div> 
            <div class="col-md-6 form-group" >
                <label for="first-name">Other Names:</label>
                <input id="first-name" type="text" name="first_name" value="" class="personal-info" data-parsley-required="true" />
            </div>
            
            
        </div> 


       
        <div class="form-group input-item">
            <label for="phone">Sex</label>
          <select class="nice-select" name="sex">
              <option>Male</option><option>Female</option>
          </select>
        </div>
        <div class="form-group">
            <label for="occupation">Marital Status</label>
            <input id="occupation" name="marital" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="dob">Date of Birth</label>
            <input id="dob" name="dob" type="date" class="datepicker personal-info" placeholder="Choose a date" data-parsley-required="true" />
        </div>
        <div class="form-group">
            <label for="address">Nationality</label>
            <input id="address" name="nation" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="address">Residential Address</label>
            <input id="address" name="address" class="personal-info" data-parsley-required="true">
        </div>
        
        <div class="form-group">
            <label for="phone">Phone Number</label>
            <input id="phone" name="phone" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
         <div class="form-group">
            <label for="email">Email Address:</label>
            <input id="email" type="email" name="email" data-parsley-required="true" data-parsley-type="email"/>
        </div>


        <div class="row">
           <div class="col-md-6 form-group input-item">
                <label for="last-name">Mode of Identification:</label>
                <select name="idmode" class="nice-select">
                    <option>Dirvers License</option>
                    <option>International Passport</option>
                    <option>CAC Certificate</option>
                    <option>National ID Card</option>
                    <option>Voters Card</option>
                </select>
            </div> 
            <div class="col-md-6 form-group" >
                <label for="first-name">ID Number:</label>
                <input id="first-name" type="text" name="idno" value="" class="personal-info" data-parsley-required="true" />
            </div>      
        </div> 
<div id="id-field" class="form-group">
            <label for="identification">Valid ID Image</label>
            <input id="identification" name="identification" class="personal-info" type="file" data-parsley-required="true">
        </div>

        <div class="form-group">
            <label for="photo">Passport Photo</label>
            <input id="photo" name="photo" type="file" class="personal-info" data-parsley-required="true">
        </div>
        

      <p class="lead mb-1 mt-5">
           Social Media Handles
        </p>
    
<div class="row">
           <div class="col-md-4 form-group">
        <div class="form-group">
            <label for="next-of-kin">Instagram</label>
            <input id="next-of-kin" name="instagam" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
    </div>
           <div class="col-md-4 form-group">
        <div class="form-group">
            <label for="next-of-kin">Facebook</label>
            <input id="next-of-kin" name="facebook" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
    </div>
           <div class="col-md-4 form-group">
        <div class="form-group">
            <label for="next-of-kin">Twitter</label>
            <input id="next-of-kin" name="twitter" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
    </div>
</div>

 <p class="lead mb-1 mt-5">
          Employment Details
        </p>

        <div class="form-group">
            <label for="occupation">Occupation</label>
            <input id="occupation" name="occupation" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="occupation">Employer</label>
            <input id="occupation" name="employer" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="occupation">Employer Address</label>
            <input id="occupation" name="emaddress" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>




 <p class="lead mb-1 mt-5">
            Next of Kin
        </p>
    

        <div class="form-group">
            <label for="next-of-kin">Next of Kin</label>
            <input id="next-of-kin" name="next_of_kin" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="next-of-kin-address">Address</label>
            <input id="next-of-kin-address" name="next_of_kin_address" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="next-of-kin-relationship">Relationship</label>
            <input id="next-of-kin-relationship" name="next_of_kin_relationship" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>
        <div class="form-group">
            <label for="next-of-kin-phone">Phone Number</label>
            <input id="next-of-kin-phone" name="next_of_kin_phone" type="text" value="" class="personal-info" data-parsley-required="true">
        </div>

    </div>

                        <p class="lead mb-1 mt-5">
                            Subscription Details
                        </p>
                        <span>
                            Please enter your subscription details below
                        </span>
                    
                        
                                           
                        <div id="plots" class="form-group" style="display:">
                            <label for="number-of-plots">Number of plot</label>
                            <input id="number-of-plots" name="plots" type="text" step="1" value="1" data-parsley-type="number">
                        </div>
                                           
                        <div id="plots" class="form-group" style="display:">
                            <label for="number-of-plots">Plot Size</label>
                            <input id="number-of-plots" name="plotsize" type="text" step="1" data-parsley-type="number">
                        </div>
                        <div id="payment-structure-list" class="form-group input-item" style="display:">
                            <label for="payment-structure">Payment Structure</label>
                            <div class="input-select">
                                <select id="payment-structure" name="payment_structure">
                                    <?php $sql = $db->query("SELECT * FROM payplan WHERE pid='$pid' ");
    while($row = mysqli_fetch_assoc($sql)){ 
       ?> <option><?= $row['type'] ?></option>
   <?php } ?>
                                </select>
                            </div>
                        </div>
                        <div id="amount" class="form-group" style="display:">
                            <label for="amount-paid">Amount paid (Naira)</label>
                            <input id="amount-paid" name="amount_paid" type="t" step="0.01" min="0" placeholder="0.00" data-parsley-type="number" data-parsley-required="true">
                        </div>

                      



                        <div id="payment-proof" class="form-group offline_payment_instructions" style="display: ;">
                            <label for="proof-of-payment">Proof of payment (Eg. Deposit slip, transfer receipt)</label>
                            <input id="proof-of-payment" name="proof_of_payment" type="file">
                        </div>
                       
                        <div class="form-group">
                            <button id="submit" name="Subscribe" type="submit" class="btn theme-btn-1 btn-effect-1 text-uppercase" style="float:right;">Subscribe</button>
                        </div>
                    </form>
                </div>





                <div class="col-md-5" style="padding-top:50px"> <?php $ssn = sqLx('properties','id',$sn,'sn') ?>
                                        <img src="assets/uploads/<?= sqLx('property_images','property_sn',$ssn,'imageA'); ?>" width="100%" alt="#">
                                        <div class="boxed boxed--lg boxed--border mt-3">

                        <h4>Payment Instructions</h4>
                        <ol style="list-style-position: inside" class="mb-0">
                            <li class="mb-0">Kindly make deposits/transfers to the bank details below with the name of the subscriber clearly spelt out.</li>
                            <li class="mb-0">Attach the teller or transfer slip (proof of payment) as indicated in the subscription details section</li>
                        </ol>
                    </div>
                    <div class="">
                        <br><br>
                        <h4>Bank Details</h4>
                        <p class="mb-1"><strong>Account Name:</strong> Relox Real Estate and Property Limited</p>
                        <p class="mb-1"><strong>Bank Name:</strong> United Bank for Africa</p>
                        <p class="mb-1"><strong>Account  Number:</strong> 1025079345</p>
                        
                    </div>
                </div>
            </div>
            <!--end of row-->
        </div>
        <!--end of container-->
    </section>


<?php } ?>


    

                 </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>


?>