

 
 <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>
				View all announcement
    <span class="pull-right"> <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/viewleaves">Go back  </a></span>

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

			
										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	
									
									
							
<table id="example"  cellspacing="1" border="1" class="table-striped" width="100%">
             <thead>
         <tr>
     <th>Title</th>
     <th>Target</th>
	     <th>Date posted</th> 
		 	    <th>Deadline</th> 
		   <th>Announcement</th> 





                 </tr>
             </thead>
<?php
 if(!is_array($announcement)) {
				    echo '<div class="alert alert-danger text-center">There is no records found</div>';

			 }else{
 if(!is_array($announcement)) 

 {


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

		 

             ?>



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


?>

              
  <td><?php echo $c->title ; ?></td>
  <td><?php echo $c->target ; ?></td>
    <td><?php echo $c->dateposted ; ?></td>
		    <td><?php echo $c->enddate ; ?></td>
	  <td><?php echo $c->message ; ?></td>
  
            
             </tr>

	<?php endforeach;} ?>

              <?php }?>

        </table>

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

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

 
</div>


















