Your IP : 3.145.37.211


Current Path : /home/lentoinv/covisclubinternational.com/profile/
Upload File :
Current File : //home/lentoinv/covisclubinternational.com/profile/index1.php

<?php
session_start(); ob_start();
include("lib/connect.inc.php");  	
?>
<?php $covis->levelCreate($uidx); ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Dashboard</title>
  <link rel="shortcut icon" href="img/fav.png" />
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
 <?php include('head.php'); ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
            <div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v6.0"></script>
<div class="wrapper">

 <?php include('nav.php'); ?>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
   
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">Dashboard</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Dashboard </li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->


      <div class="site-content">
        <!-- Content -->

               

                <div class="content-area py-1">
          <div class="container-fluid">
   <div class="col-md-12">
                                  <div class="main-card mb-3 card">
                                       
                                          
                                            <div id="carouselExampleControls2" class="carousel slide carousel-fade" data-ride="carousel">
                                                <div class="carousel-inner">
                                                    
<?php  $i=1; 
                        $sql = $db->query("SELECT * FROM news ORDER BY created DESC LIMIT 6");
                        while($row1 = $sql->fetch_assoc()){  $e=$i++; $act = $e==1 ? 'active' : '';
                       
                        ?>
                                                      <div class="carousel-item <?php echo $act ?>">
                            <div class="box bg-white post post-5 img-cover image-fluid" style="background-image: url('news/<?php echo $row1['image']  ?>'); margin-bottom: 0;height: 300px">
                                                <div class="p-content" style="padding-top: 100px;padding-left: 20px;">
                                                    <h5 class="mb-1"><a class="text-white" href="#"><?php echo $row1['title'] ?></a></h5>
                                                    <p class="mb-1"> <?php echo substr($row1['news'],0,50) ?>...
                                                        <a class="btn btn-primary btn-xs" href="readnews.php?u=<?php echo sha1($row1['sn'])  ?>">
                                                            <span class="underline">Read More</span></a></p>

                                                    <p class="small text-uppercase"><?php echo get_time_ago($row1['time']) ?></p>
                                                </div>
                                        </div>

                                    </div>
   <?php } ?> 

                                                </div>
                                                <a class="carousel-control-prev" href="#carouselExampleControls2" role="button" data-slide="prev">
                                                    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                                                    <span class="sr-only">Previous</span>
                                                </a>
                                                <a class="carousel-control-next" href="#carouselExampleControls2" role="button" data-slide="next">
                                                    <span class="carousel-control-next-icon" aria-hidden="true"></span>
                                                    <span class="sr-only">Next</span>
                                                </a>
                                            </div>
                                        </div>
                                    </div>
                                    
          <!--  <div class="alert alert-success alert-dismissible">-->
          <!--    <div class="d-flex justify-content-between box-block">-->
          <!--      <h5 id="end" class="mr-4 mt-1"></h5><?php //include('countdown.php'); ?> -->
          <!--   <a href="c_request.php" class="btn  h-25 d-inline-block mt-5 ml-3" style=" background-color: white; color: black; text-decoration: none;"><b>Request</b>-->
          <!--   </a>-->
          <!-- </div>-->
          <!--   <button type="button" class="close" data-dismiss="alert">&times;</button>-->
             
          <!--</div>-->
                                





<?php $sql = $db->query("SELECT * FROM donation WHERE status=1 ORDER BY sn DESC LIMIT 2");  
if(mysqli_num_rows($sql)>0){ ?>
    <div class="content">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-md-12">
          <div class="card box bg-warning">
            <div class="card-body">
               <?php  $i = 0; 
       while($row = $sql->fetch_assoc()){ ?>
                     
                   
                        <div class="box-block">
                            <h5 align="">Call for Donation</h5><hr>
                            <h4><?php echo strtoupper($row['title']) ?></h4>
                           <i> <?php echo $row['note'] ?></i>
                           <a href="mydonations.php?donation=<?php echo $row['tno'] ?>" class="btn btn-white" style="float: right;background-color: white;"><b>Donate Now</b></a><br><br>
                           NOTE: You can donate any amount you freely and willing want to give to support the project. 
                        </div>
<?php } ?>
            </div>
          </div>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>

<?php } ?>



