Просмотр файла globalchat/view/globalchat/templates/user_menu.tpl

Размер файла: 1.17Kb
{* Smarty *}

{assign var='userAway' value="`$smarty.now - {$usersInfo.{$userId}.time_of_last_request}`"}

<div class='{$smarty.const.DIV_M_USER_MENU_TITLE}'>
{user_nick attrs="href='user_profile.php?user_id={$userId}'" user=$usersInfo.{$userId} icon='1'} Был в чате {text_timer text=1 time="`$smarty.now -  {$usersInfo.{$userId}.time_of_last_request}`"}
</div>
<div class='{$smarty.const.DIV_M_USER_MENU}'><a href='user_profile.php?user_id={$userId}'><img src='icons/contact_grey.png' alt='' /> Просмотреть анкету</a><br />
<a href='quick_msg.php?user_id={$userId}'><img src='icons/email_grey.png' alt='' /> Написать квик-сообщение</a>
{if $userAway < 300 && {$usersInfo.{$userId}.location}}
<br />
<a href='chat.php?room_id={$usersInfo.{$userId}.location}&amp;write_to_user={$userId}'><img src='icons/chat_grey.png' alt='' /> Написать в чат</a>{/if}
{if $usersInfo.{$myId}.rights_group > $usersInfo.{$userId}.rights_group || $userId == 1}
<br /><a href='http://chatmix.ru/gc_control/user_control.php?user_id={$userId}'><img src='icons/gear_grey.png' alt='' /> Контроль пользователя</a>
{/if}
</div>