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/UserInfo.xslt

215 lines
6.9 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:template name="specificTitle"><xsl:value-of select="user/name"/></xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr>
<td class="tdheader">
<xsl:text>Ïåðñîíàëüíàÿ èíôîðìàöèÿ î </xsl:text><xsl:value-of select="user/name"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="lighttable">
<td>
<table border="0" width="100%" class="lighttable" cellpadding="0">
<tr>
<td width="10%" class="darktable">
<xsl:text>Email</xsl:text>
</td>
<td width="40%">
<xsl:text>Not implemented</xsl:text>
</td>
<td align="right" valign="top" rowspan="11">
<img alt="Picture" width="80" height="80">
<xsl:choose>
<xsl:when test="user/avatar">
<xsl:attribute name="src">/Upload/Item/<xsl:value-of select="user/avatar"/>/</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">/static/images/noavatar.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</td>
</tr>
<tr>
<td class="darktable">
<xsl:text>Èìÿ</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td class="darktable">
<xsl:text>Òèòóë</xsl:text>
</td>
<td>
<xsl:value-of select="user/title"/>
</td>
</tr>
<tr>
<td class="darktable">
<xsl:text>Èòîãî ñîîáùåíèé</xsl:text>
</td>
<td>
<xsl:value-of select="user/totalPosts"/>
</td>
</tr>
<tr>
<td class="darktable">
<xsl:text>Ðåéòèíã</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td class="darktable">
<xsl:text>Äîìàøíÿÿ ñòðàíèöà</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ðîä çàíÿòèé</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Õîááè</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ðàñïîëîæåíèå</xsl:text>
</td>
<td>
<xsl:value-of select="user/location"/>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Áèîãðàôèÿ</xsl:text>
</td>
<td colspan="2">
<xsl:value-of select="user/biography" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Íîìåð ICQ</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ïîë (gender)</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Äàòà ðåãèñòðàöèè</xsl:text>
</td>
<td>
<xsl:apply-templates select="user/regDate" mode="dateTime"/>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ïîñëåäíèé ðàç îíëàéí</xsl:text>
</td>
<td>
<xsl:apply-templates select="lastActivity" mode="dateTime"/>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ïîäïèñü</xsl:text>
</td>
<td>
<xsl:value-of select="user/signature" disable-output-escaping="yes" />
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Ñèìïàòèè</xsl:text>
</td>
<td title="Âûðàçèòü ñèìïàòèþ ýòîìó ÷åëîâåêó">
<input type="submit" class="buttons" value=" " style="width:24px;background-image:url('/static/images/heart.gif');background-position:center left;background-repeat:no-repeat;"/>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Penalties</xsl:text>
</td>
<td colspan="2">
<table border="1" width="90%">
<tr class="tdheader">
<td width="4%">Âåñ</td>
<td width="38%">Ñîîáùåíèå</td>
<td width="10%">Ìîäåðàòîð</td>
<td width="38%">Êîììåíòàðèé</td>
<td width="10%">Èñòåêàåò</td>
</tr>
<xsl:apply-templates select="punishments/punishment"/>
</table>
</td>
</tr>
<tr>
<td valign="top" class="darktable">
<xsl:text>Êîììåíòàðèé</xsl:text>
</td>
<td>
<xsl:text>Not implemented</xsl:text>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="punishment">
<tr>
<td><xsl:value-of select="punishmentType/weightDescription"/></td>
<td>
<a>
<xsl:attribute name="href">/Post/<xsl:value-of select="post/id"/>/</xsl:attribute>
<xsl:value-of select="post/title"/>
</a>
</td>
<td><xsl:apply-templates select="moderator" mode="userLink"/></td>
<td><xsl:value-of select="comment"/></td>
<td><xsl:apply-templates select="expires" mode="dateTime"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>