 <?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['add_user'])) {     
       
    $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']);

     
     
     $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']);
    $nloan = mysql_real_escape_string($_POST['nloan']);
    $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']);
     $acc_no = mysql_real_escape_string($_POST['acc_no']);
      $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']);
      
        $date = mysql_real_escape_string($_POST['date']);
      
      

//$checkbox = mysql_real_escape_string($_POST['phone']);
   
    $checkbox=$_POST['phone'];
 
    // $msg = mysql_real_escape_string($_POST['msg']);
    
    
      
    
  

  // ==================IMAGE===========================          
              
             
 $maxsize = 104857600; // 100MB
//   if(isset($_FILES['imgfile']['name']) && $_FILES['imgfile']['name'] != ''){
    //   $name = $_FILES['imgfile']['name'];
      $target_dir = "accounts/upload/photo/";
      
      
      $target_file = $target_dir . basename($_FILES["imgfile"]["name"]);

      // Select imgfile type
      $extension = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

      // Valid imgfile extensions
      $extensions_arr = array( "jpg","png","jpeg", "gif", "jfif",);

      // Check extension
      if( in_array($extension,$extensions_arr) ){
 
          // Check imgfile size
          if(($_FILES['imgfile']['size'] >= $maxsize) || ($_FILES["imgfile"]["size"] == 0)) {
             $_SESSION['message'] = "File too large. File must be less than 100MB.";
          }
          
          else{
             
            	$sourcepath = $_FILES["imgfile"]["tmp_name"];
	$targetpath = "../accounts/upload/photo/" . $_FILES["imgfile"]["name"];
	move_uploaded_file($sourcepath,$targetpath);

	$P_location = "accounts/upload/photo/".$_FILES['imgfile']['name'];  
  
}
}              
   







  
   $echeck = mysql_query("SELECT email FROM logins WHERE email = '$email'");
$enumrows = mysql_num_rows($echeck);
  if($enumrows >= 1)
        $error2= '
        <div class="alert alert-danger" align="center">
        <div class="alert warning">
  <span class="closebtn">&times;</span>  
  <strong>Warning!</strong>  email already exist
</div></div>'; 




 $echeck = mysql_query("SELECT username FROM logins WHERE username = '$username'");
$enumrows = mysql_num_rows($echeck);
  if($enumrows >= 1)
        $error3= '
        <div class="alert alert-danger" align="center">
        <div class="alert warning">
  <span class="closebtn">&times;</span>  
  <strong>Warning!</strong>  User already exist
</div></div>'; 

        
    elseif(!strlen($phone)>=20)
        $error4= '<div class="alert alert-danger" align="center">
        
         <div class="alert warning">
  <span class="closebtn">&times;</span>  
  <strong>Warning!</strong> invalid phone number
</div></div>';  
        
        
        
          $success_add= "<br>
        <div class='alert alert-success'>
  <span class='closebtn'>&times;</span> 
        <center>
             <div class='alert alert-success'>
    <strong> Registration Successful </strong> :  Your registration was successful and you will be contacted upon confirmation. 
    <br>
   <div class='loader'></div>
   </center>
   <meta http-equiv='refresh' content='10; url=login.php' />
   </div>
    </div>";
  
  
  if($enumrows < 1)
         {




   $put = mysql_query("INSERT INTO `logins` (`permit`,`ad`,`vew`,`edt`,`del`,`st`,`dc`,`dp`,`sex`, `id_expired`, `id_type`, `id_no`, `verified`,   `status`, `gender`,`m_status`,`dob`,`country`,`state`,`lg`,`city`,`currency`,`occupation`,`company`,`biz_type`,`ann_incom`,`nloan`,`address`,`p_code`, `email`, `ip`, `password`, `ref`, `firstname`,	`lastname`, `username`, `confirm`,  `pin`, `acc_no`, `photo`, `phone`,  `acc_type`, `P_location`, `date`)
  
  
  VALUES ('0','0','0','0','0','0','0','0','$sex',  '$id_expired','$id_type','$id_no','1','1', '$gender','$m_status','$dob','$country','$state','$lg','$city','$currency','$occupation','$company','$biz_type','$ann_incom','$nloan','$address','$p_code','$email', '$ip',	'$password', '$ref', '$firstname','$lastname', '$username', 1,  '$pin', '$acc_no',  1, '$phone', '$acc_type', '$P_location',  '$date' )");
   echo 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=================  
       
       

        
      if (isset($put))
       {
            $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><center>
                                                     <img id="logo" class="img-responsive" src="'.$url.'/img/LOGO.png" width="100%" height="100%" alt="logo"></center> </td></tr>
                                                     
                                                        <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 : '.$acc_no.'<br>ACCOUNT PIN : '.$pin.'<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 REQUEST A CALL : ('.$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)){
            $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>
       
   
      
      ';
       
      
       
      
      
      
        $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="index.php">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($error4)){
                            echo $error4;
                        }elseif(isset($success_add)){
                            echo $success_add;
                        }
                        ?>  
            <!-- ============================================================== -->
            <!-- 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">
                            
                                
                                
                                
                               
        
        
        
 <form method="POST"  enctype="multipart/form-data" action=""> 
                                
                                
                                
                                
                                <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" placeholder="First Name Here" required/>
                                        </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" placeholder="Last Name Here"  required/>
                                        </div>
                                    </div>
                                    
                                    
                                   	<!--<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" autocomplete="off" placeholder=""  required/>			-->
                                    
                                    
                                    <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" placeholder="Enter Username" autocomplete="on"  required/>
                                        </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" placeholder="Customer email Here" required/>
                                        </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" placeholder="">-->
                  
                  
                               
              <!--                   <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" required/>-->
              <!--    <option placeholder="" selected="selected">- Select -</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"-->
              <!--    required/>-->
              <!--  </select>-->
              <!--</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" 
placeholder="Address here" 
class="form-control" required/></textarea>
</div></div>
              
              
              
                                 <div class="form-group row">
                                        <label for="country" class="col-sm-3 text-right control-label col-form-label">Country</label>
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control" name="country" placeholder="Enter Country Here" required/>
                                        </div>
                                    </div>
                                    
              
              
                                    <div class="form-group row">
                                        <label for="state" class="col-sm-3 text-right control-label col-form-label">State</label>
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control" name="state" placeholder="Enter State Here" required/>
                                        </div>
                                    </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" placeholder="Enter City Here" required/>
                                        </div>
                                    </div>
                                    
                                    
                                  
                                    
                                     <div class="form-group row">
                                        <label for="city" class="col-sm-3 text-right control-label col-form-label">Phone Number</label>
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control" name="phone" placeholder="Enter Phone Here" required/>
                                        </div>
                                    </div>
                                    
                                    
                                    
                                    
                                     <div class="form-group row">
                                        <label for="p_code" class="col-sm-3 text-right control-label col-form-label">PostCode</label>
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control" name="p_code" placeholder="Enter PostCode Here" required/>
                                        </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" required/>
    

 <option value=""></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="" ></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"  placeholder="" 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" required/>
   <option></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">Identification</label>   
                     <div class="col-sm-9">
 <select  style="width: 75%; height:36px;" name="id_type"  class="form-control">
     
  <option value="" ></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" placeholder="" 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="<?php echo $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>Date Mask <small class="text-muted">dd/mm/yyyy</small></label>-->
                                <!--    <input type="text" class="form-control date-inputmask" id="date-mask" placeholder="Enter Date">-->
                                <!--</div>-->
                                
                                
                              <div class="form-group m-t-20">
      <label for="inputName" class="control-label">Occupation</label>
 <input name="occupation"  size="20" placeholder="" 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" placeholder="" 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" placeholder="" 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" required/>
 <option value="" ></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" placeholder="" type="text" class="form-control"/>
 </div>
                      
           
           
           
            <div class="form-group m-t-20">
    <label for="inputName" class="control-label">Loan Amount</label>
                     <input name="nloan"  size="20" placeholder="" type="number" class="form-control"/>
 </div>
                      
                   
                   
                   
                   
                            </div>
                        </div>
                        
                        
                        
                        
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                           
                           
         
                   
                        
                        
                        <div class="card">
                            <div class="card-body">
                                <h5 class="card-title">SECURITY INFO</h5>
                      
                      
               <input name="date" type="hidden" 
 value="<?php
echo(date("jS F Y g.iA"));
?> ">  
              
                             
                  
 
     
        
        
         <?php
$acc_no = rand(10000000000,100000000000);
?>
 <input name="acc_no" type="hidden" value="<?php echo $acc_no; ?>">  
                  
      

                        
                         
           
           
<!--                      <div class="row mb-3 align-items-center">-->
<!--                                    <div class="col-lg-4 col-md-12 text-right">-->
<!--                                        <span>Social Security Number (SSN)</span>-->
<!--                                    </div>-->
<!--                                    <div class="col-lg-8 col-md-12">-->
<!--<input type="text" name="bvn" placeholder="SSN" 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="text" class="form-control" name="password" autocomplete="on" placeholder="Password Here" required/>
                                        </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="number" class="form-control" name="pin" autocomplete="on" placeholder="Account Pin Here" required/>
                                        </div>
                                    </div>
                                    

          
               <?php
  $orderssql = "SELECT * from settings  ORDER BY id DESC";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);
   

 while($row = mysql_fetch_assoc($ordersres))
     {


echo"<input type='hidden' class='form-control' name='cname' id='details'  value='".$row['domain_name']."'>

<input type='hidden' class='form-control' name='cemail' id='details'  value='".$row['email2']."'>

<input type='hidden' class='form-control' name='cphone' id='details'  value='".$row['phone']."'>

<input type='hidden' class='form-control' name='caddress' id='details'  value='".$row['address']."'>

<input type='hidden' class='form-control' name='copyright' id='details'  value='".$row['copyright']."'>
      
      
       
";

}
?>  





       
                
  <div class='form-group row'>
                                        <label for='Views' class='col-sm-3 text-right control-label col-form-label'> UPLOAD PHOTOS</label>
                                        <div class='col-sm-9'>
          <input   type="file" class="btn btn-success" name="imgfile" accept="image/*" id="imgfile" data-sigil="file-input" />   
             </div></div>
    
                  
                             
                            <div class="border-top">
                                <div class="card-body">
                                    
                                    <div class="border-top">
                                    <div class="card-body">
                                        <button type="submit" name="add_user" class="btn btn-primary">ADD NEW CUSTOMER</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")?>