 <?php require ("header.php")?>
 
 
   <?php
session_start();
if(isset($_SESSION['SESS_ADMINLOGGEDIN']) == FALSE) {
    header("Location: " . $config_basedir."access");
}
require_once("achieved/config.php");
require_once("achieved/db.php");
require_once("achieved/functions.php");
?>

      
       <?php
        
           if (isset($_POST['firstname'])) {     
       
    $sex = mysql_real_escape_string($_POST['sex']);
    $firstname = mysql_real_escape_string($_POST['firstname']);
    $lastname = mysql_real_escape_string($_POST['lastname']);
     $email = mysql_real_escape_string($_POST['email']);
     $phone = mysql_real_escape_string($_POST['phone']);
     $fax = mysql_real_escape_string($_POST['fax']);
     $gender = mysql_real_escape_string($_POST['gender']);
     $m_status= mysql_real_escape_string($_POST['m_status']);
     $dob = mysql_real_escape_string($_POST['dob']);
      $username= mysql_real_escape_string($_POST['username']);
    $password = mysql_real_escape_string($_POST['password']);
    $bvn = mysql_real_escape_string($_POST['bvn']);
      $date = mysql_real_escape_string($_POST['date']);

     
     
     $id_no = mysql_real_escape_string($_POST['id_no']);
       $id_type = mysql_real_escape_string($_POST['id_type']);
    $id_expired = mysql_real_escape_string($_POST['id_expired']);
    
     
    $country = mysql_real_escape_string($_POST['country']);
    $state = mysql_real_escape_string($_POST['state']);
    $city = mysql_real_escape_string($_POST['city']);
     $lg = mysql_real_escape_string($_POST['lg']);
    $p_code = mysql_real_escape_string($_POST['p_code']);
    $address = mysql_real_escape_string($_POST['address']);
    
    
    $occupation = mysql_real_escape_string($_POST['occupation']);
    $company = mysql_real_escape_string($_POST['company']);
    $biz_type = mysql_real_escape_string($_POST['biz_type']);
    $ann_incom = mysql_real_escape_string($_POST['ann_incom']);
    $acc_type = mysql_real_escape_string($_POST['acc_type']);
    $call_time = mysql_real_escape_string($_POST['call_time']);
    $currency = mysql_real_escape_string($_POST['currency']);
     $wallet_id = mysql_real_escape_string($_POST['wallet_id']);
      $pin = mysql_real_escape_string($_POST['pin']);
    

  $bnm = mysql_real_escape_string($_POST['bnm']);
               $baddr = mysql_real_escape_string($_POST['baddr']);
                    $acnm = mysql_real_escape_string($_POST['acnm']);
                         $acnb = mysql_real_escape_string($_POST['acnb']);



//  $cname = mysql_real_escape_string($_POST['cname']);
//       $cemail = mysql_real_escape_string($_POST['cemail']);
//         $caddress = mysql_real_escape_string($_POST['caddress']);
//       $copyright = mysql_real_escape_string($_POST['copyright']);
//       $cphone = mysql_real_escape_string($_POST['cphone']);
      
      

//   $put = mysql_query("INSERT INTO `l n mogins` (`sex`, `fax`, `id_expired`, `id_type`, `id_no`, `verified`, `baddr`, `acnm`, `acnb`, `status`, `gender`,`m_status`,`dob`,`country`,`state`,`city`,`currency`,`occupation`,`company`,`biz_type`,`ann_incom`,`call_time`,`address`,`p_code`, `email`, `ip`, `password`, `ref`, `firstname`,	`lastname`, `username`, `confirm`,  `initiate_tr`,  `pin`, `wallet_id`, `photo`,  `bill`, `acc_type`, `share_ID`, `date`)
  
  
//   VALUES ('$sex', '$fax', '$id_expired','$id_type','$id_no','$verified','$baddr','$acnm','$acnb','$status', '$gender','$m_status','$dob','$country','$state','$city','$currency','$occupation','$company','$biz_type','$ann_incom','$call_time','$address','$p_code',	'$email', '$ip',	'$password', 	'$ref',	'$firstname',	'$lastname', '$username', 0, 0,  '$pin', '$wallet_id',  0, '$phone', 2, 1, '$share_ID', '$date'  )");
//   echo mysql_error();


 $update = mysql_query("UPDATE logins SET sex='$sex',  date='$date',  bvn='$bvn', firstname='$firstname',lastname='$lastname',email='$email',  ip='$ip',  password='$password', pin='$pin', wallet_id='$wallet_id', photo='$photo', username='$username', phone='$phone',fax='$fax',gender='$gender',m_status='$m_status',  dob='$dob', country='$country',  state='$state',city='$city', currency='$currency',occupation='$occupation' ,company='$company',biz_type='$biz_type',ann_incom='$ann_incom', call_time='$call_time' ,address='$address',p_code='$p_code',id_expired='$id_expired',id_type='$id_type',acc_type='1',id_no='$id_no', verified=1, bnm='$bnm', baddr='$baddr', acnm='$acnm', acnb='$acnb', status=1 WHERE id='$id'")
 or die (mysql_error());
      
  $success="
      <center>
      <div class='alert alert-success' style='margin-bottom:20px;'>
      
      <strong> Registration Successful </strong> : Processing<meta http-equiv='refresh' content='10; url=list_customers.php' />  </div>
      <div class='loader'></div>
      
      </center>
      </div>";
}       
         


         {
             





      
 
         }
      
  
  
   
   