<?php if($uidx == 1): ?>
 <div class="container-fluid">
              <div class="row">
                  <div class="col-md-12">
                      <div class="alert" style="background-color: lightcyan">
                          Do you really want a very simple and easiest approach to earn more? SHARE ADS DAILY
                          <br/>
                          <a href="dailyads.php" class="btn btn-primary" style="text-decoration: none">Share Today's Post</a>
                      </div>
                  </div>
              </div>

 </div>
 <?php  endif; ?>
 
 
  <?php $time = time();
              $sql = $db->query("SELECT * FROM trainings ORDER BY sn DESC LIMIT 5");
              if ($sql->num_rows > 0):
                while($row = $sql->fetch_object()):
                    if(($time >= $row->start && $time <= $row->end) && $row->status == 1):
                  $sql2 = $db->query("SELECT * FROM trainingapplications WHERE id = '$uid' AND training = '$row->sn'");
                  if($sql2->num_rows > 0): continue; endif;
              ?>
              <div class="container-fluid">
                  <div class="row">
                      <div class="col-md-12">
                          <div class="card has-bg-img" style="background-image: url(img/trainings/<?= $row->image ?>); height: 200px; position: relative; background-size: cover; background-repeat: no-repeat; background-position: center center; object-fit: cover">
                              <span class="card__title" style="position: absolute; left: 0; bottom: 0; color: white; font-weight: bold; background-color: black; padding: 5px; margin-left: 15px; margin-right: 10px">
                                  <strong><?= $row->title ?></strong> <br/>
                                  <?= $row->description ?><br/>
                                  <a href="showTraining.php?tr=<?= $row->sn ?>" class="btn btn-sm btn-primary float-right">Apply for Just $<?= $row->price ?> </a>
                              </span>
                          </div>
                      </div>
                  </div>
              </div>
              <?php endif; endwhile; endif; ?>



<?php   $stage = $covis->stageCalc($uidx);
if(userName($uid,'team') != $covis->stageTeam($uid,$stage)){$covis->updateUserStageTeam($uid);}  ?>



    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <!-- Small boxes (Stat box) -->
        <div class="row">
          <div class="col-lg-12 col-12">
           <div class="card">
                                     <div class="card-header text-white bg-dark">
                                        <div class="row">
                                          <div class="col-sm-6">
                                              <h5>Referral Link</h5>
                                          </div>
                                           <div class="col-sm-6">
                                            <?php if(userName($uid,'level')>=2){
                                              if(sqL1x('users','id',$uid)==0){
                                            if($covis->totalEarnings($uidx)>=10 OR sqL1x('wallet','id',$uid)>0){
                                             ?>
                                            <form method="post">
                                              <button type="button" data-toggle="modal" data-target="#modal-eco" class="btn btn-success float-md-right" >Join The Covis Economy</button>
                                            </form>
                                          
                                         <?php }else{echo "Congratulations.Fund your wallet with $10 or more to join Covis Economy";} }else{ ?>
                                          <a href="https://thecoviseconomy.com" class="btn btn-primary  float-md-right">Login to  The Covis Economy</a>
                                          <?php } } ?>
 </div>
                                        </div>
                                    </div>
                                    <div class="card-body box-profile">
