|
|
@ -2,73 +2,93 @@ |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="board"> |
|
|
|
<xsl:template match="board"> |
|
|
|
<tr> |
|
|
|
<xsl:param name="maxPerLine">100</xsl:param> |
|
|
|
<td width="4%" class="darktable" align="center" valign="middle"> |
|
|
|
<xsl:if test="((position() mod $maxPerLine) = 1) and (position() != 1)"> |
|
|
|
<a> |
|
|
|
<br/> |
|
|
|
<xsl:attribute name="onClick">if(!confirm('Ïîìåòèòü âñå ñîîáùåíèÿ êàê ïðî÷èòàííûå?')) {event.returnValue=false; return false;} else { alert("Not implemented yet"); }</xsl:attribute> |
|
|
|
</xsl:if> |
|
|
|
<xsl:choose> |
|
|
|
<li> |
|
|
|
<xsl:when test="(hasNewPosts='true') and not(lastPostInfo/post/poster/user/id = /root/session/user/id)"> |
|
|
|
<xsl:attribute name="class"> |
|
|
|
<img border="0" width="17" height="21" src="/static/images/newposts.gif" alt=""/> |
|
|
|
<xsl:text>boardcontainer</xsl:text> |
|
|
|
</xsl:when> |
|
|
|
<xsl:if test="(hasNewPosts='true') and not(lastPostInfo/post/poster/user/id = /root/session/user/id)"> |
|
|
|
<xsl:otherwise> |
|
|
|
<xsl:text> updated</xsl:text> |
|
|
|
<img border="0" width="17" height="21" src="/static/images/nonewposts.gif" alt=""/> |
|
|
|
</xsl:if> |
|
|
|
</xsl:otherwise> |
|
|
|
</xsl:attribute> |
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<td width="57%" class="darktable"> |
|
|
|
|
|
|
|
<font class="forumtitle"> |
|
|
|
|
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href">/Board/<xsl:value-of select="id"/>/</xsl:attribute> |
|
|
|
<xsl:attribute name="href">/Forum/Board/<xsl:value-of select="id"/>/Threads/</xsl:attribute> |
|
|
|
|
|
|
|
<h3 class="boardcontainer_name"> |
|
|
|
<xsl:value-of select="name"/> |
|
|
|
<xsl:value-of select="name"/> |
|
|
|
</a> |
|
|
|
</h3> |
|
|
|
</font> |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
<xsl:if test="(description != '') or (subBoards/board)"> |
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
|
|
|
|
|
|
|
<xsl:if test="description != ''"> |
|
|
|
<xsl:if test="description != ''"> |
|
|
|
<tr> |
|
|
|
<p class="boardcontainer_description"> |
|
|
|
<td class="forumdescript"><xsl:value-of select="description"/></td> |
|
|
|
<xsl:attribute name="href">/Forum/Board/<xsl:value-of select="id"/>/Threads/</xsl:attribute> |
|
|
|
</tr> |
|
|
|
<xsl:value-of select="description"/> |
|
|
|
|
|
|
|
</p> |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
<p>Òåì: <xsl:value-of select="totalThreads"/></p> |
|
|
|
|
|
|
|
<p>Ñîîáùåíèé: <xsl:value-of select="totalPosts"/></p> |
|
|
|
<xsl:if test="subBoards/board"> |
|
|
|
<xsl:if test="subBoards/board"> |
|
|
|
<tr> |
|
|
|
<div style="float:left"> |
|
|
|
<td class="forumdescript" style="padding-top:0.3em"> |
|
|
|
<xsl:attribute name="onMouseOver">showChildren(this);</xsl:attribute> |
|
|
|
|
|
|
|
<xsl:attribute name="onMouseOut">hideChildren(this);</xsl:attribute> |
|
|
|
|
|
|
|
<div default="default"> |
|
|
|
|
|
|
|
<a class="pseudolink">Ïîäðàçäåëû</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="board_additionalcontainer" style="display:none"> |
|
|
|
|
|
|
|
<div class="board_additional"> |
|
|
|
|
|
|
|
<p> |
|
|
|
<xsl:apply-templates select="subBoards/board"/> |
|
|
|
<xsl:apply-templates select="subBoards/board"/> |
|
|
|
</td> |
|
|
|
</p> |
|
|
|
</tr> |
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
</div> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|
</td> |
|
|
|
<div style="float:right;"> |
|
|
|
<td width="7%" align="center" class="threadtotal" nowrap="nowrap"><xsl:value-of select="totalThreads"/></td> |
|
|
|
<xsl:attribute name="onMouseOver">showChildren(this);</xsl:attribute> |
|
|
|
<td width="7%" align="center" class="posttotal" nowrap="nowrap"><xsl:value-of select="totalPosts"/></td> |
|
|
|
<xsl:attribute name="onMouseOut">hideChildren(this);</xsl:attribute> |
|
|
|
<td width="15%" nowrap="nowrap" class="posttime"> |
|
|
|
<div default="default"> |
|
|
|
|
|
|
|
<a class="pseudolink">Èíôîðìàöèÿ</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="board_additionalcontainer" style="display:none;"> |
|
|
|
|
|
|
|
<div class="board_additional"> |
|
|
|
<xsl:apply-templates select="lastPostInfo"/> |
|
|
|
<xsl:apply-templates select="lastPostInfo"/> |
|
|
|
</td> |
|
|
|
<p> |
|
|
|
<td width="10%" class="modcolumn" align="center"> |
|
|
|
<xsl:text>Ìîäåðàòîðû:</xsl:text> |
|
|
|
|
|
|
|
<br/> |
|
|
|
<xsl:apply-templates select="administrator/user | moderators/user" mode="userLink"/> |
|
|
|
<xsl:apply-templates select="administrator/user | moderators/user" mode="userLink"/> |
|
|
|
</td> |
|
|
|
</p> |
|
|
|
</tr> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</li> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="lastPostInfo"> |
|
|
|
<xsl:template match="lastPostInfo"> |
|
|
|
<xsl:if test="post"> |
|
|
|
<xsl:if test="post"> |
|
|
|
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br /> |
|
|
|
<p> |
|
|
|
|
|
|
|
<xsl:text>Ïîñëåäíåå ñîîáùåíèå:</xsl:text> |
|
|
|
|
|
|
|
<br/> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute> |
|
|
|
<xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute> |
|
|
|
<xsl:text>îò </xsl:text> |
|
|
|
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/> |
|
|
|
|
|
|
|
<xsl:text> îò </xsl:text> |
|
|
|
<xsl:value-of select="post/poster/user/name"/> |
|
|
|
<xsl:value-of select="post/poster/user/name"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
</p> |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="subBoards/board"> |
|
|
|
<xsl:template match="subBoards/board"> |
|
|
|
<xsl:text> [</xsl:text> |
|
|
|
<xsl:if test="position() > 1"> |
|
|
|
|
|
|
|
<hr/> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
<a> |
|
|
|
<a> |
|
|
|
<xsl:attribute name="href">/Board/<xsl:value-of select="id"/>/</xsl:attribute> |
|
|
|
<xsl:attribute name="href">/Board/<xsl:value-of select="id"/>/</xsl:attribute> |
|
|
|
<xsl:value-of select="name"/> |
|
|
|
<xsl:value-of select="name"/> |
|
|
|
|
|
|
|
<xsl:if test="description != ''"> |
|
|
|
|
|
|
|
<br/> |
|
|
|
|
|
|
|
<xsl:value-of select="description"/> |
|
|
|
|
|
|
|
</xsl:if> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<xsl:text>]</xsl:text> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
</xsl:stylesheet> |
|
|
|
</xsl:stylesheet> |