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
<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">Mã nhóm</th>
<th style="text-align: center">Mô tả</th>
<th style="text-align: center">Trạng thái</th>
<th style="text-align: center">Ngày tạo</th>
<th style="text-align: center">Ngày cập nhật</th>
<th style="text-align: center">Xử lý</th>
</tr>
</thead>
<tbody>
<?php 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>
<a href="<?php echo base_url().'backend/cmsSetting/editGroup/'.$data['id']; ?>">
<?php echo $data['name']; ?>
</a>
</td>
<td><?php echo $data['description']; ?></td>
<td style="text-align: center">
<?php if($data['is_active'] == 1){
echo '<i class="ace-icon fa fa-unlock bigger-130" style="color: #428bca"></i>';
}else{
echo '<i class="ace-icon fa fa-lock bigger-130" style="color: red"></i>';
}?>
</td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['updated_at']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsSetting/editGroup/'.$data['id']; ?>">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<!-- /.row -->
<div style="text-align: center;"><?php echo $pagination; ?></div>