1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-17 00:08:17 +03:00
ifhub.club/templates/skin/habra/menu.profile.tpl
2008-09-26 15:28:47 +00:00

152 lines
9 KiB
Smarty

<div class="userinfo_karma_section_3">
<table border="0">
<tr valign="top">
<td width="35px"></td>
<td align="center" valign="top">
<span class="userinfo_karma_text">рейтинг</span><br>
<span class="userinfo_karma">
<nobr>
<span id="user_vote_self_{$oUserProfile->getId()}" style="display: none;" >
<img src="{$DIR_STATIC_SKIN}/img/vote_up_gray.gif" width="16" height="16" alt="нравится" title="нельзя голосовать за себя" />
<span id="user_rating_self_{$oUserProfile->getId()}" style="color: {if $oUserProfile->getRating()<0}#d00000{else}#008000{/if};">{$oUserProfile->getRating()}</span>
<img src="{$DIR_STATIC_SKIN}/img/vote_down_gray.gif" width="16" height="16" alt="не нравится" title="нельзя голосовать за себя" />
</span>
<span id="user_vote_anonim_{$oUserProfile->getId()}" style="display: none;" >
<img src="{$DIR_STATIC_SKIN}/img/vote_up_gray.gif" width="16" height="16" alt="нравится" title="для голосования необходимо авторизоваться" />
<span id="user_rating_anonim_{$oUserProfile->getId()}" style="color: {if $oUserProfile->getRating()<0}#d00000{else}#008000{/if};">{$oUserProfile->getRating()}</span>
<img src="{$DIR_STATIC_SKIN}/img/vote_down_gray.gif" width="16" height="16" alt="не нравится" title="для голосования необходимо авторизоваться" />
</span>
<span id="user_vote_is_vote_down_{$oUserProfile->getId()}" style="display: none;" >
<img src="{$DIR_STATIC_SKIN}/img/vote_up_gray.gif" width="16" height="16" alt="нравится" title="вы уже голосовали за этого пользователя" />
<span id="user_rating_is_vote_down_{$oUserProfile->getId()}" style="color: {if $oUserProfile->getRating()<0}#d00000{else}#008000{/if};">{$oUserProfile->getRating()}</span>
<img src="{$DIR_STATIC_SKIN}/img/vote_down.gif" width="16" height="16" alt="не нравится" title="вы уже голосовали за этого пользователя" />
</span>
<span id="user_vote_is_vote_up_{$oUserProfile->getId()}" style="display: none;" >
<img src="{$DIR_STATIC_SKIN}/img/vote_up.gif" width="16" height="16" alt="нравится" title="вы уже голосовали за этого пользователя" />
<span id="user_rating_is_vote_up_{$oUserProfile->getId()}" style="color: {if $oUserProfile->getRating()<0}#d00000{else}#008000{/if};">{$oUserProfile->getRating()}</span>
<img src="{$DIR_STATIC_SKIN}/img/vote_down_gray.gif" width="16" height="16" alt="не нравится" title="вы уже голосовали за этого пользователя" />
</span>
<span id="user_vote_ok_{$oUserProfile->getId()}" style="display: none;" >
<a href="#" onclick="ajaxVoteUser({$oUserProfile->getId()},1); return false;"><img src="{$DIR_STATIC_SKIN}/img/vote_up.gif" width="16" height="16" alt="нравится" title="нравится" /></a>
<span id="user_rating_ok_{$oUserProfile->getId()}" style="color: {if $oUserProfile->getRating()<0}#d00000{else}#008000{/if};">{$oUserProfile->getRating()}</span>
<a href="#" onclick="ajaxVoteUser({$oUserProfile->getId()},-1); return false;"><img src="{$DIR_STATIC_SKIN}/img/vote_down.gif" width="16" height="16" alt="не нравится" title="не нравится" /></a>
</span>
{if $oUserCurrent}
{if $oUserProfile->getId()==$oUserCurrent->getId()}
<script>showUserVote('user_vote_self',{$oUserProfile->getId()});</script>
{else}
{if $oUserProfile->getUserIsVote()}
{if $oUserProfile->getUserVoteDelta()>0}
<script>showUserVote('user_vote_is_vote_up',{$oUserProfile->getId()});</script>
{else}
<script>showUserVote('user_vote_is_vote_down',{$oUserProfile->getId()});</script>
{/if}
{else}
<script>showUserVote('user_vote_ok',{$oUserProfile->getId()});</script>
{/if}
{/if}
{else}
<script>showUserVote('user_vote_anonim',{$oUserProfile->getId()});</script>
{/if}
</nobr>
</span>
<div class="userinfo_karma_text"><span id="user_count_vote_{$oUserProfile->getId()}">{$oUserProfile->getCountVote()}</span> голос<br /></div>
</td>
<td width="50px"></td>
<td align="center" valign="top">
<span class="userinfo_karma_text">сила</span><br>
<span class="userinfo_karma">
<span id="user_skill_{$oUserProfile->getId()}" style="color: #ffffff; background-color: #25a8ff;">{$oUserProfile->getSkill()}</span>
</span>
</td>
</tr>
</table>
<br>
</div>
<TABLE class=pagemenu id=pagemenuszd>
<TBODY>
<TR>
{if $oUserCurrent}
<TD class="width10 read_"><IMG height=35 alt=" " src="{$DIR_STATIC_SKIN}/img/red_ul.gif" width=10></TD>
<TD class="subitem1 center read_" style="WIDTH: 14px">
<A href="{$DIR_WEB_ROOT}/topic/add/"><IMG title=написать height=14 alt="написать" src="{$DIR_STATIC_SKIN}/img/new_habratopic.gif" width=14></A>
</TD>
<TD class="border2px width10 read_"></TD>
{/if}
{assign var="sel" value=""}
{if $sAction=='profile'}
{assign var="sel" value="sel "}
{/if}
<TD class="{$sel}width10"></TD>
<TD class="{$sel}subitem1 center">
<A class=tags_f href="{$DIR_WEB_ROOT}/profile/{$oUserProfile->getLogin()}/">Профиль</A>
</TD>
<TD class="{$sel}border2px width10"></TD>
{assign var="sel" value=""}
{if $sAction=='my'}
{assign var="sel" value="sel "}
{/if}
<TD class="{$sel}width10"></TD>
<TD class="{$sel}subitem1 center">
<A class=tags_f href="{$DIR_WEB_ROOT}/my/{$oUserProfile->getLogin()}/">Публикации{if ($iCountCommentUser+$iCountTopicUser)>0} ({$iCountCommentUser+$iCountTopicUser}){/if}</A>
</TD>
<TD class="{$sel}border2px width10"></TD>
</TR>
</TBODY>
</TABLE>
{if $sAction=='profile'}
<TABLE class="pagesubmenu" id="pagemenuszd">
<TBODY>
<TR>
<TD vAlign=bottom width=10><IMG height=10 src="{$DIR_STATIC_SKIN}/img/green2_bl.gif" width=10></TD>
<TD class="subitem2 three_columns{if $aParams[0]=='whois' or $aParams[0]==''} active_personal{/if}" noWrap align=middle>
<IMG class=arrow_cc height=7 src="{$DIR_STATIC_SKIN}/img/{if $aParams[0]=='whois' or $aParams[0]==''}arrow_menu_main.gif{else}arrow_menu_main_un.gif{/if}" width=10><A href="{$DIR_WEB_ROOT}/profile/{$oUserProfile->getLogin()}/">Whois</A>
</TD>
<TD class="subitem2 three_columns{if $aParams[0]=='favourites'} active_personal{/if}" noWrap align=middle>
<IMG class=arrow_cc height=7 src="{$DIR_STATIC_SKIN}/img/{if $aParams[0]=='favourites'}arrow_menu_main.gif{else}arrow_menu_main_un.gif{/if}" width=10><A href="{$DIR_WEB_ROOT}/profile/{$oUserProfile->getLogin()}/favourites/">Избранное{if $iCountTopicFavourite} ({$iCountTopicFavourite}){/if}</A>
</TD>
<TD class="subitem2 three_columns{if $aParams[0]=='tags'} active_personal{/if}" noWrap align=middle>
<IMG class=arrow_cc height=7 src="{$DIR_STATIC_SKIN}/img/{if $aParams[0]=='tags'}arrow_menu_main.gif{else}arrow_menu_main_un.gif{/if}" width=10><A href="{$DIR_WEB_ROOT}/profile/{$oUserProfile->getLogin()}/tags/">Метки</A>
</TD>
<TD style="BORDER-RIGHT: white 2px solid" vAlign=bottom width=10><IMG height=10 src="{$DIR_STATIC_SKIN}/img/green2_br.gif" width=10></TD>
</TR>
</TBODY>
</TABLE>
{/if}
{if $sAction=='my'}
<TABLE class="pagesubmenu toright" id="pagemenuszd2">
<TBODY>
<TR>
<TD vAlign=bottom width=10><IMG height=10 src="{$DIR_STATIC_SKIN}/img/green2_bl.gif" width=10></TD>
<TD class="subitem2 three_columns{if $aParams[0]=='blog' or $aParams[0]==''} active_personal{/if}" noWrap align=middle>
<IMG class=arrow_cc height=7 src="{$DIR_STATIC_SKIN}/img/{if $aParams[0]=='blog' or $aParams[0]==''}arrow_menu_main.gif{else}arrow_menu_main_un.gif{/if}" width=10><A href="{$DIR_WEB_ROOT}/my/{$oUserProfile->getLogin()}/">Блог{if $iCountTopicUser} ({$iCountTopicUser}){/if}</A> <a href="{$DIR_WEB_ROOT}/rss/log/{$oUserProfile->getLogin()}/" title="RSS лента"><IMG height=12 src="{$DIR_STATIC_SKIN}/img/rss_small.gif" width=12></a>
</TD>
<TD class="subitem2 three_columns{if $aParams[0]=='comment'} active_personal{/if}" noWrap align=middle>
<IMG class=arrow_cc height=7 src="{$DIR_STATIC_SKIN}/img/{if $aParams[0]=='comment'}arrow_menu_main.gif{else}arrow_menu_main_un.gif{/if}" width=10><A href="{$DIR_WEB_ROOT}/my/{$oUserProfile->getLogin()}/comment/">Комментарии{if $iCountCommentUser} ({$iCountCommentUser}){/if}</A>
</TD>
<TD style="BORDER-RIGHT: white 2px solid" vAlign=bottom width=10><IMG height=10 src="{$DIR_STATIC_SKIN}/img/green2_br.gif" width=10></TD>
</TR>
</TBODY>
</TABLE>
{/if}