-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_list.tpl
58 lines (56 loc) · 2.75 KB
/
user_list.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<table class="table table-hover 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}><span>{$aLang.user}</span></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}><span>{$aLang.user_date_registration}</span></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}><span>{$aLang.user_skill}</span></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}><span>{$aLang.user_rating}</span></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}
<i class="icon-comment js-infobox" 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{if $oUserList->getRating() < 0} negative{/if}"><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}