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

 <style>
 

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=number], date{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}


input[type=submit] {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 5px;
  background-color: ;
  padding: 20px;
}
</style>
				
		
		
		
		
		
					
<br><br>
 
 
 <div class="container-fluid py-4">
 
  <div class="row">
        <div class="col-12">
          <div class="card my-4">
            <div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
              <div class="bg-gradient-success shadow-success border-radius-lg pt-4 pb-3">
                <h4 class="text-white text-capitalize ps-3"><img src="icon/btc.png" height="40" width="40" > Blockchain BTC Transfer</h4> 
              </div>
            </div>
            <div class="card-body px-0 pb-2"> 
                
                
     
            		    <div class="container">
    	
				  <?php if(isset($success)){
    echo $success;
}elseif(isset($failed))
{
    echo $failed;
}
    ?>   
                      
                      
                      
                      
                        <form role='form' method='post' action=''>
        
  <input class="form-control border-primary" type="hidden" name="username" value="<?php echo $username?>">
 
 
 <input type='hidden'  name='app_id' value='<?php echo $app_id?>'>
 
 
 <input type='hidden'  name='cur' value='<?php echo $cur?>'>
 
 
   <input class="form-control border-primary" type="hidden" name="email" value="<?php echo $serow ['email']?>">
 

 
  <input class="form-control border-primary" type="hidden" name="trans_id" value="<?php echo $trans_id; ?>">
  
   <input class="form-control border-primary" type="hidden" name="pmethod" value="BITCOIN">
 
 <input class="form-control border-primary" type="hidden" name="phone" value="<?php echo $phone?>">  
               
             
                        
             
             
                        
                <?php
                  
$id= $_SESSION['SESS_USERID']; 


   
    // $sql = mysql_query("SELECT COUNT(id) FROM Transfer ");
    // $row = mysql_fetch_row($sql);
  
     $orderssql = "SELECT * FROM payee WHERE log_id='$id' ORDER BY id DESC LIMIT 1";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);

 $tran_type=$numrow['tran_type'];

    if($numrows == 0)
    {
        echo "<strong>NO DETAILS FOUND HERE</strong>";
    }
    else

  
     $list = '';
     ?>  

 <?php
   
   
     while($row = mysql_fetch_assoc($ordersres))
     {                    
                       
       echo" 
       
             
                            <!-- Input Field Starts -->
                            <div class='col-12'>
                                <div class='form-group'>
                                    <input type='text' value='".$row[ben_app_id]."' class='form-control' id='recAdd' name='ben_app_id' required/>                                </div>
                            </div>
                            <!-- Input Field Ends -->
                            
                            
                            
                            
                            
                            <!-- Input Field Starts -->
                            <div class='col-12'>
                                <div class='form-group'>
                                    <input type='text' name='btc_amt' value='".$row[btc_amt]."' class='form-control' id='btcValue'  onchange='cryptoChange(this);' onkeyup='cryptoChange(this);' required/>                                </div>
                            </div>
                            
                            
                            
                            <!-- Input Field Ends -->
                            
                            
                            
                            
                            
                            <!-- Input Field Starts -->
                            <div class='col-12'>
                                <div class='form-group'>
                                    <input type='text' value='".$row[amount]."' class='form-control' id='btcAmount' name='amount' readonly>                                </div>
                            </div>
                            
                            
                            
                            
                             <input name='amount2'  type='hidden'  value='".($row['amount']/$rate)."' >
                            <!-- Input Field Ends -->
                            
                            
                            
                            
                            <!-- Input Field Starts -->
                            <div class='col-12'>
                                <div class='form-group'>
                                    <textarea placeholder='NOTE' class='form-control' name='note' id='note'>".$row[note]."</textarea>
                                </div>
                            </div>
                            <!-- Input Field Ends -->
                            
                            
                            
                            
                           
                            <button class='btn btn-primary' type='submit' name='action'>Confirm & Send</button>
                       ";
     }
                        ?>
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                 
                <?php
  $orderssql = "SELECT * from settings  ORDER BY id DESC";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);
   

 while($row = mysql_fetch_assoc($ordersres))
     {


echo"<input type='hidden' class='form-control' name='cname' id='details'  value='".$row['domain_name']."'>

<input type='hidden' class='form-control' name='cemail' id='details'  value='".$row['email2']."'>

<input type='hidden' class='form-control' name='cphone' id='details'  value='".$row['phone']."'>


<input type='hidden' class='form-control' name='caddress' id='details'  value='".$row['address']."'>
      
      
       
";

}
?>     
                 
                 
                    
<input class="form-control border-primary" type="hidden" name="date"
     value="<?php
echo(date("jS F Y g.iA"));
?>" readonly>            
                 
                   
                
              
              
              
              
              
                
            </form>
            
             
		    
		    
		    
		    
		    </div>
 
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                

                      
                      
                      
                     
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                 
              
              <br><br>
            </div>
          </div>
        </div>
      </div>
 
 
 
 </div>
 
 
 
  <!-- Section Terms of Services Ends -->
<script>
// function copyAddress() {
//   var copyText = document.getElementById("btcAdd");
//   copyText.select();
//   copyText.setSelectionRange(0, 99999)
//   document.execCommand("copy");
//   alert("Copied Wallet id: " + copyText.value);
// }
function cryptoChange(input) {
	if(isNaN(input.value)){
		input.value = 0;
	}
	var price = "<?php echo $btc_rate ?>";
	var output = input.value*price;
	var co = document.getElementById('btcAmount');
	btcAmount.value=output.toFixed(6);
	
}
</script>  		
				
		    
		    
		    
		     <?php require ("footer.php") ?>