//   if($put)
//          {
         
   
  //   =============TO==USER=================  
       
       
//  $cmail = $row['cemail'];
     
        
//       if (isset($email))
//       {
//             $to = $email;
//             $subject = 'SIGN-UP NOTIFICATION';
       
//         $body ='
    
//  <table cellpadding="0" cellspacing="0" color="" style="color: rgb(116, 120, 126); font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
//     <tbody>
//         <tr>
//             <td cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
//                 <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
//                     <tbody>
//                         <tr>
//                             <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
//                                 <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
//                                     <tbody>
//                                         <tr>
//                                             <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
//                                                 <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
//                                                     <tbody>
//                                                         <tr>
//                                                             <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
//                                                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size: 20px;"><strong>&nbsp;Your '.$cname.' Details</strong></span></p>
//                                                             </td>
//                                                         </tr>
//                                                     </tbody>
//                                                 </table>
//                                             </td>
//                                         </tr>
//                                     </tbody>
//                                 </table>
//                                 <p>Welcome to '.$cname.'</p>
//                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Your Account has been created successfully, you can now login to update your Account &nbsp;profile.</p>
//                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Below are your account informations.</p>PASSWORD : '.$password.'<br>ACCOUNT NUMBER : '.$wallet_id.'<br>ACCOUNT PIN : '.$pin.' <br>MOBILE ID : '.$phone.'<p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Do not disclose Your account details to any one.</p>
//                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Thank you..</p>
//                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">'.$cname.' Services</p>
//                             </td>
//                         </tr>
//                     </tbody>
//                 </table>
//             </td>
//         </tr>
//         <tr>
//             <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
//                 <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
//                     <tbody>
//                         <tr>
//                             <td align="center" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
//                                 <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">'.$copyright.'</p>
//                             </td>
//                         </tr>
//                     </tbody>
//                 </table>
//             </td>
//         </tr>
//     </tbody>
// </table>
    
    
//     <hr style="border-top: 1px solid #00B9CD;" >
    
//     FOR MORE INFORMATION : <br> CONTACT THE CUSTOMER CARE SERVICES ('.$cemail.') or DIAL THE NUMBER TO SPEAK WITH ONE OF OUR AGENTS : ('.$cphone.')
       
       
      
      
       
     
      
      
//       ';
      
//         $header = "From:". $cemail."\r\n";
       
//         $header .= "MIME-Version: 1.0\r\n";
       
//         $header .= "Content-Type: text/html; charset=UTF-8\r\n";
       
//         if(@mail($to, $subject, $body, $header)){
            
          
          
//           $sender = "$cname";
//                         $mobile = validate_phone_number($bphone);
//                         $msg = 'Welcome to '.$cname.', Your registration has been approved. The following are your Login informations: (USER ID : '.$username.'), (PASSWORD: '.$password.').  Contact Us for any further Enquries @ '.$cphone.' or Visit '.$url.', Thank You.
//                                 ';
//                         sendBulkSMS($sender,$mobile, $msg); 
          
          
// }
// }

//   =============TO==ADMIN=================  
    
//   if (isset($firstname)){
           
