


      <script type="text/javascript">
  
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid1").val(itemid); 
		  
		  
		   
        });
		

 
 	$(document).on("click", "#editbtn", function()
        {
          var mycategoryid = $(this).data('id');
		  $("#mycategoryid").val(mycategoryid); 
		   
		   		   
   var code = $(this).data('code');
		   $("#code").val(code);
 
		    var firstname = $(this).data('firstname');
		   $("#myfirstname").val(firstname); 
		   
		     var surname = $(this).data('surname');
		   $("#surname").val(surname); 
		   
		   
		     var email = $(this).data('email');
		   $("#email").val(email);
 
		    var phone = $(this).data('phone');
		   $("#myphone").val(phone); 
		   
		     var status = $(this).data('status');
		   $("#status").val(status); 
		 
		   
		     var password = $(this).data('password');
		   $("#password").val(password); 
		 
		          
		     var category = $(this).data('category');
		   $("#category").val(category); 
		 
		     var usertype = $(this).data('usertype');
		   $("#usertype").val(usertype); 
		 

		   	   var idno = $(this).data('idno');
		   $("#idno").val(idno);       
		     var gender = $(this).data('gender');
		   $("#gender").val(gender);
		   
		    var department = $(this).data('department');
		   $("#department").val(department); 
		 
		          
		     var manager = $(this).data('manager');
		   $("#manager").val(manager); 
		 
		     var leavegroup = $(this).data('leavegroup');
		   $("#leavegroup").val(leavegroup); 
	
		   
		   
        });
		
		
    </script>  
 
 <div class="row">
  
   	  <?php
   $session_data = $this->session->userdata('logged_in');

   
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
     $allrolesaction=$this->usermodel->populatuserpermissionsdataarray('users','deleteallroles',$userid);
	      $addaction=$this->usermodel->populatuserpermissionsdataarray('users','add',$userid);
	      $deleteaction=$this->usermodel->populatuserpermissionsdataarray('users','delete',$userid);
			    $viewallpayroll=$this->usermodel->populatuserpermissionsdataarray('humanresource','viewallpayroll',$userid);
    $leavesetup=$this->usermodel->populatuserpermissionsdataarray('humanresource','leavesetup',$userid);
    $updateusers=$this->usermodel->populatuserpermissionsdataarray('users','update',$userid);


  ?>
   	

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

  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>

   <a href="<?php echo base_url();?>user/viewleaves" class="btn btn-primary">   Go Back</a>	

 <span class="pull-right"> View employees</span>		

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

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


								?>	
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	<div class="col-md-12">
        <?php 
			 				echo $this->session->flashdata('deletemsg'); 

		 echo $this->session->flashdata('msg'); 
        $attr = array("class" => "form-horizontal", "role" => "form", "id" => "search", "name" => "search");
        echo form_open("user/searchallusersLeave", $attr);?>
            <div class="form-group">
			
                <div class="col-md-5">
                    <input class="form-control" id="searchterm" name="searchterm" placeholder="Search for members.." type="text" value="<?php echo set_value('searchterm'); ?>" />
                </div>
                <div class="col-md-4">
                    <input id="btn_search" name="btn_search" type="submit" class="btn btn-success" value="Search" />
                    <a href="<?php echo base_url(). "user/leavebalance"; ?>" class="btn btn-primary">Refresh</a>
                </div>
				 
            </div>
        <?php echo form_close(); ?>
        </div>
									
  <table cellpadding="0" cellspacing="0" border="0" class="table  table-striped" id="example" style="border-color:#CCCCCC; width:100%;"  >

             <thead>
         <tr>
       <th>#</th>

     <th>First Name</th>
     <th>last Name</th>
	     <th>Balance</th>
	     <th>Emp  No</th>
	     <th>Department</th>
	     <th>HOD</th>

	     <th>Email</th>
<th>Phone</th>	
    <th>ID Number</th>
		   <th>status</th> 
		
<th>Edit</th>


<th>More</th>
                 </tr>
             </thead><tbody>
