Your IP : 52.14.75.147


Current Path : /home/lentoinv/finationglobal.com/account/
Upload File :
Current File : /home/lentoinv/finationglobal.com/account/usersummary.php

<?php
session_start(); ob_start();
if(isset($_POST['Fid'])){
    $_SESSION['Fid']=$_POST['Fid'];
    header('location: searchuser.php');
}
?>
<!doctype html>
<html lang="en" dir="ltr">

    <head>

        <!-- META DATA -->
        <meta charset="UTF-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="Fination Global Services">
        <meta name="author" content="Fination Global Services">
        <meta name="keywords" content="">

        <!-- FAVICON -->
        <link rel="shortcut icon" type="image/x-icon" href="../assets/images/brand/favicon.ico" />

        <!-- TITLE -->
        <title>Find Users</title>
<link href="treestyle.css" rel="stylesheet">
        <!-- BOOTSTRAP CSS -->
        <link id="style" href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

        <!-- STYLE CSS -->
        <link href="../assets/css/style.css" rel="stylesheet" />
        <link href="../assets/css/plugins.css" rel="stylesheet" />

        <!--- FONT-ICONS CSS -->
        <link href="../assets/css/icons.css" rel="stylesheet" />

    </head>

    <body class="app sidebar-mini ltr light-mode">

        <!-- GLOBAL-LOADER 
        <div id="global-loader">
            <img src="../assets/images/loader.svg" class="loader-img" alt="Loader">
        </div>-->
        <!-- /GLOBAL-LOADER -->

        <!-- PAGE -->
        <div class="page">
            <div class="page-main">

                <!-- app-Header -->
                <?php include('header.php');
                $pro->adminAccess(); ?>
                <!--/APP-SIDEBAR-->

                <!--app-content open-->
                <div class="main-content app-content mt-0">
                    <div class="side-app">

                        <!-- CONTAINER -->
                        <div class="main-container container-fluid">

                            <!-- PAGE-HEADER -->
                            <div class="page-header">
                                <div>
                                    <h1 class="page-title">Search User</h1>
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
                                        <li class="breadcrumb-item active" aria-current="page">Dashboard</li>
                                    </ol>
                                </div>
                                <div class="ms-auto pageheader-btn">
                                 <div class="main-header-center2">
                                    <form method="post">
                                <input class="form-control" name="search" placeholder="Search for user" type="search"> <button type="submit" class="btn"></button>
                            </form>
                            </div>

                                </div>

                            </div>
                            <!-- PAGE-HEADER END -->
<div class="row">
       <div class="col-lg-3"><a href="?stage=0"> 
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">Inactive</h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <h2><?= sqL1('user','stage',0) ?></h2>
                                            </div>
                                        </div>
                               </a> </div>


    <?php $i=1; while($i<=6){ $e = $i++; ?>
                                <div class="col-lg-3"><a href="?stage=<?=$e?>">
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">Stage <?= $e ?></h3>
                                        </div>
                                        <div class="card-body p-3">
                                   
                                    <table width="100%"><tr><td><span style="font-weight:bolder; font-size: 24px;"><?= sqL1('user','stage',$e) ?></span><br>Regular</td><td><span style="font-weight:bolder; font-size: 24px;"><?= sqL1('user','stage25',$e) ?></span><br>Pro</td><td><span style="font-weight:bolder; font-size: 24px;"><?= sqL1('user','stage50',$e) ?></span><br>VIP</td></tr></table>
                                            </div>
                                        </div>
                                </a></div>
                            <?php } ?>


    <?php $ar = [5,25,50]; $i=0; while($i<3){ $e = $i++; ?>
                                <div class="col-lg-3"><a href="?plan=<?=$ar[$e]?>">
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title"><?= $pro->typeTitle($ar[$e]) ?></h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <h2><?= sqL1('user','pack',$ar[$e]) ?></h2>
                                            </div>
                                        </div>
                                </a></div>
                            <?php } 
$total = sqLSum('activation','amount');
$expense = $pro->walletRangeAdmin(11,15)+$pro->walletAdmin(17)+$pro->walletRangeAdmin(21,22);
$p = 100*$expense/$total; 
                             ?>

                   <div class="col-lg-3">
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">MATRIX INCOME (100%)</h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <h2>$<?= number_format($total) ?></h2>
                                            </div>
                                        </div>
                               </div>
                           
                   <div class="col-lg-3">
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title">MATRIX PAYOUT (<?=round($p,1)?>%)</h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <h2>$<?= number_format($expense) ?></h2>
                                            </div>
                                        </div>
                               </div>
                           
<?php  
$wr = [11,12,13,14,15,17,21,22];
$i = 0;
while ($i<count($wr)) { $e=$i++;
    $item = $wr[$e];
    $remark = $pro->walletRemark($item);
    $sum = $pro->walletAdmin($item);
    $p = 100*$sum/$total; 
?>
                   <div class="col-lg-3">
<div class="card custom-card ">
                                        <div class="card-header">
                                            <h3 class="card-title"><?= $remark ?> (<?=round($p,1)?>%)</h3>
                                        </div>
                                        <div class="card-body table-responsive">
                                    <h2>$<?= number_format($sum,2) ?></h2>
                                            </div>
                                        </div>
                               </div>
                            
<?php } ?>
</div>



