Your IP : 18.119.116.77
<?php
session_start(); ob_start();
include("lib/connect.inc.php");
//$covis->addMkt();
$st = $covis->stageCalc($uidx);
if(isset($_POST['ShowStage'])){
$_SESSION['stage']=$_POST['ShowStage'];
}
$stage = isset($_SESSION['stage'])?$_SESSION['stage']:$covis->stageCalc($uidx);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Profile</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 -->
<link rel="stylesheet" href="treant/Treant.css">
<link rel="stylesheet" href="treant/examples/tree/basic-example.css">
<?php include('head.php'); ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include('nav.php'); ?>
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Generation Tree</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">Generation tree</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Wrapper. Contains page content -->
<!-- Content Header (Page header) -->
<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>Genealogy Matrix</h5>
</div>
<?php if(isset($report)){echo $covis->Alert(); } ?>
<div class="card-body">
<h2 class=""><strong>STAGE: <?php echo $stage ?></strong></h2>
<form method="post">
<?php $i = 1; while($i <=$st){ $e = $i++;?>
<button class="btn btn-sm btn-primary" name="ShowStage" value="<?php echo $e ?>">Stage <?php echo $e ?></button> <?php } if(isset($_GET['tree'])){ ?>
<a class="btn btn-sm btn-danger" href="?">Reset</a>
<?php } ?>
</form>
<div class="float-xs-right"><?php if($st==$stage){ ?>LEVEL: <?php echo $covis->stageLevel($uidx); } ?></div>
</div>
<div>
<?php //echo $covis->covisTree4($uid);//$_SESSION['stage']; echo $covis->stageTeam($uid,$stage); //$h = explode(',', $covis->covisTree2()); echo $h[2] ?>
<!-- Chart -->
<div class="table-responsive">
<div class="chart" id="basic-example"></div>
</div>
</div>
<!-- <form method="post">-->
<!---->
<!---->
<!-- <div class="card-footer clearfix">-->
<!-- <input type="text" name="user"/>-->
<!-- <input type="number" name="userNo"/>-->
<!-- <button type="submit" class="btn btn-danger label-left float-xs-right" name="automateRegister">-->
<!-- <span class="btn-label"><i class="ti-download"></i></span>-->
<!-- Register-->
<!-- </button>-->
<!-- </div>-->
<!-- </form>-->
</div>
</div>
</div>
</div>
<!-- /.tab-content -->
</div><!-- /.card-body -->
</div>
<!-- /.nav-tabs-custom -->
</div>
<!-- /.col -->
<!-- /.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>
<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(isset($_GET['tree'])){$uidx = $_GET['tree']; $uid = $covis->keyToId($uidx);
$stage = isset($_SESSION['stage'])?$_SESSION['stage']:$covis->stageCalc($uidx); }
if($stage==1){ echo $covis->covisTree($uid); }elseif($stage==2 AND $covis->stageCalc($uidx)==2){ echo $covis->covisTreeS2($uid); } else {echo $covis->covisTree4($uid);} ?>
</script>
<script src="treant/vendor/raphael.js"></script>
<script src="treant/Treant.js"></script>
<script>
new Treant( chart_config );
</script>
</body>
</html>