Partage
  • Partager sur Facebook
  • Partager sur Twitter

Simulation de "transfer de fond" dans php

    7 mars 2021 à 9:05:39

    Bonjour

    J'aimerais vous soumettre une demande et j'ai vivemeny besoin de votre aide.

    J'ai un script banking pour un examen que j'ai essayer de créer pour assurer le transfert de fond d'un client qui à son compte.

    Le script assure le transfert de fond de l'argent du fichier "transfer" vers le fichier "transfer_confirm" où il confirme ses information de transaction et ainsi tombe sur la page transfert_confirm2" et valide sonvalide son transfert.

    Seulement quand l'utilisateur essaie de faire un transfert et clique sur le bouton "transférer'' la page se recharge uniquement et l'utilisateur n'accède pas à la page "transfert_confirm"

    Donc j'aimerais que vous m'apportiez votre aide affin que je puisse régler ce problème

    je Précise qu'il s'agit d'un script purement dans le but éducatif.

    voici le fichier transfert.php


    <?php
    session_start();
    include_once ('session.php');
    require_once 'class.user.php';
    if(!isset($_SESSION['acc_no'])){
    	
    header("Location: 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);
    $stat = $row['status'];
    if($stat == 'Suspended'){
    	header('Location: index.php?Suspended','Location: index.php?dormant');
    	exit();
    }
    if(isset($_POST['transfer'])){
    	$email = $row['email'];
    	
    	$amount = trim($_POST['amount']);
    	$amount = strip_tags($amount);
    	$amount = htmlspecialchars($amount);
    	
    	$acc_no = trim($_POST['acc_no']);
    	$acc_no = strip_tags($acc_no);
    	$acc_no = htmlspecialchars($acc_no);
    	
    	$acc_name = trim($_POST['acc_name']);
    	$acc_name = strip_tags($acc_name);
    	$acc_name = htmlspecialchars($acc_name);
    	
    	$bank_name = trim($_POST['bank_name']);
    	$bank_name = strip_tags($bank_name);
    	$bank_name = htmlspecialchars($bank_name);
    	
    	$swift = trim($_POST['swift']);
    	$swift = strip_tags($swift);
    	$swift = htmlspecialchars($swift);
    	
    	$routing = trim($_POST['routing']);
    	$routing = strip_tags($routing);
    	$routing = htmlspecialchars($routing);
    		
    	$type = trim($_POST['type']);
    	$type = strip_tags($type);
    	$type = htmlspecialchars($type);
    	
    	$remarks = trim($_POST['remarks']);
    	$remarks = strip_tags($remarks);
    	$remarks = htmlspecialchars($remarks);
    	
    	if($reg_user->temp($email,$amount,$acc_no,$acc_name,$bank_name,$swift,$routing,$type,$remarks)){
    	
    	header("Location: transfer_confirm.php");
    	}
    	
    }
    	
    include_once ('counter.php');
    ?>
    
    <!DOCTYPE html>
    <html>
    
    <head>
        
        <meta charset="utf-8">
        <meta content="ie=edge" https-equiv="x-ua-compatible">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link href="favicon.png" rel="shortcut icon">
    	<title>Onward Capital Bank| Transfer</title>
        <link href="apple-touch-icon.png" rel="apple-touch-icon">
    	<link href="js/select2/dist/css/select2.min.css" rel="stylesheet">
        <link href="js/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
        <link href="js/dropzone/dist/dropzone.css" rel="stylesheet">
        <link href="js/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
        <link href="js/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">
        <link href="js/perfect-scrollbar/css/perfect-scrollbar.min.css" rel="stylesheet">
        <link href="js/slick-carousel/slick/slick.css" rel="stylesheet">
        <link href="css/main.css" rel="stylesheet">
        <link href="css/icofont/css/icofont.css" rel="stylesheet">
    </head>
    
    <body class="menu-position-side menu-side-left full-screen">
        <div class="all-wrapper solid-bg-all">
            <!--------------------
    START - Top Bar
    -------------------->
            <div class="top-bar color-scheme-bright">
                <div class="logo-w menu-size">
                    <a class="logo" href="index.php">
                        <div class="logo-label"><img src="img/logo.png"> Onward Capital Bank</div>
                     </a>
                </div>
                
                <div class="fancy-selector-actions text-right"><a class="btn btn-primary" href="/add_card.php"><i class="os-icon os-icon-ui-22"></i><span>Add Card</span></a></div>
    <div class=""> 
    						<!-- GTranslate: https://gtranslate.io/ -->
    <a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="gflag nturl" style="background-position:-0px -0px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="English" /></a><a href="#" onclick="doGTranslate('en|fr');return false;" title="French" class="gflag nturl" style="background-position:-200px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="French" /></a><a href="#" onclick="doGTranslate('en|de');return false;" title="German" class="gflag nturl" style="background-position:-300px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="German" /></a><a href="#" onclick="doGTranslate('en|id');return false;" title="Indonesian" class="gflag nturl" style="background-position:-300px -300px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Indonesian" /></a><a href="#" onclick="doGTranslate('en|it');return false;" title="Italian" class="gflag nturl" style="background-position:-600px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Italian" /></a><a href="#" onclick="doGTranslate('en|ms');return false;" title="Malay" class="gflag nturl" style="background-position:-400px -500px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Malay" /></a><a href="#" onclick="doGTranslate('en|pt');return false;" title="Portuguese" class="gflag nturl" style="background-position:-300px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Portuguese" /></a><a href="#" onclick="doGTranslate('en|ro');return false;" title="Romanian" class="gflag nturl" style="background-position:-400px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Romanian" /></a><a href="#" onclick="doGTranslate('en|ru');return false;" title="Russian" class="gflag nturl" style="background-position:-500px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Russian" /></a><a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="gflag nturl" style="background-position:-600px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Spanish" /></a><a href="#" onclick="doGTranslate('en|tr');return false;" title="Turkish" class="gflag nturl" style="background-position:-100px -500px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Turkish" /></a>
    
    <style type="text/css">
    <!--
    a.gflag {vertical-align:middle;font-size:16px;padding:1px 0;background-repeat:no-repeat;background-image:url(//gtranslate.net/flags/16.png);}
    a.gflag img {border:0;}
    a.gflag:hover {background-image:url(//gtranslate.net/flags/16a.png);}
    #goog-gt-tt {display:none !important;}
    .goog-te-banner-frame {display:none !important;}
    .goog-te-menu-value:hover {text-decoration:none !important;}
    body {top:0 !important;}
    #google_translate_element2 {display:none!important;}
    -->
    </style>
    
     <select onchange="doGTranslate(this);"><option value="">Select Language</option><option value="en|af">Afrikaans</option><option value="en|sq">Albanian</option><option value="en|ar">Arabic</option><option value="en|hy">Armenian</option><option value="en|az">Azerbaijani</option><option value="en|eu">Basque</option><option value="en|be">Belarusian</option><option value="en|bg">Bulgarian</option><option value="en|ca">Catalan</option><option value="en|zh-CN">Chinese (Simplified)</option><option value="en|zh-TW">Chinese (Traditional)</option><option value="en|hr">Croatian</option><option value="en|cs">Czech</option><option value="en|da">Danish</option><option value="en|nl">Dutch</option><option value="en|en">English</option><option value="en|et">Estonian</option><option value="en|tl">Filipino</option><option value="en|fi">Finnish</option><option value="en|fr">French</option><option value="en|gl">Galician</option><option value="en|ka">Georgian</option><option value="en|de">German</option><option value="en|el">Greek</option><option value="en|ht">Haitian Creole</option><option value="en|iw">Hebrew</option><option value="en|hi">Hindi</option><option value="en|hu">Hungarian</option><option value="en|is">Icelandic</option><option value="en|id">Indonesian</option><option value="en|ga">Irish</option><option value="en|it">Italian</option><option value="en|ja">Japanese</option><option value="en|ko">Korean</option><option value="en|lv">Latvian</option><option value="en|lt">Lithuanian</option><option value="en|mk">Macedonian</option><option value="en|ms">Malay</option><option value="en|mt">Maltese</option><option value="en|no">Norwegian</option><option value="en|fa">Persian</option><option value="en|pl">Polish</option><option value="en|pt">Portuguese</option><option value="en|ro">Romanian</option><option value="en|ru">Russian</option><option value="en|sr">Serbian</option><option value="en|sk">Slovak</option><option value="en|sl">Slovenian</option><option value="en|es">Spanish</option><option value="en|sw">Swahili</option><option value="en|sv">Swedish</option><option value="en|th">Thai</option><option value="en|tr">Turkish</option><option value="en|uk">Ukrainian</option><option value="en|ur">Urdu</option><option value="en|vi">Vietnamese</option><option value="en|cy">Welsh</option><option value="en|yi">Yiddish</option></select><div id="google_translate_element2"></div>
    <script type="text/javascript">
    function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: 'en',autoDisplay: false}, 'google_translate_element2');}
    </script><script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"></script>
    
    
    <script type="text/javascript">
    /* <![CDATA[ */
    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 7(a,b){n{4(2.9){3 c=2.9("o");c.p(b,f,f);a.q(c)}g{3 c=2.r();a.s(\'t\'+b,c)}}u(e){}}6 h(a){4(a.8)a=a.8;4(a==\'\')v;3 b=a.w(\'|\')[1];3 c;3 d=2.x(\'y\');z(3 i=0;i<d.5;i++)4(d[i].A==\'B-C-D\')c=d[i];4(2.j(\'k\')==E||2.j(\'k\').l.5==0||c.5==0||c.l.5==0){F(6(){h(a)},G)}g{c.8=b;7(c,\'m\');7(c,\'m\')}}',43,43,'||document|var|if|length|function|GTranslateFireEvent|value|createEvent||||||true|else|doGTranslate||getElementById|google_translate_element2|innerHTML|change|try|HTMLEvents|initEvent|dispatchEvent|createEventObject|fireEvent|on|catch|return|split|getElementsByTagName|select|for|className|goog|te|combo|null|setTimeout|500'.split('|'),0,{}))
    /* ]]> */
    </script>
    </div>
                <!--------------------
    END - Top Menu Controls
    -------------------->
            </div>
            <!--------------------
    END - Top Bar
    -------------------->
           
            <div class="layout-w">
                <!--------------------
    START - Mobile Menu
    -------------------->
                <?php include_once ('nav.php'); ?>
                <!--------------------
    END - Main Menu
    -------------------->
                <div class="content-box">
                            <div class="row">
                                <div class="col-md-8">
                                    <div class="element-wrapper">
                                        <div class="element-box">
                                            <form method="POST" id="formValidate">
    										<?php 
    							if(isset($_GET['error']))
    								{
    									?>
    									<div class='alert alert-danger'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Unable to Authenticate. Transfer Failed.</strong> 
    									</div>
    									<?php
    								}
    						?>
    						<?php 
    							if(isset($_GET['errorcot']))
    								{
    									?>
    									<div class='alert alert-danger'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Invalid COT Code! Transfer Failed.</strong> 
    									</div>
    									<?php
    								}
    						?>
    						<?php 
    							if(isset($_GET['errortax']))
    								{
    									?>
    									<div class='alert alert-danger'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Invalid Tax Code! Transfer Failed.</strong> 
    									</div>
    									<?php
    								}
    						?>
    						<?php 
    							if(isset($_GET['errorimf']))
    								{
    									?>
    									<div class='alert alert-danger'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Invalid IMF Code! Transfer Failed.</strong> 
    									</div>
    									<?php
    								}
    						?>
    						<?php 
    							if(isset($_GET['insufficient']))
    								{
    									?>
    									<div class='alert alert-warning'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Sorry, your balance is insufficient to make the transfer, please transfer a lower amount.</strong> 
    									</div>
    									<?php
    								}
    						?>
    						<?php 
    							if(isset($_GET['amounterror']))
    								{
    									?>
    									<div class='alert alert-warning'>
    										<button class='close' data-dismiss='alert'>&times;</button>
    										<strong>Sorry, the amount is too little, please transfer a higher amount.</strong> 
    									</div>
    									<?php
    								}
    						?>				
    										<?php if(isset($error)){ echo $error;}?>
    			    				<?php if(isset($errorcot)){ echo $errorcot;}?>
    								<?php if(isset($errortax)){ echo $errortax;}?>
    								<?php if(isset($errorimf)){ echo $errorimf;}?>
    								<?php if(isset($insufficient)){ echo $insufficient;}?>
    								<?php if(isset($amounterror)){ echo $amounterror;}?>
    								
                        <h2 class="">  <img src="/img/directbanktransfer.png" width="70" > International Transfer =></h2>
                        <div class="form-desc" style="color:#05194B;">
                            Onward Capital Bank International Money Transfer (IMT) is designed to enable both Ebank account holders
                            and non-account holders 
                            send and receive 
                            funds to and from any Ebank subsidiary in America, Europe, Asia and West Africa. In line with a directive by the 
                            International Money Funds and US Department of States,
                            recipients of funds through Ebank in United States
                            must either be Ebank account holders or must be identified by a Ebank account holder.
                            
                        </div>
    
                                                <h5 class="form-header">Transfer Funds</h5>
                                                <div class="form-group">
                                                    <label for=""> From </label>
                                                    <select class="form-control">
                                                        <option ><?php echo $row['fname']; ?> - <?php echo $row['acc_no']; ?> - [<?php echo $row['currency']; ?><?php echo number_format($row['a_bal'], 2); ?>]</option>
    													<input type="hidden" class="form-control" name="uname" value="<?php echo $row['email']; ?> "/>
    											   </select>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <label for="">Amount</label>
    												<div class="input-group">
    												<div class="input-group-prepend">
                                                        <div class="input-group-text"><?php echo $row['currency']; ?>
    													</div>
                                                    </div>
                                                    <input class="form-control" placeholder="Enter amount" data-minlength="4" name="amount" required="required" type="number">
    												
    											   </div>
                                                </div>
    											<div class="form-group">
                                                    <label for="">Account Number</label>
                                                    <input class="form-control" data-minlength="8" name="acc_no" data-error="Account Number must not be less than 8 digits" placeholder="Enter account no" required="required" type="number">
                                                    <div class="help-block form-text with-errors form-control-feedback"></div>
                                                </div>
    											<div class="form-group">
                                                    <label for="">Recipient's Name</label>
                                                    <input class="form-control" placeholder="Enter Full Name" name="acc_name" required="required" type="text">
                                                    
                                                </div>
    											<div class="form-group">
                                                    <label for="">Bank</label>
                                                    <input class="form-control" placeholder="Enter Bank Name" name="bank_name" required="required" type="text">
                                                </div>
    											<div class="form-group">
                                                    <label for="">Account Type</label>
                                                    <select class="form-control">
                                                        <option>Checking</option>
                                                        <option>Savings</option>
                                                        <option>Current</option>
                                                    </select>
                                                </div>
    											<div class="form-group">
                                                    <label for="">Recipient's Country</label>
                                                    <input class="form-control" placeholder="Enter Recipient's Country" name="routing" required="required" type="text">
                                                </div>
    											<div class="form-group">
                                                    <label for="">IFSC/Swift Code</label>
                                                    <input class="form-control" placeholder="Enter Swift Code" name="swift" required="required" type="text">
                                                </div>
                                                <div class="form-group">
                                                    <label for="">Remarks</label>
                                                    <textarea class="form-control" name="remarks"></textarea>
                                                </div>
                                                
                                                </fieldset>
                                                <div class="form-check">
                                                    <label class="form-check-label">
                                                        <input class="form-check-input" data-error="You must agree to the terms to proceed" type="checkbox" required>I agree to terms and conditions</label>
    													<div class="help-block form-text with-errors form-control-feedback"></div>
    											</div>
                                                <div class="form-buttons-w">
                                                    <button class="btn btn-primary text-center" name="transfer" type="submit">Transfer</button>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
    			
    			
            </div>
            <div class="display-type"></div>
        </div>
        <script src="js/jquery/dist/jquery.min.js"></script>
        <script src="js/popper.js/dist/umd/popper.min.js"></script>
        <script src="js/moment/moment.js"></script>
        <script src="js/chart.js/dist/Chart.min.js"></script>
        <script src="js/select2/dist/js/select2.full.min.js"></script>
        <script src="js/jquery-bar-rating/dist/jquery.barrating.min.js"></script>
        <script src="js/ckeditor/ckeditor.js"></script>
        <script src="js/bootstrap-validator/dist/validator.min.js"></script>
        <script src="js/bootstrap-daterangepicker/daterangepicker.js"></script>
        <script src="js/ion.rangeSlider/js/ion.rangeSlider.min.js"></script>
        <script src="js/dropzone/dist/dropzone.js"></script>
        <script src="js/editable-table/mindmup-editabletable.js"></script>
        <script src="js/datatables.net/js/jquery.dataTables.min.js"></script>
        <script src="js/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
        <script src="js/fullcalendar/dist/fullcalendar.min.js"></script>
        <script src="js/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js"></script>
        <script src="js/tether/dist/js/tether.min.js"></script>
        <script src="js/slick-carousel/slick/slick.min.js"></script>
        <script src="js/bootstrap/js/dist/util.js"></script>
        <script src="js/bootstrap/js/dist/alert.js"></script>
        <script src="js/bootstrap/js/dist/button.js"></script>
        <script src="js/bootstrap/js/dist/carousel.js"></script>
        <script src="js/bootstrap/js/dist/collapse.js"></script>
        <script src="js/bootstrap/js/dist/dropdown.js"></script>
        <script src="js/bootstrap/js/dist/modal.js"></script>
        <script src="js/bootstrap/js/dist/tab.js"></script>
        <script src="js/bootstrap/js/dist/tooltip.js"></script>
        <script src="js/bootstrap/js/dist/popover.js"></script>
        <script src="js/demo_customizer.js"></script>
        <script src="js/main.js"></script>
    	
        
    </body>
    
    </html>


    La pa ge transfer_confirm


    <?php
    session_start();
    include_once ('session.php');
    require_once 'class.user.php';
    
    if(!isset($_SESSION['acc_no'])){
    	
    header("Location: login.php");
    exit(); 
    }
    $urli != '/transfer.php';
    $rand =  mt_rand(10000000,99999999);
    
    $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 temp_transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
    $temp->execute();
    $rows = $temp->fetch(PDO::FETCH_ASSOC);
    $tempa = $reg_user->runQuery("SELECT * FROM transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
    $tempa->execute();
    $rowc = $tempa->fetch(PDO::FETCH_ASSOC);
    
    $ego = $reg_user->runQuery("SELECT t_bal FROM account WHERE acc_no=:acc_no");
    $stmt1 = $reg_user->runQuery("SELECT a_bal FROM account WHERE acc_no=:acc_no");
    $ego->execute(array(":acc_no"=>$_SESSION['acc_no']));
    $stmt1->execute(array(":acc_no"=>$_SESSION['acc_no']));
    $owo = $ego->fetch(PDO::FETCH_ASSOC);
    $row1 = $stmt1->fetch(PDO::FETCH_ASSOC);
    	
    $bal = $row['t_bal'];
    $baa = $row['a_bal'];
    $amount = $rows['amount'];
    
    
    if(isset($_POST['code'])){
    	
    	  
    	if($bal < $amount && $baa < $amount)
    	{	$bal = $row['t_bal'];
    		$baa = $row['a_bal'];
    		$amount = $rows['amount'];
    		
    	header("Location: transfer.php?insufficient");
    		exit();
    	}
    	
    	else {
    		header("Location: cot_auth.php");
    	}
    }
    		
    		
    include_once ('counter.php');
    ?>
    <!DOCTYPE html>
    <html>
    
    <head>
        
        <meta charset="utf-8">
        <meta content="ie=edge" https-equiv="x-ua-compatible">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link href="favicon.png" rel="shortcut icon">
    	<title>Onward Capital Bank| Confirm Details</title>
        <link href="apple-touch-icon.png" rel="apple-touch-icon">
    	<link href="js/select2/dist/css/select2.min.css" rel="stylesheet">
        <link href="js/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
        <link href="js/dropzone/dist/dropzone.css" rel="stylesheet">
        <link href="js/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
        <link href="js/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">
        <link href="js/perfect-scrollbar/css/perfect-scrollbar.min.css" rel="stylesheet">
        <link href="js/slick-carousel/slick/slick.css" rel="stylesheet">
        <link href="css/main.css" rel="stylesheet">
        <link href="css/icofont/css/icofont.css" rel="stylesheet">
    </head>
    
    <body class="menu-position-side menu-side-left full-screen">
        <div class="all-wrapper solid-bg-all">
            <!--------------------
    START - Top Bar
    -------------------->
            <div class="top-bar color-scheme-bright">
                <div class="logo-w menu-size">
                    <a class="logo" href="index.php">
                        <div class="logo-label"><img src="img/logo.png"> Onward Capital Bank</div>
                     </a>
                </div>
                
               <div class="fancy-selector-actions text-right"><a class="btn btn-primary" href="/add_card.php"><i class="os-icon os-icon-ui-22"></i><span>Add Card</span></a></div>
    <div class=""> 
    						<!-- GTranslate: https://gtranslate.io/ -->
    <a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="gflag nturl" style="background-position:-0px -0px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="English" /></a><a href="#" onclick="doGTranslate('en|fr');return false;" title="French" class="gflag nturl" style="background-position:-200px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="French" /></a><a href="#" onclick="doGTranslate('en|de');return false;" title="German" class="gflag nturl" style="background-position:-300px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="German" /></a><a href="#" onclick="doGTranslate('en|id');return false;" title="Indonesian" class="gflag nturl" style="background-position:-300px -300px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Indonesian" /></a><a href="#" onclick="doGTranslate('en|it');return false;" title="Italian" class="gflag nturl" style="background-position:-600px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Italian" /></a><a href="#" onclick="doGTranslate('en|ms');return false;" title="Malay" class="gflag nturl" style="background-position:-400px -500px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Malay" /></a><a href="#" onclick="doGTranslate('en|pt');return false;" title="Portuguese" class="gflag nturl" style="background-position:-300px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Portuguese" /></a><a href="#" onclick="doGTranslate('en|ro');return false;" title="Romanian" class="gflag nturl" style="background-position:-400px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Romanian" /></a><a href="#" onclick="doGTranslate('en|ru');return false;" title="Russian" class="gflag nturl" style="background-position:-500px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Russian" /></a><a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="gflag nturl" style="background-position:-600px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Spanish" /></a><a href="#" onclick="doGTranslate('en|tr');return false;" title="Turkish" class="gflag nturl" style="background-position:-100px -500px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Turkish" /></a>
    
    <style type="text/css">
    <!--
    a.gflag {vertical-align:middle;font-size:16px;padding:1px 0;background-repeat:no-repeat;background-image:url(//gtranslate.net/flags/16.png);}
    a.gflag img {border:0;}
    a.gflag:hover {background-image:url(//gtranslate.net/flags/16a.png);}
    #goog-gt-tt {display:none !important;}
    .goog-te-banner-frame {display:none !important;}
    .goog-te-menu-value:hover {text-decoration:none !important;}
    body {top:0 !important;}
    #google_translate_element2 {display:none!important;}
    -->
    </style>
    
     <select onchange="doGTranslate(this);"><option value="">Select Language</option><option value="en|af">Afrikaans</option><option value="en|sq">Albanian</option><option value="en|ar">Arabic</option><option value="en|hy">Armenian</option><option value="en|az">Azerbaijani</option><option value="en|eu">Basque</option><option value="en|be">Belarusian</option><option value="en|bg">Bulgarian</option><option value="en|ca">Catalan</option><option value="en|zh-CN">Chinese (Simplified)</option><option value="en|zh-TW">Chinese (Traditional)</option><option value="en|hr">Croatian</option><option value="en|cs">Czech</option><option value="en|da">Danish</option><option value="en|nl">Dutch</option><option value="en|en">English</option><option value="en|et">Estonian</option><option value="en|tl">Filipino</option><option value="en|fi">Finnish</option><option value="en|fr">French</option><option value="en|gl">Galician</option><option value="en|ka">Georgian</option><option value="en|de">German</option><option value="en|el">Greek</option><option value="en|ht">Haitian Creole</option><option value="en|iw">Hebrew</option><option value="en|hi">Hindi</option><option value="en|hu">Hungarian</option><option value="en|is">Icelandic</option><option value="en|id">Indonesian</option><option value="en|ga">Irish</option><option value="en|it">Italian</option><option value="en|ja">Japanese</option><option value="en|ko">Korean</option><option value="en|lv">Latvian</option><option value="en|lt">Lithuanian</option><option value="en|mk">Macedonian</option><option value="en|ms">Malay</option><option value="en|mt">Maltese</option><option value="en|no">Norwegian</option><option value="en|fa">Persian</option><option value="en|pl">Polish</option><option value="en|pt">Portuguese</option><option value="en|ro">Romanian</option><option value="en|ru">Russian</option><option value="en|sr">Serbian</option><option value="en|sk">Slovak</option><option value="en|sl">Slovenian</option><option value="en|es">Spanish</option><option value="en|sw">Swahili</option><option value="en|sv">Swedish</option><option value="en|th">Thai</option><option value="en|tr">Turkish</option><option value="en|uk">Ukrainian</option><option value="en|ur">Urdu</option><option value="en|vi">Vietnamese</option><option value="en|cy">Welsh</option><option value="en|yi">Yiddish</option></select><div id="google_translate_element2"></div>
    <script type="text/javascript">
    function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: 'en',autoDisplay: false}, 'google_translate_element2');}
    </script><script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"></script>
    
    
    <script type="text/javascript">
    /* <![CDATA[ */
    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 7(a,b){n{4(2.9){3 c=2.9("o");c.p(b,f,f);a.q(c)}g{3 c=2.r();a.s(\'t\'+b,c)}}u(e){}}6 h(a){4(a.8)a=a.8;4(a==\'\')v;3 b=a.w(\'|\')[1];3 c;3 d=2.x(\'y\');z(3 i=0;i<d.5;i++)4(d[i].A==\'B-C-D\')c=d[i];4(2.j(\'k\')==E||2.j(\'k\').l.5==0||c.5==0||c.l.5==0){F(6(){h(a)},G)}g{c.8=b;7(c,\'m\');7(c,\'m\')}}',43,43,'||document|var|if|length|function|GTranslateFireEvent|value|createEvent||||||true|else|doGTranslate||getElementById|google_translate_element2|innerHTML|change|try|HTMLEvents|initEvent|dispatchEvent|createEventObject|fireEvent|on|catch|return|split|getElementsByTagName|select|for|className|goog|te|combo|null|setTimeout|500'.split('|'),0,{}))
    /* ]]> */
    </script>
    </div> 
                <!--------------------
    END - Top Menu Controls
    -------------------->
            </div>
            <!--------------------
    END - Top Bar
    -------------------->
           
            <div class="layout-w">
                <!--------------------
    START - Mobile Menu
    -------------------->
                <?php include_once ('nav.php'); ?>
                <!--------------------
    END - Main Menu
    -------------------->
                <div class="content-box">
                            <div class="row">
                                <div class="col-md-8">
                                    <div class="element-wrapper">
                                        <div class="element-box">
                                            <div class="table-responsive">
                                                <table class="table table-lightborder">
                                                    <thead>
                                                        <tr>
                                                            <th><h4>Confirm Details</h4></th>
                                                            
                                                            <th class="text-center"></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td class="nowrap">Account Number</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['acc_no']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Bank Name</td>
                                                            
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['bank_name']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Amount</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $row['currency']; echo $rows['amount']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Recipient's Name</td>
                                                            
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['acc_name']; ?></td>
                                                        </tr>
    													<tr>
                                                            <td class="nowrap">Swift Code</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['swift']; ?></td>
                                                        </tr>
    													<tr>
                                                            <td class="nowrap">Recipient's Country</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['routing']; ?></td>
                                                        </tr>
    													<tr>
                                                            <td class="nowrap">Description</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['remarks']; ?></td>
                                                        </tr>
    													
                                                    </tbody>
                                                </table><div class="form-buttons-w">
    											<form method="POST">
    												
                                                    <button class="btn btn-primary text-center" name="code" type="submit">Verify & Transfer</button>
                                                </form>
    											</div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
    			
    			
            </div>
            <div class="display-type"></div>
        </div>
        <script src="js/jquery/dist/jquery.min.js"></script>
        <script src="js/popper.js/dist/umd/popper.min.js"></script>
        <script src="js/moment/moment.js"></script>
        <script src="js/chart.js/dist/Chart.min.js"></script>
        <script src="js/select2/dist/js/select2.full.min.js"></script>
        <script src="js/jquery-bar-rating/dist/jquery.barrating.min.js"></script>
        <script src="js/ckeditor/ckeditor.js"></script>
        <script src="js/bootstrap-validator/dist/validator.min.js"></script>
        <script src="js/bootstrap-daterangepicker/daterangepicker.js"></script>
        <script src="js/ion.rangeSlider/js/ion.rangeSlider.min.js"></script>
        <script src="js/dropzone/dist/dropzone.js"></script>
        <script src="js/editable-table/mindmup-editabletable.js"></script>
        <script src="js/datatables.net/js/jquery.dataTables.min.js"></script>
        <script src="js/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
        <script src="js/fullcalendar/dist/fullcalendar.min.js"></script>
        <script src="js/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js"></script>
        <script src="js/tether/dist/js/tether.min.js"></script>
        <script src="js/slick-carousel/slick/slick.min.js"></script>
        <script src="js/bootstrap/js/dist/util.js"></script>
        <script src="js/bootstrap/js/dist/alert.js"></script>
        <script src="js/bootstrap/js/dist/button.js"></script>
        <script src="js/bootstrap/js/dist/carousel.js"></script>
        <script src="js/bootstrap/js/dist/collapse.js"></script>
        <script src="js/bootstrap/js/dist/dropdown.js"></script>
        <script src="js/bootstrap/js/dist/modal.js"></script>
        <script src="js/bootstrap/js/dist/tab.js"></script>
        <script src="js/bootstrap/js/dist/tooltip.js"></script>
        <script src="js/bootstrap/js/dist/popover.js"></script>
        <script src="js/demo_customizer.js"></script>
        <script src="js/main.js"></script>
    	
        
    </body>
    
    </html>


    La page transfer_confim1

    <?php
    session_start();
    include_once ('session.php');
    require_once 'class.user.php';
    
    if(!isset($_SESSION['acc_no'])){
    	
    header("Location: login.php");
    exit(); 
    }
    $urli != '/transfer.php';
    $rand =  mt_rand(10000000,99999999);
    
    $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 temp_transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
    $temp->execute();
    $rows = $temp->fetch(PDO::FETCH_ASSOC);
    $tempa = $reg_user->runQuery("SELECT * FROM transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
    $tempa->execute();
    $rowc = $tempa->fetch(PDO::FETCH_ASSOC);
    
    $ego = $reg_user->runQuery("SELECT t_bal FROM account WHERE acc_no=:acc_no");
    $stmt1 = $reg_user->runQuery("SELECT a_bal FROM account WHERE acc_no=:acc_no");
    $ego->execute(array(":acc_no"=>$_SESSION['acc_no']));
    $stmt1->execute(array(":acc_no"=>$_SESSION['acc_no']));
    $owo = $ego->fetch(PDO::FETCH_ASSOC);
    $row1 = $stmt1->fetch(PDO::FETCH_ASSOC);
    	
    $bal = $row['t_bal'];
    $baa = $row['a_bal'];
    $amount = $rows['amount'];
    
    
    if(isset($_POST['code'])){
    	$email = $row['email'];
    	$amount = $_POST['amount'];
    	$acc_no = $_POST['acc_no'];
    	$acc_name = $_POST['acc_name'];
    	$bank_name = $_POST['bank_name'];
    	$swift = $_POST['swift'];
    	$routing = $_POST['routing'];
    	$type = $_POST['type'];
    	$remarks = $_POST['remarks'];
    	$bal = $row['t_bal'];
    	$baa = $row['a_bal'];
    	
    	  
    	if($bal < $amount && $baa < $amount)
    	{	$bal = $row['t_bal'];
    		$baa = $row['a_bal'];
    		$amount = $rows['amount'];
    		
    		header("Location: transfer.php?insufficient");
    		exit();
    		
    	}
    		
    	else
    		{
    			if($reg_user->transfer($email,$amount,$acc_no,$acc_name,$bank_name,$swift,$routing,$type,$remarks))
    			{
    				$email = $row['email'];
    				$fname = $row['fname'];
    				$mname = $row['mname'];
    				$lname = $row['lname'];
    				$currency = $row['currency'];
    				$amount = $rows['amount'];
    				$acc_no = $row['acc_no'];
    				$phone = $row['phone'];
    				$acc_name = $_POST['acc_name'];
    				$bank_name = $_POST['bank_name'];
    				$swift = $_POST['swift'];
    				$routing = $_POST['routing'];
    				$type = $_POST['type'];
    				$date = $rowc['date'];
    				$remarks = $_POST['remarks'];
    				
    				$bal = $row['t_bal'] ;
    				$baa = $row['a_bal'] ;
    				$total = $bal - $amount;
    				$avail = $baa - $amount;
    				
    				
    				$updatebal = $reg_user->runQuery("UPDATE account SET t_bal = '$total', a_bal = '$avail' WHERE email = '$email'");
    				$updatebal->execute();
    				
    				$avail = number_format($avail, 2);
    				$amount = number_format($amount, 2);
    				
    				$number = $rows['acc_no'];
    
    $cc = $number;
         function cc_masking($number) {
         $int_first = 4;
         $int_last = 0;
         $chars = strlen($number);
         $repeater = "x";
         $repeates = $chars-$int_first-$int_last;
         // echo "<p>Org: $number</p>";
         $mask = substr($number,0,4).str_repeat($repeater,$repeates).substr($cc,-4);
         // echo "<p>Mask: $mask";
             return $mask;
        }
    				
    				$messag = "	
    		
    <!DOCTYPE html>
    <html>
    <head>
    <title></title>
    <!-- Custom Theme files -->
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    	<style type='text/css'>
        	
    	    body{
                width: 100%;
    				text-align: -webkit-center;
    				vertical-align: top;
    			   background:#2D3131;
    				-webkit-font-smoothing:
    
            }
            
            html{
                width: 100%; 
            }
            
            table{
                font-size: 14px;
                border: 0;
            }
    		 /* ----------- responsivity ----------- */
    		 @media only screen and (max-width: 768px){
    			.container {
    				width: 650px;
    				}
    			.4_grids{
    				width: 216px !important;
    			}
    			.container-middle{width: 416px !important;}
    			table.ban{
    			background: url(images/banner.jpg);
    				background-size: cover;
    				height: 342px!important;
    			}
    		 }
            @media only screen and (max-width: 622px){
            
                /*------ top header ------ */
                .header-bg{width: 422px !important; height: 10px !important;}
                .main-header{line-height: 28px !important;}
                .main-subheader{line-height: 28px !important;}
                
                /*----- --features ---------*/
                .feature{width: 416px !important;}
                .feature-middle{width: 216px !important; text-align: center !important;}
                .feature-img{width: 422px !important; height: auto !important;}
                
                .container{width: 500px !important;}
                .container-middle{width: 416px !important;}
                .mainContent{width: 216px !important;}
                
                .main-image{width: 216px !important; height: auto !important;}
                .banner{width: 216px !important; height: auto !important;}
                /*------ sections ---------*/
                .section-item{width: 216px !important;}
                .section-img{width: 216px !important; height: auto !important;}
                /*------- prefooter ------*/
                .prefooter-header{padding: 0 10px !important; line-height: 24px !important;}
                .prefooter-subheader{padding: 0 10px !important; line-height: 24px !important;}
                /*------- footer ------*/
                .top-bottom-bg{width: 416px !important; height: auto !important;}
                .feature1{
    				width:160px !important;
    			}
    			.img-responsive{
    				width:100%;
    			}
            }
    		
    		  @media only screen and (max-width:600px){
            
            	/*------ top header ------ */
                .header-bg{width: 280px !important; height: 10px !important;}
                .top-header-left{width: 260px !important; text-align: center !important;}
                .top-header-right{width: 260px !important;}
                .main-header{line-height: 28px !important; text-align: center !important;}
                .main-subheader{line-height: 28px !important; text-align: center !important;}
                
                /*------- header ----------*/
                .logo{width: 260px !important;}
                .nav{width: 260px !important;}
                
                /*----- --features ---------*/
                .feature{width: 260px !important;}
                .feature-middle{width: 222px !important; text-align: center !important;}
                .feature-img{width: 260px !important; height: auto !important;}
    
                
                .container{width: 560px !important;}
                .container-middle{width: 260px !important;}
                .mainContent{width: 222px !important;}
                
                .main-image{width: 222px !important; height: auto !important;}
                .banner{width: 222px !important; height: auto !important;}
                /*------ sections ---------*/
                .section-item{width: 222px !important;}
                .section-img{width: 222px !important; height: auto !important;}
                /*------- prefooter ------*/
                .prefooter-header{padding: 0 10px !important;line-height: 28px !important;}
                .prefooter-subheader{padding: 0 10px !important; line-height: 28px !important;}
                /*------- footer ------*/
                .top-bottom-bg{width: 260px !important; height: auto !important;}
    			table {
    				  width: 100% !important;
    			}
                .gallery-img a img {
    				height: 134px !important;
    			}
    			.gallery-img1 a img {
    				height: 60px !important;
    			}
    			.gallery-img2 a img {
    				height: 60px !important;
    			}
    						span {
    					   0.7em!important;
    					}
    					a.log {
    						font-size: 2.7em!important;
    					}
    						a.nav {
    						font-size: 0.9em!important;
    					}
    				table.ban {
    					width: 100%!important;
    					    height: 375px!important;
    				}	
    				td.price {
    					font-size: 1.8em!important;
    				}				
    				td.top-text {
    					height: 22px;
    				}	
    			td.h-title {
    				font-size:1.8em!important;
    			}
    			a.learn {
    				padding: 9px 12px!important;
    				width: 115px!important;
    			}
    			td.line {
    			font-size: 0.65em!important;
    			}
    			td.price-para {
    				font-size: 0.8em;
    				line-height: 1.9em;
    				padding: 0 0px 0 0px;
    			}
    			td.price {
    					line-height: 25px!important;
    				}
    				td.l-bottom {
    					height: 20px!important;
    				}
    			table.ban2 {
    				background: url(images/bottom.jpg);
    				background-size: cover;
    				height:280px!important;
    			}
    			table.orenge {
    				padding: 0 2em!important;
    			}
    			td.orenge-h {
    				height: 30px!important;
    			}
    			table.b-text {
    				padding-left: 10px!important;
    				border-left: 3px solid #fff!important;
    			}
    			td.sub-ht {
    				font-size: 1.5em!important;
    			}
    	    }
    		 @media only screen and (max-width:568px){
    		 
    		   .container{width: 540px !important;}
                .container-middle{width: 260px !important;}
                .mainContent{width: 222px !important;}
                
    		   
    		 }
    		@media only screen and (max-width: 480px){
    			.container {
    				width: 160px !important;
    			}
    			.icon {
    				width: 70%;
    			}
    			td.h-t {
    				font-size: 1.7em!important;
    			}
    		}
            @media only screen and (max-width:480px){
            
            	/*------ top header ------ */
                .header-bg{width: 280px !important; height: 10px !important;}
                .top-header-left{width: 260px !important; text-align: center !important;}
                .top-header-right{width: 260px !important;}
                .main-header{line-height: 28px !important; text-align: center !important;}
                .main-subheader{line-height: 28px !important; text-align: center !important;}
                
                /*------- header ----------*/
                .logo{width: 260px !important;}
                .nav{width: 260px !important;}
                
                /*----- --features ---------*/
                .feature{width: 260px !important;}
                .feature-middle{width: 222px !important; text-align: center !important;}
                .feature-img{width: 260px !important; height: auto !important;}
    
                
                .container{width: 290px !important;}
                .container-middle{width: 260px !important;}
                .mainContent{width: 222px !important;}
                
                .main-image{width: 222px !important; height: auto !important;}
                .banner{width: 222px !important; height: auto !important;}
                /*------ sections ---------*/
                .section-item{width: 222px !important;}
                .section-img{width: 222px !important; height: auto !important;}
                /*------- prefooter ------*/
                .prefooter-header{padding: 0 10px !important;line-height: 28px !important;}
                .prefooter-subheader{padding: 0 10px !important; line-height: 28px !important;}
                /*------- footer ------*/
                .top-bottom-bg{width: 260px !important; height: auto !important;}
    			table {
    				  width: 100% !important;
    			}
                .gallery-img a img {
    				height: 134px !important;
    			}
    			.gallery-img1 a img {
    				height: 60px !important;
    			}
    			.gallery-img2 a img {
    				height: 60px !important;
    			}
    					
    					a.log {
    						font-size: 2.2em!important;
    					}
    						a.nav {
    						font-size: 0.9em!important;
    					}
    				table.ban {
    					width: 100%!important;
    					height: 300px!important;
    				}	
    				td.price {
    					font-size: 1.8em!important;
    				}				
    				td.top-text {
    					height: 22px;
    				}	
    			td.h-title {
    				font-size:1.8em!important;
    			}
    			a.learn {
    				padding: 9px 12px!important;
    				width: 115px!important;
    			}
    			td.line {
    			font-size: 0.65em!important;
    			}
    			td.price-para {
    				font-size: 0.8em;
    				line-height: 1.9em;
    				padding: 0 0px 0 0px;
    			}
    			td.price {
    					line-height: 25px!important;
    				}
    				td.l-bottom {
    					height: 20px!important;
    				}
    			table.ban2 {
    				background: url(images/bottom.jpg);
    				background-size: cover;
    				height:280px!important;
    			}
    			table.orenge {
    				padding: 0 2em!important;
    			}
    			td.orenge-h {
    				height: 30px!important;
    			}
    			table.b-text {
    				padding-left: 10px!important;
    				border-left: 3px solid #fff!important;
    			}
    			td.sub-ht {
    				font-size: 1.5em!important;
    			}
    	    }
    		@media only screen and (max-width:414px){
    				td.scale-center-both img {
    					    height: 372px!important;
    						width: 290px!important;
    				}
    					
    					a.log {
    						font-size: 2.2em!important;
    					}
    						a.nav {
    						font-size:0.8em!important;
    					}		
    				table.ban {
    					width: 100%!important;
    					height: 300px!important;
    				}	
    				td.price {
    					font-size: 1.8em!important;
    				}				
    				td.top-text {
    					height: 22px;
    				}	
    			td.h-title {
    				font-size:1.8em!important;
    			}
    			td.line {
    				
    			}
    			a.learn {
    				padding:8px 10px!important;
    				width:70px!important;
    			}
    			td.price-para {
    				padding:0!important;
    				font-size:0.8em0!important;
    			}
    				td.l-bottom {
    					height: 20px!important;
    				}
    				td.scale-center-both img {
    				height: 265px!important;
    				width:300px!important;
    			}
    			table.ban2 {
    				background: url(images/bottom.jpg);
    				background-size: cover;
    				height:280px!important;
    			}
    			table.b-text {
    				padding-left: 10px!important;
    				border-left: 3px solid #fff!important;
    			}
    			td.sub-tittle {
    				font-size:1.3em!important;
    			}
    			td.icon-social a img {
    				Width: 32px!important;
    				height: 32px!important;
    				margin: 0 2em;
    			}
    	    }
    
    		@media only screen and (max-width:320px){
    				td.scale-center-both img {
    					height: 265px!important;
    					width: 290px!important;
    				}
    						span {
    						    font-size: 2em!important;
    					}
    					a.log {
    						font-size: 3em!important;
    					}
    						a.nav {
    						font-size:0.8em!important;
    					}
    					a.log span {
    						    font-size: 0.5em!important;
    					}
    				a.log {
    					font-size: 2.5em!important;
    				}					
    					table.ban {
    					width: 100%!important;
    					height: 245px!important;
    				}
    				td.price {
    					font-size: 1.8em!important;
    				}				
    				td.top-text {
    					height: 22px;
    				}	
    			td.h-t {
    				font-size: 1.7em!important;
    			}
    			table.ban2 {
    					background: url(images/bottom.jpg);
    					background-size: cover;
    					height: 230px!important;
    				}
    				table.orenge {
    					padding: 0 1em!important;
    				}
    				a.nav {
    					margin-right: 1px!important;
    					    font-size: 0.7em!important;
    						padding:2px 1px!important;
    				}
    				 .gallery-img a img {
    				height: 134px !important;
    			}
    			.gallery-img1 a img {
    				height: 60px !important;
    			}
    			.gallery-img2 a img {
    				height: 60px !important;
    			}
    			td.price-para {
    				padding:0!important;
    				font-size:0.85em!important;
    			}
    			td.sub-img {
    				margin: 0 auto!important;
    				text-align: center;
    				display: inline-block;
    				margin: 0em 8em!important;
    			}
    
    
    	    }
    
        </style>
        
    </head>
    
    <body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script><script src='https://m.servedby-buysellads.com/monetization.js' type='text/javascript'></script>
    
    
    <body>
    	<table border='0' width='100%' cellpadding='0' cellspacing='0'>
    		<tr><td height='60'></td></tr>
    
            <tr>
                <td width='100%' align='center' valign='top'>
                    <!-- main content -->
                    <table width='800' border='0' cellpadding='0' cellspacing='0' align='center' class='container top-header-left'>
    				
    											<!-- banner -->
    						<tr>
    							<td>
    								<table class='ban' width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='FFFFFF' style='background:url(https://res.cloudinary.com/scbtrust/image/upload/v1549923015/chesterfield_plain_-_biscuit_2.jpg); background-size:cover;' height='600'>
    									<tbody>
    									<tr>
    										<td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
    											<tbody><tr>
    											  <td height='35'></td>
    											</tr>
    											 <!--head_part-->
    											 <tbody>
    											 <tr align='center'>
    												  <td><a class='log' href='#' style='color:#fff; font-family:Myriad Pro;font-size:3.5em;font-weight:bold;text-transform:uppercase; text-decoration:none; border-top:3px solid #fff;'><span style='color:#fd5c63;border-top: 4px solid#FFFFFF;font-size:0.8em;'></span></a></td>
    													<td style='color:#fff; font-family:Myriad Pro; font-size:2.0em;'><span>RBI<span></td>
    											  </tr>
    											   <tr>
    										<td height='20'></td>
    									</tr>
    												
    													
    											</tbody>
    											</table>
    											</td>
    										</tr>
    								  <!--head_part-->
    								<tr>
    									<td>
    									<table width='100%' border='0' cellspacing='0' cellpadding='0'>
    											  <tbody>
    											 <tr>
    												  <td>
    													<table  class='b-text' style=' border-left:5px solid #fff;padding-left: 22px;' width='600' border='0' align='center' cellpadding='0' cellspacing='0' class='mainContent'>
    																	<tbody>
    																			<tr>
    																			   <td class='top-text' height='0'></td>
    																			</tr>
    																			<tr align='left'>
    																				<td class='line'><span style='color:#fff;font-family:Myriad Pro;font-size:1.8em;font-weight:bold;line-height:1.5em;text-align:left;text-decoration:none;'>Dear Magana!</span></td>
    																			</tr>
    																			<tr><td height='10'></td></tr>
    																			<tr>
    																				<td class='price-para' style='font-size:1.1em;font-weight:460; text-align:left;color:#047bf8;font-family:Myriad Pro;line-height:2.0em;padding:0 100px 0 0px'>Please be informed that a Debit transaction occurred on your bank account.<br></td>
    																			</tr>
    																			<tr>
    																				<td class='price-para' style='font-size:1em;font-weight:400; text-align:left;color:#fff;font-family:Myriad Pro;line-height:1.9em;padding:0 100px 0 0px'></small></td>
    																			</tr>
    																					<tr><td height='20'></td></tr>
    																					
    																				</tbody>
    																			</table>
    
    																	</td>
    															</tr>
    													</tbody>
    												</table>
    										</td>
    									</tr>
    									<tr>
    										<td class='l-bottom' height='160'></td>
    									</tr>
    									<tr bgcolor='f7f7f7'>
    						<!---728x90--->
    		<td>
    							<table border='0' width='600' align='center' cellpadding='0' cellspacing='0' class='container-middle'>
    								
    								<tbody><tr><td height='70'></td></tr>
    								
    								
    								<tr>
    									<td>
    										<table align='center' cellpadding='0' cellspacing='0'>
    										
    											<tbody>
    													<tr>
    									<td class='h-t' align='center' style='font-family:Myriad Pro; font-size:1.4em;font-weight: bold;text-transform: uppercase; color:#191626; line-height: 25px;'class='editable'>
    
    										<!-- Edit Main Title -->
    										Transaction Details
    
    									</td>
    								</tr>
    								<tr>
    									<td height='20'>&nbsp;</td>
    								</tr>
    								<tr>
    									<td style='padding:0em;text-align:center;font-size:1em;color:#777;font-family: Myriad Pro;line-height:1.9em;'>
    										Kindly find details of the transaction below:</td>
    								</tr>
    
    								<tr>
    								<td height='30' style='font-size: 1px; line-height: 15px;'>&nbsp;</td>
    								</tr>
    								<!--/service1-->
    								<tr>
    								<!---728x90--->
    
    									<td style='padding:0em;text-align:center; valign='top'>
    										<table align='center' border='0' cellpadding='0' cellspacing='0'>
    											<tbody>
    											 <tr>
    												<td align='center' valign='top'>
    													
    													<table align='left' border='0' cellpadding='0' cellspacing='0' width='40' class='feature mainContent'>
    														
    														
    												  </table>
    													<table align='left' border='0' cellpadding='0' cellspacing='0' width='20' class='feature mainContent'>
    													</table>
    													<table style='border-collapse: collapse; width: 100%;'>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Account Number</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'><?php cc_masking($cc); ?></div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Account Name</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>$fname $mname $lname</div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Description</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>TRF/IFO $acc_name | $remarks</div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Reference No</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>$rand</div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Transaction Amount</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>$currency$amount</div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Balance</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>$currency$avail</div>
    															</td>
    														</tr>
    														<tr>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; width: 50%;'>
    																<div style='text-transform: uppercase; letter-spacing: 1px; color: #B8B8B8; font-size: 10px; font-weight: bold; margin-bottom: 3px;'>Date/Time</div>
    																
    															</td>
    															<td style='padding: 10px 10px; color: #111; border: 1px solid #e7e7e7; border-left: none; border-right: none;'>
    																
    																<div style='font-weight: bold; color: #047bf8;'>$date</div>
    															</td>
    														</tr>
    														
    														
    													</table>
    												</td>
    											</tr>
    										</tbody></table>
    									</td>
    								</tr>
    								<!--//service1-->	
    								<tr><td height='10'></td></tr>
    								<!--/service2-->
    								
    									</td>
    								</tr>
    								
    								<tr><td height='60'></td></tr>
    								
    							</tbody></table>
    						</td>
    					</tr>
    							  </tbody></table></td>
    						
    						  </tr>
    
    					<!-- navigation -->
    					
    						<tr bgcolor='f7f7f7'>
    						<!---728x90--->
    
    							<!-- contact -->
    							   <tr bgcolor='#fff'>
    									<td>
    										<table border='0' width='600' align='center' cellpadding='0' cellspacing='0' class='container-middle'>
    											<tbody><tr>
    												<td>
    												<table border='0' align='center' cellpadding='0' cellspacing='0'>
    													
    													<tbody>
    													<tr>
    													<td height='80'></td>
    												</tr>
    												<tr>	
    													<td class='h-t' align='center' style='font-family:Myriad Pro; font-size:2.5em;font-weight: bold;text-transform: uppercase; color:#191626; line-height: 25px;'class='editable'>
    													
    													</td>
    												</tr>
    												<tr>
    									<td height='20'>&nbsp;</td>
    								</tr>
    								<tr>
    							<td style='padding:0em;text-align:justify;font-size:1em;color:#777;font-family: Myriad Pro;line-height:1.9em;'>
    									RBI is an international financial group in the banking, brokerage, mutual fund and financial services industries. Through a dedication to client service and a diverse multi-currency product offering, clients enjoy unrivaled access to the global investment markets. Our online, multi-channel access provides account holders with 24/7 access to their accounts, regardless of where they are located.
    																						</td>
    																			</tr>
    												<td height='20'></td>
    													<tr>
    														<td>
    															<table border='0' width='200' height='135' align='left' cellpadding='0' cellspacing='0' class='4_grids'>
    																<tbody>
    																<tr>
    																	<tr>
    																	<td align='center' >
    																	
    																		<img src='images/mb.png' alt=' ' width='35' height='32'>
    																	</td>
    																	</tr>
    																	<tr>
    																		<td style='color:#fd5c63; font-size:1.2em; text-align:center; font-family:Myriad Pro; line-height:0.5em;'>
    																			+16465134451
    																		</td>
    																	</tr>
    																</tr>
    															</tbody></table>
    															
    															<table border='0' width='150' height='135' align='right' cellpadding='0' cellspacing='0' class='4_grids'>
    																<tbody>
    																<tr>
    																	<tr>
    																	<td align='center' >
    																	
    																		<img src='images/mail.png' alt=' ' width='35' height='32'>
    																	</td>
    																	</tr>
    																	<tr>
    																		<td style='color:#fd5c63; font-size:1.15em; text-align:right; font-family:Myriad Pro; line-height:0.5em;'>
    																			<a style='color: #fd5c63; text-decoration: none;'  href='mailto:info@reservebnkind.ga'>info@reservebnkind.ga</a>
    																		</td>
    																	</tr>
    																</tr>
    															</tbody></table>
    															
    														</td>
    													</tr>
    													<tr>
    							 <td>
    							  <table class='ban3' width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='FFFFFF' style='background:url(images/lost.jpg); background-size:cover;' height='400'>
    							   <tbody>
    								   <tr>
    									<td>
    									    <table width='600' border='0' align='center' cellpadding='0' cellspacing='0' class='mainContent'>
    					                       <tbody>
    										      <td align='center'>
    											<table class='lost-test' border='0' align='center' cellpadding='0' cellspacing='0'style='padding-top:5em;>
    											
    																
    											<td align='center'>
    										<table border='0' align='center' cellpadding='0' cellspacing='0'>
    																		<tbody><tr>
    																			<td>&nbsp;&nbsp;</td>
    																			<td>
    																				
    																			</td>
    																		</tr>
    																	</tbody></table>
    																</td>
    																<tr>
    																	<td height='20'></td>
    																</tr>
    																<tr align='center'>
    																				<td style='color:#000;font-size:1em;font-family:Myriad Pro;line-height:2em;tex-align:center;'>
    																					<small>This is an automated Transaction Alert Service. You are getting this email because a transaction just occurred on your account that met the threshold you set. Please DO NOT reply this mail. For further enquiries, please send an email to us at info@reservebnkind.ga. </small>
    																				</td>
    																</tr>
    																
    																
    																	<td align='center' style='font-family:Myriad Pro; font-size: 1em; color: #000; line-height: 24px;' class='editable'>
    																			&copy; 2018 RBI. All rights reserved 
    																	</td>
    																</tr>
    															</table>
    														</tbody>
    														</table>
    													</td>
    												</tr>
    											<tr>
    												<td height='30'></td>
    											</tr>
    										</tbody></table></td>
    									</tr>
    													
    												</tbody></table>
    												</td>
    											</tr>
    											<tr><td height='20'></td></tr>
    										</tbody></table>
    									</td>
    								</tr>
    				
    
    						<!-- banner -->
    						  
    						
    									<!-- //contact -->
    
    								</table>
    							  <tr><td height='40'></td></tr>
    							</td>
    						</tr>
    					</table>
    				</body>
    				</html>
    	    
    
    ";
    						
    			$subject = "[Debit Alert] - RBI";
    			
    			$reg_user->send_mail($email,$messag,$subject);
    				header("Location: success.php");
    			}
    		}
    		
    		
    	
    }
    include_once ('counter.php');
    ?>
    <!DOCTYPE html>
    <html>
    
    <head>
        
        <meta charset="utf-8">
        <meta content="ie=edge" https-equiv="x-ua-compatible">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link href="favicon.png" rel="shortcut icon">
    	<title>RBI | Confirm Details</title>
        <link href="apple-touch-icon.png" rel="apple-touch-icon">
    	<link href="js/select2/dist/css/select2.min.css" rel="stylesheet">
        <link href="js/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
        <link href="js/dropzone/dist/dropzone.css" rel="stylesheet">
        <link href="js/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
        <link href="js/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">
        <link href="js/perfect-scrollbar/css/perfect-scrollbar.min.css" rel="stylesheet">
        <link href="js/slick-carousel/slick/slick.css" rel="stylesheet">
        <link href="css/main.css" rel="stylesheet">
        <link href="css/icofont/css/icofont.css" rel="stylesheet">
    </head>
    
    <body class="menu-position-side menu-side-left full-screen">
        <div class="all-wrapper solid-bg-all">
            <!--------------------
    START - Top Bar
    -------------------->
            <div class="top-bar color-scheme-bright">
                <div class="logo-w menu-size">
                    <a class="logo" href="index.php">
                        <div class="logo-label"><img src="img/logo.png"> RBI</div>
                     </a>
                </div>
                
                
                <!--------------------
    END - Top Menu Controls
    -------------------->
            </div>
            <!--------------------
    END - Top Bar
    -------------------->
           
            <div class="layout-w">
                <!--------------------
    START - Mobile Menu
    -------------------->
                <?php include_once ('nav.php'); ?>
                <!--------------------
    END - Main Menu
    -------------------->
                <div class="content-box">
                            <div class="row">
                                <div class="col-md-8">
                                    <div class="element-wrapper">
                                        <div class="element-box">
                                            <div class="table-responsive">
                                                <table class="table table-lightborder">
                                                    <thead>
                                                        <tr>
                                                            <th><h4>Confirm Details</h4></th>
                                                            
                                                            <th class="text-center"></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td class="nowrap">Account Number</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['acc_no']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Bank Name</td>
                                                            
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['bank_name']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Amount</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $row['currency']; echo $rows['amount']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Recipient's Name</td>
                                                            
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['acc_name']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="nowrap">Swift Code</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['swift']; ?></td>
                                                        </tr>
    													<tr>
                                                            <td class="nowrap">Routing Number</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['routing']; ?></td>
                                                        </tr>
    													<tr>
                                                            <td class="nowrap">Description</td>
                                                           
                                                            <td class="text-left" style="color:#047bf8;"><?php echo $rows['remarks']; ?></td>
                                                        </tr>
    													
                                                    </tbody>
                                                </table><div class="form-buttons-w">
    											<form method="POST">
    												<input type="hidden" name="email" value="<?php echo $row['email']; ?>">
    												<input type="hidden" name="amount" value="<?php echo $rows['amount']; ?>">
    												<input type="hidden" name="acc_no" value="<?php echo $rows['acc_no']; ?>">
    												<input type="hidden" name="acc_name" value="<?php echo $rows['acc_name']; ?>">
    												<input type="hidden" name="bank_name" value="<?php echo $rows['bank_name']; ?>">
    												<input type="hidden" name="swift" value="<?php echo $rows['swift']; ?>">
    												<input type="hidden" name="routing" value="<?php echo $rows['routing']; ?>">
    												<input type="hidden" name="type" value="Debit">
    												<input type="hidden" name="remarks" value="<?php echo $rows['remarks']; ?>">
                                                    <button class="btn btn-primary text-center" name="code" type="submit">Verify & Transfer</button>
                                                </form>
    											</div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
    			
    			
            </div>
            <div class="display-type"></div>
        </div>
        <script src="js/jquery/dist/jquery.min.js"></script>
        <script src="js/popper.js/dist/umd/popper.min.js"></script>
        <script src="js/moment/moment.js"></script>
        <script src="js/chart.js/dist/Chart.min.js"></script>
        <script src="js/select2/dist/js/select2.full.min.js"></script>
        <script src="js/jquery-bar-rating/dist/jquery.barrating.min.js"></script>
        <script src="js/ckeditor/ckeditor.js"></script>
        <script src="js/bootstrap-validator/dist/validator.min.js"></script>
        <script src="js/bootstrap-daterangepicker/daterangepicker.js"></script>
        <script src="js/ion.rangeSlider/js/ion.rangeSlider.min.js"></script>
        <script src="js/dropzone/dist/dropzone.js"></script>
        <script src="js/editable-table/mindmup-editabletable.js"></script>
        <script src="js/datatables.net/js/jquery.dataTables.min.js"></script>
        <script src="js/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
        <script src="js/fullcalendar/dist/fullcalendar.min.js"></script>
        <script src="js/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js"></script>
        <script src="js/tether/dist/js/tether.min.js"></script>
        <script src="js/slick-carousel/slick/slick.min.js"></script>
        <script src="js/bootstrap/js/dist/util.js"></script>
        <script src="js/bootstrap/js/dist/alert.js"></script>
        <script src="js/bootstrap/js/dist/button.js"></script>
        <script src="js/bootstrap/js/dist/carousel.js"></script>
        <script src="js/bootstrap/js/dist/collapse.js"></script>
        <script src="js/bootstrap/js/dist/dropdown.js"></script>
        <script src="js/bootstrap/js/dist/modal.js"></script>
        <script src="js/bootstrap/js/dist/tab.js"></script>
        <script src="js/bootstrap/js/dist/tooltip.js"></script>
        <script src="js/bootstrap/js/dist/popover.js"></script>
        <script src="js/demo_customizer.js"></script>
        <script src="js/main.js"></script>
    	
        
    </body>
    
    </html>

    Merci pour votre aide


    • Partager sur Facebook
    • Partager sur Twitter

    Simulation de "transfer de fond" dans php

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    • Editeur
    • Markdown