new headers panel

main
Inga 🏳‍🌈 14 years ago
parent 30609ae22e
commit ca31d37c03
  1. 2
      Builder/IISMainHandler/build.txt
  2. 6
      static/css/modern/global.css
  3. 11
      static/css/modern/penartur.css
  4. 68
      templates/Modern/elems/BoardHeader.xslt
  5. 67
      templates/Modern/elems/ForumHeader.xslt
  6. 292
      templates/Modern/elems/Header.xslt
  7. 4
      templates/Modern/elems/Main.xslt
  8. 149
      templates/Modern/elems/MyHeader.xslt
  9. 50
      templates/Modern/elems/PollsHeader.xslt
  10. 32
      templates/Modern/elems/UploadHeader.xslt
  11. 98
      templates/Modern/elems/UserHeader.xslt
  12. 56
      templates/Modern/elems/UsersHeader.xslt

@ -113,3 +113,9 @@ blockquote hr {
margin:0px;
}
BLOCKQUOTE BR {FONT-SIZE:1px}
.header {
font-size:1.5em;
}
.header a.selected {
font-size:1.13em;
}

@ -39,3 +39,14 @@ blockquote {
.alternatetable{BACKGROUND:black}
.subjecttable{BACKGROUND:black}
.footertable{BACKGROUND:#666666}
.header, .header a {
color:#BFBFBF;
text-transform:lowercase;
font-family:"Segoe UI", sans-serif;
}
.header a.selected {
color:white;
}
.header a.disabled {
color:#404040;
}

@ -3,45 +3,35 @@
<xsl:template name="boardHeader">
<xsl:variable name="baseLink">/Forum/Board/<xsl:value-of select="currentLocation//board[not(name(../..)='board')]/id"/>-<xsl:value-of select="currentLocation//board[not(name(../..)='board')]/nameTranslit"/>/</xsl:variable>
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Threads/</xsl:with-param>
<xsl:with-param name="text">Òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Headlines/</xsl:with-param>
<xsl:with-param name="text">Çàãëàâíûå ñîîáùåíèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>NewThread/</xsl:with-param>
<xsl:with-param name="text">Íîâàÿ òåìà</xsl:with-param>
</xsl:call-template>
<xsl:if test="currentLocation//thread">
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Thread/<xsl:value-of select="currentLocation//thread/id"/>-<xsl:value-of select="currentLocation//thread/nameTranslit"/>/</xsl:with-param>
<xsl:with-param name="postfix">
<xsl:if test="currentLocation//post">
<xsl:text>Posts/p</xsl:text>
<xsl:value-of select="currentLocation//post/id"/>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="substring(currentLocation//thread/name, 1, 30)"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Threads/</xsl:with-param>
<xsl:with-param name="text">Òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Headlines/</xsl:with-param>
<xsl:with-param name="text">Çàãîëîâêè</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>NewThread/</xsl:with-param>
<xsl:with-param name="text">Íîâàÿ (?)</xsl:with-param>
</xsl:call-template>
<xsl:if test="currentLocation//thread">
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Thread/<xsl:value-of select="currentLocation//thread/id"/>-<xsl:value-of select="currentLocation//thread/nameTranslit"/>/</xsl:with-param>
<xsl:with-param name="postfix">
<xsl:if test="currentLocation//post">
<xsl:text>Posts/p</xsl:text>
<xsl:value-of select="currentLocation//post/id"/>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="substring(currentLocation//thread/name, 1, 30)"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>

@ -3,45 +3,34 @@
<xsl:import href="BoardHeader.xslt"/>
<xsl:template name="forumHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/Boards/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê ðàçäåëîâ</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/AllThreads/</xsl:with-param>
<xsl:with-param name="text">Ïîñëåäíèå òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/AllPosts/</xsl:with-param>
<xsl:with-param name="text">Ïîñëåäíèå ñîîáùåíèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/Replies/</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:if test="currentLocation//board[not(name(../..)='board')]">
<xsl:text> | </xsl:text>
<xsl:apply-templates select="currentLocation//board[not(name(../..)='board')]" mode="headerBoardLink"/>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/Boards/</xsl:with-param>
<xsl:with-param name="text">Ðàçäåëû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/AllThreads/</xsl:with-param>
<xsl:with-param name="text">Òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/AllPosts/</xsl:with-param>
<xsl:with-param name="text">Ñîîáùåíèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/Replies/</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:if test="currentLocation//board[not(name(../..)='board')]">
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:apply-templates select="currentLocation//board[not(name(../..)='board')]" mode="headerBoardLink"/>
</xsl:if>
</div>
<xsl:if test="currentLocation//board">
<xsl:call-template name="boardHeader"/>
</xsl:if>

@ -17,163 +17,151 @@
<xsl:param name="isDisabled"/>
<xsl:param name="postfix"/>
<a target="_top">
<xsl:if test="not($isDisabled='true')">
<xsl:attribute name="href"><xsl:value-of select="$url"/><xsl:value-of select="$postfix"/>?<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:choose>
<xsl:when test="$isDisabled='true'">
<xsl:attribute name="class">disabled</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:if test="starts-with(/root/currentUrl, $url)">
<xsl:attribute name="class">selected</xsl:attribute>
</xsl:if>
<xsl:attribute name="href"><xsl:value-of select="$url"/><xsl:value-of select="$postfix"/>?<xsl:value-of select="current/date/ticks"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="$text"/>
</a>
</xsl:template>
<xsl:template name="header">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<table width="100%" border="0">
<tr>
<td width="15%">&#160;</td>
<td width="70%" align="center">
<xsl:if test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<a href="/My/Conversations/">
<img src="/static/images/newpm.gif" border="0">
<xsl:attribute name="alt">
<xsl:text>Ó âàñ </xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text> íåïðî÷èòàííûõ ëè÷íûõ ñîîáùåíèé</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text> | </xsl:text>
</xsl:if>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/</xsl:with-param>
<xsl:with-param name="text">Ôîðóì</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/</xsl:with-param>
<xsl:with-param name="text">Îïðîñû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/</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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/</xsl:with-param>
<xsl:with-param name="text">My Home</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/</xsl:with-param>
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param>
</xsl:call-template>
</td>
<td width="15%" align="right">
<xsl:variable name="isClassicEnabled">
<xsl:call-template name="isClassicEnabled"/>
</xsl:variable>
<xsl:variable name="isLiteEnabled">
<xsl:call-template name="isLiteEnabled"/>
</xsl:variable>
<xsl:variable name="isRssEnabled">
<xsl:call-template name="isRssEnabled"/>
</xsl:variable>
<xsl:variable name="rssRelativeLink">
<xsl:call-template name="rssRelativeLink"/>
</xsl:variable>
<xsl:variable name="prefix">
<xsl:text>https://</xsl:text>
<xsl:value-of select="url/host"/>
<xsl:text>:</xsl:text>
<xsl:if test="url/port &gt;= 1000">
<xsl:value-of select="floor(url/port div 1000)"/>
</xsl:if>
</xsl:variable>
<a>
<xsl:if test="$isClassicEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>451</xsl:text>
<xsl:value-of select="currentUrl"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/classic.jpg</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text>&#160;&#160;</xsl:text>
<a>
<xsl:if test="$isLiteEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>447</xsl:text>
<xsl:value-of select="currentUrl"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/light</xsl:text>
<xsl:if test="not($isLiteEnabled='true')">
<xsl:text>-disabled</xsl:text>
</xsl:if>
<xsl:text>.png</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text>&#160;&#160;</xsl:text>
<a>
<xsl:if test="$isRssEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>449</xsl:text>
<xsl:value-of select="$rssRelativeLink"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/rss</xsl:text>
<xsl:if test="not($isRssEnabled='true')">
<xsl:text>-disabled</xsl:text>
</xsl:if>
<xsl:text>.png</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:if test="$isRssEnabled='true'">
<link rel="alternate" type="application/rss+xml" title="RSS">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>449</xsl:text>
<xsl:value-of select="$rssRelativeLink"/>
</xsl:attribute>
</link>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="designslinks" style="float:right;">
<xsl:variable name="isClassicEnabled">
<xsl:call-template name="isClassicEnabled"/>
</xsl:variable>
<xsl:variable name="isLiteEnabled">
<xsl:call-template name="isLiteEnabled"/>
</xsl:variable>
<xsl:variable name="isRssEnabled">
<xsl:call-template name="isRssEnabled"/>
</xsl:variable>
<xsl:variable name="rssRelativeLink">
<xsl:call-template name="rssRelativeLink"/>
</xsl:variable>
<xsl:variable name="prefix">
<xsl:text>https://</xsl:text>
<xsl:value-of select="url/host"/>
<xsl:text>:</xsl:text>
<xsl:if test="url/port &gt;= 1000">
<xsl:value-of select="floor(url/port div 1000)"/>
</xsl:if>
</xsl:variable>
<a>
<xsl:if test="$isClassicEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>451</xsl:text>
<xsl:value-of select="currentUrl"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/classic.jpg</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text>&#160;&#160;</xsl:text>
<a>
<xsl:if test="$isLiteEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>447</xsl:text>
<xsl:value-of select="currentUrl"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/light</xsl:text>
<xsl:if test="not($isLiteEnabled='true')">
<xsl:text>-disabled</xsl:text>
</xsl:if>
<xsl:text>.png</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text>&#160;&#160;</xsl:text>
<a>
<xsl:if test="$isRssEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>449</xsl:text>
<xsl:value-of select="$rssRelativeLink"/>
</xsl:attribute>
</xsl:if>
<img border="0">
<xsl:attribute name="src">
<xsl:text>/static/images/rss</xsl:text>
<xsl:if test="not($isRssEnabled='true')">
<xsl:text>-disabled</xsl:text>
</xsl:if>
<xsl:text>.png</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:if test="$isRssEnabled='true'">
<link rel="alternate" type="application/rss+xml" title="RSS">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>449</xsl:text>
<xsl:value-of select="$rssRelativeLink"/>
</xsl:attribute>
</link>
</xsl:if>
</div>
<div class="header">
<xsl:if test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<a href="/My/Conversations/">
<img src="/static/images/newpm.gif" border="0">
<xsl:attribute name="alt">
<xsl:text>Ó âàñ </xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text> íåïðî÷èòàííûõ ëè÷íûõ ñîîáùåíèé</xsl:text>
</xsl:attribute>
</img>
</a>
<xsl:text>&#160;&#160;&#160;</xsl:text>
</xsl:if>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/</xsl:with-param>
<xsl:with-param name="text">Ôîðóì</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/</xsl:with-param>
<xsl:with-param name="text">Îïðîñû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/</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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/</xsl:with-param>
<xsl:with-param name="text">Ëè÷íîå</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/</xsl:with-param>
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param>
</xsl:call-template>
</div>
<xsl:if test="starts-with(/root/currentUrl, '/Forum/')">
<xsl:call-template name="forumHeader"/>
</xsl:if>

@ -5,9 +5,9 @@
<xsl:template match="/root">
<html>
<head>
<link rel="stylesheet" href="/static/css/modern/global.css" type="text/css" />
<link rel="stylesheet" href="/static/css/modern/global.css?v1" type="text/css" />
<link rel="stylesheet" type="text/css" skin="skin">
<xsl:attribute name="href">/static/css/modern/penartur.css</xsl:attribute>
<xsl:attribute name="href">/static/css/modern/penartur.css?v1</xsl:attribute>
</link>
<link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" />
<script language="Javascript" type="text/javascript" src="/static/js/common.js"><xsl:text> </xsl:text></script>

@ -2,86 +2,75 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="myHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/</xsl:with-param>
<xsl:with-param name="text">
<xsl:choose>
<xsl:when test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<b>
<xsl:text>Ëè÷íûå ñîîáùåíèÿ (</xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text>)</xsl:text>
</b>
</xsl:when>
<xsl:otherwise>
<xsl:text>Ëè÷íûå ñîîáùåíèÿ</xsl:text>
</xsl:otherwise>
</xsl:choose>
</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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/UserData/</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>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Avatars/</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>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/Info/</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">/do/Logout/?sessionKey=<xsl:value-of select="session/sessionKey"/></xsl:attribute>
</xsl:if>
<xsl:text>Âûõîä</xsl:text>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/</xsl:with-param>
<xsl:with-param name="text">
<xsl:choose>
<xsl:when test="session/sessionKey and (session/indicators/unreadPrivateMessages != '0')">
<b>
<xsl:text>Ñîîáùåíèÿ (</xsl:text>
<xsl:value-of select="session/indicators/unreadPrivateMessages"/>
<xsl:text>)</xsl:text>
</b>
</xsl:when>
<xsl:otherwise>
<xsl:text>Ñîîáùåíèÿ (?)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/UserData/</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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Avatars/</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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/Info/</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>&#160;&#160;&#160;</xsl:text>
<a target="_top">
<xsl:if test="session/sessionKey">
<xsl:attribute name="href">/do/Logout/?sessionKey=<xsl:value-of select="session/sessionKey"/></xsl:attribute>
</xsl:if>
<xsl:text>Âûõîä</xsl:text>
</a>
</div>
</xsl:template>
</xsl:stylesheet>

@ -2,36 +2,26 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="pollsHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/List/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/New/</xsl:with-param>
<xsl:with-param name="text">Ñîçäàòü íîâûé</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/PollsParticipated/</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>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/List/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="session/user/id"/>/PollsParticipated/</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>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Polls/New/</xsl:with-param>
<xsl:with-param name="text">Íîâûé</xsl:with-param>
</xsl:call-template>
</div>
</xsl:template>
</xsl:stylesheet>

@ -2,27 +2,17 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="uploadHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/List/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/New/</xsl:with-param>
<xsl:with-param name="text">Çàãðóçèòü íîâûé</xsl:with-param>
</xsl:call-template>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/List/</xsl:with-param>
<xsl:with-param name="text">Ñïèñîê</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Upload/New/</xsl:with-param>
<xsl:with-param name="text">Íîâûé</xsl:with-param>
</xsl:call-template>
</div>
</xsl:template>
</xsl:stylesheet>

@ -3,60 +3,50 @@
<xsl:template name="userHeader">
<xsl:variable name="baseLink">/Users/User/<xsl:value-of select="user/id"/>/</xsl:variable>
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Info/</xsl:with-param>
<xsl:with-param name="text">Èíôîðìàöèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Threads/</xsl:with-param>
<xsl:with-param name="text">Òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Posts/</xsl:with-param>
<xsl:with-param name="text">Ñîîáùåíèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Replies/</xsl:with-param>
<xsl:with-param name="text">Îòâåòû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>PollsParticipated/</xsl:with-param>
<xsl:with-param name="text">Îïðîñû</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/Conversation/<xsl:value-of select="accountId"/>/</xsl:with-param>
<xsl:with-param name="text">Èñòîðèÿ</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(accountId)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/PMSend/<xsl:value-of select="accountId"/>/</xsl:with-param>
<xsl:with-param name="text">Íàïèñàòü</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(accountId)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Info/</xsl:with-param>
<xsl:with-param name="text">Èíôîðìàöèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Threads/</xsl:with-param>
<xsl:with-param name="text">Òåìû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Posts/</xsl:with-param>
<xsl:with-param name="text">Ñîîáùåíèÿ</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>Replies/</xsl:with-param>
<xsl:with-param name="text">Îòâåòû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url"><xsl:value-of select="$baseLink"/>PollsParticipated/</xsl:with-param>
<xsl:with-param name="text">Îïðîñû</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/Conversation/<xsl:value-of select="accountId"/>/</xsl:with-param>
<xsl:with-param name="text">Èñòîðèÿ</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(accountId)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<img src="/static/images/shortcut.png" border="0"/>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/My/Conversations/PMSend/<xsl:value-of select="accountId"/>/</xsl:with-param>
<xsl:with-param name="text">Íàïèñàòü</xsl:with-param>
<xsl:with-param name="isDisabled">
<xsl:if test="not(accountId)">true</xsl:if>
</xsl:with-param>
</xsl:call-template>
</div>
</xsl:template>
</xsl:stylesheet>

@ -3,39 +3,29 @@
<xsl:import href="UserHeader.xslt"/>
<xsl:template name="usersHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<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>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/Active/</xsl:with-param>
<xsl:with-param name="text">Àêòèâíûå (ñìèãðèðîâàííûå)</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<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:if test="user">
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="user/id"/>/</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="header">
<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>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/Active/</xsl:with-param>
<xsl:with-param name="text">Àêòèâíûå</xsl:with-param>
</xsl:call-template>
<xsl:text>&#160;&#160;&#160;</xsl:text>
<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:if test="user">
<xsl:text>&#160;&#160;&#160;</xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="user/id"/>/</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</div>
<xsl:if test="user">
<xsl:call-template name="userHeader"/>
</xsl:if>

Loading…
Cancel
Save