An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/templates/Full/Boards.xslt

97 lines
3.7 KiB

<?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:import href="elems\Main.xslt"/>
<xsl:import href="elems\BoardInfo.xslt"/>
<xsl:template name="specificTitle">Ðàçäåëû</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" class="tablesurround" cellspacing="1" cellpadding="1">
<tr>
<td>
<xsl:apply-templates select="categories/category"/>
</td>
</tr>
</table>
<br />
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td colspan="3" class="tdheader">
<b>Äîïîëíèòåëüíàÿ èíôîðìàöèÿ</b>
</td>
</tr>
<tr class="lighttable">
<td width="45%" class="small" valign="top">
<xsl:choose>
<xsl:when test="session/user">
<xsl:text>Âû âîøëè â ôîðóì êàê </xsl:text>
<a>
<xsl:attribute name="href">/User/<xsl:value-of select="session/user/id"/>/</xsl:attribute>
<xsl:value-of select="session/user/name"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:text>Âû íå âîøëè â ôîðóì</xsl:text>
</xsl:otherwise>
</xsl:choose>
<br />
<xsl:value-of select="totalRegistered"/>
<xsl:text> Çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé.</xsl:text>
<br />
<!--xsl:text>Ïðèâåòñòâóåì íîâîãî ïîëüçîâàòåëÿ, </xsl:text>
<a href="/showprofile.php?User=_PC&amp;What=ubbthreads">_PC</a>
<br /-->
<xsl:text>Çà ïîñëåäíèå </xsl:text>
<xsl:value-of select="activity/threshold"/>
<xsl:text> ôîðóì ïîñåùàëî </xsl:text>
<xsl:value-of select="activity/sessions"/>
<xsl:text> çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé.</xsl:text>
<br />
<a>Òåêóùåå âðåìÿ:</a><xsl:text> </xsl:text>
<xsl:apply-templates select="currentDate" mode="dateTime"/>
</td>
<td width="30%" class="small" valign="top">
<b>Ïðîñìîòð íîâûõ ñîîáùåíèé</b>
<br />
<a>Ïîñëåäíèå 7 äíåé</a>
<br />
<a>
<xsl:attribute name="href">/User/<xsl:value-of select="session/user/id"/>/Replies/</xsl:attribute>
<xsl:text>Ïîñëåäíèå îòâåòû íà ìîè ñîîáùåíèÿ</xsl:text>
</a>
<br />
<a>Ìîè ñîîáùåíèÿ ñ îöåíêàìè</a>
<br />
<a>Ðåéòèíãè ñîîáùåíèé</a>
</td>
<td class="small" valign="top">
<b>Ëåãåíäà:</b>
<br />
<img src="/static/images/newposts.gif" alt="*" />
<xsl:text>Íîâûå ñîîáùåíèÿ</xsl:text>
<br />
<img src="/static/images/nonewposts.gif" alt="*" />
<xsl:text>Íåò íîâûõ ñîîáùåíèé</xsl:text>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="category">
<table width="100%" align="center" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td class="tdheader" colspan="2" width="61%"><xsl:value-of select="name"/></td>
<td class="tdheader" align="center" width="7%">Òåìû</td>
<td class="tdheader" align="center" width="7%">Ñîîáùåíèé</td>
<td class="tdheader" align="center" width="15%">Ïîñëåäíåå</td>
<td class="tdheader" align="center" width="10%">Ìîäåðàòîð</td>
</tr>
<xsl:apply-templates select="boards/board"/>
</table>
</xsl:template>
</xsl:stylesheet>