
	
   	<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 your all comments/messages
				<span class="pull-right">
				                     <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/postsuggestion">Post new comments  </a>
								                   <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>Description</th>
	      <th>Status</th>
   
           
<th>Date submited</th> 





                 </tr>
             </thead>
<?php
echo $this->session->flashdata('msg');
 if(!is_array($suggestion)) 

 {


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

		 

             ?>



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


?>

 <td><?php echo $c->title; ?></td> 
 <td><?php echo $c->description; ?></td>   
  <td><?php echo $c->status; ?></td>   
                     <td><?php echo $c->postedtime; ?></td>   
         
             </tr>

             <?php endforeach; ?>

              <?php }?>

        </table>

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

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

 
</div>


