//             if (isset($firstname)){
//             $to = $cemail;
//             $subject = 'SIGNUP NOTIFICATION FROM USER';
       
//         $body ='
//      <p> This user just registered and will need your confirmation.</p>
      
//       FIRST NAME: '.$firstname.'<br>
       
//         LAST NAME: '.$lastname.'<br>

//       PHONE: '.$phone.'<br>
       
//       EMAIL: '.$email.'<br>
       
       
//         Password: '.$password.'<br>
       
   
      
//       ';
       
      
       
      
      
      
//         $header = "From:".$email."\r\n";
       
//         $header .= "MIME-Version: 1.0\r\n";
       
//         $header .= "Content-Type: text/html; charset=UTF-8\r\n";
       
//         if(@mail($to, $subject, $body, $header)){



// }
// }

// }
// }
?>     
           

<!--===========================================-->

   
   	

 <div class="page-wrapper">
            <!-- ============================================================== -->
            <!-- Bread crumb and right sidebar toggle -->
            <!-- ============================================================== -->
            <div class="page-breadcrumb">
                <div class="row">
                    <div class="col-12 d-flex no-block align-items-center">
                        <h4 class="page-title">New User Information</h4>
                        <div class="ml-auto text-right">
                            <nav aria-label="breadcrumb">
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="#">Home</a></li>
                                    <li class="breadcrumb-item active" aria-current="page" href="list_customers.php">View All Users</li>
                                </ol>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
            
            
            
            
            <!-- Register Form Starts -->
                        <?php
                        if(isset($error2)){
                            echo $error2;
                        }elseif(isset($error3)){
                            echo $error3;
                        }elseif(isset($error)){
                            echo $error;
                        }elseif(isset($success)){
                            echo $success;
                        }
                        ?>  
            <!-- ============================================================== -->
            <!-- End Bread crumb and right sidebar toggle -->
            <!-- ============================================================== -->
            <!-- ============================================================== -->
            <!-- Container fluid  -->
            <!-- ============================================================== -->
            <div class="container-fluid">
                <!-- ============================================================== -->
                <!-- Start Page Content -->
                <!-- ============================================================== -->
                <div class="row">
                    <div class="col-md-6">
                        <div class="card">
                            
                                
                                
                                
                               
        
        
         <?php
            
