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/Modern/AvatarsSettings.xslt

127 lines
4.1 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:call-template name="Messages_AvatarsSettings"/>
</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:call-template name="Messages_AvatarsSettings"/>
</td>
</tr>
<tr>
<td class="lighttable">
<p>
<xsl:call-template name="Messages_CurrentAvatars"/>
<xsl:text>:</xsl:text>
</p>
<xsl:apply-templates select="avatars/upload"/>
</td>
</tr>
<tr>
<td class="lighttable">
<form method="post" action="/do/Avatars/SetAsDefault">
<input type="hidden" name="uploadId" value=""/>
<input type="submit" class="buttons" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<xsl:if test="not(/root/currentAvatar)">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
</input>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<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><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></xsl:text>
</td>
</tr>
<tr class="darktable">
<td>
<xsl:text><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &#8211; 80<EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: gif, jpg, png, svg, jpe, jpeg, jfif, jif</xsl:text>
</td>
</tr>
<tr>
<td class="lighttable">
<form method="post" action="/do/Avatars/Add" enctype="multipart/form-data">
<input type="file" name="file" class="formboxes" /><br/>
<input type="submit" name="buttlogin" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!" class="buttons" />
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader">
<td>
<xsl:text><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></xsl:text>
</td>
</tr>
<tr>
<td class="lighttable">
<form method="post" action="/do/Avatars/Add">
<input type="text" name="uploadId"/><br/>
<input type="submit" name="buttlogin" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!" class="buttons" />
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="upload">
<table border="0">
<tr>
<td valign="middle">
<img alt="" class="avatar">
<xsl:attribute name="src">/Upload/Item/<xsl:value-of select="id"/>/</xsl:attribute>
</img>
</td>
<td valign="middle">
<form method="post" action="/do/Avatars/SetAsDefault">
<input type="hidden" name="uploadId">
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
</input>
<input type="submit" class="buttons" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<xsl:if test="/root/currentAvatar/upload/id = id">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
</input>
</form><br/>
<form method="post" action="/do/Avatars/Remove">
<input type="hidden" name="uploadId">
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
</input>
<input type="submit" class="buttons" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<xsl:if test="/root/currentAvatar/upload/id = id">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>