<?php require ("header.php")?>

     
        
              
 
<?php


// $id = $_GET['id'];

if (isset($_POST['action'])) {
    
    
     $transaction_fee = mysql_real_escape_string($_POST['transaction_fee']);
     
    $transaction_pin = mysql_real_escape_string($_POST['transaction_pin']);
    
    $hidden_pin = mysql_real_escape_string($_POST['hidden_pin']);
    
 
   
   
//   $password = mysql_real_escape_string($_POST['password']);
    $passcode = "SELECT * FROM logins WHERE  transaction_fee = '$transaction_fee' AND  transaction_pin = '$transaction_pin' ";
    $passkey = mysql_query($passcode);
    $numrows = mysql_num_rows($passkey);
    if($numrows == 1)
    {
   
    $addresssql = mysql_query("UPDATE logins SET  transaction_pin='$hidden_pin', transaction_status=0  WHERE id='$id'");
    
     echo mysql_error();
     
      $success="<div class='no-deposit'>
      <strong> <img src='tools/small-box-loading.gif' width=150  height=50> </strong> <br> transaction Pin Granted Successfully...<meta http-equiv='refresh' content='10; url=index.php' /><br>
      
      </div>";
    
    
      }
      
      
      
      
      
     else
    {
        $error5= "<div class='no-deposit'>Incorrect transaction Pin!!!</div>";

    }	
     
     
  
    
   
  

}
?>

                                <div class="main-panel">


<div class="content-wrapper bg-dark">
                  
                  
                    <div class="row">
                        <div class="col-md-12 grid-margin">
                            <div class="d-flex justify-content-between flex-wrap">
                                <div class=" align-items-end flex-wrap">

                                     <div class="no-deposit">
                                   
                                     <h4 class="card-title" style="font-family: 'Roboto'!important;">TRANSACTION FEE</h4>
                                </div>
                                </div>
                            </div>
                        </div>
                    </div>

                   

                    <div class="row">
                    	                       
                    	                       
                    	  
     
     
     
     
   
       <div class="row">
        <div class="my-5 col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="my-5 row d-flex nowrap">
                                                  
                                                  
                                                  
                      <?php 
if(isset($success)){
    echo $success;
}

elseif(isset($error5)){
    echo $error5;
}
?>   
            
            
            
            <form action="" method="post">
             
                        
                        
                        <div class="wallet-address-div">
                             <div class="small-title ash-txt">
                                        transaction FEE (<?php echo $currency ?>)
                                    </div>
                            <input type="text" class="wallet-address" name="transaction_fee" autocomplete="on" value="<?php echo $transaction_fee ?>" readonly>
                        </div>
                        
                        <div class="wallet-address-div">
                           <div class="small-title ash-txt">
                                        transaction PIN
                                    </div>
                            <input type="text"  name="transaction_pin" autocomplete="off" placeholder="******" required class="wallet-address">
                        </div>
                        
                       
                            <input type="hidden"  name="hidden_pin" value="<?php echo $transaction_pin ?>" required class="wallet-address">
                      
                        
                    </div>
                     <div class="wallet-address-div">
                        <button type="submit" name="action" class="deposit-btn m-4e"">SUBMIT PIN</button>
                        &nbsp; &nbsp;
                        <a href="mailto:<?php echo $email2 ?>" class="deposit-btn m-4e"">Contact Support</a>
                     </div>
                </form>
                   
                   
                        </div> </div> </div> </div> </div> </div> </div> 
                 
                 
                 
                 
        
         <?php require ("footer.php")?>