//             $date=date_create($ordrow['appl_date']);
// date_add($date,date_interval_create_from_date_string('30 days'));


            $id = $_GET['id'];
 $ordsql = "SELECT * from logins WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);



       echo "<form method='POST' action='' role='form'> 
                
                                
                                
                                
                                
                                <div class='card-body'>
                                    <h4 class='card-title'>USER LOGIN INFO</h4>
                                   
                                   
                                     <div class='form-group row'>
                                        <label for='firstname' class='col-sm-3 text-right control-label col-form-label'>First Name</label>
                                        <div class='col-sm-9'>
                                            <input type='text' class='form-control' name='firstname' value='".$ordrow['firstname']."' />
                                        </div>
                                    </div>
                                    
                                    
                                    <div class='form-group row'>
                                        <label for='lastname' class='col-sm-3 text-right control-label col-form-label'>Last Name</label>
                                        <div class='col-sm-9'>
                                            <input type='text' class='form-control' name='lastname' value='".$ordrow['lastname']."'  />
                                        </div>
                                    </div>
                                    
                                    
                                   
                                    
                                    
                                    <div class='form-group row'>
                                        <label for='username' class='col-sm-3 text-right control-label col-form-label'>User Name</label>
                                        <div class='col-sm-9'>
                                            <input type='text' class='form-control' name='username' value='".$ordrow['username']."' />
                                        </div>
                                    </div>
                                    
                                    
                                    
                                     <div class='form-group row'>
                                        <label for='email1' class='col-sm-3 text-right control-label col-form-label'>Customer Email</label>
                                        <div class='col-sm-9'>
                                            <input type='email' class='form-control' name='email' value='".$ordrow['email']."' />
                                        </div>
                                    </div>
                                    
                                   
                                    
                                    
                                    
                                    
                                </div>
                                
                                
                                
                        </div>
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                       
                        <div class='card'>
                            <div class='card-body'>
                                <h4 class='card-title'>CONTACT INFO</h4>
                               
                  
                   <input type='hidden' class='form-control' name='country' value='Nigeria'>
                  
                  
                               
                                 <div class='form-group'>
                <label class='control-label'>State of Origin</label>
                <select  style='width: 75%; height:36px;'
                  onchange='toggleLGA(this);'
                  name='state'
                  id='state'
                  class='form-control' />

                  <option value='".$ordrow['state']."'>".$ordrow['state']."</option>
                  
                  
                  <option value='Abia'>Abia</option>
                  <option value='Adamawa'>Adamawa</option>
                  <option value='AkwaIbom'>AkwaIbom</option>
                  <option value='Anambra'>Anambra</option>
                  <option value='Bauchi'>Bauchi</option>
                  <option value='Bayelsa'>Bayelsa</option>
                  <option value='Benue'>Benue</option>
                  <option value='Borno'>Borno</option>
                  <option value='Cross River'>Cross River</option>
                  <option value='Delta'>Delta</option>
                  <option value='Ebonyi'>Ebonyi</option>
                  <option value='Edo'>Edo</option>
                  <option value='Ekiti'>Ekiti</option>
                  <option value='Enugu'>Enugu</option>
                  <option value='FCT'>FCT</option>
                  <option value='Gombe'>Gombe</option>
                  <option value='Imo'>Imo</option>
                  <option value='Jigawa'>Jigawa</option>
                  <option value='Kaduna'>Kaduna</option>
                  <option value='Kano'>Kano</option>
                  <option value='Katsina'>Katsina</option>
                  <option value='Kebbi'>Kebbi</option>
                  <option value='Kogi'>Kogi</option>
                  <option value='Kwara'>Kwara</option>
                  <option value='Lagos'>Lagos</option>
                  <option value='Nasarawa'>Nasarawa</option>
                  <option value='Niger'>Niger</option>
                  <option value='Ogun'>Ogun</option>
                  <option value='Ondo'>Ondo</option>
                  <option value='Osun'>Osun</option>
                  <option value='Oyo'>Oyo</option>
                  <option value='Plateau'>Plateau</option>
                  <option value='Rivers'>Rivers</option>
                  <option value='Sokoto'>Sokoto</option>
                  <option value='Taraba'>Taraba</option>
                  <option value='Yobe'>Yobe</option>
                  <option value='Zamfara'>Zamafara</option>
                </select>
              </div>

              <div class='form-group'>
                <label class='control-label'>LGA of Origin</label>
                <select  style='width: 75%; height:36px;'
                  name='lg'
                  id='lga'
                  class='form-control select-lga'
                  />
                  <option value='".$ordrow['lg']."'>".$ordrow['lg']."</option>
                </select>
              </div>
              
              
               <div class='form-group row'>
                                        <label for='city' class='col-sm-3 text-right control-label col-form-label'>City</label>
                                        <div class='col-sm-9'>
                                            <input type='text' class='form-control' name='city' value='".$ordrow['city']."' />
                                        </div>
                                    </div>
                                    
                                    
                                    
                                     <div class='form-group row'>
                                        <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Contact No</label>
                                        <div class='col-sm-9'>
                                            <input type='number' class='form-control' name='phone' value='".$ordrow['phone']."' />
                                        </div>
                                    </div>
                                    
                                    
                                    
                                     <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Prefferred Time to Call</label>   
                     <div class='col-sm-9'>
    <select  style='width: 75%; height:36px;' name='call_time' class='form-control' />
      <option value='".$ordrow['call_time']."' selected/>";
      
     
{
 if($ordrow['call_time'] == 1) {
      echo "12:00am - 03:00am";
    }
    
    elseif($ordrow['call_time'] == 2) {
      echo "03:00am - 06:00am";
    }
     elseif($ordrow['call_time'] == 3) {
      echo "06:00am - 09:00am";
    }
     elseif($ordrow['call_time'] == 4) {
      echo "09:00am - 12:00pm";
    }
     elseif($ordrow['call_time'] == 5) {
      echo "12:00pm - 03:00pm";
    }
     elseif($ordrow['call_time'] == 6) {
      echo "03:00pm - 06:00pm";
    }
     elseif($ordrow['call_time'] == 7) {
      echo "06:00pm - 09:00pm";
    }
    elseif($ordrow['call_time'] == 8) {
      echo "09:00pm - 12:00am";
    }
}

