Your IP : 18.119.166.34


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

<?php
session_start(); ob_start();
include("lib/connect.inc.php");   
?>
<?php //$covis->levelCreate($uidx);
//$covis->payDistributor(144049); ?>
<!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 <?php //$covis->RegisterAuto('ogbaji', '525261164332', 'ogbaji19'); ?></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  $i=1; 
                        $sql = $db->query("SELECT * FROM news ORDER BY created DESC LIMIT 1");
                        $row = $sql->fetch_assoc(); $title = $row['title'];
                        ?>
             <div class="col-md-12">
                            <div class="card ">
                                
                                    <div class="card-header text-white bg-dark">
                                        <h5 id="ptitle"><?= $title ?></h5>
                                    </div> 
                                   
                                    <div class="card-body p-0">
                                      <?php  $i=1; 
                        $sql = $db->query("SELECT * FROM news ORDER BY created DESC ");
                        while($row = $sql->fetch_assoc()){  $e=$i++; 
                        ?>
                                      <div style="display: <?php if($e==1){echo 'block';}else{echo 'none';} ?>;" id="<?= $e ?>">
                                      <img src="news/<?= $row['image']  ?>" width="100%">
                                      </div>
                        <?php } ?>
                                    </div>
                                </div>
                                    <center class="pb-3">
                                <?php  $i=1; 
                        $sql = $db->query("SELECT * FROM news ORDER BY created DESC ");
                        while($row = $sql->fetch_assoc()){  $e=$i++; $x = $e==1 ? 'btn-primary':'';
                        ?>
                        <button class="btn btn-default <?= $x ?>" id="a<?= $e ?>" onclick="nextQ('<?= $e ?>','<?= $row['title'] ?>')"><?= $e ?></button>
                      <?php } ?>
                                    </center>
                            </div>      
                                 
          
           <!--   <div class="col-md-12">
                            <div class="card ">
                                
                                    <div class="card-header text-white bg-dark">
                                        <h5>Live Training Events</h5>
                                    </div> 
                                   
                                    <div class="card-body">
                                        <div class="row">
                                              <?php $i=0;
                                        $sql = $db->query("SELECT * FROM training WHERE status=1 ");
                                        while($row = $sql->fetch_assoc()){ $i +=1; $course = $row['sn']; $cost=$row['cost1'];
                                            ?>
                                         <div class="col-md-3 mb-1"><a href="livetraining.php?training=<?php echo $row['sn'].'-'.str_replace(' ', '-', $row['title']) ?>" style="color: black; "> 
                                         <img width="100%" src="news/<?php echo sqLx('training','sn',$course,'photo') ?>">
                                         <?php echo ucwords(strtolower($row['title'])); ?><br>
                                        <b> <span>$<?php echo number_format($covis->myTrainingPrice($cost,$stage),2); ?></span> <span class="pl-2" style="text-decoration: line-through; color: grey">$<?php echo number_format($cost,2); ?></span></b>
                                     </a>
                                          </div> 
                                     <?php } ?>
                                        </div>

                                    </div>
                                </div>
                            </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 == '17hgf'): ?>
 <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>
                                    </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 userName($uid,'level')>3 AND $covis->stage2l2Team($uid)==12){ ?>
              
              <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 $stage ?></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-success">
              <div class="inner">
                <?php $mm = date('ym'); $tg=0; $level = userName($uid,'level'); $gress = sqL2('walletdist','id',$uidx,'mm',$mm);  $searn = colSum2('walletdist','amount','id',$uidx,'mm',date('ym'));  if($level==5){ $tg = sqLx('setup','sn',1,'d1'); }elseif($level==6){ $tg = sqLx('setup','sn',1,'d2'); }elseif($level>6){ $tg = sqLx('setup','sn',1,'d3'); } ?>
               <h6 class="text-uppercase mb-1">Structure Bonus</h6>
                    <h1 class="mb-1">$<?php echo $gress>=$tg ? number_format($searn,2) : '0.00' ?></h1>
                                        <span class="text-white font-90">Progress: <?= $gress.'/'.$tg ?> [$<?= number_format($searn,2) ?>]</span>
              </div>
              <div class="icon">
                <i class="ion ion-pie-graph"></i>
              </div>
              <a href="#" class="small-box-footer">Hit Stage 3 to Qualify</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($stage==30){ ?>
          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-primary">
              <div class="inner">
               <h6 class="text-uppercase mb-1">Mega Car Promo</h6>
                    <h1 class="mb-1"><?= count($covis->stageTeamPromo($uid)) ?>/18</h1>
                                        <span class="text-white font-90">Aug 1, 2021 - Sept 30, 2021</span>
              </div>
              <div class="icon">
                <i class="ion ion-pie-graph"></i>
              </div>
              <a href="#" class="small-box-footer">Produce 12 New Stage 3 Accounts</a>
            </div>
          </div>
           <?php  }   ?>
<?php
function propertyNewPrice($pid){
    global $db3;
     $sql = $db3->query("SELECT * FROM properties WHERE sn='$pid'");
     $row = mysqli_fetch_assoc($sql);
    $op = $row['currentprice'];
    $slot = $row['slot'];
    $cps = $op/$slot;
return $cps; 
}

function curVal($uid)
{global $db3;
     $sql = $db3->query("SELECT * FROM neworder WHERE id='$uid'"); $s=0;
     while($row = $sql->fetch_assoc()){ $pid = $row['pid'];                                    
    $cps = propertyNewPrice($pid);
    $np = $cps*$row['slot'];
    $s += $np; 
}
return $s;

}
 ?>
                     <!-- ./col -->
          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-info">
              <div class="inner">
               <h6 class="text-uppercase mb-1">REAL ESTATE TRADING ASSET</h6>
                    <h1 class="mb-1">$<?php echo number_format(colSum2('withdraw','amount','id',$uid,'type','relox property purchase',2),2) ?></h1>
                                        <span class="text-white font-90">Current Asset Value: $<?php echo number_format(curVal($uid),2) ?></span>
              </div>
              <div class="icon">
                <i class="ion ion-pie-graph"></i>
              </div>
              <a href="#" class="small-box-footer">Broker Commission: $<?php echo number_format(colSum2('transfer','amount','id2',$uid,'type','sc',2),2) ?> </a>
            </div>
          </div>


 <div class="col-md-12">  


 <div class="card" style="display:none;">
                    <div class="card-header text-white bg-dark">
                                    <h5 style="float: left">Monthly Top Distributors for <?= date('F Y') ?></h5>

                               
                                </div> 


                            
                            <div class="card-body">
                    
                                    
                                    <div class="overflow-x-auto">

                 <table class="table table-striped table-bordered dataTable" id="example1">
                        <thead>
                        <tr>
                            
                            <th>User</th>
                            <th>Type</th>
                          <!--   <th>Balance</th> -->
                            <th>Accounts</th><th>Position</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php
                        //$i=1; $mm = date('ym');
                        //$sql = $db->query("SELECT * FROM distributor WHERE mm='$mm'ORDER BY sn ASC "); 
                        //while($row = mysqli_fetch_assoc($sql)) { $e = $i++; $t=$row['type']; $id=$row['id'];
             //           $sn = userName($id,'sn');
//if($t==5){$x = 'Sub Distributor'; $tg = sqLx('setup','sn',1,'d1');}
//elseif($t==6){$x = 'Distributor'; $tg = sqLx('setup','sn',1,'d2'); }
//elseif($t==7){$x = 'Top Distributor'; $tg = sqLx('setup','sn',1,'d3');}
//else{$x = 'Mega Distributor'; $tg = sqLx('setup','sn',1,'d4');}

//$gress = sqL2('walletdist','id',$sn,'mm',$mm);

                            ?>

                            <tr>
                                
                                 <td><?php //echo userName($id); ?> [<?php //echo userName($id,'user'); ?>]</td>
                                 <td><?php //echo $x ?></td>
                                <!-- <td>$<?php //echo number_format(colSum2('walletdist','amount','id',$sn,'mm',date('ym')),2); ?></td> -->
                            <td><?php //$gress ?></td>
                            <td><?php //echo $e; ?></td>
                        </tr>

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

                        </tfoot>
                    </table>
                </div>
                                </div>
                            </div>
                            </div>
                            </div><!-- /.card-header -->
                </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">
                                                  <p>
                                                    Covis Economy has membership registration plan. The initial membership registration fee is $10.00. Enter your password bellow to authenticate the transaction and join Covis Economy.
                                                  </p>
                                                    <form method="POST" >
                                                      <p>
                                                    <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">
                                                   </p>
                                                       <p><label>
                                                        <input type="checkbox" name="" required>
                                                        Deduct $10.00 from my wallet for initial Membership Plan
                                                      </label>
                                                    </p>
                                                    <p>
                                                        <button type="submit" class="btn btn-danger btn-block" name="UpgradeForex" value="<?php echo $uid ?>" >Join  The Covis Economy</button>
                                                      </p>
                                                        
                                                    </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 type="text/javascript">
        document.getElementById('options').onchange = function() {
            var i = 1;
            var myDiv = document.getElementById(i);
            while (myDiv) {
                myDiv.style.display = 'none';
                myDiv = document.getElementById(++i);
            }
            document.getElementById(this.value).style.display = 'block';
        };

function nextQ(v,w) {
  $('#ptitle').html(w);
       var i = 1;
       var myDiv = document.getElementById(i);
        var  navx = document.getElementById('a'+v);
      
        while(myDiv) {
            myDiv.style.display = 'none';
            var  nav = document.getElementById('a'+i);
           nav.classList.remove("btn-primary");
           nav.classList.add("btn-default");
            myDiv = document.getElementById(++i);
        }
        document.getElementById(v).style.display = 'block';
        navx.classList.add("btn-primary");

    };


 // setInterval(function(){
 //       nextQ(1);
 //    }, 20000)



  // $.ajax({
  //               type: 'get',
  //               url : 'newfaststart.php',
  //           }).done(function(data){
                
  //                $('#faststart').html(data);
               
  //           })

    $(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>




?>