Your IP : 3.144.224.30
<?php
session_start();
include("lib/connect.inc.php");
$uid = $covis->Uid();
$ccib = $covis->totalEarnings($uidx);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CCI CYCLER</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 class="wrapper">
<?php include('nav.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Membership Profit Cycle</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active">Profit Cycle</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Header (Page header) -->
<?php if(isset($report)){$covis->Alert(); } if(isset($_GET['aaaaas'])){ $d=$_GET['aaaaas']; $uid = sqLx('user','user',$d,'id');
//$covis->payAndCircle(104,4,1);
} ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3">
<span class="info-box-icon bg-primary elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">Canarda Coin</span>
<h4 class="text-primary"><?php $cb=covcoin($uid); echo number_format($cb*10,2) ?> CND</h4>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3">
<span class="info-box-icon bg-warning elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">REFERRAL POINTS</span>
<h4 class="text-warning"><?= refPoint($uid) ?> <span style="font-size: 14px; color: #000;"> Referred <?php $x=sqL1('logc','sponsor',$uid); echo number_format($x) ?> users</span></h4>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3" >
<span class="info-box-icon bg-success elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">CYCLER BONUS</span>
<h4 class="text-success">$<?php $cb=number_format(colSum2('cpay','amount','id',$uid,'type',2),2); echo $cb ?></h4>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3" >
<span class="info-box-icon bg-warning elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">REFERRAL BONUS</span>
<h4 class="text-warning">$<?php $rb=number_format(colSum2('cpay','amount','id',$uid,'type',3),2); echo $rb ?> <small class="text-success"><?php //echo number_format(100*$a/$r) ?></small> </h4>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3" >
<span class="info-box-icon bg-danger elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">TOTAL EARNED</span>
<h4 class="text-danger">$<?php $rb=number_format(colSum2('cpay','amount','id',$uid,'type',2)+colSum2('cpay','amount','id',$uid,'type',3),2); echo $rb ?> <small class="text-success"><?php //echo number_format(100*$a/$r) ?></small> </h4>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3">
<span class="info-box-icon bg-info elevation-1"><i class="fa fa-wallet" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">CYCLER BALANCE</span>
<h4 class="text-info">$<?php $b=number_format(colSum1('cpay','amount','id',$uid),2); echo $b ?> <small class="text-success"><?php //echo number_format(100*$b/$r) ?></small></h4>
</div>
</div>
</div>
<?php $l = userName($uid,'level'); $i=0; while($i<=$l){$e=$i++;
$x=$e+1; $bu = sqL2('cuser','id',$uid,'type',$x); ?>
<div class="col-12 col-sm-6 col-md-3">
<a href="?level=<?php echo $e ?>" style="color: #000;" > <div class="info-box mb-3" <?php if($bu>0){ ?>style="border: solid 3px green" <?php } ?>>
<span class="info-box-icon bg-success elevation-1"><i class="fa fa-users" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">BOARD <?php echo $x ?> </span>
<h4 class="text-success"><?php echo $bu>0 ? $bu-1 : 0 ?> <?php if($bu>0){ ?><span style="font-size: 14px; color: #000;"><?= number_format(cycleProgress($uid,$x),1) ?>% Cycle Progress</span><?php } ?></h4>
</div>
</div>
</div></a>
<?php } ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Join New Board</h5>
</div>
<div class="card-body pt-0">
<form class="mt-0" method="post">
<table class="table table-sm">
<tr><td>Next Board:</td><th>Board <?php $n=nextBoard($uid); echo $n ?></td></tr>
<tr><td>Eligible:</td><th><?php $e = eligible($uid,$n); echo $e ?></td></tr>
<tr><td>Entry Fee:</td><th>$<?php echo number_format(efee($n),2) ?></td></tr>
</table>
<?php if(sqL1('logc','id',$uid)==0){ ?>
Sponsor <input type="text" id="username" name="sp" class="form-control">
<span id="output"></span><br>
<?php } if($e=='YES' AND $n<10){ ?>
<button type="submit" name="joinCycler" value="<?= $n ?>" class="btn btn-primary btn-block">Join New Board</button>
<?php } ?>
</form>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Fund Cycler Wallet</h5>
</div>
<div class="card-body pt-0">
<form class="mt-0" method="post">
<table class="table table-sm">
<tr><td>CCI Wallet Balance</td><th>$<?= number_format($ccib,2) ?></th></tr>
</table>
Amount <input type="number" name="amount" class="form-control" min="1" max="1000"><br>
<button type="submit" name="FundCycler" class="btn btn-primary btn-block">Fund Wallet</button>
</form>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Withdraw Cycler Funds</h5>
</div>
<div class="card-body pt-0">
<form class="mt-0" method="post">
<table class="table table-sm">
<tr><td>Cycler Wallet Balance</td><th>$<?= $b ?></th></tr>
</table>
Amount <input type="number" name="amount" class="form-control" min="1" max="1000"><br>
<button type="submit" name="FundFromCycler" class="btn btn-primary btn-block">Withdraw Fund </button>
</form>
</div>
</div>
</div>
<div class="col-md-12">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Monthly Top Referrers for <?= date('F Y') ?> </h5>
</div>
<div class="card-body">
<div class="overflow-x-auto">
<table class="table table-striped table-bordered dataTable" id="example">
<thead>
<tr>
<th>SN</th>
<th>Name</th>
<th>Username</th>
<th>Point</th>
<th>Next Mile Stone</th>
<th>Eligible</th>
</tr>
</thead>
<tbody>
<?php
$i=1; $mm = date('ym');
$sql = $db->query("SELECT * FROM logc ORDER BY refpoint DESC LIMIT 10");
while($row = mysqli_fetch_assoc($sql)) { $e = $i++; $id=$row['id'];
$peg = sqLx('setup','sn',1,'a5');
$el = ($e<4 AND eligibleWin($row['refpoint'],$peg)==1) ? 'YES' : 'N0';
?>
<tr>
<td><?php echo $e; ?></td>
<td><?php echo userName($id); ?></td>
<td><?php echo userName($id,'user'); ?></td>
<td><?php echo $row['refpoint']; ?></td>
<td><?php echo nextMile($row['refpoint']); ?></td>
<td><?php echo $el; ?></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
</tfoot>
</table>
Target: <?= sqLx('setup','sn',1,'a5') ?> Point. The top 3 and all others that exceed the target will be rewarded<br>
First Position: $<?= sqLx('setup','sn',1,'a1') ?> <br>
Second Position: $<?= sqLx('setup','sn',1,'a2') ?> <br>
Third Position: $<?= sqLx('setup','sn',1,'a3') ?> <br>
Unlimited Runner-up: $<?= sqLx('setup','sn',1,'a4') ?>
</div>
</div>
</div>
<div class="card">
<div class="card-header text-white bg-dark">
<h5 style="float: left">Transaction History</h5>
</div>
<div class="card-body">
<div class="overflow-x-auto">
<table class="table table-striped table-bordered dataTable" id="example1">
<thead>
<tr>
<th>SN</th>
<th>Amount</th>
<th>Type</th>
<th>Remark</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<?php
$i=1; $mm = date('ym');
$sql = $db->query("SELECT * FROM cpay WHERE id='$uid' ORDER BY sn DESC LIMIT 100");
while($row = mysqli_fetch_assoc($sql)) { $e = $i++; $id=$row['id'];
?>
<tr>
<td><?php echo $e; ?></td>
<td>$<?php echo number_format(abs($row['amount']),2); ?></td>
<td><?php echo $row['amount']>0 ? 'Credit' : 'Debit' ?></td>
<td><?php echo cpayRemark($row['type']) ?></td>
<td><?php echo $row['created']; ?></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div><!-- /.card-header -->
<!-- /.card-body -->
<!-- /.card -->
</div>
<!-- right col -->
</div>
<!-- /.row (main row) -->
</div><!-- /.container-fluid -->
<!-- /.content -->
</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 payd(u,v){
alert(v+u);
}
$(function () {
$("#example1").DataTable({
"responsive": true,
"autoWidth": false,
});
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": true,
});
});
$(function(){
$("#username").keyup(function(){
var v = $(this).val();
$.ajax({
type: 'get',
url : 'js/username.php?val2='+v
}).done(function(data){
$("#output").html(data);
})
})
})
</script>
</body>
</html>