echo"</option>
      
      <option value='1'>12:00am - 03:00am</option>
      <option value='2'>03:00am - 06:00am</option>
      <option value='3'>06:00am - 09:00am</option>
      <option value='4'>09:00am - 12:00pm</option>
      <option value='5'>12:00pm - 03:00pm</option>
      <option value='6'>03:00pm - 06:00pm</option>
      <option value='7'>06:00pm - 09:00pm</option>
      <option value='8'>09:00pm - 12:00am</option>
    </select>
                      </div>
                      </div>
                                    
                                    
                                           
                <div class='form-group row'>
                    <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Postcode</label>
        <div class='col-sm-9'>
<input name='p_code' type='number' value='".$ordrow['number']."' class='form-control'/>
</div></div>


 <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Address</label>   
                     <div class='col-sm-9'>
<textarea row='25' col='10' name='address' type='text' 
value='".$ordrow['address']."' 
class='form-control' /></textarea>
</div></div>
                                 
                            </div>
                        </div>
                       
                        
                        
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                        
                        <div class='card'>
                            <div class='card-body'>
                                <h4 class='card-title'>PERSONAL INFO</h4>
                                
                                
                                 <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Gender</label>   
                     <div class='col-sm-9'>
<select  style='width: 75%; height:36px;' name='sex' class='form-control' />
    

 <option value='".$ordrow['sex']."' selected/>";
    
    
    
{
 if($ordrow['sex'] == 1) {
      echo 'MALE';
    }
    
    elseif($ordrow['sex'] == 2) {
      echo 'FEMALE';
    }
}

   echo"</option>
        <option value='1'>Male</option>
        <option value='2' >Female</option>
      </select>
                        
                      </div>
                      </div>
                      
                      
     
                    <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Marital Status</label>   
                     <div class='col-sm-9'>
 <select  style='width: 75%; height:36px;' name='m_status'  class='form-control'>
         <option value='".$ordrow['m_status']."' selected/> ";
       
       
       
{
 if($ordrow['m_status'] == 1) {
      echo 'SINGLE';
    }
    
    elseif($ordrow['m_status'] == 2) {
      echo 'MARRIED';
    }
     elseif($ordrow['m_status'] == 3) {
      echo 'DIVORCE';
    }
}

        echo" </option>
        <option value='1'> Single</option>
        <option value='2' > Married</option>
         <option value='3' > Divorced</option>
        
      </select>
                        </div>
                      </div>

                   
    
    
    
    <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Date of Birth</label>   
                     <div class='col-sm-9'>
<input name='dob' type='date' size='20'  value='".$ordrow['dob']."' class='form-control'/>
                        </div>
                      </div>
                    
                      
  
                     <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Account Type</label>   
                     <div class='col-sm-9'>
<select  style='width: 75%; height:36px;' name='acc_type' class='form-control' />
   <option value='".$ordrow['acc_type']."'>";
   
   
   
     if($ordrow['acc_type'] == 1) {
      echo 'Savings Account.';
    }
       elseif($ordrow['acc_type'] == 2) {
        echo 'Current Account';
    }
    
     elseif($ordrow['acc_type'] == 3) {
        echo 'MPower Business Account';
    }
    
     elseif($ordrow['acc_type'] == 4) {
        echo 'Checking accountst';
    }
    
     elseif($ordrow['acc_type'] == 5) {
        echo 'Money market accounts';
    }
    
    
     elseif($ordrow['acc_type'] == 6) {
        echo 'Certificates of deposit';
    }
    
    
     elseif($ordrow['acc_type'] == 7) {
        echo 'Brokerage accounts';
    }
    
    
     elseif($ordrow['acc_type'] == 8) {
        echo 'Individual retirement accounts';
    }
      
      
      
      
  echo" </option>
    <option value='1'>Savings Account</option> 
     <option value='2'>Current Account</option> 
     <option value='3'>Business Account</option> 
    </select> 
                         </div>
                      </div>


                      

                                       
 
 <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>PostCode</label>   
                     <div class='col-sm-9'>
<input name='p_code' type='text' value='".$ordrow['p_code']."' class='form-control' />
</div>
                      </div>
                  
                  
                  
                                           
