


<script language="javascript">
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); };

function emailValidator(elem){
    var emailExp = /^[\w\-\.\/\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
    if(elem.value.match(emailExp)){
            return true;
    }else{
	
   alert("THAT IS NO CORRECT FORMAT OF EMAIL");
	//document.register.email.focus();
    formValid = false;
	elem.value="";
             return false;
    }
}

function makeUpper(val) {
    val.value = val.value.toUpperCase().trim();
}

function makeLower(val) {
    val.value = val.value.toLowerCase().trim();
}

function isDigitsOnly(inParam) {
  var chkExp = /^\d+$/;
  return (chkExp.test(inParam));
}
function isTextOnly(inParam) {
 var chkExp = /^[a-z][a-z\d ]+$/i;
  return (chkExp.test(inParam));
}
</script>
  <div class="container-fluid">
 <div class="row">

  <div class="col-md-12">
  
		<div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
			JOP APPLICATION FORM
            	</div>
            </div>
			<div class="panel-body">

			
										
					
							

<div class="panel panel-success" data-collapsed="0">
        	
			<div class="panel-body">
			
		
			

	<?PHP
	



 echo $this->session->flashdata('msg'); 
                  echo form_open('signupuser' , array('class' => 'form-horizontal form-groups-bordered validate',  'id' => 'signup','enctype' => 'multipart/form-data'));

		 if(validation_errors()):?>

<?php endif;?>

	  <div class="form-group">
    <label for="inputcategory" class="col-sm-2 control-label">Job category	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="category" required>
	<option value="" selected="selected" >---Which position are you applying for?---</option>
		<option  value="Sales Job">Sales Job</option>
		<option value="ICT job"  >ICT job</option>
				<option value="Finance Job"  >Finance Job</option>

	</select>		 
				
		<span class="text-danger"> <?php echo form_error('service'); ?>
		
		</span>
	</div>
  </div>

 <div class="form-group">
    <label for="inputothername" class="col-sm-2 control-label">First Name</label>
    <div class="col-sm-10">
		<input type="text" name="othername" value="<?php echo set_value('othername') ;?>" id="othername" class="form-control" required placeholder="Enter your Other Names">
       <span class="text-danger"><?php echo form_error('othername'); ?></span>
   </div>
  </div>
  
  
  
  <div class="form-group">

    <label for="inputsurname" class="col-sm-2 control-label">Last Name</label>
    <div class="col-sm-10">
		  		<input type="text" name="surname" value="<?php echo set_value('surname'); ?>"id="surname" class="form-control" required placeholder="Enter your surname">
     <span class="text-danger"><?php echo form_error('surname'); ?></span>
   </div>
  </div>
   <div class="form-group">
    <label for="inputservice" class="col-sm-2 control-label">Gender	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="service" required>
	<option value="" selected="selected" >--Select---</option>
		<option  value="yes">Male</option>
		<option value="no"  >Female</option>
		
	</select>		 
				
	
	</div>
  </div>
  
  
     <div class="form-group">
    <label for="inputphone" class="col-sm-2 control-label">Phone Number</label>
    <div class="col-sm-10">
		<input type="text" name="phone" value="<?php echo set_value('phone') ;?>" id="othername" class="form-control" required placeholder="Enter your phone Number e.g 254716567890">
       <span class="text-danger">Enter your Correct phone Number e.g 254716567890 ...You will get verification sms with login details.<?php echo form_error('phone'); ?></span>
   </div>
  </div>
  
  
   <div class="form-group">
    <label for="inputidno" class="col-sm-2 control-label">ID Number</label>
    <div class="col-sm-10">
		<input type="number" name="idno" value="<?php echo set_value('idno') ;?>" id="idno" class="form-control" required placeholder="Enter your ID Number e.g 10287049">
       <span class="text-danger"><?php echo form_error('idno'); ?></span>
   </div>
  </div>
  
  
  
  
  
    <div class="form-group">
    <label for="inputemail" class="col-sm-2 control-label">Email</label>
    <div class="col-sm-10">
				<input type="email"  name="email" value="<?php echo set_value('email') ;?>" id="email" class="form-control" required placeholder="Enter Your email">
    <span class="text-danger"><?php echo form_error('email'); ?></span>
	</div>
  </div>

      <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Course Name</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="Enter course">
       <span class="text-danger">Enter course done<?php echo form_error('phone'); ?></span>
   </div>
  </div>
  
     <div class="form-group">
    <label for="inputservice" class="col-sm-2 control-label">Highest Eductaion Level	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="service" required>
	<option value="" selected="selected" >--Select---</option>
		<option  value="yes">PHD</option>
		<option value="no"  >Masters</option>
				<option  value="yes">Diploma</option>
		<option value="no"  >Certificate</option>
	</select>		 
				
	
	</div>
  </div>
  

	   <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">High school Name</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  	   <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">High school Grade</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
   <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Current/Previous work place(Company)</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  		   <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Years of exprience</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  	
  	   <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Current Residence</label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
     <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Fisrt Referee name and Number </label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  	     <div class="form-group">
    <label for="inputcourse" class="col-sm-2 control-label">Second Referee name and Number </label>
    <div class="col-sm-10">
		<input type="text" name="course" value="<?php echo set_value('course') ;?>" id="othername" class="form-control" required placeholder="">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  <div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">Your appliction summary </label>
    <div class="col-sm-10">

				<textarea name="comments" value="<?php echo set_value('comments'); ?>"  class="form-control"  placeholder="Enter comments"></textarea>
			
		<span class="text-danger"> <?php echo form_error('comments'); ?>
		
		</span>
	</div>
  </div>
   

 	<div class="form-group">
    <label for="inputsurname" class="col-sm-2 control-label">Upload Cv</label>
    <div class="col-sm-10">
		
			<input type="file" name="file" width="400"  value="<?php echo set_value('file') ;?>" placeholder="Select EXCELL" class="form-control" required placeholder="Enter Surname"  >

		  		
				
		<span class="text-danger"> Upload all your documents here.<?php echo form_error('file'); ?>
		
		</span>
	</div>
  </div>	
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
     
	<button type="submit" name="btn_signup" class="btn btn-primary" value="signup">Apply Now</button>


    </div>
   </div>
			<?PHP
		echo form_close();
		
		?>
		
		
			
			</div>
		</div>
								
			
			
			
			
			
			
			
			</div>
		</div>
  
  </div>

</div>