<?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


    $id = pf_validate_number($_GET['id'], "redirect", $config_basedir);
    $funcsql = "UPDATE logins SET verify = 2 WHERE id = " . $_GET['id'];
    mysql_query($funcsql);

 
 
 ?>
 
 
     <?php
        
           if (isset($_POST['action'])) {     
       
   $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']);
    
   
 $update = mysql_query("UPDATE logins SET  bnm='$bnm', baddr='$baddr', acnm='$acnm', acnb='$acnb' WHERE id='$id'")
 or die (mysql_error());
      
 

           $success="
        
       <center> <div class='warning' style='margin-bottom:50px;'>
        
        
       <div class='loader'></div>
       
       Uploading Information
        <meta http-equiv='refresh' content='5; url=' />
        
       Please wait......</div></center>
        
       
        
        
        ";
    }
   
 ?>       
 
 
   
 
 
 
 
 
 
  <div class='page-wrapper'>
           
            <div class='page-breadcrumb'>
                <div class='row'>
                    <div class='col-12 d-flex no-block align-items-center'>
                       
                       
                    </div>
                </div>
            </div>
           
            <div class='container-fluid'>
               
                <div class='row'>
                    <div class='col-12'>
                        <div class='card'>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
 
     <!-- Content Wrapper. Contains page content -->
      <div class='content-wrapper'>
      
        <!-- Main content -->
        <section class='content'>

          <div class='row'>
            <!-- /.col -->
            <div class='col-md-12'>
              <div class='nav-tabs-custom'>
                <ul class='nav nav-tabs'>
                    <li class='active'>
                          <a href='index.php' class='rowtab'><strong>HOME</strong></a>
                          
                          </li>
<a href='list_customers.php'  class='btn btn-primary' value='log in'>CUSTOMERS List</a>
                   
                   </li>
                </ul>
                <div class='tab-content'>
                  <div class='active tab-pane' id='activity'>
                    <!-- Post -->
                    <div class='post'>
      
      
          
    <section class='content-header'>
      <h1>
        Bank Details
        <small>Customer's panel</small>
      </h1>
      <ol class='breadcrumb'>
        <li><a href='index.php'><i class='fa fa-dashboard'></i> Home</a></li>
        <li class='active'> <a href='list_customers.php'>CUSTOMERS List</a></li>
        <li class='active'>Add</li>
      </ol>
    </section>
	
	
    <section class='content'>
	<div class='row'>	
		
	 <section class='content'>
     
	<!--<div class='alert alert-warning fade in' >-->
	<!--		<p><a href = '#' class = 'close' data-dismiss= 'alert'> &times;</a>-->
 <!-- 				<strong>Please Note that&nbsp;</strong> &nbsp;&nbsp;You Must Tick All Added Checkbox Before Clicking on update button below</p>-->
	<!--			</div>	-->
				
				
				
				<div class='box box-success'>
            <div class='box-body'>
              <div class='table-responsive'>
             <div class='box-body'>

			 <!--<div class='col-md-14'>-->
           <div class='container'>
             <ul class='nav nav-tabs'>
              
    <li class='active'><a href='#tab_1' data-toggle='tab'>BANK DATA</a></li>
              
    <!--<li><a href='#tab_5' data-toggle='tab'>DOCUMENT INFO</a></li>-->
              
    <!--<li><a href='#tab_6' data-toggle='tab'>BANK DATA</a></li>-->
               
<li><a href='#tab_7' class='btn btn-warning' data-toggle='tab'>LOGIN</a></li>
               
               
               
               <?php
               $g=$_GET['id']; echo"
               <li><a #='view_deposit.php?id=".$g. "' class='btn btn-info'> NEW DEPOSIT</a></li>";
               ?>

              <!--<li>-->
                  
                   <!--====================================-->
<!--<button onclick='myFunction()' class='btn btn-success btn-flat'>-->
<!--<i class='fa fa-print'>&nbsp;Print</i></button>-->

<!--<button onclick='window.print()'><i class='fa fa-print'>&nbsp;Print</i></button>-->


<!--===================================-->
                  
              <!--</li>-->
              
              
              </ul>
              
              
            <?php 
if(isset($success)){
    echo $success;
}
?>
   
            
            
            
          <div class='tab-content'>
            
            
     




            
            <?php
 $ordsql = "SELECT * from logins WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);

echo "<div class='tab-pane fade in active' id='tab_1'>
             <hr>	";	

  
echo" <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
			
			
			
			<div class='alert-danger'>&nbsp; BANKING INFORMATION (" . $ordrow['firstname'] . " " . $ordrow['lastname'] . ")</div>
<hr>
	<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Account Number</label>
                  <div class='col-sm-10'>
                  <input name='acnb' type='number' class='form-control' value='".$ordrow['acnb']."' >
                  </div>
                  </div>
          
			
			<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Account Name</label>
                  <div class='col-sm-10'>
                  <input name='acnm' type='text' class='form-control' value='".$ordrow['acnm']."' >
                  </div>
                  </div>
			
			
			
			
			 <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Bank Name</label>
                  <div class='col-sm-10'>
                  <input name='bnm' type='text' class='form-control' value='" . $ordrow['bnm'] . "' >
                  </div>
                  </div>
				  
				  
				  
				  
				  <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Bank Address</label>
                  <div class='col-sm-10'>
                  <input name='baddr' type='text' class='form-control' value='" . $ordrow['baddr'] . "' >
                  </div>
                  </div>
                  
                  
                   <div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Bank Verification Number(BVN)</label>
                  <div class='col-sm-10'>
                  <div class='input-group date'>
                  <div class='input-group-addon'>
                   <a target='_blank' href='https://bvnvalidationportal.nibss-plc.com.ng/bvn-validation-portal/'>VERIFY</a>
                  </div>
                  <input name='bvn' type='text' class='form-control' value='" . $ordrow['bvn'] . "' >
                  </div>
                  </div>
                    </div>";
              
              ?>
           
               
               
              <center>
                  
                    <button type='submit' class='btn btn-info btn-flat' name='action'><i class='fa fa-save'>&nbsp;Update Bank</i></button>
              </center>

              </div>
			 
			  </form>
			  
           			               
              
              
              
              
              
              
              
              
              
                
               <!--============DOCUMENT=INFORMATION===================-->
           			               
        
 <?php
 $ordsql = "SELECT * from logins WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);

