Your IP : 18.118.126.51


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

<?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>Dashboard</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;}
        .boxb{border: thin solid var(--ltn__secondary-color);}
    </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'); 
  if(isset($_GET['user'])){ $uidx = $_GET['user']; if(sqL1('user','sn',$uidx)==0){exit;}  $uid = sqLx('user','sn',$uidx,'id');  }else{ exit;}
  ?>

    <div class="ltn__utilize-overlay"></div>

    <!-- BREADCRUMB AREA START -->
    <div class="ltn__breadcrumb-area text-left bg-overlay-white-30 bg-image p-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.php"><span class="ltn__secondary-color"><i class="fas fa-home"></i></span> Home</a></li>
                                <li>User Profile</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- BREADCRUMB AREA END -->





 <div class="liton__wishlist-area pb-70">
        <div class="container">
    <!-- LOGIN AREA START -->

                       

            <div class="row">
                <div class="col-lg-12">
                    <!-- PRODUCT TAB AREA START -->
                    <div class="ltn__product-tab-area">
                        <div class="container">
                            <div class="row">
                              
                                <div class="col-lg-12">
                                    <div class="tab-content">
                                        <div class="tab-pane fade active show" id="liton_tab_1_1">

<div class="ltn__myaccount-tab-content-inner">
                                                <p>USER: <strong><?= userName($uid) ?>!</strong></p>
                                            </div>


                                             <div class="ltn__category-area ltn__product-gutter section-bg-1--- p-0 m-0">
        <div class="container">
           
         <div class="row ltn__category-slider-active--- slick-arrow-1 justify-content-center">
                <div class="col-lg-3 col-md-3 p-1">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb" >
                        <a href="#">
                         
                     
                            <h3 class="category-title">NGN <?= number_format($pro->propWorth($uid),2) ?></h3>
                            <span class="category-brief">
                               Initial Asset Value
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb" >
                        <a href="#">
                         
                     
                            <h3 class="category-title">NGN <?= number_format($pro->propWorthNow($uid),2) ?></h3>
                            <span class="category-brief">
                               Current Asset Vulue
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb" >
                        <a href="#">
                         
                     
                            <h3 class="category-title"> <?= number_format($pro->getPoint($uid),2) ?></h3>
                            <span class="category-brief">
                               Incentive Points
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb" >
                        <a href="#">
                         
                     
                            <h3 class="category-title"> <?= sqL1('user','sponsor',$uidx) ?></h3>
                            <span class="category-brief">
                               Sales Team
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>
            
                <div class="col-lg-3 col-md-3">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb">
                        <a href="#">
                 
                            <h3 class="category-title">N<?= number_format($pro->walletRange($uid, 11, 15),2) ?></h3>
                            <span class="category-brief">
                                Total Earned
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>

                <div class="col-lg-3 col-md-3 p-1">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb">
                        <a href="#" data-bs-toggle="modal" data-bs-target="#addFund2">
                            <h3 class="category-title">N<?= number_format($pro->wallet($uid),2) ?></h3>
                            <span class="category-brief">
                                Wallet Balance <b class="text-seconday">-Add Fund</b>
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div> 
                <div class="col-lg-3 col-md-3 p-1">
                    <div class="ltn__category-item ltn__category-item-5 ltn__category-item-5-2 text-center--- boxb">
                        <a href="reloxinvest.php" >
                            <h3 class="category-title">N<?= number_format(abs($pro->wallet($uid,7)),2) ?></h3>
                            <span class="category-brief">
                                Investment (N<?= number_format(abs($pro->revestValue($uid)),2) ?>)
                            </span>
                            <span class="category-btn d-none"><i class="flaticon-right-arrow"></i></span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

<div class="ltn__myaccount-tab-content-inner">
   <div class="row">
                <div class="col-lg-12">
                    <div class="call-to-action-inner call-to-action-inner-6 ltn__secondary-bg position-relative text-center--- bg-secondary p-3">
                        <div class="coll-to-info text-color-white">
                              <?php $role =  userName($uid, 'type'); ?>
                            <h1><?= $pro->userPack($role) ?></h1>
                            <p>Current Membership</p>
                        </div>
                        <?php if($role<0){ ?>
                        <div class="btn-wrapper">
                            <a class="btn btn-effect-3 btn-white" href="#" data-bs-toggle="modal" data-bs-target="#membership">Upgrade membership<i class="icon-next"></i></a>
                        </div>
                    <?php } ?>
                    </div>
                </div>
            </div>   