https://covisclubinternational.com/signup.php?ref=<?php echo userName($uid,'user') ?>
</div>
</div>
</div>


                        <?php if($covis->findGlobeUser($uid)==0 AND $covis->userName4('level')>3){ ?>
              
              <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-danger">
              <div class="inner">
               <h6 class="text-uppercase mb-1">NEXT LEVEL MATRIX</h6>
                    <h1 class="mb-1">CONGRAT!!! </h1>
                                       <br>
              </div>
              <div class="icon">
                <i class="ion ion-pie-graph"></i>
              </div>
              <a href="joinglobalmatrix.php"><center> JOIN GLOBAL MATRIX </center></a>
            </div>
          </div>

            <?php } ?>

          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-info">
              <div class="inner">
                <h6 class="text-uppercase mb-1">Stage <?php echo $covis->stageCalc($uidx) ?></h6>
                    <h1 class="mb-1"><?php echo stageName($covis->stageCalc($uidx)) ?></h1>
                    <span class="text-white font-90">Level: <?php echo $covis->stageLevel($uidx) ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-bag"></i>
              </div>
              <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>
          <!-- ./col -->
          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-success">
              <div class="inner">
               <h6 class="text-uppercase mb-1">Referral Bonus</h6>
                    <h1 class="mb-1">$<?php echo number_format($covis->referral($uidx),2) ?></h1>
                                        <span class="text-white font-90">Referrals: <?php echo $covis->referral($uidx) ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-stats-bars"></i>
              </div>
              <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>
          <!-- ./col -->
          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-warning">
              <div class="inner">
                <h6 class="text-uppercase mb-1">Matrix Bonus</h6>
                    <h1 class="mb-1">$<?php echo number_format($covis->matrixBonus($uidx),2)  ?></h1>
                                        <span class=" text-white font-90">Total Earnings: $<?php echo number_format($covis->referral($uidx)+$covis->matrixBonus($uidx),2)  ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-person-add"></i>
              </div>
              <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>

          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-secondary">
              <div class="inner">
               <h6 class="text-uppercase mb-1">Account Balance</h6>
                    <h1 class="mb-1">$<?php echo $covis->totalEarnings($uidx)<0 ? 0 : number_format($covis->totalEarnings($uidx),2)  ?>
                    <?php //echo $covis->score($uidx)  ?></h1>
                                        <span class=" text-white font-90">Withdrawals: $<?php echo number_format(totalWithdraw($uid),2) ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-person-add"></i>
              </div>
              <a href="#" class="small-box-footer"><?php echo number_format($covis->totalEarnings($uidx),2)  ?> More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>
          <!-- ./col -->
          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-danger">
              <div class="inner">
               <h6 class="text-uppercase mb-1">Received Transfer</h6>
                    <h1 class="mb-1">$<?php echo number_format(receivedTransfer($uid),2) ?></h1>
                                        <span class="text-white font-90">Funds Transfer: $<?php echo number_format(totalTransfer($uid),2) ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-pie-graph"></i>
              </div>
              <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>
           <?php 
           if($uidx == 1){
                echo sumStage2Wallet();
           }?>
          <!--<div class="col-lg-3 col-12">-->
            <!-- small box -->
          <!--  <div class="small-box bg-danger">-->
          <!--    <div class="inner">-->
          <!--     <h6 class="text-uppercase mb-1">Received Transfer</h6>-->
          <!--          <h1 class="mb-1">$<?php echo number_format(receivedTransfer($uid),2) ?></h1>-->
          <!--                              <span class="text-white font-90">Funds Transfer: $<?php echo number_format(totalTransfer($uid),2) ?></span>-->
          <!--    </div>-->
          <!--    <div class="icon">-->
          <!--      <i class="ion ion-pie-graph"></i>-->
          <!--    </div>-->
          <!--    <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>-->
          <!--  </div>-->
          <!--</div>-->
          <!-- ./col -->
          




<?php 
function promoAward($ref){

if($ref>=1092){$bonus = 'A BRANDED T-SHIRT + $35 SHOPPING VOUCHERS + SMART PHONE + LAPTOP';}
elseif($ref>=363){$bonus = 'A BRANDED T-SHIRT + $35 SHOPPING VOUCHERS + SMART PHONE';}
elseif($ref>=120){$bonus = 'A BRANDED T-SHIRT + $35 SHOPPING VOUCHERS';}
elseif($ref>=39){$bonus = 'A BRANDED T-SHIRT + $10 SHOPPING VOUCHER';}
elseif($ref>=12){$bonus = 'A BRANDED T-SHIRT';}
return $bonus;
}

function promoItem($ref){

if($ref>=1092){$bonus = 5;}
elseif($ref>=363){$bonus = 4;}
elseif($ref>=120){$bonus = 3;}
elseif($ref>=39){$bonus = 2;}
elseif($ref>=12){$bonus = 1;}
return $bonus;
}

