Your IP : 3.139.70.69
<?php
session_start(); ob_start();
include("lib/connect.inc.php");
function userToId($user, $col='id')
{
global $db;
$que = $db->query("SELECT * FROM user WHERE user = '$user' ") or die(mysqli_error());
$ro = mysqli_fetch_array($que);
return $ro[$col];
}
function Upli($sn)
{
global $db;
$que = $db->query("SELECT * FROM globeuser WHERE sn = '$sn' ") or die(mysqli_error());
$ro = mysqli_fetch_array($que);
return $ro['id'];
}
if(isset($_GET['uref'])){
$uref = $_GET['uref'];
$sq = $db->query("SELECT * FROM globeuser WHERE sha1(sn)='$uref' ");
$r=mysqli_fetch_assoc($sq);
$uidy = $r['sn'];
$uid = $r['id'];
}
if(isset($_GET['u-ref'])){
$uref = $_GET['u-ref'];
$search = userToId($uref);
$sq = $db->query("SELECT * FROM globeuser WHERE id='$search' ");
$r=mysqli_fetch_assoc($sq);
$uidy = $r['sn'];
$uid = $r['id'];
$up = $r['a1'];
}
$stage = $covis->globeStage($uidy);
if(isset($_POST['ShowStages'])){
$_SESSION['stages']=$_POST['ShowStages'];
}
$stages = isset($_SESSION['stages'])?$_SESSION['stages']:$covis->globeStage($uidy);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="treant/examples/tree/basic-example2.css">
<!-- Neptune CSS -->
<link rel="stylesheet" href="css/core.css">
<title>Search Global</title>
<link rel="shortcut icon" href="img/fav.png" />
<link rel="stylesheet" href="treant/Treant.css">
<link rel="stylesheet" href="treant/examples/tree/basic-example2.css">
<!-- Neptune CSS -->
<link rel="stylesheet" href="css/core.css">
<!-- Neptune CSS -->
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Neptune CSS -->
<link rel="stylesheet" href="css/core.css">
<!-- Vendor CSS -->
<link rel="stylesheet" href="../vendor/bootstrap4/css/bootstrap.min.css">
<link rel="stylesheet" href="../vendor/themify-icons/themify-icons.css">
<link rel="stylesheet" href="../vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../vendor/animate.css/animate.min.css">
<link rel="stylesheet" href="../vendor/jscrollpane/jquery.jscrollpane.css">
<link rel="stylesheet" href="../vendor/waves/waves.min.css">
<link rel="stylesheet" href="../vendor/switchery/dist/switchery.min.css">
<link rel="stylesheet" href="../vendor/morris/morris.css">
<link rel="stylesheet" href="../vendor/dropify/dist/css/dropify.min.css">
<!-- Font Awesome -->
<?php include('head.php'); ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include('nav.php');?>
<!-- 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">Manage Savings</h1>
</div><!-- /.col -->
<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">Search Global</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<div id="refresh"><?php if(isset($report)){$covis->Alert(); } ?></div>
<div class="content-area py-1">
<div class="container-fluid">
<div class="row">
<div class="col-lg-3 col-6">
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<div class="t-content">
<h6 class="text-uppercase mb-1">Stage <?php //echo $stagel ?></h6>
<h1 class="mb-1" style="font-size: 28px">STAGE <?php echo $covis->globeUser($uidy)=='' ? ': Nil' : $covis->globeStage($uidy) ; ?></h1>
<span class="text-muted font-90"><BR></span>
</div>
</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-6">
<!-- small box -->
<div class="small-box bg-success">
<div class="inner">
<div class="t-content">
<h6 class="text-uppercase mb-1">Stage Level</h6>
<h1 class="mb-1" style="font-size: 28px"><?php echo $covis->globeStageLevel($uidy) ?></h1>
<span class="text-muted font-90"><BR></span>
</div>
</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-6">
<!-- small box -->
<div class="small-box bg-warning">
<div class="inner">
<div class="t-content">
<h6 class="text-uppercase mb-1">Stage Team</h6>
<h1 class="mb-1" style="font-size: 28px"><?php echo $covis->globeStageTeam($uidy) ?></h1>
<span class="text-muted font-90"><BR></span>
</div>
</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>
<!-- ./col -->
<div class="col-lg-3 col-6">
<!-- small box -->
<div class="small-box bg-danger">
<div class="inner">
<div class="t-content">
<h6 class="text-uppercase mb-1">Total Earning</h6>
<h1 class="mb-1" style="font-size: 28px">$<?php echo number_format($covis->globeEarning($uidy),2) ?></h1>
<span style="color: white;" class="font-90">WITHDRAWN: $<?php echo number_format($covis->totalWithdrawgm($uid),1) ?>, BALANCE: $<?php echo number_format($covis->gmBalance($uidy,$uid),1) ?> </span>
</div>
</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 -->
</div>
<?php
//echo $covis->covisR($uid);
?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header text-white bg-dark">
<h5 class="" style="font-size: 18px"><strong>Global Matrix Chart: <?php echo userName($uid); ?> (<?php echo userName($uid,'user'); ?>)
-> <a href="?u-ref=<?php echo userName(Upli($r['a1']),'user'); ?>"><?php echo userName(Upli($r['a1']),'user'); ?></a>
-> <a href="?u-ref=<?php echo userName(Upli($r['a3']),'user'); ?>"><?php echo userName(Upli($r['a2']),'user'); ?></a>
-> <a href="?u-ref=<?php echo userName(Upli($r['a3']),'user'); ?>"><?php echo userName(Upli($r['a3']),'user'); ?></a></strong> </h5></div>
<div class="card-body">
<center>
<form method="post">
<?php $i = 1; while($i <= $stage){ $e = $i++;?>
<button class="btn btn-sm btn-primary" name="ShowStages" value="<?php echo $e ?>">Stage <?php echo $e ?></button> <?php } ?>
</form>
</center>
<div style="float: right">
<form method="get">
<table>
<tr><td><input type="text" class="form-control" name="u-ref" placeholder="Enter Username" id="username" required/></td><h5 id="output"></h5><td>
<button type="submit" class="btn btn-primary">Fund User</button>
</td></tr></table>
</form>
</div>
</div>
<div >
<div class="row" style="padding: 45;">
<br><br>
<!---Chart -->
<div class="table-responsive">
<div class="chart" id="basic-example" style="margin: -200px 0 10 0; padding: -100px 0 0 0;" class="table-responsive"></div>
</div>
</div> </div>
</div>
</div></div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
</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">
<?php
// if($covis->globeStage($uidy)==1 ){
if($stages==1 ){
echo $covis->covisTreeGlobe($uid);
}else{
echo $covis->covisTree4Globe($uid);
}
?>
</script>
<script src="treant/vendor/raphael.js"></script>
<script src="treant/Treant.js"></script>
<script>
new Treant( chart_config );
</script>
<script type="text/javascript">
$(function(){
$("#username").keyup(function(){
var v = $(this).val();
$.ajax({
type: 'get',
url : 'js/username.php?val='+v
}).done(function(data){
if(data == 0){
$("#output").html('');
}
else if(data == 1){
$("#output").html('Username Does Not Exist');
}
else {
$("#output").html(data);
}
})
})
})
</script>
</body>
</html>