File: /home/cafsindia/cloud_cafsinfotech_in/application/views/increment_approval/view_log.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->column_name</td><td>$value->percentage</td><td>$value->old_value</td><td>$value->new_value</td><td>$value->updated - $value->emp_name</td><td>$updated_date</td></tr>";
}
?>
<table id='log_tbl' class='table table-hover'>
<thead>
<tr>
<th>Transaction Column</th>
<th>Percentage</th>
<th>Old value</th>
<th>Updated Value</th>
<th>Updated By</th>
<th>Updated Date</th>
</thead>
<tbody>
<?php echo $tr_line; ?>
</tbody>
</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#log_tbl').DataTable();
});
</script>