1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/templates/skin/developer/user_list.tpl

63 lines
2.7 KiB
Smarty
Raw Normal View History

{**
* Список пользователей (таблица)
*}
<table class="table table-users">
{if $bUsersUseOrder}
<thead>
<tr>
<th class="cell-name"><a href="{$sUsersRootPage}?order=user_login&order_way={if $sUsersOrder=='user_login'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_login'}class="{$sUsersOrderWay}"{/if}>{$aLang.user}</a></th>
<th>{$aLang.user_date_last}</th>
<th><a href="{$sUsersRootPage}?order=user_date_register&order_way={if $sUsersOrder=='user_date_register'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_date_register'}class="{$sUsersOrderWay}"{/if}>{$aLang.user_date_registration}</a></th>
<th class="cell-skill"><a href="{$sUsersRootPage}?order=user_skill&order_way={if $sUsersOrder=='user_skill'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_skill'}class="{$sUsersOrderWay}"{/if}>{$aLang.user_skill}</a></th>
<th class="cell-rating"><a href="{$sUsersRootPage}?order=user_rating&order_way={if $sUsersOrder=='user_rating'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_rating'}class="{$sUsersOrderWay}"{/if}>{$aLang.user_rating}</a></th>
</tr>
</thead>
{else}
<thead>
<tr>
<th class="cell-name">{$aLang.user}</th>
<th class="cell-date">{$aLang.user_date_last}</th>
<th class="cell-date">{$aLang.user_date_registration}</th>
<th class="cell-skill">{$aLang.user_skill}</th>
<th class="cell-rating">{$aLang.user_rating}</th>
</tr>
</thead>
{/if}
<tbody>
{if $aUsersList}
{foreach from=$aUsersList item=oUserList}
{assign var="oSession" value=$oUserList->getSession()}
{assign var="oUserNote" value=$oUserList->getUserNote()}
<tr>
<td class="cell-name">
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a>
{if $oUserNote}
2013-04-03 00:08:55 +03:00
<i class="icon-comment js-tooltip" title="{$oUserNote->getText()|escape:'html'}"></i>
{/if}
</p>
</td>
<td class="cell-date">{if $oSession}{date_format date=$oSession->getDateLast() format="d.m.y, H:i"}{/if}</td>
<td class="cell-date">{date_format date=$oUserList->getDateRegister() format="d.m.y, H:i"}</td>
<td class="cell-skill">{$oUserList->getSkill()}</td>
<td class="cell-rating"><strong>{$oUserList->getRating()}</strong></td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="5">
{if $sUserListEmpty}
{$sUserListEmpty}
{else}
{$aLang.user_empty}
{/if}
</td>
</tr>
{/if}
</tbody>
</table>
2012-04-19 21:04:25 +03:00
{include file='paging.tpl' aPaging=$aPaging}