<?php
session_start();
include_once ('conn/session.php');
require_once 'conn/controller.php';
if(!isset($_SESSION['acc_no'])){
header("Location: auth_login.php");

exit(); 
}
 
$reg_user = new USER();

$stmt = $reg_user->runQuery("SELECT * FROM account WHERE acc_no=:acc_no");
$stmt->execute(array(":acc_no"=>$_SESSION['acc_no']));
$row = $stmt->fetch(PDO::FETCH_ASSOC);

$email = $row['email'];

$temp = $reg_user->runQuery("SELECT * FROM transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
$temp->execute(array(":acc_no"=>$_SESSION['acc_no']));
$rows = $temp->fetch(PDO::FETCH_ASSOC);

include_once ('counter.php');
?>


 
 
 
 
<html lang="en">

<head>
 <link rel="icon" type="image/png" href="assets/img/favicon.png">
	  <meta name="viewport" content="width=device-width, initial-scale=1"><meta name="theme-color" content="#000000">
	  <meta name="description" content="Manage your banking and business in one place. Open a business bank account in 5 minutes, built to
	  help you succeed. Entrepreneurs ðŸ’œ <?php echo $site_title; ?>">
	  <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
	  <link rel="canonical" href=""><title>Transaction Processing <?php echo $site_title; ?> | Business banking for entrepreneurs</title>
 
</head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>

  <script>
$(document).ready(function(){
$("#myModal").modal({
show:true,
backdrop:'static'
});
});
</script>
 
    <script>
    $(document).ready(function() {
      $('#mybutton').hide().delay(10000).fadeIn(2200);
});
    </script>

 
  
  
<style>
    .bs-example{
    	margin: 20px;
    }
    
    
 
</style>
</head>
<body style="background-image:url(assets/img/bg3.jpg);">
    
    
    
    
    
    
    
    
<div class="bs-example">
   
    
    
    <!-- Modal HTML -->
    <div id="myModal" class="modal fade">
        <div class="modal-dialog" style="width: 345px;">
            <div class="modal-content">
                <div class="modal-header">
                    <center><h4 class="modal-title" style="color:green; font-weight:700; text-align:center;">TRANSFER COMPLETED</h4></center> 
                </div>
                <div class="modal-body">
                    <center><img src='icon/logo-ok-png-2.png' width='100px'  /></center>
               </div>
               
              <center> <p style="padding-left:5px; padding-right:5px;">You have Successfully Transfered <a href="#"><?php echo $row['currency']?><?php echo $rows['amount']?>.00</a>  TO <a href="#"><?php echo $rows['acc_name']?></a></p></center>
   
                          <hr>   
                       <p style="text-align:center; color:red; padding-left:5px; padding-right:5px;">Transaction initiated successfully, it will take 2-3 working days to credit funds in receivers account.
A detail of this transaction has been recorded in your estatement and email. We recommend you contact the receiver of the 
fund to await  1-2 working days.</p>                  
                                        
                <div>
                   
                  <hr>
                         <center><a href="home.php">BACK TO HOME</a></center>
                        <br><br>
                </div>
                
                
            </div> 
        </div>
    </div>
</div>
</body>
</html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
	