Your IP : 3.149.24.49


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

<?php
session_start(); ob_start();
include("lib/connect.inc.php");
include("lib/index.php");

$sql = $db->query("SELECT * FROM pin WHERE tm !=1");
$all = mysqli_num_rows($sql);

    if(array_key_exists('reset', $_POST)){unset($_SESSION['end']); }

    $end = isset($_SESSION['end'])?$_SESSION['end']:100 ;

    if(array_key_exists('prev', $_POST)){$_SESSION['end'] = $end-100; }
    elseif(array_key_exists('next', $_POST)){if(!empty($_POST['page'])){if(((int)($all/100))<($_POST['page']-1)){$report='Specified page does not exist'; $count=1;}else{$_SESSION['end'] = $_POST['page']*100;}}else{$_SESSION['end'] = $end+100;} }

    $end = isset($_SESSION['end'])?$_SESSION['end']:100 ;

    $start = $end-99;
    //$all = 0;
    if($all<=$end){$end = $all;}

    $showing = 'Showing '.$start.' to '.$end.' of '.$all.' Records';

    if($start>1){$prev = TRUE;}else{$prev = FALSE;}
    if($end<$all){$next = TRUE;}else{$next = FALSE;}

?>
<!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>Admin Withdraw</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">

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

<!-- 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>Withdrawal</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">Withdrawal</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <!-- Content Header (Page header) -->
   
<!-- different type of withdrawal -->
<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;"> Pin Purchase Withdrawal </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example3">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='p' ORDER BY created DESC LIMIT $start1, $end1  ") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='p' ORDER BY created DESC LIMIT $start1, $end1");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                                        <form class="mt-3" method="post">
                                            <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                            <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                            <input type="text" name="page" placeholder="Page" class="btn">
                                            <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                            <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                        </form>     

                            </div>
                            


                        </div>
                    </div>
                    
                </div>
            </div>
            
        </div>
        
</div>
<!--end pin purchase withdrwal-->

<!--start of card withdrawal-->
<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;"> Card Withdrawal </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example8">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='Card Withdrawal' ORDER BY created DESC LIMIT 50") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='Card Withdrawal' ORDER BY created DESC  LIMIT 50");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                                <form method="post">
                                    <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                    <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                    <input type="text" name="page" placeholder="Page" class="btn">
                                    <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                    <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                    <input type="text" name="user" placeholder="Username" width="5" class="btn">
                                    <input type="submit" name="SearchUserG" class="btn btn-warning" value="Search User">

                                </form>


                            </div>
                            


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

