56 lines
2.3 KiB
PHP
56 lines
2.3 KiB
PHP
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="float-right">
|
|
</div><!-- end col-->
|
|
<br>
|
|
<h4 class="header-title mb-3"><?= $page_name; ?></h4>
|
|
|
|
<div class="table-responsive">
|
|
<table id="datatable-buttons" class="table w-100 nowrap">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th hidden></th>
|
|
<th>Action</th>
|
|
<th>Module</th>
|
|
<th>Key</th>
|
|
<th>Old Value</th>
|
|
<th>New Value</th>
|
|
<th>Updated By</th>
|
|
<th>Updated On</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($data as $audit_data): ?>
|
|
<?php foreach ($audit_data as $value): ?>
|
|
<tr>
|
|
<td hidden><?= $value->id ?></td>
|
|
<td><?= $value->mode ?></td>
|
|
<td><?= $value->module ?></td>
|
|
<td><?= $value->key ?></td>
|
|
<td><?= $value->old_value ?></td>
|
|
<td><?= $value->new_value ?></td>
|
|
<td><?= $value->updated_by ?></td>
|
|
<td><?= date('d-m-Y H:m:s', strtotime($value->updated_on)) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div> <!-- end card body-->
|
|
</div> <!-- end card -->
|
|
</div><!-- end col-->
|
|
</div>
|
|
|
|
<!-- end row-->
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#datatable-buttons').DataTable({
|
|
"order": [[0, "desc"]] // 4 is the column index of "created_on" in your table
|
|
// Other DataTables configuration options
|
|
});
|
|
});
|
|
</script>
|