Your IP : 3.17.181.112


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

<?php
session_start();
include("lib/connect.inc.php");
$uid = $covis->Uid();
if($uidx != 1){
    header("Location:../login.php");
}

$sql = $db->query("SELECT * FROM user WHERE level>2 ");
$all = mysqli_num_rows($sql);


?>

    <!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>Globe Stages</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">Matrix User Level</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">Matrix User Level</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">
                    <div class="container-fluid">
                     <div class="row">
                        <div class="col-md-12">
                            <div class="card">
                        
                                <div class="card-header text-white bg-dark">
                                <h5>View Global Matrix User Levels</h5>
                                </div>
             <div class="card-body">
            

                            <table class="table table-striped table-bordered dataTable" id="example1">
                                
                                    <thead>
                                    <tr>
                                        <th colspan="4">TOTAL ENTRIES</th>
                                        <?php $sql1 = $db->query("SELECT * FROM globeuser"); ?>
                                        <th><?php echo $sql1->num_rows; ?></th>
                                    </tr>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Stage</th>
                                        <th>Level</th>
                                        <th>Strength</th>
                                        <th>Action</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    <?php $sql = $db->query("SELECT * FROM levels LIMIT 11"); $i = 1;
                                    while($row = $sql->fetch_assoc()){ $e = $i++;
                                        $bg = (isset($_POST['UserLevel']) AND $_POST['UserLevel']==$row['lev']) ?' bgcolor="#CF0"' : '';
                                        ?>
                                        <tr <?php echo $bg; ?> >
                                            <td><?php echo $e; ?></td>
                                            <td><?php echo $row['title'] ?></td>
                                            <td><?php echo ' Level '. $row['level'] ?></td>

                                            <td> <?php echo $covis->countLevelGmUsers($row['lev']); ?></td>
                                            <td>
                                                <form method="post">

                                                    <button type="submit" name="UserLevel" class="btn-sm btn-primary" value="<?php echo $row['lev'] ?>">View</button>
                                                </form>
                                            </td>
                                        </tr>
                                    <?php } ?>
                                    </tbody>
                                </table>
                            
                                                                                      
                            </div>

                        </div>

                    </div>
                </div>
                <?php if(isset($_POST['UserLevel'])){ $sn = $_POST['UserLevel'];
                    ?>
                    <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>View Global Matrix User</h5>
                                </div>
                                <div class="card-body">
                                        <table class="table table-striped table-bordered dataTable" id="example2">
                                        <thead>
                                        <tr>
                                            <th>S/N</th>
                                            <th>Name</th>
                                            <th>Username</th>
                                            <th>Email</th>
                                            <th>Action</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php $level = $db->query("SELECT * FROM globeuser WHERE level = '$sn' "); $i = 0;
                                        while($rowl = $level->fetch_assoc()){ $i = $i + 1;  $id = $rowl['id'];
                                            ?>
                                            <tr>
                                                <td><?php echo $i ?></td>
                                                <td><?php echo userName($id); ?></td><td><?php echo userName($id,'user'); ?></td>
                                                <td><?php echo userName($id,'email'); ?></td>
                                                <!--   <td><?php echo $rowl['sn']; ?></td> -->
                                                <td>
                                                    <a class="btn btn-xs btn-rounded btn-default" href="searchglobal.php?uref=<?php echo sha1($rowl['sn']); ?>">Profile</a>

                                                </td>
                                            </tr>
                                        <?php  } ?>
                                        </tbody>
                                    </table>
                                </div>
                                        
                                    </div>
                               
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } ?>
            </div>


                                    </div>
                                </div>

                                </div></div>
                            </div>

                <!-- /.row -->
        </div><!-- /.container-fluid -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <?php include('foot.php'); ?>

    </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 () {
        $("#example1").DataTable({
            "responsive": true,
            "autoWidth": false,
        });
        $('#example2').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
    });
</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>


</body>
</html>



?>