<?php 
session_start();
include('conn_auth.php');
include('customInfo.php');
include 'outputfunction.php';
?>

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="PWB">
    <meta name="keyword" content="Investment, Pacific Western, Finance, Co-operate world, Bank"> 
    <meta name="description" content="Pacific Western">
    <meta property="og:title" content="PWB">
    <meta property="og:description" content="Pacific Western">

    
<title><?php echo $rowUser['cust_name']; ?> | Account Statement </title>

 <link href="img/favicon.png" rel="icon">
    <!-- Bootstrap Core CSS -->
    <link href="mz/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="mz/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="mz/dist/css/sb-admin-2.css" rel="stylesheet" type="text/css">

    <link href="mz/dist/css/main_page.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="mz/vendor/morrisjs/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

      
     
     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body style="font-size: 14px;">

    <div id="wrapper">
       <!-- first tpp div for main page-->
            <?php include('m_header.php'); ?>

            <!-- /.navbar-header -->
           <?php  include('sidbar.php'); ?>
            <!--Navbar is here incase there will  be navigator <?php  include('sidebar.php'); ?> bar -->
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper" >
          
  <!-- /.row -->
           <div class="row" style="margin-top: 30px;">
              <!-- /.col-lg-8 -->
            <div class="col-lg-12">
                 <!-- /.col-lg-4 -->
          <div class="col-lg-12">
             <div class="panel panel-default">
                <div class="panel-heading">
                <!-- /.panel-heading -->
                  <div class="pInfo">
                       <div>
    
    <h2>Transaction Description</h2>
                               
                                    
                          <br>
</div>
                  
                   <table width="100%" class="baltable table table-responsive">
                     <tr>
                     <th bgcolor="#007EB6"><div>Date</div></th>
                     <th bgcolor="#007EB6"><div>Beneficiary Account ID</div></th>
                     <th bgcolor="#007EB6"><div>Beneficiary Name</div></th>
                     <th bgcolor="#007EB6"><div>Tel Number</div></th>
                     <th bgcolor="#007EB6"><div>Bank Name</div></th>             
                     <th bgcolor="#007EB6"><div>Country</div></th>
                     <th bgcolor="#007EB6"><div>Swift Code</div></th>
                     <th bgcolor="#007EB6"><div>Sort Code</div></th>            
                     <th bgcolor="#007EB6"><div>Amount</div></th>
                     <th bgcolor="#007EB6"><div>Status</div></th> 
                    </tr>
                  <?php
                 $selTrans = $conn->query("select * from transfer_info where trans_id = '" . $_GET['id']. "' order by trans_id DESC") or die(mysql_error());
                            if(!$selTrans->num_rows){
                  ?>
                            <tr>
                            <td height="27" colspan="10" bgcolor="#FFFFFF"><span class="style7">Sorry there is no Transfer History for the selected Transaction </span></td>
                      </tr>
                            <?php
              }else{
              while($allTrans= $selTrans->fetch_array()){;
              ?>
            <tr>
            <td><?php echo $allTrans['date_trans']; ?></td>
            <td><?php echo $allTrans['to_accnt']; ?></td>
            <td><?php echo $allTrans['ben_name']; ?></td>
            <td><?php echo $allTrans['ben_phn']; ?></td>
            <td><?php echo $allTrans['bank_name']; ?></td>
            <td><?php echo $allTrans['country_user']; ?></td>
            <td><?php echo $allTrans['swift_code']; ?></td>
            <td><?php echo $allTrans['sort_code']; ?></td>
            <td><?php echo $allTrans['amt_trans'] =="0"?"": getCurrency($rowcurr['curr_type']) . number_format($allTrans['amt_trans'], 2, '.', ','); ?></td>
            <td><?php echo $allTrans['trans_stat']; ?></td>
            </tr>
              <?php
               }
               }
               ?>
            </table>
                            
                                   
            </div>
                        </div>
                <!-- /.panel-body -->
              </div>
          </div>
          </div>    

        </div>
        <!-- /#page-wrapper -->  

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="mz/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="mz/vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="mz/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="mz/vendor/raphael/raphael.min.js"></script>
    <script src="mz/vendor/morrisjs/morris.min.js"></script>
    <script src="mz/data/morris-data.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="mz/dist/js/sb-admin-2.js"></script>
   <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
   <script src="https://bitcoinaverage.com/js/widgetGenerator/widgetUserScript.js"></script>
</body>

</html>
