<?php
session_start();
include_once ('conn/session.php');
require_once 'conn/controller.php';
if(!isset($_SESSION['acc_no'])){
header("Location: online_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);

 
 
?>
 
 

<html lang="en">

<head>
   <link rel="shortcut icon" href="theme/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-color:#f6f9f9;">
<div class="bs-example">
  
    
    <!-- Modal HTML -->
    <div id="myModal" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" style="color:green; font-weight:700">TRANSFER PROCESSING...</h5> 
                </div>
                <div class="modal-body">
                    <center><img src='icon/funds-loader.gif' width='250px'  /></center>
               </div>
               <form  action="otp_verify.php"  method="POST" />
               
               
 



               
              <center> <p>We are Processing your Transfer to <a href=""> <?php echo $_SESSION['acc_name']; ?></a></p></center>
               
                                            <input id="email" class="form-control"  value="<?php echo $_SESSION['remarks']; ?>" name="remarks" type="hidden" readonly required>
									 
											<input id="email" class="form-control"  value="<?php echo $_SESSION['amount']; ?>" name="amount" type="hidden" readonly required>
									 
               	                        <input id="email" class="form-control"  value="<?php echo $_SESSION['acc_name']; ?>" name="acc_name" type="hidden" readonly required>
									 
											<input id="email" class="form-control"  value="<?php echo $_SESSION['racc_no']; ?>" name="acc_no" type="hidden" readonly required>
									 
											<input id="name" class="form-control" value="<?php echo $_SESSION['bank_name']; ?> "  readonly name="bank_name" type="hidden" required>
										 
										 <input id="name" class="form-control" value=" <?php echo $_SESSION['swift']; ?>" name="swift" type="hidden" readonly required>
										 <input id="name" class="form-control" value="<?php echo $_SESSION['routing']; ?> " name="rounting" type="hidden" readonly required>
									 
										 <input id="name" class="form-control" value="<?php echo $_SESSION['cout']; ?> " name="cout" type="hidden" readonly required>
										 
										 
										 
									    <input type="hidden" class="form-control" name="uname" value="<?php echo $row['email']; ?> "/>
                                        <input id="name" class="form-control" value="NEFT" name="transtype" type="hidden" required>
                                        
                <div>
                     
                    <center><button type="submit" id="mybutton" class="btn btn-danger">Authorize Now >|</button></center>
                </div>
                
                <br><br>
            </div></form>
        </div>
    </div>
</div>
</body>
</html>