2020-06-07 19:04:43 +03:00
|
|
|
{extends "@layout.xml"}
|
|
|
|
{var search = true}
|
|
|
|
|
|
|
|
{block title}
|
|
|
|
Пользователи
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block heading}
|
|
|
|
Пиздюки
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block searchTitle}Поиск пиздюков{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
{var users = iterator_to_array($users)}
|
|
|
|
{var amount = sizeof($users)}
|
|
|
|
|
|
|
|
<table class="aui aui-table-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Имя</th>
|
|
|
|
<th>Пол</th>
|
|
|
|
<th>Короткий адрес</th>
|
|
|
|
<th>Дата регистрации</th>
|
|
|
|
<th>Действия</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr n:foreach="$users as $user">
|
|
|
|
<td>{$user->getId()}</td>
|
|
|
|
<td>
|
|
|
|
<span class="aui-avatar aui-avatar-xsmall">
|
|
|
|
<span class="aui-avatar-inner">
|
2022-04-05 14:39:13 +03:00
|
|
|
<img src="{$user->getAvatarUrl('miniscule')}" alt="{$user->getCanonicalName()}" style="object-fit: cover;" role="presentation" />
|
2020-06-07 19:04:43 +03:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
|
|
|
|
|
|
|
|
<span n:if="$user->isBanned()" class="aui-lozenge aui-lozenge-subtle aui-lozenge-removed">
|
|
|
|
заблокирован
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>{$user->isFemale() ? "Женский" : "Мужской"}</td>
|
|
|
|
<td>{$user->getShortCode() ?? "(отсутствует)"}</td>
|
|
|
|
<td>{$user->getRegistrationTime()}</td>
|
|
|
|
<td>
|
|
|
|
<a class="aui-button aui-button-primary" href="/admin/users/id{$user->getId()}">
|
|
|
|
<span class="aui-icon aui-icon-small aui-iconfont-new-edit">Редактировать</span>
|
|
|
|
</a>
|
2021-09-11 19:25:57 +03:00
|
|
|
{if $thisUser->getChandlerUser()->can("substitute")->model('openvk\Web\Models\Entities\User')->whichBelongsTo(0)}
|
2021-09-11 19:11:06 +03:00
|
|
|
<a class="aui-button" href="/setSID/{$user->getChandlerUser()->getId()}?hash={rawurlencode($csrfToken)}">
|
|
|
|
<span class="aui-icon aui-icon-small aui-iconfont-sign-in">Войти как</span>
|
|
|
|
</a>
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
|
|
<div align="right">
|
2021-09-11 13:35:27 +03:00
|
|
|
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
|
|
|
⭁ туда
|
|
|
|
</a>
|
|
|
|
<a n:if="$isLast" class="aui-button" href="?p={($_GET['p'] ?? 1) + 1}">
|
|
|
|
⭇ сюда
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{/block}
|