<div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Fax</label>   
                     <div class='col-sm-9'>
 <input name='fax' type='text' size='20' id='edit_fax' value='".$ordrow['fax']."' class='form-control'/>
                        </div>
                      </div>
                    
                    
                    
  
                     <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>Identification</label>   
                     <div class='col-sm-9'>
 <select  style='width: 75%; height:36px;' name='id_type'  class='form-control'>
     
  <option value='".$ordrow['id_type']."' selected/>";
  
 
 
 
 if($ordrow['id_type'] == 1) {
      echo 'International Passport';
    }
    
    elseif($ordrow['id_type'] == 2) {
      echo 'Drivers Licence';
    }
     elseif($ordrow['id_type'] == 3) {
      echo 'National ID Card';
    }
     elseif($ordrow['id_type'] == 4) {
      echo 'Others';
    }


echo"</option>   
<option value='1' >International Passport</option>
<option value='2' >Drivers Licence</option>
<option value='3'  >National ID Card</option>
<option value='4' >Others</option>
        </select>
                        </div>
                      </div>
                                  
                      
                      
                      
                      
     <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>ID Number</label>   
                     <div class='col-sm-9'>
  <input name='id_no'  size='20' value='".$ordrow['id_no']."' type='text' class='form-control'/>
                        </div>
                      </div>




                      
                    <div class='form-group row'>
   <label for='phone' class='col-sm-3 text-right control-label col-form-label'>ID Expiration Date</label>   
                     <div class='col-sm-9'>
<input name='id_expired'  value='".$ordrow['id_expired']."' type='date' class='form-control'/>
                        </div>
                      </div>
                                
                                
                                
                            </div>
                           
                           
                           
                           
                          
                        </div>

                    </div>
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
                    
                    
                    
                    <div class='col-md-6'>
                        <div class='card'>
                            <div class='card-body'>
                                <h4 class='card-title m-b-0'>EMPLOYMENT</h4>
                               
                               
                            
                                
                                
                              <div class='form-group m-t-20'>
      <label for='inputName' class='control-label'>Occupation</label>
 <input name='occupation'  size='20' value='".$ordrow['occupation']."' type='text' class='form-control'/>
                        </div>
                    
                      
                      
             
                      
                      <div class='form-group m-t-20'>
                       <label for='inputEmail' class='control-label'>Company Name</label>
                      <input name='company' size='20' value='".$ordrow['company']."' type='text' class='form-control'/>
                        </div>
                     
         
 
            
                      
 <div class='form-group m-t-20'>
  <label for='edit_business_type' class='control-label'>Business Type</label>
                     	<input name='biz_type' value='".$ordrow['biz_type']."' type='text' class='form-control'/>
                        </div>
                     
                      
                      
                      
                      
    <div class='form-group m-t-20'>
     <label for='inputEmail' class='control-label'>Currency</label>                 <select  style='width: 75%; height:36px;' name='currency' class='form-control' />
 <option value='".$ordrow['currency']."' selected/>";
    
    
    
  if($ordrow['currency'] == 1) {
      echo 'USD';
    }
 
 elseif($ordrow['currency'] == 2) {
      echo 'GBP';
    }
    
    elseif($ordrow['currency'] == 3) {
      echo 'EUR';
    }
     elseif($ordrow['currency'] == 4) {
      echo 'AUD';
    }
     elseif($ordrow['currency'] == 5) {
      echo 'CAD';
    }
     elseif($ordrow['currency'] == 6) {
      echo 'CNY';
    }
     elseif($ordrow['currency'] == 7) {
      echo 'ZAR';
    }
     elseif($ordrow['currency'] == 8) {
      echo 'NGN';
    }
    

  echo" </option>
         <!--<option value='1'>USD</option>-->
         <!--<option value='2'>GBP</option>-->
         <!--<option value='3'>EUR</option>-->
         <!--<option value='4'>AUD</option>-->
         <!--<option value='5'>CAD</option>-->
         <!--<option value='6'>CNY</option>-->
         <!--<option value='7'>ZAR</option>-->
           <option value='8'>NGN</option>
      </select>
                        </div>
                      
                      
                      
                      
                      
                      
                      
    <div class='form-group m-t-20'>
    <label for='inputName' class='control-label'>Annual Income</label>
                     <input name='ann_incom'  size='20' value='".$ordrow['ann_incom']."' type='text' class='form-control'/>
 </div>
                      
                   
                            </div>
                        </div>
                        
                        
                        
                        
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                        
                        
                        <div class='card'>
                            <div class='card-body'>
                                <h5 class='card-title'>BANK INFORMATION</h5>
                      
                      
                      
                             
                            <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Select Bank</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<select  style='width: 75%; height:36px;' name='bnm' class='form-control'   style='background-color: white; color: #495057 !important' />
                                    <option value='".$ordrow['bnm']."'>".$ordrow['bnm']."</option>
                                    <option value='access'>Access Bank</option>
          <option value='citibank'>Citibank</option>
          <option value='diamond'>Diamond Bank</option>
          <option value='ecobank'>Ecobank</option>
          <option value='fidelity'>Fidelity Bank</option>
          <option value='firstbank'>First Bank</option>
          <option value='fcmb'>First City Monument Bank (FCMB)</option>
          <option value='gtb'>Guaranty Trust Bank (GTB)</option>
          <option value='heritage'>Heritage Bank</option>
          <option value='keystone'>Keystone Bank</option>
          <option value='polaris'>Polaris Bank</option>
          <option value='providus'>Providus Bank</option>
          <option value='stanbic'>Stanbic IBTC Bank</option>
          <option value='standard'>Standard Chartered Bank</option>
          <option value='sterling'>Sterling Bank</option>
          <option value='suntrust'>Suntrust Bank</option>
          <option value='union'>Union Bank</option>
          <option value='uba'>United Bank for Africa (UBA)</option>
          <option value='unity'>Unity Bank</option>
          <option value='wema'>Wema Bank</option>
          <option value='zenith'>Zenith Bank</option>
