Your IP : 18.223.159.143


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

<?php
session_start();
include("lib/connect.inc.php");
$uid = $covis->Uid();

$stagel = $covis->stageCalc($uidx);
$lev = $covis->stageLevel($uidx);
?>

    <!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>Awards</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">

        <!-- Tell the browser to be responsive to screen width -->
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- 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/jvectormap/jquery-jvectormap-2.0.3.css">
        <!-- Font Awesome -->
        <?php include('head.php'); ?>
    </head>
    <body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">

        <?php include('nav.php'); ?>


        <!-- Content Header (Page header) -->
       
                <!-- 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> Awards</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">Awards</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>
                    <!-- Content Header (Page header) -->
                   




                        <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>Your Awards</h5>
                                    </div>
                                        
                                        <br/>
                                        <div class="card-body">
                                        <div class="table-responsive">
                                            <table class="table table-hover table-bordered">
                                                <thead>
                                                <tr>
                                                    <th>S/N</th>
                                                    <th>Stage</th>
                                                    <th>Level</th>
                                                    <th>Rewards</th>
                                                    <th>Incentives</th>
                                                    <th>Action</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <?php $sn = $covis->userName4('level')+1;
                                                $sql1 = $db->query("SELECT * FROM levels WHERE sn<='$sn' ORDER BY sn "); $i = 1; $sum = 0;$sum1=0;
                                                while($row1 = $sql1->fetch_assoc()){ $sum = $sum + $row1['award'];
                                                    $l = $row1['level']; $s = $row1['stg'];
                                                    ?>
                                                    <tr>
                                                        <td><?php echo $i; ?></td>
                                                        <td><?php echo $row1['title']; ?></td>
                                                        <td><?php echo 'Level '.$row1['level']; ?></td>
                                                        <td><?php echo $row1['award']; ?></td>
                                                        <td><?php echo $row1['award2']; ?></td>
                                                        <td>
                                                            <?php $disabled = ($row1['award2'] == '0' || incentive($uid,$s,$l) == '1' )?'disabled':''; ?>
                                                            <form method="post">
                                                                <input type="hidden" name="id" value="<?php echo $uid ?>">
                                                                <input type="hidden" name="stage" value="<?php echo $s ?>">
                                                                <input type="hidden" name="level" value="<?php echo $l ?>">
                                                                <?php $btn = '';
                                                                if(incentive1($uid,$s,$l) == true && incentive($uid,$s,$l) != '1'){$btn="Pending...."; $disabled = 'disabled';}
                                                                elseif(incentive1($uid,$s,$l) == true && incentive($uid,$s,$l) == '1'){$btn = "Approved";}
                                                                elseif(incentive1($uid,$s,$l) == false){$btn = "Request Incentive";}
                                                                ?>
                                                                <button type="submit" class="btn btn-success btn-xs" name="RequestIncentive1" value="<?php echo $row1['award2'] ?>" <?php echo $disabled ?>><?php echo $btn ?></button>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                    <?php $i += 1; }

                                                if($covis->stageCalc($uidx)>=3 AND $covis->levelDownlines($uidx)>=20){ ?>

                                                    <tr>
                                                        <td><?php echo $i; ?></td>
                                                        <td>Stage 3</td>
                                                        <td>Level 2+</td>
                                                        <td>0</td>
                                                        <td>Brand New Laptop</td>
                                                        <td>
                                                            <?php $disabled = ($row1['award2'] == '0' || incentive($uid,$s,$l) == '1' )?'disabled':''; ?>
                                                            <form method="post">
                                                                <input type="hidden" name="id" value="<?php echo $uid ?>">
                                                                <input type="hidden" name="stage" value="3">
                                                                <input type="hidden" name="level" value="2.5">
                                                                <?php $btn = '';
                                                                if(incentive1($uid,3,2.5) == true && incentive($uid,3,2.5) != '1'){$btn="Pending...."; $disabled = 'disabled';  }
                                                                elseif(incentive1($uid,3,2.5) == true && incentive($uid,3,2.5) == '1'){$btn = "Approved";}
                                                                elseif(incentive1($uid,3,2.5) == false){$btn = "Request Incentive";}
                                                                ?>
                                                                <button type="submit" class="btn btn-success btn-xs" name="RequestIncentive1" value="Brand New Laptop" <?php echo $disabled ?>><?php echo $btn ?></button>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                <?php } ?>
                                                <tr>
                                                    <th colspan="3">Total</th>
                                                    <th colspan="3">$<?php echo $sum?></th>

                                                </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        </div>
                                    </div>

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


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



                        </div>


                    </div>
                </div>



                <!-- /.card-body -->

                <!-- /.card -->

                <!-- right col -->

                <!-- /.row (main row) -->
                <!-- /.container-fluid -->

                <!-- /.content -->

                <!-- /.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>

            <script type="text/javascript" src="../vendor/chartist/chartist.min.js"></script>

            <!-- Vendor JS -->
            <script type="text/javascript" src="../vendor/jquery/jquery-1.12.3.min.js"></script>
            <script type="text/javascript" src="../vendor/tether/js/tether.min.js"></script>
            <script type="text/javascript" src="../vendor/bootstrap4/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="../vendor/detectmobilebrowser/detectmobilebrowser.js"></script>
            <script type="text/javascript" src="../vendor/jscrollpane/jquery.mousewheel.js"></script>
            <script type="text/javascript" src="../vendor/jscrollpane/mwheelIntent.js"></script>
            <script type="text/javascript" src="../vendor/jscrollpane/jquery.jscrollpane.min.js"></script>
            <script type="text/javascript" src="../vendor/jquery-fullscreen-plugin/jquery.fullscreen-min.js"></script>
            <script type="text/javascript" src="../vendor/waves/waves.min.js"></script>
            <script type="text/javascript" src="../vendor/switchery/dist/switchery.min.js"></script>
            <script type="text/javascript" src="../vendor/flot/jquery.flot.min.js"></script>
            <script type="text/javascript" src="../vendor/flot/jquery.flot.resize.min.js"></script>
            <script type="text/javascript" src="../vendor/flot.tooltip/js/jquery.flot.tooltip.min.js"></script>
            <script type="text/javascript" src="../vendor/CurvedLines/curvedLines.js"></script>
            <script type="text/javascript" src="../vendor/TinyColor/tinycolor.js"></script>
            <script type="text/javascript" src="../vendor/sparkline/jquery.sparkline.min.js"></script>
            <script type="text/javascript" src="../vendor/raphael/raphael.min.js"></script>
            <script type="text/javascript" src="../vendor/morris/morris.min.js"></script>
            <script type="text/javascript" src="../vendor/jvectormap/jquery-jvectormap-2.0.3.min.js"></script>
            <script type="text/javascript" src="../vendor/jvectormap/jquery-jvectormap-world-mill.js"></script>
            <script type="text/javascript" src="../vendor/peity/jquery.peity.js"></script>
            <script type="text/javascript" src="../vendor/chartist/chartist.min.js"></script>

            <!-- Neptune JS -->
            <script type="text/javascript" src="js/app.js"></script>
            <script type="text/javascript" src="js/demo.js"></script>
            <script type="text/javascript" src="js/index.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>

    </body>
    </html>



?>