

 
 <div class="row">
  
   	

   	<div class="col-md-12">

  
		

			
	<div class="widget-content nopadding table_holder table-responsive" >				
			
		

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add salary for this month </h4>
													 	<a  id="more" class="btn btn-success" href="<?php echo base_url();?>user/viewrequest">Hr/Requests  </a>

								 	<a  id="more" class="btn btn-success" href="<?php echo base_url();?>user/Payroll"> Payroll setup </a>

      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in',$payment[0]['taxcode']);
$year=date('Y');
$month=date('M');

				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addsalary' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="myid" value="<?php echo $itemid; ?>"  id="myid" class="form-control" required placeholder="Enter status">
				  		<input type="hidden" name="category" value="member" class="form-control" required placeholder="Enter member">

						
						 	<div class="form-group">
    <label for="inputentrydate" class="col-sm-2 control-label">	Employment date  	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="entrydate" value="<?php echo set_value('entrydate',$payroll[0]['entrydate']); ?>"  required readonly class="form-control"  placeholder="Enter Entry date">
		 
				
		<span class="text-danger"> <?php echo form_error('entrydate'); ?>
		
		</span>
	</div>
  </div>

	<div class="form-group">
    <label for="inputfirstname" class="col-sm-2 control-label">Names <span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="firstname" readonly value="<?php echo set_value('firstname',$payroll[0]['firstname']); ?>" readonly class="form-control" required placeholder="Enter first and last name">
		 
				
		<span class="text-danger"> <?php echo form_error('firstname'); ?>
		
		</span>
	</div>
  </div>

  
  	<div class="form-group">
    <label for="inputphone" class="col-sm-2 control-label">	Phone <span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="phone" readonly value="<?php echo set_value('phone',$payroll[0]['phone']); ?>" class="form-control" required placeholder="Enter phone e.g 254712345678">
		 
				
		<span class="text-danger">Enter phone e.g 254712345678 <?php echo form_error('phone'); ?>
		
		</span>
	</div>
  </div>
  
  
      	<div class="form-group">
    <label for="inputmonth" class="col-sm-2 control-label">Month </label>
    <div class="col-sm-10">
	
   				<input type="text" name="month" value="<?php echo set_value('month',$month); ?>" id="idno" class="form-control"  placeholder="Enter month">
		 
				
		<span class="text-danger"> <?php echo form_error('month'); ?>
		
		</span>
	</div>
  </div>
      	<div class="form-group">
    <label for="inputyear" class="col-sm-2 control-label">Year </label>
    <div class="col-sm-10">
	
   				<input type="text" name="year" value="<?php echo set_value('year',$year); ?>" id="idno" class="form-control"  placeholder="Enter year">
		 
				
		<span class="text-danger"> <?php echo form_error('year'); ?>
		
		</span>
	</div>
  </div>
   		
  
  
  
  
   	<div class="form-group">
    <label for="inputphonetype" class="col-sm-2 control-label">Employment type </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="type" value="<?php echo set_value('type',$payment[0]['type']); ?>" class="form-control"  placeholder="eg Contract">
		 
				
		<span class="text-danger"> <?php echo form_error('type'); ?>
		
		</span>
	</div>
  </div>
  
    

    	<div class="form-group">
    <label for="inputdesignation" class="col-sm-2 control-label">	Designation </label>
    <div class="col-sm-10">
	
		  		<input type="designation" name="designation" value="<?php echo set_value('designation',$payment[0]['designation']); ?>" class="form-control"  placeholder="Enter  post">
		 
				
		<span class="text-danger"> <?php echo form_error('designation'); ?>
		
		</span>
	</div>
  </div>
    	<div class="form-group">
    <label for="inputallowance" class="col-sm-2 control-label">Allowance	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="allowance" value="<?php echo set_value('allowance',$payment[0]['allowance']); ?>" class="form-control"  placeholder="allowance">
		 
				
		<span class="text-danger"> <?php echo form_error('allowance'); ?>
		
		</span>
	</div>
  </div>
  
  	<div class="form-group">
    <label for="inputpaytype" class="col-sm-2 control-label">	Pay type	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="paytype" value="<?php echo set_value('paytype',$payment[0]['paytype']); ?>" class="form-control"  placeholder="Enter payement type e.g monthly">
		 
				
		<span class="text-danger"> <?php echo form_error('paytype'); ?>
		
		</span>
	</div>
  </div>
 
 

  	<div class="form-group">
    <label for="inputnohours" class="col-sm-2 control-label">	No of hours 	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="nohours" value="<?php echo set_value('nohours',$payment[0]['nohours']); ?>" class="form-control"  placeholder="Enter No of hours worked">
		 
				
		<span class="text-danger"> <?php echo form_error('nohours'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  	<div class="form-group">
    <label for="inputsalary" class="col-sm-2 control-label">	Salary Amount 	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="salary" value="<?php echo set_value('salary',$payment[0]['salary']); ?>" class="form-control"  placeholder="Enter Salary amount">
		 
				
		<span class="text-danger"> <?php echo form_error('salary'); ?>
		
		</span>
	</div>
  </div>
  
  
  
 
  
  	
 
  
    	<div class="form-group">
    <label for="inputnodays" class="col-sm-2 control-label">	No of days(monthly)	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="nodays" value="<?php echo set_value('nodays',$payment[0]['nodays']); ?>" class="form-control"  placeholder="Enter No of days worked monthly">
		 
				
		<span class="text-danger"> <?php echo form_error('nodays'); ?>
		
		</span>
	</div>
  </div>
  
 
    	<div class="form-group">
    <label for="inputnodaysyearly" class="col-sm-2 control-label">	No of days(Yearly)	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="nodaysyearly" value="<?php echo set_value('nodaysyearly',$payment[0]['nodaysyearly']); ?>" class="form-control"  placeholder="Enter No of days worked yearly">
		 
				
		<span class="text-danger"> <?php echo form_error('nodaysyearly'); ?>
		
		</span>
	</div>
  </div>
  
      	<div class="form-group">
    <label for="inputannualsalary" class="col-sm-2 control-label">Exp.	Annual Salary	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="annualsalary" value="<?php echo set_value('annualsalary',$payment[0]['annualsalary']); ?>" class="form-control"  placeholder="Expected annual salary">
		 
				
		<span class="text-danger"> <?php echo form_error('annualsalary'); ?>
		
		</span>
	</div>
  </div>
  
  
      	<div class="form-group">
    <label for="inputmonthlysalary" class="col-sm-2 control-label">Exp.	Monthly Salary	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="monthlysalary" value="<?php echo set_value('monthlysalary',$payment[0]['monthlysalary']); ?>" class="form-control"  placeholder="Expected monthly salary">
		 
				
		<span class="text-danger"> <?php echo form_error('monthlysalary'); ?>
		
		</span>
	</div>
  </div>
  
  
      	<div class="form-group">
    <label for="inputdailysalary" class="col-sm-2 control-label">Exp.	Daily Salary	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="dailysalary" value="<?php echo set_value('dailysalary',$payment[0]['dailysalary']); ?>" class="form-control"  placeholder="Expected daily salary">
		 
				
		<span class="text-danger"> <?php echo form_error('dailysalary'); ?>
		
		</span>
	</div>
  </div>
	<div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">	Description</label>
    <div class="col-sm-10">

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

	

      	<div class="form-group">
    <label for="inputvat" class="col-sm-2 control-label">VAT Relief </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="vat" value="<?php echo set_value('vat',$payment[0]['vat']); ?>" class="form-control"  placeholder="VAT">
		 
				
		<span class="text-danger"> <?php echo form_error('vat'); ?>
		
		</span>
	</div>
  </div>
	
      	<div class="form-group">
    <label for="inputpayee" class="col-sm-2 control-label">PAYEE	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="payee" value="<?php echo set_value('payee',$payment[0]['payee']); ?>" class="form-control"  placeholder="payee">
		 
				
		<span class="text-danger"> <?php echo form_error('payee'); ?>
		
		</span>
	</div>
  </div>
  
      	<div class="form-group">
    <label for="inputnssf" class="col-sm-2 control-label">NSSF	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="nssf" value="<?php echo set_value('nssf',$payment[0]['nssf']); ?>" class="form-control"  placeholder="NSSF">
		 
				
		<span class="text-danger"> <?php echo form_error('nssf'); ?>
		
		</span>
	</div>
  </div>
  
      	<div class="form-group">
    <label for="inputnihf" class="col-sm-2 control-label">NHIF	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="nihf" value="<?php echo set_value('nihf',$payment[0]['nihf']); ?>" class="form-control"  placeholder="NHIF">
		 
				
		<span class="text-danger"> <?php echo form_error('nihf'); ?>
		
		</span>
	</div>
  </div>
 
 
      	<div class="form-group">
    <label for="inputadvance" class="col-sm-2 control-label">Advance	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="advance" value="<?php echo set_value('advance',$payment[0]['advance']); ?>" class="form-control"  placeholder="advance">
		 
				
		<span class="text-danger"> <?php echo form_error('advance'); ?>
		
		</span>
	</div>
  </div>
       	<div class="form-group">
    <label for="inputloan" class="col-sm-2 control-label">Loan	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="loan" value="<?php echo set_value('loan',$payment[0]['loan']); ?>" class="form-control"  placeholder="loan">
		 
				
		<span class="text-danger"> <?php echo form_error('loan'); ?>
		
		</span>
	</div>
  </div>

      	<div class="form-group">
    <label for="inputother" class="col-sm-2 control-label">Other deduction	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="other" value="<?php echo set_value('other',$payment[0]['other']); ?>" class="form-control"  placeholder="other deduction">
		 
				
		<span class="text-danger"> <?php echo form_error('other'); ?>
		
		</span>
	</div>
  </div>
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="payroll" name="btn_addpayroll" class="btn btn-primary">Add payroll   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	  						
									
									
									
									
							</div>
						</div>
				

			
			</div>



