?>


 <div class="col-md-12">
                            <div class="card">
                            
                                    <div class="card-header text-white bg-dark">
                                    <h5> Fast Start Promo Qualifiers</h5>
                                    </div>
                                    <div class="card-body">
                                <div class="table-responsive">
 <table class="table table-striped table-bordered dataTable" id="example1">
                            <thead>
                            <tr>
                                <th>No</th>
                                <th>Name(s)</th>
                         
                                <th>Username</th> 
                                <!--<th>Referral</th> -->
                                <th>Award</th> 
                                <th>Joined</th>
                                <th>Status</th>

                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $i=1; $mm='202105';//date('Ym');
                            $sql = $db->query("SELECT * FROM user WHERE mm>'$mm' AND sp>11 ORDER BY sp DESC "); $e = 0;
                            while($row = $sql->fetch_assoc()) { $e = $i++; $lap1 = time() - strtotime($row['created']); 
                            $ct = sqL2('incentive','id',$row['id'],'promo',1);
                                 $val=$row['id'].'-'.promoItem($row['sp']);
                               $tl = 72-ceil($lap1/3600); $ttl = $tl>0 ? $tl.' hours left' : '<button value="'.$val.'" name="PromoIncent" type="submit" class="btn btn-primary">Request Incentive</button>';
                                $ttl = $uid==$row['id'] ? $ttl : '';
                                $ttl = $ct>0 ? '<span class="text-success">Incentive Claimed</span>' : $ttl;
                                    ?>

                                    <tr>
                                        <td><?php echo $e; ?></td>
                                        <td><?php echo $row['firstname'].' '.$row['lastname']    ?></td>
                                       
                                        <td><?php echo $row['user']; ?></td>
                                        <!--<td><?php echo $row['sp']; ?></td>-->
                                        <td><?php echo promoAward($row['sp']); ?></td>
                                        <td><?php echo substr($row['created'],0,10); ?></td>
                                        <td><form method="post"><?php echo $ttl ; ?> </form></td>


                                    </tr>

                                <?php } //} ?>
                            </tbody>
                            <tfoot>

                            </tfoot>
                        </table>
                        
                    </div>
                </div>
                </div>
                </div>
                
                
            <div class="col-lg-6 col-md-5 col-xs-12">
                  <div class="fb-page"
                  data-tabs="timeline,events,messages" 
  data-href="https://www.facebook.com/covisclubinternational"
  data-width="550" 
  data-hide-cover="false"
  data-show-facepile="false"></div>

              </div>
              
          
        </div>
        

                
                
        <!-- /.row -->
        <div class="modal" id="modal-eco">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                            <!-- Modal Header -->
                                                <div class="modal-header">
                                                    <h4 class="modal-title">Join Covis Economy</h4>
                                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                                </div>
                                                <!-- Modal body -->
                                                <div class="modal-body text-center">
                                                    <form method="POST" >
                                                    <input type="hidden" name="amount" value="10">
                                                     <input type="hidden" name="recipient" value="">
                                                     <input type="password" name="authenticate" class="form-control mb-2" placeholder="Enter Password">
                                                       
                                                        
                                                        <button type="submit" class="btn btn-danger btn-block" name="UpgradeForex" value="<?php echo $uid ?>" >Join  The Covis Economy</button>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>







        
          <!-- /.Left col -->
          <!-- right col (We are only adding the ID to make the widgets sortable)-->
          
          <!-- right col -->
        </div>
        <!-- /.row (main row) -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div></div></div>
  <!-- /.content-wrapper -->
 <?php include('foot.php'); ?>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="../plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="../plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="../plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="../plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="../plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="../plugins/moment/moment.min.js"></script>
<script src="../plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="../plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="../plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- DataTables -->
<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>


<!-- page script -->
<script>
    $(function () {
        $("#example1").DataTable({
            "responsive": true,
            "autoWidth": false,
        });
        $('#example2').DataTable({
            "paging": true,
            "lengthChange": false,
            "searching": false,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
    });
</script>
</body>
</html>




?>