

 <div class="row">
  
   	<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>
				Post or View Employees
				
								                   <span class="pull-right">  <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/viewtasks">Go back  </a>

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

			
										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
					
	
				<?PHP


$session_data = $this->session->userdata('logged_in');

   
 	$data['id'] = $session_data['id'];
        $data['email'] = $session_data['email'];
$data['id'] = $session_data['id'];
		 $userid = $data['id'];
		 $data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];

 $email=$data['email'];
$id=$data['id'];
$mydate=date("d-m-Y");
							    $postemployeenoteforothers=$this->usermodel->populatuserpermissionsdataarray('task','postemployeenoteforothers',$userid);

$imgid = rand(100, 990000).time();
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/employeenote' , 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;?>
	
  		
  
  
 	<div class="form-group">
    <label for="inputcurrentid" class="col-sm-2 control-label">Employee Name </label>
    <div class="col-sm-10">
	<select class="form-control" name="currentid" required>
	
								<option value="">---Please select Employee   </option>

	
	
	<?php 
				
				
	
			$allusers = $this->usermodel->populatealldatanoarray('people', 'id',$userid,'id >',0);

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
					<option selected="selected" value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>



	<?php

}} else {
   // echo 'No user available.';
}
	
?>

	<?php 
				 if($postemployeenoteforothers==true){	
				
		
			//$allusers = $this->usermodel->populatealldatanoarray('people', 'companyid',$companyid,'id >',0);
						$allusers = $this->usermodel->populatealldatanoarraythree('people', 'companyid',$companyid,'status',1,'category','user');

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>



	<?php

}} else {
    echo 'No user available.';
}
		}
?>


	
				
				</select>
		

	</div>
  </div>
  
 
  

     
  

 
  
 
   
  
  
  
  
  
  
  
  
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     	         <button type="submit"  name="btn_PostNotes"  value="Note"  class="btn btn-primary"> Post/View Employee Note </button>


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

								
			
			
			
			
			
			
		
		</div>
  
  </div>

</div>
















