<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> <th style="text-align: center">Xử lý</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> <td style="text-align: center"> <?php if((time() - strtotime($data['created_at'])) > 15*24*3600): ?> <a href="<?php echo base_url().'dcvsetting/deleteLogAction/'.$data['id']; ?>" onclick="return confirm('Bạn có chắc chắn muốn xóa không?')" title="Xóa"> <i class="ace-icon red fa fa-trash-o bigger-130"></i> </a> <?php else: echo 'Xóa sau '.(15-(gmdate('d', time()-strtotime($data['created_at'])))).' ngày'; endif;?> </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>