<?php
$sql = $db->query("SELECT * FROM user WHERE stage='4' ORDER BY sn "); 
if(isset($_GET['stage'])){
$s = $_GET['stage']??0;
$sql = $db->query("SELECT * FROM user WHERE stage='$s' ORDER BY sn "); 
}

if(isset($_GET['plan'])){
$s = $_GET['plan']??0;
$sql = $db->query("SELECT * FROM user WHERE pack='$s' ORDER BY sn "); 
}


 ?>
<div class="row">
                                <div class="col-12 col-sm-12">
                                


                                    <div class="card ">
                                        <div class="card-header">
                                            <h3 class="card-title mb-0">Stage/Plan:  <?=@$s ?> Users</h3>
                                        </div>
                                        <div class="card-body">
                                            <div class="table-responsive">
                                             <form method="post"><table id="data-table" class="table table-bordered text-nowrap mb-0">
                                                    <thead class="border-top">
                                                        <tr>
                                                            <th class="bg-transparent border-bottom-0 w-5">S/n</th>
                                                            <th class="bg-transparent border-bottom-0">Name</th>
                                                            <th class="bg-transparent border-bottom-0">Username</th>
                                                            <th class="bg-transparent border-bottom-0">Sponsor</th>
                                                            <th class="bg-transparent border-bottom-0">Phone No</th>
                                                            <th class="bg-transparent border-bottom-0">Action</th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
            <?php
                                    $i=1;
                                    
                                    while($row = $sql->fetch_assoc()) { $id=$row['id']; $e = $i++;
                                       
                                        ?>
                                                        <tr class="border-bottom">
                                                            <td class="text-muted fs-15 fw-semibold text-center"><?= $e ?>.</td>
                                                            <td class="text-muted fs-15 fw-semibold"><?= userName($id) ?>
                                                            </td>
                                                            <td><?= $row['user'] ?></td>
                                                            <td><?= $row['sponsor'] ?></td>
                                                            <td><?= $row['phone'] ?></td>
                                                           <td><button type="submit" class="btn btn-primary btn-sm" name="Fid" value="<?= $id ?>">Details</button></td>
                                                           
                                                        </tr>
                                                    <?php } ?>

                                                      
                                                    </tbody>
                                                </table></form>   
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- COL END -->
                            </div>
                            <!-- ROW-5 END -->

                        </div>
                        <!-- CONTAINER END -->
                    </div>
                </div>
                <!--app-content end-->
            </div>

      

            <!-- FOOTER -->
<?php include('footer.php'); ?>
            <!-- FOOTER END -->
        </div>



        <!-- BACK-TO-TOP -->
        <a href="#top" id="back-to-top"><i class="fa fa-angle-up"></i></a>

        <!-- JQUERY JS -->
        <script src="../assets/js/jquery.min.js"></script>

        <!-- BOOTSTRAP JS -->
        <script src="../assets/plugins/bootstrap/js/popper.min.js"></script>
        <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>

        <!-- SPARKLINE JS-->
        <script src="../assets/js/jquery.sparkline.min.js"></script>

        <!-- CHART-CIRCLE JS-->
        <script src="../assets/js/circle-progress.min.js"></script>

        <!-- CHARTJS CHART JS-->
        <script src="../assets/plugins/chart/Chart.bundle.js"></script>
        <script src="../assets/plugins/chart/utils.js"></script>

        <!-- PIETY CHART JS-->
        <script src="../assets/plugins/peitychart/jquery.peity.min.js"></script>
        <script src="../assets/plugins/peitychart/peitychart.init.js"></script>

        <!-- INTERNAL SELECT2 JS -->
        <script src="../assets/plugins/select2/select2.full.min.js"></script>

        <!-- INTERNAL Data tables js-->
        <script src="../assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
        <script src="../assets/plugins/datatable/js/dataTables.bootstrap5.js"></script>
        <script src="../assets/plugins/datatable/dataTables.responsive.min.js"></script>

        <!-- ECHART JS-->
        <script src="../assets/plugins/echarts/echarts.js"></script>

        <!-- SIDE-MENU JS-->
        <script src="../assets/plugins/sidemenu/sidemenu.js"></script>

        <!-- Sticky js -->
        <script src="../assets/js/sticky.js"></script>

        <!-- SIDEBAR JS -->
        <script src="../assets/plugins/sidebar/sidebar.js"></script>

        <!-- Perfect SCROLLBAR JS-->
        <script src="../assets/plugins/p-scroll/perfect-scrollbar.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll-1.js"></script>

        <!-- APEXCHART JS -->
        <script src="../assets/js/apexcharts.js"></script>

        <!-- INDEX JS -->
        <script src="../assets/js/index1.js"></script>

        <!-- Color Theme js -->
        <script src="../assets/js/themeColors.js"></script>

        <!-- swither styles js -->
        <script src="../assets/js/swither-styles.js"></script>

        <!-- CUSTOM JS -->
        <script src="../assets/js/custom.js"></script>

                    <script type="text/javascript">
                $(function() {

                    $('.activation').on('click', function() {
                    modal = $('#exampleModal');
                    modal.modal('show');

                    //alert(ref)
                    })
                })
            </script>

    </body>

</html>

?>