1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-04 23:44:25 +03:00

peoples online. moved inline styles from html to common.css

This commit is contained in:
Stepan Tanasiychuk 2011-10-10 00:54:27 +03:00
parent 671592372d
commit 98b6673ce5
2 changed files with 14 additions and 13 deletions

View file

@ -1,16 +1,16 @@
{include file='header.tpl' menu='people'}
<h2>{$aLang.user_list_online_last}</h2>
{if $aUsersLast}
<table class="table table-people">
<thead>
<tr>
<td>{$aLang.user}</td>
<td align="center" width="170">{$aLang.user_date_last}</td>
<td align="center" width="80">{$aLang.user_skill}</td>
<td align="center" width="80">{$aLang.user_rating}</td>
<td class="user-login">{$aLang.user}</td>
<td class="user-date-last">{$aLang.user_date_last}</td>
<td class="user-skill">{$aLang.user_skill}</td>
<td class="user-rating">{$aLang.user_rating}</td>
</tr>
</thead>
@ -18,18 +18,18 @@
{foreach from=$aUsersLast item=oUser}
{assign var="oSession" value=$oUser->getSession()}
<tr>
<td><a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="" class="avatar" /></a><a href="{$oUser->getUserWebPath()}" class="username">{$oUser->getLogin()}</a></td>
<td align="center" class="date">{date_format date=$oSession->getDateLast()}</td>
<td align="center" class="strength">{$oUser->getSkill()}</td>
<td align="center" class="rating"><strong>{$oUser->getRating()}</strong></td>
<td class="user-login"><a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="" class="avatar" /></a><a href="{$oUser->getUserWebPath()}" class="username">{$oUser->getLogin()}</a></td>
<td class="user-date-last date">{date_format date=$oSession->getDateLast()}</td>
<td class="user-skill strength">{$oUser->getSkill()}</td>
<td class="user-rating rating"><strong>{$oUser->getRating()}</strong></td>
</tr>
{/foreach}
{/foreach}
</tbody>
</table>
{else}
{$aLang.user_empty}
{/if}
{include file='paging.tpl' aPaging="$aPaging"}
{include file='paging.tpl' aPaging="$aPaging"}
{include file='footer.tpl'}

View file

@ -93,9 +93,10 @@ table tbody td { padding: 5px; border-bottom: 1px solid #ddd; font-size: 11px; }
table.table-people { }
table.table-people td { padding: 5px 10px; vertical-align: middle; }
table.table-people td.user-skill, table.table-people td.user-rating { text-align: center; }
table.table-people td.user-skill, table.table-people td.user-rating, table.table-people td.user-date-last { text-align: center; }
table.table-people td.user-skill { width: 60px; }
table.table-people td.user-rating { width: 80px; }
table.table-people td.user-date-last { width: 170px; }
table.table-people .avatar { vertical-align: middle; margin-right: 7px; }
table.table-people .username { font-weight: bold; color: #999; }
table.table-people .strength { font-weight: bold; color: #70AAE0; }