base commit
This commit is contained in:
1 parent
69eddd4b5b
commit
c0728badef
162 files changed
+43597
No files matched your search
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/bootstrap.php';
|
||||
if(!CUSer::is_admin()) {
|
||||
die('403 - Access denied');
|
||||
}
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/header.php';
|
||||
|
||||
?>
|
||||
|
||||
<div class="row maxheight">
|
||||
<div class="col-lg-12">
|
||||
<!-- Header BG Table -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h4>Пользователи</h4>
|
||||
<div class="card-actions">
|
||||
<code>CUsers</code>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-block">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-borderless table-header-bg">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center" style="width: 50px;">ID</th>
|
||||
<th>Логин</th>
|
||||
<th>Имя</th>
|
||||
<th>Доступ</th>
|
||||
<th>Изображение</th>
|
||||
<th>Последняя активность</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
CPagination::execute($_REQUEST['page'], CUser::count_users(), $CONFIG['PAGINATION_LIMIT']);
|
||||
$limit = CPagination::getLimit();
|
||||
?>
|
||||
<?php foreach(CUser::getUsers($limit, 'ASC') as $user): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $user['id']; ?></td>
|
||||
<td><?php echo $user['login']; ?></td>
|
||||
<td><?php echo $user['name']; ?></td>
|
||||
<td><?php echo $user['access_level']; ?></td>
|
||||
<td style="text-align:center;"><a href="<?php echo $user['image']; ?>" target="_blank"><img style="max-width: 40px;" src="<?php echo $user['image']; ?>"></a></td>
|
||||
<td><?php echo date("d.m.Y H:i:s", $user['last_active']); ?></td>
|
||||
<td><a href="login_as.php?id=<?php echo $user['id']; ?>" class="btn btn-app-blue btn-block">Войти</a></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php CPagination::show('page'); ?>
|
||||
</div>
|
||||
<!-- .card-block -->
|
||||
</div>
|
||||
<!-- .card -->
|
||||
<!-- End Header BG Table -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/footer.php';
|
||||
?>
|
||||
Reference in new issue
Block a user