File: //home/cafsindia/hrms_cafsindia_com/application/views/increment_approval/view_history.php
<div id='table_holder' style='min-height:500px;'>
<?php
$tr_line = "";
foreach ($log_qry_result as $key => $value) {
$updated_date = date("d-m-Y H:i:s",strtotime($value->trans_created_date));
$tr_line .= "<tr><td>$value->employees</td><td>$value->apply_month</td><td>$value->effective_date</td><td>$value->increment_value</td></tr>";
}
?>
<table id='history_tbl' class='table table-hover'>
<thead>
<tr>
<th>Employee Code</th>
<th>Increment Month</th>
<th>Effective Date</th>
<th>Increment Value</th>
</thead>
<tbody>
<?php echo $tr_line; ?>
</tbody>
</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#history_tbl').DataTable();
});
</script>