[*] группы переделаны в роли
This commit is contained in:
1 parent
f5c25db31e
commit
723ace2ae4
3 files changed
+15
-15
No files matched your search
+9
-9
@@ -10,9 +10,9 @@
|
||||
<div class="media-body">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
|
||||
<li>Список Групп</li>
|
||||
<li>Список ролей</li>
|
||||
</ul>
|
||||
<h4>Список групп</h4>
|
||||
<h4>Список ролей</h4>
|
||||
</div>
|
||||
</div><!-- media -->
|
||||
</div><!-- pageheader -->
|
||||
@@ -34,15 +34,15 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$arGroups = Roles::getAllGroups();
|
||||
foreach($arGroups as $group){
|
||||
$arRoles = Roles::getAllGroups();
|
||||
foreach($arRoles as $role){
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$group['id'];?></td>
|
||||
<td><?=$group['name'];?></td>
|
||||
<td><?=$group['description'];?></td>
|
||||
<td><?=$group['date_created'] ? date('d.m.Y H:i:s', strtotime($group['date_created'])) : '-';?></td>
|
||||
<td><?=$group['date_updated'] ? date('d.m.Y H:i:s', strtotime($group['date_updated'])) : '-';?></td>
|
||||
<td><?= $role['id'];?></td>
|
||||
<td><?= $role['name'];?></td>
|
||||
<td><?= $role['description'];?></td>
|
||||
<td><?= $role['date_created'] ? date('d.m.Y H:i:s', strtotime($role['date_created'])) : '-';?></td>
|
||||
<td><?= $role['date_updated'] ? date('d.m.Y H:i:s', strtotime($role['date_updated'])) : '-';?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li><a href="/admin/"><i class="fa fa-home"></i> <span>Дашбоард</span></a></li>
|
||||
<li><a href="/admin/users.php"><i class="fa fa-home"></i> <span>Список пользователей</span></a></li>
|
||||
<li><a href="/admin/groups.php"><i class="fa fa-home"></i> <span>Список групп</span></a></li>
|
||||
<li><a href="/admin/groups.php"><i class="fa fa-home"></i> <span>Список ролей</span></a></li>
|
||||
<li><a href="/admin/cacheInfo.php"><i class="fa fa-home"></i> <span>Кэширование</span></a></li>
|
||||
<li><a href="index.html"><i class="fa fa-home"></i> <span>Dashboard</span></a></li>
|
||||
<li><a href="index.html"><i class="fa fa-home"></i> <span>Dashboard</span></a></li>
|
||||
|
||||
+5
-5
@@ -32,7 +32,7 @@
|
||||
<th>Имя</th>
|
||||
<th>E-Mail</th>
|
||||
<th>Изображение</th>
|
||||
<th>Группы</th>
|
||||
<th>Роли</th>
|
||||
<th>Токен</th>
|
||||
<th>Был активен</th>
|
||||
<th>Создан</th>
|
||||
@@ -53,11 +53,11 @@
|
||||
<td><?=$elUser['email'];?></td>
|
||||
<td><?=$elUser['image'] ? '<img src="'.$elUser['image'].'" width="50px">' : ''; ?></td>
|
||||
<td><?php
|
||||
$arGroups = [];
|
||||
foreach($userObject->getRolesObject()->getFullGroup() as $userGroup) {
|
||||
$arGroups[] = $userGroup['name'] . ' (' . $userGroup['id'] . ')';
|
||||
$arRoles = [];
|
||||
foreach($userObject->getRolesObject()->getFullGroup() as $userRole) {
|
||||
$arRoles[] = $userRole['name'] . ' (' . $userRole['id'] . ')';
|
||||
}
|
||||
echo implode(', ', $arGroups);
|
||||
echo implode(', ', $arRoles);
|
||||
?></td>
|
||||
<td><?=$elUser['token'];?></td>
|
||||
<td><?=date('d.m.Y H:i:s', $elUser['last_active']);?></td>
|
||||
|
||||
Reference in new issue
Block a user