Your IP : 52.14.223.136
<?php
session_start(); ob_start();
?>
<!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>Geneology</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" />
<!--- FONT-ICONS CSS -->
<link href="../assets/css/icons.css" rel="stylesheet" />
<!-- Geneology -->
</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');
?>
<!--/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">Matrix Geneology</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Matrix Geneology</li>
</ol>
</div>
<?php include('pagebtn.php') ?>
</div>
<!-- PAGE-HEADER END -->
<div class="card">
<div class="card-title">
<h5 class="m-4">Matrix Geneology</h5>
<hr/>
</div>
<div class="card-body mt-0 pt-0">
<?php $stag = $_GET['stage']??$stage;
$i=1; while($i<=$stage){ $e=$i++; $col = $stag==$e ? 'primary' : 'white'; ?> <a class="btn btn-<?= $col ?>" href="?stage=<?= $e ?>">Stage <?= $e ?></a> <?php } ?>
<div class="table-responsive mt-3">
<center>
<figure>
<?php $stage = $_GET['stage']??$stage;
if($stage==1){ ?>
<ul class="tree">
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= $user ?></span>
<ul>
<?php $sql = $db->query("SELECT * FROM user WHERE a1='$uidx' ");
while($row=mysqli_fetch_assoc($sql)){ $id2 = $row['sn']; ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($row['stage']) ?>"><br><?= $row['user'] ?></span>
<ul>
<?php $s = $db->query("SELECT * FROM user WHERE a1='$id2' ");
while($r=mysqli_fetch_assoc($s)){ ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($r['stage']) ?>"><br><?= $r['user'] ?></span></li>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
</li>
</ul>
<?php }else{
?>
<ul class="tree">
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= $user ?></span>
<ul>
<?php $sql = $db->query("SELECT * FROM user WHERE a1='$uidx' ");
while($row=mysqli_fetch_assoc($sql)){ $key = $row['sn'];
$legs = $pro->stageTeamHeads($key,$stage); $n = count($legs);
if($n>0){ ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[0],'user') ?></span>
<?php if($n>1){ ?>
<ul>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[1],'user') ?></span>
<?php if($n>3){ ?>
<ul>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[3],'user') ?></span></li>
<?php if($n>4){ ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[4],'user') ?></span></li>
<?php } ?>
</ul>
<?php } ?>
</li>
<?php } ?>
<?php if($n>2){ ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[2],'user') ?></span>
<?php if($n>5){ ?>
<ul>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[5],'user') ?></span></li>
<?php if($n>6){ ?>
<li><span class="btn"><img src="uploads/<?= $pro->stageHead($stage) ?>"><br><?= userNameSn($legs[6],'user') ?></span></li>
<?php } ?>
</ul>
<?php } ?>
</li>
<?php } ?>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
</li>
</ul>
<?php } ?>
</figure>
</center>
</div>
</div><!--end row-->
<div class="card p-3">
<h4>Total Structure Team </h4>
<hr>
<h5>Regular: <?= $pro->totalPackTeam($uidx,5) ?></h5>
<h5>Pro: <?= $pro->totalPackTeam($uidx,25) ?></h5>
<h5>VIP: <?= $pro->totalPackTeam($uidx,50) ?></h5>
</div>
</div>
</div>
</div>
<!-- ROW --></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>
</body>
</html>