<!--end of card withdrawal-->
<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;"> Savings Withdrawal </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example4">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='s' ORDER BY created DESC  LIMIT 50") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='s' ORDER BY created DESC  LIMIT 50");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                                 <form method="post">
                                    <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                    <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                    <input type="text" name="page" placeholder="Page" class="btn">
                                    <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                    <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                    <input type="text" name="user" placeholder="Username" width="5" class="btn">
                                    <input type="submit" name="SearchUserG" class="btn btn-warning" value="Search User">

                                </form>


                            </div>
                            


                        </div>
                    </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;">Cash Withdrawal </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example5">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='w' ORDER BY created DESC LIMIT 50") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='w' ORDER BY created DESC  LIMIT 50");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                                 <form method="post">
                                    <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                    <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                    <input type="text" name="page" placeholder="Page" class="btn">
                                    <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                    <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                    <input type="text" name="user" placeholder="Username" width="5" class="btn">
                                    <input type="submit" name="SearchUserG" class="btn btn-warning" value="Search User">

                                </form>

 
                            </div>
                            


                        </div>
                    </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;"> Donation Transfer </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example6">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='d' ORDER BY created DESC LIMIT 50") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='d' ORDER BY created DESC LIMIT 50");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                                <form method="post">
                                    <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                    <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                    <input type="text" name="page" placeholder="Page" class="btn">
                                    <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                    <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                    <input type="text" name="user" placeholder="Username" width="5" class="btn">
                                    <input type="submit" name="SearchUserG" class="btn btn-warning" value="Search User">

                                </form>


                            </div>
                            


                        </div>
                    </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;"> Loan Retrival </h5>
                              <!--<form class="mt-3" method="post">-->
                              <!--      <div class="float-right" style="margin-top: -20px"><table><tr><td><input type="text" name="q" required class="form-control" placeholder="Serach for"></td><td><select required name="filter" class="form-control">-->
                              <!--                          <option value="">Select Option</option>-->
                              <!--                          <option value="firstname">Firstname</option>-->
                              <!--                          <option value="lastname">Lastname</option>-->
                              <!--                          <option value="user">Username</option>-->
                              <!--                          <option value="email">E-mail</option>-->
                              <!--                          <option value="phone">Phone Number</option>-->
                              <!--                      </select></td><td><button type="submit" name="Serach" class="btn btn-primary">Search Item</button></td><td></td></tr></table></div>-->
                              <!--  </form>-->
                        </div>
                      <div class="card-body">
                            <div class="table-responsive">
                            </br>
                                <table class="table table-striped table-bordered dataTable" id="example7">
                                    <thead>
                                    <tr>
                                        <th>S/N</th>
                                        <th>Transaction ID</th>
                                        <th>User Name</th>
                                        <th>Initial Balance</th>
                                        <th>Withdrawal Amount</th>
                                        <th>Remark</th>
                                        <!--  <th>Bank Name</th>
                                         <th>Account Number</th> -->
                                        <th>Approved Date</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $i=$start; $start1=$start-1; $end1=$end-$start+1;
                                    $sql = (isset($_POST['user']) AND !empty($_POST['user'])) ? $db->query("SELECT * FROM withdraw WHERE status='1' AND id='$userid' AND type='lr' ORDER BY created DESC LIMIT 50") : $db->query("SELECT * FROM withdraw WHERE status='1' AND type='lr' ORDER BY created DESC LIMIT  50");

                                    $i = 0;
                                    while($row = $sql->fetch_assoc()){ $i +=1;

                                        ?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $row['tno'] ?></td>
                                            <td><?php echo userName($row['id'])?> (<?php echo userName($row['id'],'user')?>)</td>
                                            <td>$<?php echo $row['inibalance'] ?></td>
                                            <td>$<?php echo $row['amount'] ?></td>
                                            <td><?php echo $covis->withdrawRemark($row['type'])  ?></th>
                                            <!--  <td><?php echo userName($row['id'],'bank') ?></td>
                                            <td><?php echo userName($row['id'],'accountno') ?></td> -->
                                            <td><?php echo date("jS M, Y H:i",strtotime($row['created'])) ?></td>

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

                               <form method="post">
                                    <input type="button" name="next" class="btn btn-info" value="<?php echo $showing; ?>" >

                                    <input type="<?php if($prev == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="prev" class="btn btn-primary" value="Previous">
                                    <input type="text" name="page" placeholder="Page" class="btn">
                                    <input type="<?php if($next == TRUE){ echo 'submit'; }else{echo 'button';} ?>" name="next" class="btn btn-success" value="next">

                                    <input type="submit" name="reset" class="btn btn-warning" value="Reset">
                                    <input type="text" name="user" placeholder="Username" width="5" class="btn">
                                    <input type="submit" name="SearchUserG" class="btn btn-warning" value="Search User">

                                </form>


                            </div>
                            


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




<!-- end -->












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


<!-- 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,
        });
         $('#example3').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
          $('#example4').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
           $('#example5').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
            $('#example6').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
             $('#example7').DataTable({
            "paging": true,
            "lengthChange": true,
            "searching": true,
            "ordering": true,
            "info": true,
            "autoWidth": false,
            "responsive": true,
        });
         $('#example8').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>

?>