<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.datatables.net/1.11.2/css/jquery.dataTables.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  <script src="https://cdn.datatables.net/1.11.2/js/jquery.dataTables.min.js"></script>
</head>
<body>

<style>
	#dtBasicExample > tbody > .odd{
		background: #ebebeb;
	}
</style>

<div class="container">
  <a href="<?php echo base_url();?>department" class="text-white"><div class="btn btn-primary"> Back </div></a>
  <p><?php echo $lable; ?></p>            
  <table id="dtBasicExample" class="table table-bordered">
    <thead>
      <tr>
        <th>RegdNo</th>
        <th>CName</th>
        <th>Gender</th>
        <th>PostApplied</th>
        <th>BatchID</th>
        <th>EXM</th>
        <th>BibNo</th>
        <th>StartTime</th>
        <th>EndTIme	</th>
        <th>NetTime</th>
        <th>PETResult</th>
        <th>runners</th>
        <th>result</th>
        <th>time_taken</th>
        <th>jacket_number</th>
        
      </tr>
    </thead>
    <tbody>
	<?php foreach($result_data as $row){
		
	?>
      <tr>
        <td><?php echo $row['RegdNo'];?></td>
        <td><?php echo $row['CName'];?></td>
        <td><?php echo $row['gender'];?></td>
        <td><?php echo $row['PostApplied'];?></td>
        <td><?php echo $row['BatchID'];?></td>
        <td><?php echo $row['EXM'];?></td>
        <td><?php echo $row['BibNo'];?></td>
        <td><?php echo $row['StartTime'];?></td>
        <td><?php echo $row['EndTIme'];?></td>
        <td><?php echo $row['NetTime'];?></td>
        <td><?php echo $row['PETResult'];?></td>
        <td><?php echo $row['runners'];?></td>
        <td><?php echo $row['result'];?></td>
        <td><?php echo $row['time_taken'];?></td>
        <td><?php echo $row['jacket_number'];?></td>
      </tr>
	<?php } ?>
    </tbody>
  </table>
</div>
</body>
<script>
	$(document).ready(function () {
  $('#dtBasicExample').DataTable();
  $('.dataTables_length').addClass('bs-select');
});
</script>
</html>
