1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div style="/*max-height: 465px; overflow: scroll*/">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="text-align: center">TT</th>
<th style="text-align: center">ID</th>
<th style="text-align: center; min-width: 100px;">Tài khoản tác động</th>
<th style="text-align: center">Loại xử lý</th>
<th style="text-align: center; min-width: 100px;">Mô tả hành động</th>
<th style="text-align: center">Bảng / Mật khẩu</th>
<th style="text-align: center">ID bản ghi</th>
<th style="text-align: center">IP</th>
<th style="text-align: center">Ngày tạo</th>
</tr>
</thead>
<tbody>
<?php
if(count($listData) > 0):
foreach($listData as $key => $data): ?>
<tr>
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td>
<td><?php echo $data['actor_name']; ?></td>
<td><?php echo $data['action']; ?></td>
<td><?php echo MyHelper::truncate($data['description'], 50); ?></td>
<td><?php echo $data['table']; ?></td>
<td style="text-align: right"><?php echo $data['record_id']; ?></td>
<td style="text-align: center">
<?php echo $data['ip_address']; ?>
</td>
<td style="text-align: center">
<?php echo MyHelper::reFormatDate($data['created_at']); ?>
</td>
</tr>
<?php
endforeach;
else:
?>
<tr>
<td colspan="10" style="color: red">Không có dữ liệu nào!</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<!-- /.row -->
<div style="text-align: center;"><?php echo $pagination; ?></div>