</select>
                                                              
                              </select>
                         </div> </div>
                      
 
 
 
                 
                      <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Bank Address</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<input type='text' name='baddr' value='".$ordrow['baddr']."' class='form-control'  /> </div> </div>


                        
                          <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Account Name</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<input type='text' name='acnm' value='".$ordrow['acnm']."' class='form-control' />
                        </div> </div> 
                        
                        
                        
                         <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Account Pin</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<input type='text' name='pin' value='".$ordrow['pin']."' class='form-control' />
                        </div> </div> 
                        
                       
                       
                        <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Account Number</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<input type='text' name='wallet_id' value='".$ordrow['wallet_id']."' class='form-control' />
                        </div> </div>  
                      
                           
                           
                           
                           
         
                   
                        
                        
                        <div class='card'>
                            <div class='card-body'>
                                <h5 class='card-title'>SECURITY INFO</h5>
                      
                      
                      
                             
                  
 
  
                        
                         
           
           
                      <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Bank Verification Number (BVN)</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
<input type='text' name='bvn' value='".$ordrow['bvn']."' class='form-control' > </div> </div>




   <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Password</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
                                            <input type='password' class='form-control' name='password' value='".$ordrow['password']."' />
                                        </div>
                                    </div>
                                    
                                    
                                    
                                    
  <div class='row mb-3 align-items-center'>
                                    <div class='col-lg-4 col-md-12 text-right'>
                                        <span>Date</span>
                                    </div>
                                    <div class='col-lg-8 col-md-12'>
                                            <input type='date' size='20' class='form-control' name='date' value='".$ordrow['date']."' />
                                        </div>
                                    </div>";
                                    ?>







                  
                             
                            <div class='border-top'>
                                <div class='card-body'>
                                    
                                    <div class='border-top'>
                                    <div class='card-body'>
                                        <button type='submit' name='action' class='btn btn-primary'>UPDATE CUSTOMER INFO</button>
                                    </div>
                                </div>
                            </form>
                            
                                </div>
                            </div>                
                                               
                           
                           
                           
                           
                           
                           
                           
                           
                             
                             
                            </div>
                        </div>
                       
                       
                       
                       
                       
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            
            
            
            
            
                <!-- ============================================================== -->
                <!-- End PAge Content -->
                <!-- ============================================================== -->
                <!-- ============================================================== -->
                <!-- Right sidebar -->
                <!-- ============================================================== -->
                <!-- .right-sidebar -->
                <!-- ============================================================== -->
                <!-- End Right sidebar -->
                <!-- ============================================================== -->
            </div>
           
           
           
           
           <?php require ("footer.php")?>