File Manager

Path: /home/liffinac1/domains/fxinvestcapital.us/public_html/administrator/

Viewing File: approve.php

<?php
include('auth.php')
?>

<?php
 session_start(); 
 
 require_once('db.php');

?>

<?php
$sqlQuery = "SELECT * FROM  users";
$result = mysqli_query($db, $sqlQuery);
$countrecord = mysqli_num_rows($result);
?>
<!DOCTYPE html>
<html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8" />

  <!-- Set the viewport width to device width for mobile -->
  <meta name="viewport" content="width=device-width" />

  <title><?= $siteName ?> | Welcome Admin</title>

  <link rel="icon" href="<?= htmlspecialchars($siteUrl . str_replace('..', '', $siteIcon)) ?>">

  <!-- Included CSS Files -->
  <link rel="stylesheet" href="stylesheets/foundation.css">
  <link rel="stylesheet" href="stylesheets/app.css">

  <!--[if lt IE 9]>
    <link rel="stylesheet" href="stylesheets/ie.css">
  <![endif]-->

  <script src="javascripts/modernizr.foundation.js"></script>

  <!-- IE Fix for HTML5 Tags -->
  <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->

</head>

<body>
<table style="width:100%;background: rgba(0, 0, 0, 0)">
<tr>
<td><h3><font color="#f39c12" face="verdana,arial,sans-serif"><?= $siteName; ?></font></h3></td>
<td><br /><font color="white"><b>WELCOME TO ADMIN PANEL</b></font></td>
<td><br /><font color="white"><a href="logout"out<a/> &nbsp;&nbsp;</font></td>
</tr>
<tr>
<td><button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" onclick="window.location.href='users.php'"><strong><font color="#f39c12" face="verdana,arial,sans-serif">LIST USERS</font></strong> 
</td>
<td>
    <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" onclick="window.location.href='delete.php'"><strong><font color="#f39c12" face="verdana,arial,sans-serif">DELETE USER</font></strong> 
</td>
<td><button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" onclick="window.location.href='adminlog.php'"><strong><font color="#f39c12" face="verdana,arial,sans-serif">HOME</font></strong> 
</td>
</tr>
</table>
<style>
.login-block {
    width: 320px;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    border-radius: 5px;
    border-top: 5px solid #ff656c;
    margin: 0 auto;
}

.login-block h1 {
    text-align: center;
    color: #000;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
}

.login-block input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: Montserrat;
    padding: 0 20px 0 50px;
    outline: none;
}

.login-block input#username {
    background: #fff url('http://i.imgur.com/u0XmBmv.png') 20px top no-repeat;
    background-size: 16px 80px;
}

.login-block input#username:focus {
    background: #fff url('http://i.imgur.com/u0XmBmv.png') 20px bottom no-repeat;
    background-size: 16px 80px;
}

.login-block input#password {
    background: #fff url('http://i.imgur.com/Qf83FTt.png') 20px top no-repeat;
    background-size: 16px 80px;
}

.login-block input#password:focus {
    background: #fff url('http://i.imgur.com/Qf83FTt.png') 20px bottom no-repeat;
    background-size: 16px 80px;
}

.login-block input:active, .login-block input:focus {
    border: 1px solid #ff656c;
}

.login-block button {
    width: 100%;
    height: 40px;
    background: #ff656c;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #e15960;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    font-family: Montserrat;
    outline: none;
    cursor: pointer;
}

.login-block button:hover {
    background: #ff7b81;
}

</style>
<center>
<font color="white" face="verdana,arial,sans-serif">Quick Delete:<br /></font>
<table width="100%" border="1">
      <tr>
        <td>Full mame</td>
        <td>Username</td>
        <td>Email</td>
        <td>Amount requested</td>
      </tr>
	  
	  <?php
	  for ($i = 0; $i < $countrecord;$i++)
	  {
	  
        $fetch = mysqli_fetch_assoc($result);
	
$varfname = $fetch["fname"];
$varuname= $fetch["uname"];
$varemail= $fetch["email"];
$varpwithdrawal= $fetch["pwithdrawal"];


?>

<tr>
        <td><?php echo $varfname; ?></td>
        <td><?php echo $varuname; ?></td>
        <td><?php echo $varemail; ?></td>
        <td><?php echo $varpwithdrawal; ?></td>
        <td><a href="saves.php?uname=<?php echo $varuname;?>&&status=1">Approve Commission </a>
        <a href="saves.php?uname=<?php echo $varuname;?>&&status=2">Approve Withdraw Fee </a>
        <a href="saves.php?uname=<?php echo $varuname;?>&&status=3">Approve Tax Fee </a>
        </td>
      </tr>
	  
	  <?php
	  }
	  ?>
  </table>
</center>

</body>
</html>