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-jquery/user_list.tpl

54 lines
2.1 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}">{$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}">{$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}">{$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}">{$aLang.user_rating}</a></th>
</tr>
</thead>
{else}
<thead>
<tr>
<th class="cell-name">{$aLang.user}</th>
<th>{$aLang.user_date_last}</th>
<th>{$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()}
<tr>
<td class="cell-name">
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a>
</td>
<td>{if $oSession}{date_format date=$oSession->getDateLast()}{/if}</td>
<td>{date_format date=$oUserList->getDateRegister()}</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>
{include file='paging.tpl' aPaging="$aPaging"}