</div>




                                            <div class="ltn__myaccount-tab-content-inner"> <p>  <strong>Referral Link</strong>  
                                                <br>
                                                https://reloxpropertiesltd.com/?ref=<?= $uidx ?>
                                                </p>

                                            </div>
                                        </div>
                                       
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- PRODUCT TAB AREA END -->

                    <h6 class="mt-5">User Properties</h6>
                  <div class="table-responsive mb-5">
                                                   
                      <table class="table">
                                                        <thead>
                                                            <tr>
                                                                <th>SN</th>
                                                                <th>Property</th>
                                                                <th>Cost</th>
                                                                <th>Type</th>
                                                                <th>Preview</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php $e=0;
                                                            $sql = $db->query("SELECT * FROM properties WHERE owner='$uid'");
                                                            while($row = $sql->fetch_assoc()){ $e += 1;
                                                           
                                                            ?>
                                                            <tr>
                                                                <td><?= $e ?></td>
                                                                <td><?= $row['name'] ?></td>
                                                                <td><?= $row['currentprice'] ?></td>
                                                                <td><?= $row['type'] ?></td>
                                                                <td><a href="property-detail.php?property=<?php echo $row['sn'] ?>"><i class="far fa-arrow-to-bottom mr-1"></i>Preview</a></td>
                                                            </tr>

                                                            <?php } ?>

                                                        </tbody>
                                                    </table>

                   </div>

                    <h6>Transaction History</h6>
                  <div class="table-responsive">
                                                     <table class="table">
                                                        <thead>
                                                            <tr>
                                                                <th>SN</th>
                                                                <th>Date</th>
                                                                <th>Amount</th>
                                                                <th>Type</th>
                                                                <th>Remark</th>
                                                                <th>Status</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php $e=0;
                                                            $sql = $db->query("SELECT * FROM wallet WHERE id='$uid' ORDER BY sn DESC ");
                                                            while($row = $sql->fetch_assoc()){ $e += 1;
                                                           $type = $row['cos']>0 ?'<span class="text-success">Credit</span>' : '<span class="text-danger">Debit</span>';
                                                            ?>
                                                            <tr>
                                                                <td><?= $e ?></td>
                                                                <td><?= $row['created'] ?></td>
                                                                <td><?= $row['cos'] ?></td>
                                                                <td><?= $type ?></td>
                                                                <td><?= $row['remark'] ?></td>
                                                                <td>Complete</td>
                                                            </tr>

                                                            <?php } ?>
                                                            
                                                        </tbody>
                                                    </table>
                                                </div>

  <div class="ltn__category-area ltn__product-gutter section-bg-1--- pb-5 m-0">
        <div class="container">
         
 <form method="POST"> <legend>Profile Data </legend>
                                                        <div class="row mb-50">
                                                            <div class="col-md-6">
                                                                <label>First name:</label>
                                                                <input type="text" disabled value="<?= userName($uid, "firstname") ?>" name="ltn__name">
                                                            </div>
                                                            <div class="col-md-6">
                                                                <label>Last name:</label>
                                                                <input type="text" disabled value="<?= userName($uid, "lastname") ?>" name="ltn__lastname">
                                                            </div>
                                                            <div class="col-md-6">
                                                                <label>Phone Number:</label>
                                                                <input type="text" disabled value="<?= userName($uid, "phone") ?>" name="ltn__lastname" placeholder="Ethan">
                                                            </div>
                                                            <div class="col-md-6">
                                                                <label> Email:</label>
                                                                <input type="email" disabled value="<?= userName($uid, 'email') ?>" name="email" placeholder="example@example.com">
                                                            </div>
                                                        </div>
                                                       
                                                    <?php if(!is_null(userName($uid,'bank'))){ ?>
                                                          <legend>Bank Account Details</legend>
                                                            <div class="row">
                                                                <div class="col-md-12">
                                                                    <label>Bank Name:</label>
                                                                    <input type="text" name="bank" value="<?= userName($uid,'bank') ?>" disabled>
                                                                    <label>Account Number:</label>
                                                                    <input type="text" name="acno" value="<?= userName($uid,'accountno') ?>" disabled>
                                                                    <label>Account Name:</label>
                                                                    <input type="text" name="acname" value="<?= userName($uid,'accname') ?>" disabled>
                                                                </div>
                                                            </div>
                                                    <?php } ?>
                                                </form>
                                            </div>
                                        </div>

                </div>
            </div>
        </div>
    </div>
    <!-- LOGIN AREA END -->

  <?php include('foot.php') ?>
    <?php include('modals.php') ?>

</div>
<input type="hidden" id="u" value="<?= userName2($_GET['user']) ?>">
<!-- 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">

        var formatter = new Intl.NumberFormat('en-US', {
  style: 'currency',
  currency: 'NGN',
});

     function fundwal() {
       
        var v = document.getElementById('amt').value;
        var u = document.getElementById('u').value;
        // alert(u);
          $('#fbtn').html('<button type="submit" name="FundWallet" class="btn theme-btn-2 btn-effect-1 text-uppercase">FUND '+u+' WITH '+formatter.format(v)+'</button>')
        }   

 </script>
  
</body>
</html>


?>