|
|
|
@ -1,5 +1,21 @@ |
|
|
|
|
<?xml version="1.0" encoding="Windows-1251"?> |
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
|
|
|
|
|
|
<xsl:template name="headerLink"> |
|
|
|
|
<xsl:param name="url"/> |
|
|
|
|
<xsl:param name="text"/> |
|
|
|
|
<xsl:param name="isDisabled"/> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="not($isDisabled='true')"> |
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$url"/>?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:if test="starts-with(/root/currentUrl, $url)"> |
|
|
|
|
<xsl:attribute name="class">currentLink</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:value-of select="$text"/> |
|
|
|
|
</a> |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template name="header"> |
|
|
|
|
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1"> |
|
|
|
|
<tr> |
|
|
|
@ -7,14 +23,14 @@ |
|
|
|
|
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1"> |
|
|
|
|
<tr> |
|
|
|
|
<td align="center" class="menubar"> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:attribute name="href">/Boards/?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
<xsl:text>Ñïèñîê ôîðóìîâ</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Boards/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Ñïèñîê ôîðóìîâ</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Conversations/?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Conversations/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text"> |
|
|
|
|
<xsl:if test="session/indicators/unreadPrivateMessages != '0'"> |
|
|
|
|
<img src="/static/images/newpm.gif" border="0"> |
|
|
|
|
<xsl:attribute name="alt"> |
|
|
|
@ -24,40 +40,46 @@ |
|
|
|
|
</xsl:attribute> |
|
|
|
|
</img> |
|
|
|
|
</xsl:if> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text>Ëè÷íûå ñîîáùåíèÿ</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
</xsl:with-param> |
|
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
|
<xsl:if test="not(session/sessionKey)">true</xsl:if> |
|
|
|
|
</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Upload/List/?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text>Àïëîàä</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Upload/List/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Àïëîàä</xsl:with-param> |
|
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
|
<xsl:if test="not(session/sessionKey)">true</xsl:if> |
|
|
|
|
</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="session/sessionKey"> |
|
|
|
|
<xsl:attribute name="href">/Settings/</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text>Íàñòðîéêè</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Settings/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Íàñòðîéêè</xsl:with-param> |
|
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
|
<xsl:if test="not(session/sessionKey)">true</xsl:if> |
|
|
|
|
</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="session/notLoggedIn"> |
|
|
|
|
<xsl:attribute name="href">/Login/</xsl:attribute> |
|
|
|
|
</xsl:if> |
|
|
|
|
<xsl:text>Âõîä</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Login/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Âõîä</xsl:with-param> |
|
|
|
|
<xsl:with-param name="isDisabled"> |
|
|
|
|
<xsl:if test="session/sessionKey">true</xsl:if> |
|
|
|
|
</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:attribute name="href">/Users/Online/?<xsl:value-of select="current/date/ticks"/></xsl:attribute> |
|
|
|
|
<xsl:text>Êòî â îíëàéíå</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Users/Online/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Êòî â îíëàéíå</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:attribute name="href">/q/faq</xsl:attribute> |
|
|
|
|
<xsl:text>FAQ</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/q/faq/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">FAQ</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a target="_top"> |
|
|
|
|
<xsl:if test="session/sessionKey"> |
|
|
|
@ -66,7 +88,10 @@ |
|
|
|
|
<xsl:text>Âûõîä</xsl:text> |
|
|
|
|
</a> |
|
|
|
|
<xsl:text> | </xsl:text> |
|
|
|
|
<a href="/Users/" target="_top">Ïîëüçîâàòåëè</a> |
|
|
|
|
<xsl:call-template name="headerLink"> |
|
|
|
|
<xsl:with-param name="url">/Users/All/</xsl:with-param> |
|
|
|
|
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param> |
|
|
|
|
</xsl:call-template> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|