Your IP : 3.12.163.23


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

<?php
session_start(); ob_start();

if(isset($_SESSION['stage'])){unset($_SESSION['stage']);}
include("lib/connect.inc.php");

if(isset($_GET['u-ref'])){

    $uref = $_GET['u-ref'];
    $sql = $db->query("SELECT * FROM user WHERE sha1(sn) = '$uref'");
    $row = $sql->fetch_assoc();
    $sn = $row['sn'];
    $level = $row['level'];
    $id = $_SESSION['searchid'] = $row['id'];
}
$userid = isset($id)?$id:$uid;

$stage =$covis->stageCalc($sn);
$stagex =$covis->stageCalc($sn);

$signup = isset($_SESSION['signup'])?$_SESSION['signup']:0;


?>

<!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>Profile</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">Profile</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>Profile</h5>
                     </div> 
                             <div class="card-body">

                             <h1 class="m-0 text-dark">Profile</h1>
                        <h2 class=""><strong>STAGE: <?php echo $stage ?></strong></h2>

                        <div class="float-xs-right">LEVEL: <?php echo $covis->stageLevel($sn); ?></div>
                    </div>
                    



                                <div class="chart" id="basic-example"></div>
                            </div>
                            <?php $uref = '';
                            if(isset($_GET['u-ref'])){

                                $uref = $_GET['u-ref'];
                                $sql = $db->query("SELECT * FROM user WHERE sha1(sn) = '$uref'");
                                $row = $sql->fetch_assoc();
                                $sn = $row['sn'];
                                $id = $_SESSION['searchid'] = $row['id'];
                            }
                            if($covis->Downline($sn) < 3){ ?>
                                <div class="row">

                                    <form method="post">
                                        <?php if($signup==0){  ?>
                                            <div class="col-md-12 " align="center">
                                                <h3 align="center">Register Member Under <b><?php echo shaToKey($uref,'user') ?>
                                                        (<?php echo shaToKey($uref,'firstname').' '. shaToKey($uref,'lastname') ?>
                                                        )</b></h3>
                                            </div>
                                            <br/>
                                            <hr/>
                                            <div class="form-group col-md-4">
                                                <label>Surname:</label>
                                                <input type="text" class="form-control" placeholder="Surname" name="firstname" value="<?php if(isset($_SESSION['firstname'])){ echo $_SESSION['firstname']; } ?>" required>
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>Firstname:</label>
                                                <input type="text" class="form-control" placeholder="Firstname" name="lastname" value="<?php if(isset($_SESSION['firstname'])){ echo $_SESSION['lastname']; } ?>" required>
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>Gender:</label>
                                                <select class="form-control" name="gender" >
                                                    <option>Select Gender..</option>
                                                    <option value="Male">Male</option>
                                                    <option value="Female">Female</option>
                                                </select>
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>State:</label>
                                                <input type="text" class="form-control" id="exampleInputResetPassword" placeholder="State" name="state">
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>Country:</label>
                                                <input type="text" class="form-control" id="exampleInputResetPassword" placeholder="Country" name="country">
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>Phone:</label>
                                                <input type="number" class="form-control" id="exampleInputUsername" placeholder="Phone Number" name="phone" value="<?php if(isset($_SESSION['firstname'])){ echo $_SESSION['phone']; } ?>" required>
                                            </div>
                                            <div class="form-group col-md-4">
                                                <label>Email:</label>
                                                <input type="email" class="form-control" id="exampleInputEmail" placeholder="Email"  name="email" value="<?php if(isset($_SESSION['firstname'])){ echo $_SESSION['email']; } ?>" required>
                                            </div>

                                            <div class="form-group col-md-4">
                                                <label>Username:</label>
                                                <input type="text" class="form-control" id="exampleInputUsername" placeholder="Username" name="username" value="<?php if(isset($_SESSION['firstname'])){ echo $_SESSION['username']; } ?>" required>
                                            </div>

                                            <div class="form-group col-md-4">
                                                <label>Password:</label>
                                                <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password" name="password" required>
                                            </div>
                                            <div class="form-group mb-3 col-md-4">
                                                <label>Re-enter Password:</label>
                                                <input type="password" class="form-control" id="exampleInputResetPassword" placeholder="Confirm password" name="password2" required>
                                            </div>

                                            <div class="px-2 form-group mb-0 col-md-4">
                                                <label> </label>
                                                <button type="submit" class="btn btn-purple btn-block text-uppercase" name="InitialSignup" style="width:100%">Sign up</button>
                                            </div>

                                        <?php   } elseif($signup==3){  ?>
                                            <h5 align="center">REGISTRATION PAYMENT</h5>
                                            <br>
                                            <hr/>
                                            <div class="form-group mb-3 col-md-6">
                                                <label>Enter Registration Pin:</label>
                                                <input type="text" class="form-control"  placeholder="Registration PIN" name="epin" value="<?php if(isset($_SESSION['pin'])){ echo $_SESSION['pin']; } ?>" required>
                                            </div>
                                            <div class="px-2 form-group mb-0 col-md-4">
                                                <label></label>
                                                <input type="hidden" name="sponsor" value="<?php echo $uidx ?>"/>
                                                <input type="hidden" name="upline" value="<?php echo shaToKey($uref) ?>"/>
                                                <button type="submit" class="btn btn-purple btn-block text-uppercase" name="RegisterWithPin" style="width:100%">Register with PIN</button>
                                            </div>
                                        <?php } ?>
                                    </form>

                                </div>
                            <?php } ?>
                        </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>
                <?php  $uidx1 = $covis->idToKey($userid);
                $stagel = $covis->stageCalc($uidx1);
                $lev = $covis->stageLevel($uidx1);
                ?>
        <div class="row">
                <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-info">
              <div class="inner">
                <div class="t-content">
                                <h3><?php echo stageName($covis->stageCalc($uidx1)) ?></h3>

                                <p>Stage <?php echo $stagel ?></p>
                                <span class=" font-90">Level: <?php echo $covis->stageLevel($uidx1) ?></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-12">
            <!-- small box -->
            <div class="small-box bg-success">
              <div class="inner">
               <div class="t-content">
                                 <h3>$<?php echo number_format($covis->referral($uidx1),2) ?></h3>

                                    <p>Referral Bonus</p>
                                    <span class=" font-90">Referrals: <?php echo $covis->referral($uidx1) ?></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-12">
            <!-- small box -->
            <div class="small-box bg-danger">
              <div class="inner">
                <div class="t-content">
                               <h3>$<?php echo number_format($covis->matrixBonus($uidx1),2)  ?></h3>
                                    <p>Matric Bonus</p>
                                    <span class=" font-90">Total Earnings: $<?php echo number_format($covis->referral($uidx1)+$covis->matrixBonus($uidx1),2)  ?>

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


                <!-- <h4>Withdrwal Request</h4> -->

          <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-warning">
              <div class="inner">
                <div  style=" color: white;"class="t-content">
                                <h3>$<?php echo number_format(receivedTransfer($userid),2) ?></h3>
                                
                                    <p>Received Transfer</p>
                                    <span class=" font-90">Funds Transfer: $<?php echo number_format(totalTransfer($userid),2) ?></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>
         

                

         <div class="col-lg-3 col-12">
            <!-- small box -->
            <div class="small-box bg-primary">
              <div class="inner">
                <div class="t-content">
                    <h3>$<?php echo number_format($covis->totalEarnings($uidx1),2)  ?></h3>
                                 <p>Account Balance</p>
                                 <span class=" font-90">Withdrawals: $<?php echo number_format(totalWithdraw($userid),2) ?>
                                </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>

      </div>





                <?php if($uidx == 1){ ?>
                    <div class="row">
                        <div class="table-responsive">
                            <div class="col-md-12">
                                <div class="card ">
                                   <div class="card-header text-white bg-dark">
                                             <h5 style="float: left">Upline Information</h5>
                                    </div>
                                    <div class="card-body">
                                        <?php $sponsor = userName($userid,'sponsor');  ?>
                                        <div class="row">
                                            <div class="col-md-3">
                                                <label for="name"><b>Sponsor:</b> </label>
                                                <h6><?php echo ucwords(snToName($sponsor)).' ('.snToName($sponsor,'user').')' ?></h6>
                                                <hr/>
                                            </div>
                                            <?php for($i=1;$i<=20;$i++){ $a = 'a'.$i;
                                                if(userName($userid,$a) == 0){continue;}
                                                else {
                                                    $upline = userName($userid,$a);
                                                    ?>
                                                    <div class="col-md-3">
                                                        <label for="name"><b>Upline <?php echo $i ?>:</b> </label>
                                                        <h6><?php echo ucwords(snToName($upline)).' ('.snToName($upline,'user').')' ?></h6>
                                                        <hr/>
                                                    </div>
                                                <?php  } } ?>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } ?>
                <div class="row">
                    <?php if($uidx == 1){ ?>
                        <div class="table-responsive">
                            <div class="col-md-12">
                                <div class="card ">
                                    <div class="card-header text-white bg-dark">
                                             <h5 style="float: left">Profile Information</h5>
                                    </div>
                                    
                                        <!--                                <form method="post">-->
                                        <!--                                    <button class="float-xs-right btn btn-success" name="ViewGeneology" value="--><?php //echo userName($uid,'sn') ?><!--">View Geneology Tree</button>-->
                                        <!--                                </form>-->
                                        <br/>
                                        <div class="card-body">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <label for="name">First Name: </label>
                                                <h6><?php echo ucwords(userName($userid,'firstname')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Last Name: </label>
                                                <h6><?php echo ucwords(userName($userid,'lastname')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">User Name: </label>
                                                <h6><?php echo ucwords(userName($userid,'user')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Email: </label>
                                                <h6><?php echo userName($userid,'email') ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Phone Number: </label>
                                                <h6><?php echo userName($userid,'phone') ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Residential Address: </label>
                                                <h6><?php echo ucwords(userName($userid,'address')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Sex: </label>
                                                <h6><?php echo ucwords(userName($userid,'sex')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Date Of Birth: </label>
                                                <h6><?php echo userName($userid,'dob') ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Office Address: </label>
                                                <h6><?php echo ucwords(userName($userid,'officeaddress')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">City: </label>
                                                <h6><?php echo ucwords(userName($userid,'city')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">State: </label>
                                                <h6><?php echo ucwords(userName($userid,'state')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Bank: </label>
                                                <h6><?php echo ucwords(userName($userid,'bank')) ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Account No: </label>
                                                <h6><?php echo userName($userid,'accountno') ?></h6>
                                                <hr/>
                                            </div>
                                            <div class="col-md-6">
                                                <label for="name">Serial Number: </label>
                                                <h6><?php echo userName($userid,'sno') ?></h6>
                                                <hr/>
                                            </div>


                                        </div>
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="float-md-right">
                                                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#editprofile">Edit Profile</button>
                                                </div>

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






                                    </div>

                                </div>
                            </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 style="float: left">Upload Images</h5></div>
                            <div class="card-body">
                            <div class="col-md-6">
                                <div class="box bg-white ">
                                    <div class="box-block">
                                        <div class="row">
                                            <?php $picture1 = (userName($userid,'photo')=='')?'user.png':userName($userid,'photo'); ?>

                                            <img src="images/<?php echo $picture1 ?>" alt="alt.png" class="rounded-circle mr-1" width="180" height="200"/>
                                            <br/><br/>
                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#uploadpicture">Upload New Photo</button>
                                        </div>
                                    </div>
                                </div>


                                <div class="box bg-white ">
                                    <div class="box-block">
                                        <div class="row" align="center">
                                            <h4>SUSPEND MEMBER ACCOUNT</h4><hr><br></div>

                                        <form method="post">


                                            <center>
                                                <?php if(userName($userid,'status')==1){ ?>

                                                    <button type="submit" class="btn btn-danger" value="<?php echo $userid ?>" name="SuspendAccount">SUSPEND ACCOUNT: <?php echo userName($userid) ?></button>
                                                <?php } else{ ?>
                                                    <button type="submit" class="btn btn-info" value="<?php echo $userid ?>" name="UnSuspendAccount">RESTORE ACCOUNT: <?php echo userName($userid) ?></button>

                                                <?php } ?>
                                            </center>
                                        </form>

                                        <br><br>


                                    </div>
                                </div>


                            </div>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>

       

        <?php
        $uid = $userid;
        $image = (userName($uid,'photo')=='')?'user.png':userName($uid,'photo');   ?>
        <form method="post" enctype="multipart/form-data">
            <div class="modal animated bounceInUp small-modal" id="uploadpicture" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span>
                            </button>
                            <h4 class="modal-title" id="mySmallModalLabel">Upload Picture</h4>
                            <?php echo userName($uid) ?>
                        </div>
                        <div class="modal-body">
                            <input type="hidden" name="firstname" value="<?php echo userName($uid,'firstname')  ?>"/>
                            <input type="file" name="photo" id="input-file-now-custom-1" class="dropify" data-default-file="images/<?php echo $image ?>" />
                        </div>
                        <input type="hidden" name="id" value="<?php echo $uid ?>"/>
                        <div class="modal-footer">

                            <button type="submit" class="btn btn-primary" name="UploadPicture">Upload Picture</button>
                            <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form method="post">
            <div class="modal animated bounceInUp small-modal" id="editprofile" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span>
                            </button>
                            <h4 class="modal-title" id="mySmallModalLabel">Edit Profile</h4>
                        </div>
                        <div class="modal-body">
                            <div class="row">
                                <div class="col-md-2">First Name: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="firstname" value="<?php echo userName($uid,'firstname')  ?>" placeholder="First Name"/>
                                </div>
                                <div class="col-md-2">Last Name: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="lastname" value="<?php echo userName($uid,'lastname') ?>" placeholder="Last Name"/>
                                </div>
                                <div class="col-md-2">User Name: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="username" value="<?php echo userName($uid,'user') ?>" placeholder="Last Name"/>
                                </div>
                                <div class="col-md-2">Email: </div>
                                <div class="col-md-10 form-group">
                                    <input type="email" class="form-control" name="email" value="<?php echo userName($uid,'email') ?>" placeholder="Email"/>
                                </div>
                                <div class="col-md-2">Residential Address: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="address" value="<?php echo userName($uid,'address') ?>" placeholder="Residential Address"/>
                                </div>
                                <div class="col-md-2">Phone Number: </div>
                                <div class="col-md-10 form-group">
                                    <input type="number" class="form-control" name="phone" value="<?php echo userName($uid,'phone') ?>" placeholder="Phone Number"/>
                                </div>
                                <div class="col-md-2">Sex: </div>
                                <div class="col-md-10 form-group">
                                    <?php  $selected = (userName($uid,'sex') == 'm')?'selected':''; ?>
                                    <?php  $selected2 = (userName($uid,'sex') == 'f')?'selected':''; ?>
                                    <select name="sex" class="form-control">
                                        <option value="Male" <?php echo $selected ?> >Male</option>
                                        <option value="Female" <?php echo $selected2 ?> >Female</option>
                                    </select>
                                </div>
                                <div class="col-md-2">Date OF Birth: </div>
                                <div class="col-md-10 form-group">
                                    <input type="date" class="form-control" name="dob" value="<?php echo userName($uid,'dob') ?>" placeholder="Date Of Birth"/>
                                </div>
                                <div class="col-md-2">Office Address: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="officeaddress" value="<?php echo userName($uid,'officeaddress') ?>" placeholder="Office Address"/>
                                </div>
                                <div class="col-md-2">City: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="city" value="<?php echo userName($uid,'city') ?>" placeholder="City"/>
                                </div>
                                <div class="col-md-2">State: </div>
                                <div class="col-md-10 form-group">
                                    <select name="state" class="form-control">
                                        <option value="<?php echo userName($uid,'state') ?>" selected><?php echo userName($uid,'state') ?></option>
                                        <option>
                                            Abia</option><option>
                                            Adamawa</option><option>
                                            Akwa</option><option>
                                            Anambra</option><option>
                                            Bauchi</option><option>
                                            Bayelsa</option><option>
                                            Benue</option><option>
                                            Borno</option><option>
                                            Cross River</option><option>
                                            Delta</option><option>
                                            Ebonyi</option><option>
                                            Edo</option><option>
                                            Ekiti</option><option>
                                            Enugu</option><option>
                                            FCT</option><option>
                                            Gombe</option><option>
                                            Imo</option><option>
                                            Jigawa</option><option>
                                            Kaduna</option><option>
                                            Kano</option><option>
                                            Katsina</option><option>
                                            Kebbi</option><option>
                                            Kogi</option><option>
                                            Kwara</option><option>
                                            Lagos</option><option>
                                            Nasarawa</option><option>
                                            Niger</option><option>
                                            Ogun</option><option>
                                            Ondo</option><option>
                                            Osun</option><option>
                                            Oyo</option><option>
                                            Plateau</option><option>
                                            Rivers</option><option>
                                            Sokoto</option><option>
                                            Taraba</option><option>
                                            Yobe</option><option>
                                            Zamfara</option><option>
                                            Non Nigerian</option>
                                    </select>
                                </div>
                                <div class="col-md-2">Bank Name: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="bank" value="<?php echo userName($uid,'bank') ?>" placeholder="Bank Name"/>
                                </div>
                                <div class="col-md-2">Account No: </div>
                                <div class="col-md-10 form-group">
                                    <input type="text" class="form-control" name="accountno" value="<?php echo userName($uid,'accountno') ?>" placeholder="Account Number"/>
                                </div>
                                <input type="hidden" name="id" value="<?php echo $uid ?>"/>
                            </div>
                        </div>
                        <div class="modal-footer">

                            <button type="submit" class="btn btn-primary" name="EditProfile">Edit Profile</button>
                            <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
                                            

                                        </div>
                                                                   
                                
                                </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($stage ==1){ echo $covis->covisTree($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>

?>