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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<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">Họ và tên</th>
<th style="text-align: center">Thuộc nhóm quyền</th>
<th style="text-align: center">Email</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">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>
<?php
if($data['groupName'] == 'dcv_super_admin'):
if($data['id'] == $this->session->userdata('id')): ?>
<a href="<?php echo base_url().'backend/cmsSetting/editUserAdmin/'.$data['id']; ?>" title="Cập nhật User">
<?php echo $data['fullname']; ?>
</a>
<?php
else: echo $data['fullname'];
endif;
else: ?>
<a href="<?php echo base_url().'backend/cmsSetting/editUserAdmin/'.$data['id']; ?>" title="Cập nhật User">
<?php echo $data['fullname']; ?>
</a>
<?php endif; ?>
<br><span style="font-size: 11px; color: #d15b47"><?php echo $data['username']; ?></span>
</td>
<td>
<?php echo $data['groupDescription']; ?>
<br><span style="font-size: 11px; color: #d15b47"><?php echo $data['groupName']; ?></span>
</td>
<td><?php echo $data['email']; ?></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>';
}?>
<?php if($this->session->userdata('is_super') == 1): ?>
<a href="<?php echo base_url().'backend/cmsSetting/changeStatus/'.$data['id'].'/'.$data['is_active'] ?>" onclick="return confirm('Bạn có chắc chắn thay đổi trạng thái không?')">
Thay đổi
</a>
<?php endif; ?>
</td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center"></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<!-- /.row -->
<div style="text-align: center;"><?php echo $pagination; ?></div>