echo "<div class='tab-pane fade' id='tab_5'>
          	  <hr>	
<div class='alert-danger'>&nbsp; DOCUMENT INFORMATION</div>
<hr>	
					
                  
                  
				  
				  
				  <div class='form-group'>
				      <label for='' class='col-sm-2 control-label' style='color:#009900'>Personal Documents:</label>
				      <div class='container-fluid'>
				  <div class='row el-element-overlay'>
				      
				 
				   
				    <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['photo'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/photo/default.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['photo'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/photo/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['photo'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/photo/default.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['photo'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/photo/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>Photo</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div> 
      
      
      
      
      
      
      
      
      <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['idF'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/doc/front id.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['idF'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/doc/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['idF'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/doc/front id.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['idF'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/doc/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>Front ID Card</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div> 
      
      
      
      
      
      
       
       
          <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['idB'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/doc2/back id.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['idB'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/doc2/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['idF'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/doc2/back id.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['idB'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/doc2/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>BACK ID Card</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div>            
                    
                    
                    
                    
                    
       
       
       
       
       
       
       
         <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['ul'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/ul/BILL.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['ul'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/ul/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['idF'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/ul/BILL.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['ul'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/ul/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>ULTILITY BILL</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    
                    
       
       
       
       
       
       
       
         <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['birth'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/birth/cert.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['birth'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/birth/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['birth'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/birth/cert.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['birth'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/birth/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>BIRTH CERTIFICATE</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div>       
     
     
     
       <div class='col-lg-3 col-md-6'>
                        <div class='card'>
                            <div class='el-card-item'>";
                                 if($ordrow['LGA'] == 0)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/LGA/cert.png' alt='" . $ordrow['username'] . "' >";
    }
    else if($ordrow['LGA'] == 1)
         { 
        echo "<div class='el-card-avatar el-overlay-1'><img src='https://plamscircuit.com/accounts/upload/LGA/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'>
         ";
         }
                                   echo"<div class='el-overlay'>
                                        <ul class='list-style-none el-info'>
                                            <li class='el-item'>";
                                             if($ordrow['LGA'] == 0)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/LGA/cert.png' alt='" . $ordrow['username'] . "' ><i class='mdi mdi-magnify-plus'></i></a>";
    }
    elseif($ordrow['LGA'] == 1)
         { 
        echo "<a class='btn default btn-outline image-popup-vertical-fit el-link' href='https://plamscircuit.com/accounts/upload/LGA/" . $ordrow['id'] . "front.jpg' alt='" . $ordrow['username'] . "'><i class='mdi mdi-magnify-plus'></i></a>";
         }
                                            
                                           echo" </li>
                                            <li class='el-item'>
                                            <a class='btn default btn-outline el-link' href='javascript:void(0);'><i class='mdi mdi-link'></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class='el-card-content'>
                                    <h4 class='m-b-0'>LGA CERTIFICATE</h4> <span class='text-muted'>" . $ordrow['ctype'] . "</span>
                                </div>
                            </div>
                        </div>
                    </div>       
                    
                    
                    
                    </div></div></div>
		
	  
	  
	   
              </div>";
              ?>
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
                   
              
              
              
              
               
               <!--============LOGIN==================-->
        <div class='tab-pane fade' id='tab_7'>       
         <form method='POST' action='../personal_banking/login.php' role='form'> 
                  
                  		
                  		
                  		
                  		 <div class='form-group'>
                  	<label for='' class='col-sm-2 control-label' style='color:#009900'>Account No.</label>
                  	<div class='col-sm-10'>
					<input name='acc_no'  class='form-control' rows='4' cols='80' value='" . $ordrow['acc_no'] . "' readonly/>
           			 </div>
          	</div> <br><br>
          	
          	
          
			
			<div class='form-group'>
                  <label for='' class='col-sm-2 control-label' style='color:#009900'>Password</label>
                  <div class='col-sm-10'>
                  <input name='password' type='password' class='form-control' value='".$ordrow['password']."' readonly/>
                  </div>
                  </div>
			
			
			
                       
           			
             
                
                
                  
              <center>
                  
                   <button type='submit' name='action' value='Login'  class='btn btn-success my-4'>Sign in</button> 
              </center>
              
               </form>
          
          
              
               </div>";
              
              ?>
              <!-- /.tab-pane -->
                  
					
					
				
				
				</div>
				

              </div>
			 

	
</div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div>	
</div>		</section>
        
        
        
        
        
        
        
        
        
        
                    </div><!-- /.post -->

                
                  </div>
                  <!-- /.tab-pane -->
                  
                  
                  
                  

                  <!-- /.tab-pane -->
                </div><!-- /.tab-content -->
              </div><!-- /.nav-tabs-custom -->
            </div><!-- /.col -->
          </div><!-- /.row -->

        </section><!-- /.content -->
      </div>
                </div>
               
            </div>"
            ;
       
            ?>
           
           <?php require ("footer.php")?>
           
           <script>
function myFunction() {
  window.print(); }
</script>