
  <div class="container-fluid">
 
 
 <div class="row">
  
  
 
  <div class="col-xs-12 col-sm-6 col-lg-12">
  
 <div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
				View all document for the selected student
            	</div>
            </div>
			<div class="panel-body">

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


	
<?php 

if(is_array($documets)) {

?>

  <table cellpadding="0" cellspacing="0" border="0" class="table  table" id="example" style="border-color:#CCCCCC; width:100%;"  >

  <tr>

    <th>Document</th>

    <th>Document Name</th>    



      
<th>Date uploaded</th> 

<th>View document </th>   

  </tr>
  <?php


   foreach($documets as $row){

  echo "<tr>";

    
  echo "<td style='color:green'><b>". $row->document ."</b></td>";
   

 echo "<td>". $row->documentname ."</td>";
 
      echo "<td>". $row->createddate ."</td>";



$document=$row->document;
?>
<td  style='color:green'> 
		 
 <a href="<?php echo base_url();?>courseapplications/<?php echo  $row->document;?>"> view document  </a>	 

 </td>



<?php
			    
  
}} else {
 //$this->session->set_flashdata('msg', '<div class="alert alert-danger text-center">There is no any course application  that you have submitted.... Please apply now...</div>');

 // echo 'There is no any course application  that you have submitted.... Please apply now....';
   echo '<div class="alert alert-danger text-center">There was no document submitted by this applicant or There was error in displaying the document...Try again</div>';
}

 echo "</tr>";   




?>

</table>
        

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

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

</div>