1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00
ifhub.club/templates/skin/synio/user_list.tpl
2013-06-19 20:32:58 +07:00

77 lines
3.2 KiB
Smarty

{**
* Список пользователей (таблица)
*}
<table class="table table-users">
{if $bUsersUseOrder}
<thead>
<tr>
<th class="cell-name cell-tab">
<div class="cell-tab-inner {if $sUsersOrder=='user_login'}active{/if}"><a href="{$sUsersRootPage}?order=user_login&order_way={if $sUsersOrder=='user_login'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_login'}class="{$sUsersOrderWay}"{/if}><span>{$aLang.user}</span></a></div>
</th>
<th>&nbsp;</th>
<th class="cell-skill cell-tab">
<div class="cell-tab-inner {if $sUsersOrder=='user_skill'}active{/if}"><a href="{$sUsersRootPage}?order=user_skill&order_way={if $sUsersOrder=='user_skill'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_skill'}class="{$sUsersOrderWay}"{/if}><span>{$aLang.user_skill}</span></a></div>
</th>
<th class="cell-rating cell-tab">
<div class="cell-tab-inner {if $sUsersOrder=='user_rating'}active{/if}"><a href="{$sUsersRootPage}?order=user_rating&order_way={if $sUsersOrder=='user_rating'}{$sUsersOrderWayNext}{else}{$sUsersOrderWay}{/if}" {if $sUsersOrder=='user_rating'}class="{$sUsersOrderWay}"{/if}><span>{$aLang.user_rating}</span></a></div>
</th>
</tr>
</thead>
{else}
<thead>
<tr>
<th class="cell-name cell-tab"><div class="cell-tab-inner">{$aLang.user}</div></th>
<th>&nbsp;</th>
<th class="cell-skill cell-tab"><div class="cell-tab-inner">{$aLang.user_skill}</div></th>
<th class="cell-rating cell-tab">
<div class="cell-tab-inner active"><span>{$aLang.user_rating}</span></div>
</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(48)}" alt="avatar" class="avatar" /></a>
<div class="name {if !$oUserList->getProfileName()}no-realname{/if}">
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a></p>
{if $oUserList->getProfileName()}<p class="realname">{$oUserList->getProfileName()}</p>{/if}
</div>
</td>
<td>
{if $oUserCurrent}
{if $oUserNote}
<button type="button" class="button button-icon button-note js-tooltip" title="{$oUserNote->getText()|escape:'html'}"><i class="icon-synio-comments-green"></i></button>
{/if}
<a href="{router page='talk'}add/?talk_users={$oUserList->getLogin()}" class="button button-slider button-action button-action-send-message button-icon">
<i class="icon-synio-send-message"></i><span>{$aLang.user_write_prvmsg}</span>
</a>
{/if}
</td>
<td class="cell-skill">{$oUserList->getSkill()}</td>
<td class="cell-rating {if $oUserList->getRating() < 0}negative{/if}"><strong>{$oUserList->getRating()}</strong></td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="4">
{if $sUserListEmpty}
{$sUserListEmpty}
{else}
{$aLang.user_empty}
{/if}
</td>
</tr>
{/if}
</tbody>
</table>
{include file='paging.tpl' aPaging=$aPaging}