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

122 lines
4.0 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: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>
</td>
</tr>
<tr>
<td class="lighttable">
<p>Âàøè àâàòàðêè:</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="Îòêëþ÷èòü àâàòàðêó">
<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>Âûáåðèòå àâàòàðêó äëÿ çàãðóçêè</xsl:text>
</td>
</tr>
<tr class="darktable">
<td>
<xsl:text>Ìàêñèìàëüíûé ðàçìåð ôàéëà &#8211; 80ÊÁ, äîïóñòèìûå ðàçðåøåíèÿ: 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="Îòïðàâèòü!" 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>Èëè óêàæèòå íîìåð ôàéëà â àïëîàäå</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="Îòïðàâèòü!" 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="Ñäåëàòü ñòàíäàðòíîé">
<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="Óäàëèòü">
<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>