
<table class="table table-hover tablesorter">
<thead>
	<tr>
		<th class="header">Email</th>
		<th class="header">Name</th> 
		<th class="header">Reg_no</th>
		<th class="header">Branch</th>  
		<th class="header">Contact_no</th>
		<th class="header">Apti_score</th>                 
	</tr>
</thead>
<a class="pull-right btn btn-warning btn-large" style="margin-right:40px" href="<?php echo site_url(); ?>/export/createexcel"><i class="fa fa-file-excel-o"></i> Export to Excel</a>
<tbody>
	<?php
	if (isset($studentData) && !empty($studentData)) {
		foreach ($studentData as $key => $emp) {
			?>
			<tr>
				<td><?php echo $emp['email']; ?></td>   
				<td><?php echo $emp['name']; ?></td> 
				<td><?php echo $emp['reg_no']; ?></td>
				<td><?php echo $emp['branch']; ?></td> 
				<td><?php echo $emp['contact_no']; ?></td>
				<td><?php echo $emp['apti_score']; ?></td>                       
			</tr>
			<?php
		}
	} else {
		?>
		<tr>
			<td colspan="5" class="alert alert-danger">No Records founds</td>    
		</tr>
	<?php } ?>			 
</tbody>
</table>   
?>