<?php include("includes/header.php"); ?>
<!DOCTYPE html>
<html>
<head>
  <title>OTP CODE | <?php echo $sitename; ?></title>
  
     <!----------------------------------------------------------------------->
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
     <script src="bootstrap/js/jquery.min.js"></script>
     <script src="bootstrap/js/bootstrap.min.js"></script>
     <!----------------------------------------------------------------------->
     <link rel="icon" href="images/fav-icon.ico" type="image/x-icon" />
     <link rel="shortcut icon" href="images/fav-icon.ico" type="image/x-icon" />
     <!----------------------------------------------------------------------->
     <!-------------------Constumized CSS--------------------------->
     <link rel="stylesheet" type="text/css" href="css/style.cs">

     <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
     <style>
      .icons-links{
        text-decoration: none;
        color: #555;
        font-size: 16px;
        font-weight: bolder;
      }
      .icons-links:hover{
        color:#0c2074;
        text-decoration: none;
      }
        .input-danger{
          border:1px solid darkred;
          color:darkred;
        }
        .input-danger::placeholder{
          opacity: 0.6;
          color:darkred;
        }
     </style>
     
</head>
<body>
  <?php  include("includes/dashboard_nav.php"); ?>
    <br><br>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-2">
        <?php include("includes/sidebar.php"); ?>
          <?php include("includes/side.php"); ?>

      </div>
      <div class="col-sm-10">
                <br><br><br>
                <div class="row">
                    <div class="col-sm-1"></div>
                  <div class="col-sm-10">
                       <!--================================================================================================================================-->

                       <div class="panel panel-default" id="panel-two">
                         <div class="panel-body">

                           <div class="progress" style="border-radius: 0px;">
                             <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="450"
                             aria-valuemin="0" aria-valuemax="100" style="width:45%">
                               STEP 1 OF 3
                             </div>
                           </div>

                           <div class="row" style="margin-top: -15px;">
                             <div class="col-md-4 col-xs-4" align="left" style="font-size: 14px;"><b>IDENTIFY</b></div>
                             <div class="col-md-4 col-xs-4" align="center" style="color:#337ab7; font-size: 14px;"><b>VERIFY</b></div>
                             <div class="col-md-4 col-xs-4" align="right" style="font-size: 14px;"><b>COMPLETE</b></div>
                           </div>
                           <span id="output"></span>

                           <h2 style="color: #0c2074; font-size: 16px; font-weight: bold;">Two Step Verification Code</h2>
                         
                           <div class="row">
                             <div class="col-md-4">
                              

                             </div>
                             <div class="col-md-4">
                                <span id="output2"></span>
                                <?php
                                 if(isset($_POST["cot_btn"])){
                                    $cot_code = $_POST["cot_code"];
                                    $amount = $_GET["amount"];
                                    $name = $_GET["name"];

                                    if(!empty($cot_code)){
                                        if($cot_code == "92531826"){
                                         
                                          echo '<script>window.location.assign("international-wire-transfer-cot.php?amount='.$amount.'&&name='.$name.'")</script>';
                                          
                                        }else{
                                          echo "<div class='alert alert-danger'><i class='fa fa-warning'></i> Invalid code.</div>";
                                        }
                                    }else{
                                     echo "<div class='alert alert-danger'><i class='fa fa-warning'></i> Please fill in the form!</div>";
                                    }
                                 }else{

                                 }
                                ?>
                                    <br>
                                    <form action="" method="POST">
                                   <input type="text" class="form-control" id="amount" name="cot_code" placeholder="Verification Code" style="border-radius: 0px;">
                                   <div class="alert alert-info" style="border-radius:0px;">The two step verification code has been sent to the email account linked to your online bank account. Insert the codes  to proceed transaction</div>
                                   <span></span>
                               
                               <button type="submit" name="cot_btn" class="btn btn-danger btn-block" id="verifybtn" style="border-radius:0px;">CONTINUE</button>
                             </form>


                              
                             </div>
                             <div class="col-md-4">

                             </div>
                           </div>
                           <br><br>
                         </div>
                       </div>
                       <!--================================================================================================================================-->   
                    </div>
                    <div class="col-sm-1"></div>
                    
                </div>
      </div>
    </div>
  </div>
</body>
</html>8