<?php
 
 if(!is_array($viewemployee)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='1'>";
    
       echo '<div class="alert alert-warning text-center">There no records found..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($viewemployee as $c): 

		 

             ?>



             <tr>
                
            <?php 
$id=$c->id;


?>
  <td><?php echo $c->id ; ?></td>         

     
  <td><?php echo $c->firstname ; ?></td>         

  <td><?php echo $c->surname ; ?></td>
    <td><?php
	$remaining=0;
	$myuserid= $c->id ; 
			
$group= $c->leavegroup; 
	
	$totaldays= $this->usermodel->GetBalanceDaysusergroup($myuserid,$group);
	
$days=$totaldays[0]['days'];
	
	
	
					 $used= $this->usermodel->Getalluseddays($myuserid);
					$useddays=$used[0]['duration'];



	
	$remaining=$days-$useddays;

	
	
	?>
	
	<a  id="more" class="btn btn-default" href="<?php echo base_url();?>user/getmyleaves?randomitemidentifier=<?php   {echo  $myuserid;}  ?>"> <?php echo $remaining ; ?> All </a>
	
	
	
	
	
	
	
	</td>
    <td><?php echo $c->number ; ?></td>
    <td><?php $department=$c->department; 
		$mydepartment= $this->usermodel->populateallarray('department','id',$department);
		
echo$mydepartment[0]['name'];
	
	 ?></td>
    <td><?php  $manager=$c->manager ; 
	
		$mymanager= $this->usermodel->populateallarray('people','id',$manager);
		
echo$mymanager[0]['firstname'];
		
	
	
	
	
	
	?></td>

    <td><?php echo $c->email ; ?></td>
	  <td><?php echo $c->phone ; ?></td>
	  <td><?php echo $c->idno ; ?></td>
  <td><?php  

  //$mystatus="";
$mystatus=$c->status;
			  if( $mystatus =="1"){
				 echo $mystatus="active"; 
			  } else if( $mystatus =="0"){
				    echo $mystatus="inactive";
				  
			  }else{
echo $c->status ;
}

?></td>
 
<td>


                
		      <td>
			  


		 </td>
     		  <td> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
								
                                    <ul class="dropdown-menu dropdown-primary pull-right" role="menu">

									
									
																<li> 
											   <a  id="more" target="blank" class="btn btn-default" href="<?php echo base_url();?>user/employeenote?randomitemidentifier=<?php   {echo  $id;}  ?>&currentid=<?php   {echo  $id;}  ?>&type=Customer">Employee Notes   </a>

                                                        </li>
														
																														  <li class="divider"></li>

					   
														
						
	<?php  
													 
	
	 if($leavesetup==TRUE){
		 ///

	 ?>
									
									 	
			
																				 <li>  
										                     <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/groupleavedays?randomitemidentifier=<?php   {echo  $id;}  ?>&type=single"> 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Assign entitled days
                                                </a>
                                                        </li>	
																				  <li class="divider"></li>
										
										
										
										
											  <li class="divider"></li>

	
								 	
													 <li>  
										                     <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/groupleavedaysandcalculations?randomitemidentifier=<?php   {echo  $id;}  ?>&type=single&days=0"> 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Assign and Calculate entitled days
                                                </a>
                                                        </li>	
																				  <li class="divider"></li>						
									
		
<?php  
													 
	
	 }
		 ///

	 ?>



                                        
                                    </ul>
										
                                </div>
</td>
             </tr>

	<?php endforeach;} ?>


       <tbody> </table>
	   
        <div class="col-md-12 text-center">    <?php echo $links; ?>
					   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   System user(s). " ;?>    </span>

        
        </div>
   
			
	</div>
	
	<div id="editProductModel" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Update User Details</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/updatemyuser' , 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=""id="mycategoryid" class="form-control" required placeholder="Enter mycategoryid">
			  		
	
  <input type="hidden" id="view"name="view" class="view" placeholder="view" value="user/leavebalance">

 
 




    <div class="form-group">
    <label for="inputfirstname" class="col-sm-2 control-label">First Name</label>
    <div class="col-sm-10">
		<input type="text" name="firstname" value="<?php echo set_value('firstname') ;?>" id="myfirstname" class="form-control" required placeholder="Enter your Other Names">
       <span class="text-danger"><?php echo form_error('firstname'); ?></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="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="myphone" class="form-control" required placeholder="Enter your phone Number e.g 25716567890">
   </div>
  </div>
  
  	<div class="form-group">
    <label for="inputcategory" class="col-sm-2 control-label">	Category	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="category" id="category" >
		<option value=""  ></option>

	<option value=""  >---Select category---</option>
	<option value="member"  >Customer</option>
		<option value="supplier"  >Supplier</option>
				<option value="user"  >Employee</option>
												<option value="accomodation" >Accomodation</option>


	</select>		 
				
		<span class="text-danger"> <?php echo form_error('category'); ?>
		
		</span>
	</div>
  </div>
  
     
   	<div class="form-group">
    <label for="inputgender" class="col-sm-2 control-label">	Gender	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="gender"  id="gender" >
	<option value=""  selected="selected"></option>

	<option value=""  >---Select Gender---</option>
	<option value="female"  >female</option>
		<option value="male"  >male</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</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="text" name="idno"  id="idno"   value="<?php echo set_value('idno'); ?>" class="form-control"  placeholder="Enter idno if any or Campany Pin">
		 
				
		<span class="text-danger"> <?php echo form_error('idno'); ?>
		
		</span>
	</div>
  </div>
 
 
  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">	Status	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="status"  id="status"required>
		<option value="" selected="selected"  ></option>

	<option value=""  >---Select status---</option>
	<option value="1"  >active</option>
		<option value="0"  >inactive</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</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="text"  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="inputpassword" class="col-sm-2 control-label">Password</label>
    <div class="col-sm-10">
				<input type="password"  name="password" value="<?php echo set_value('password') ;?>" id="password" class="form-control" required placeholder="Enter Your Password">
    <span class="text-danger"><?php echo form_error('password'); ?></span>
	</div>
  </div>
  
 
	  <div class="form-group">
    <label for="inputusertype" class="col-sm-2 control-label">	User type	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="usertype" id="usertype" required>
		<option value=""  >---Select User type---</option>

			<option selected="selectted" value=""  ></option>

		<option  value="user">user</option>
		<option value="admin"  >admin</option>
			<option value="superadmin"  >superadmin</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('usertype'); ?>
		
		</span>
	</div>
  </div>
  
  
	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	Amount Limit(Daily) </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="code" value="<?php echo set_value('code'); ?>" id="code" class="form-control"  placeholder="Enter daily limit e.g 5000">
		 
				
		<span class="text-danger"> <?php echo form_error('code'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
  
  
  <div class="form-group">
    <label for="inputdleavegroup" class="col-sm-2 control-label">Leave	Group</label>
    <div class="col-sm-10">
	<select class="form-control" name="leavegroup" id="leavegroup">

	<option value="" selected></option>

<option value="">---Select Leave Group----</option>



	<?php
	

					 
			$leavegroup = $this->usermodel->populatealldata('leavegroup','id','DESC');

	


if(is_array($leavegroup)) {

   foreach($leavegroup as $leavegrouprow){

   //echo $courserow->coursename;
    ?>

					<option value="<?=  $leavegrouprow->id;   ?>"><?=  $leavegrouprow->name; ?></option>



	<?php

}} else {
    echo 'No leaveg roup   available.';
}
	
   


?>
			 
			
				
				</select>
		

	</div>
  </div>
  
  
  
  		<div class="form-group">
    <label for="inputdepartment" class="col-sm-2 control-label">	Dep.</label>
    <div class="col-sm-10">
	<select class="form-control" name="department"  id="department">
	
								<option value="">---Select your Department----</option>

	
	<?php 
					 
			$department = $this->usermodel->populatealldata('department','id','DESC');

	


if(is_array($department)) {

   foreach($department as $departmentrow){

   //echo $courserow->coursename;
    ?>
					<option  selected="selected"  value="<?=  $departmentrow->id;   ?>"><?=  $departmentrow->name; ?></option>



	<?php

}} else {
    echo 'No department  available.';
}
	
   


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

	</div>
  </div>
  
  
  	
	
  		<div class="form-group">
    <label for="inputdmanager" class="col-sm-2 control-label">HOD</label>
    <div class="col-sm-10">
	<select class="form-control" name="manager" id="manager">
		<option value=""  ></option>

								<option value="">---Please select the supervisor----    </option>

	
	<?php 
					 
								$supervisor = $this->usermodel->populatealldata('supervisor','id','DESC');
 
					 

	


if(is_array($supervisor)) {

   foreach($supervisor as $supervisorrow){

  $employeeno= $supervisorrow->employeeno;
  
  $mymyenployee= $this->usermodel->populateall('people','id',$employeeno);



if(is_array($mymyenployee)) {

   foreach($mymyenployee as $myenployeerow){

 
   ?>
					<option value="<?=  $myenployeerow->id;   ?>"><?=  $myenployeerow->lastname." ".$myenployeerow->firstname."(".$myenployeerow->number.")"; ?></option>



	<?php
}} else {
    echo 'No Employee';
}
	
  

}} else {
    echo 'No supervisor  available.';
}
	
   


?>
			 
			
				
				</select>
		
						<span class="text-danger">Supervisor/Manager<?php echo form_error('manager'); ?>

	</div>
  </div>
  
  
  
  
  
  

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="user" name="btn_updateouryuser" class="btn btn-primary"> Update User   </button>

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

    

				</div>

		</div>
	    </div>
    </div>
					
					
				
	
	<div id="deleteModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Delete</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to delete this item? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" placeholder="view" value="people">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="user/leavebalance">
 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete  </button>

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

  </div>

  </div>			
	
	
	
	
	
	
	
	
	
	
	<div id="deleteroleModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Clear all Roles</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to remove all roles from the system? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" value="permissions">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="user/viewemployee">
 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete/Clear Role  </button>

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

  </div>

  </div>			
	
	
	
				<div id="addModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- 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 new  User/ Contact</h4>
      </div>
  
    <div class="modal-body">
      
	  	

		
		
	<?PHP
	



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

		 if(validation_errors()):?>

<?php endif;?>

<input type="hidden" name="myid" value="0"  id="myid" class="form-control" required placeholder="Enter status">
				<input type="hidden" name="view" value="user/leavebalance" id="view" class="form-control" required placeholder="Enter view">



  <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'); ?>"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="inputfirstname" class="col-sm-2 control-label">First Name</label>
    <div class="col-sm-10">
		<input type="text" name="firstname" value="<?php echo set_value('firstname') ;?>" class="form-control" required placeholder="Enter your Other Names">
       <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 Number</label>
    <div class="col-sm-10">
		<input type="text" name="phone" value="<?php echo set_value('phone') ;?>" class="form-control" required placeholder="Enter your phone Number e.g 25716567890">
       <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  
  
  
     
   	<div class="form-group">
    <label for="inputgender" class="col-sm-2 control-label">	Gender	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="gender" >
	<option value=""  >---Select Gender---</option>
	<option value="female"  >female</option>
		<option value="male"  >male</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</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="text" name="idno" value="<?php echo set_value('idno'); ?>" class="form-control"  placeholder="Enter idno if any or Campany Pin">
		 
				
		<span class="text-danger"> <?php echo form_error('idno'); ?>
		
		</span>
	</div>
  </div>
 
 
  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">	Status	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="status" required>
	<option value=""  >---Select status---</option>
	<option value="1"  >active</option>
		<option value="0"  >inactive</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</span>
	</div>
  </div>
  
    	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	Amount Limit	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="code" value="<?php echo set_value('code'); ?>" class="form-control"  placeholder="Enter daily amount limit if any">
		 
				
		<span class="text-danger"> <?php echo form_error('code'); ?>
		
		</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="text"  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="inputpassword" class="col-sm-2 control-label"> Password </label>
    <div class="col-sm-10">
				<input type="password" name="password" value="<?php echo set_value('password'); ?>"id="password" class="form-control"  placeholder="Create your own password">
    <span class="text-danger"><?php echo form_error('password'); ?></span>
   </div>
  </div>
  
    <div class="form-group">
    <label for="inputcpassword" class="col-sm-2 control-label"> Confirm Password </label>
    <div class="col-sm-10">
				<input type="password" name="cpassword" value="<?php echo set_value('cpassword'); ?>"id="cpassword" class="form-control"  placeholder=" Confirm the same password">
    <span class="text-danger"><?php echo form_error('cpassword'); ?></span>
   </div>
  </div>
  
  
  
  
  
	 <div class="form-group">

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

    </div>
  </div>
   

 

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

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

 
</div>


</div>

</div>


</div>













