Your IP : 18.216.126.33


Current Path : /home/lentoinv/reloxpropertiesltd.com/
Upload File :
Current File : //home/lentoinv/reloxpropertiesltd.com/managewithdrawal.php

<?php
session_start(); ob_start();
require_once('includes/headerquery.php');
$pro->loggedIn();
if($pro->Admin($uidx)==FALSE){exit; }
?>
<!doctype html>
<html class="no-js" lang="zxx">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Manage Withdrawal</title>
    <meta name="robots" content="noindex, follow" />
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Place favicon.png in the root directory -->
    <link rel="shortcut icon" href="img/favicon.png" type="image/x-icon" />
    <!-- Font Icons css -->
    <link rel="stylesheet" href="css/font-icons.css">
    <!-- plugins css -->
    <link rel="stylesheet" href="css/plugins.css">
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="css/style.css">
    <!-- Responsive css -->
    <link rel="stylesheet" href="css/responsive.css">
        <style type="text/css">
        nav lis{text-transform: uppercase;}
    </style>
</head>

<body>
    <!--[if lte IE 9]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
    <![endif]-->

    <!-- Add your site or application content here -->

<!-- Body main wrapper start -->
<div class="body-wrapper">

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

    <div class="ltn__utilize-overlay"></div>

    <!-- BREADCRUMB AREA START -->
    <div class="ltn__breadcrumb-area text-left bg-overlay-white-30 bg-image p-5 mb-5"  data-bs-bg="img/bg/14.jpg">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ltn__breadcrumb-inner">
                        <h1 class="page-title">Account</h1>
                        <div class="ltn__breadcrumb-list">
                            <ul>
                                <li><a href="index.php"><span class="ltn__secondary-color"><i class="fas fa-home"></i></span> Home</a></li>
                                <li>Manage Withdrawals</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- BREADCRUMB AREA END -->





    <!-- LOGIN AREA START -->
 <div class="liton__wishlist-area pb-70 pt-0 mb-70">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">

<?php if(isset($_GET['order'])){
$sn = $_GET['order'];
if(sqL1('wallet','opt',$sn)>0){ $id=sqLx('wallet','opt',$sn,'id');  if(sqLx('wallet','opt',$sn,'status')<2){
 ?>
 <big><h4>WITHDRAWAL ORDER DETAILS</h4>User: <?= userName($id) ?><br>
 User Name: <?php  echo userName($id) ?><br>
 Account Balance: NGN<?= number_format($pro->wallet($id)-sqLx('wallet','opt',$sn,'cos')+200,2) ?><br><hr>

 Withdrawal Amount: NGN<?= number_format(sqLx('wallet','opt',$sn,'cos'),2) ?><br>
 
Account Name: <?= userName($id,'accname') ?><br>
Bank Bank: <?= userName($id,'bank') ?><br>
Account Number: <?= userName($id,'accountno') ?><br></big><br><br>
<form method="post">
<button type="submit" name="ApproveWithdrawal" value="<?= $sn ?>" class="btn theme-btn-1 btn-effect-1 text-uppercase">APPROVE</button>

<button type="submit" name="ReserseWithdrawal"  value="<?= $sn ?>"  class="btn theme-btn-2 btn-effect-1 text-uppercase">DELETE</button>
</form>
<br><br>

<?php }} } ?>

                    <!-- PRODUCT TAB AREA START -->
                 
<h4> Withdrawal Orders</h4>
                  <div class="table-responsive">
                                                   
                      <table class="table">
                                                        <thead>
                                                            <tr>
                                                                <th>SN</th>
                                                                <th>User</th>
                                                                <th>Phone</th>
                                                                <th>Amount</th>
                                                                <th>Date</th>
                                                               <!--  <th>Remark</th> -->
                                                                <th>Status</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php $e=0;
                                                            $sql = $db->query("SELECT * FROM wallet WHERE type=1 ORDER BY sn DESC LIMIT 200 ");
                                                            while($row = $sql->fetch_assoc()){ $e += 1; $id=$row['id'];
                                                                $st=$row['status']<2 ? 'Pending':'Completed';
                                                           
                                                            ?>
                                                            <tr>
                                                                <td><?= $e ?></td>
                                                                <td><?= userName($id) ?></td>
                                                                <td><?= userName($id,'phone') ?></td>
                                                                <td>NGN<?= number_format(abs($row['cos']),2) ?></td>
                                                                <td><?= $row['created'] ?></td>
                                                               <!--  <td><?= $row['ref'] ?></td> -->
                                                                <td><a href="?order=<?php echo $row['opt'] ?>"><?php echo $st ?></a> </td>
                                                            </tr>

                                                            <?php } ?>

                                                        </tbody>
                                                    </table>

                   </div>
                 </div>

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


    <!-- LOGIN AREA END -->
  <?php include('modals.php') ?>
  <?php include('foot.php') ?>



</div>
<!-- Body main wrapper end -->

    <!-- All JS Plugins -->
    <script src="js/plugins.js"></script>
    <!-- Main JS -->
    <script src="js/main.js"></script>
  
</body>
</html>


?>