2007-11-26 14:25:31 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:cc="http://web.resource.org/cc/"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:template name="account">
|
|
|
|
<div>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//account/@show='uploads'">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_uploads']" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_account_uploads']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_uploads']" />
|
|
|
|
</a>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//account/@show='settings'">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_settings']" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_account_settings']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_settings']" />
|
|
|
|
</a>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//account/@show='bookmarks'">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_bookmarks']" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_account_bookmarks']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='account_bookmarks']" />
|
|
|
|
</a>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//account/@show='uploads'">
|
2007-12-17 12:38:02 +00:00
|
|
|
<h2><xsl:value-of select="$locale_strings[@id='account_uploads']" /></h2>
|
2007-11-26 14:25:31 +00:00
|
|
|
<xsl:call-template name="results"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//account/@show='settings'">
|
2007-12-17 12:38:02 +00:00
|
|
|
<h2><xsl:value-of select="$locale_strings[@id='account_settings']" /></h2>
|
|
|
|
<form method="POST">
|
|
|
|
<xsl:attribute name="action">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_account_settings']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<input type="hidden" name="show" value="settings" />
|
2007-11-26 14:25:31 +00:00
|
|
|
<div>
|
2007-12-17 12:38:02 +00:00
|
|
|
<h3><xsl:value-of select="$locale_strings[@id='account_locale']" /></h3>
|
2007-11-26 14:25:31 +00:00
|
|
|
<br />
|
2007-12-17 12:38:02 +00:00
|
|
|
<select name="locale" size="2">
|
|
|
|
<option value="en-us">
|
|
|
|
<xsl:if test="//account/@locale='en-us'">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='language_en-us']" />
|
|
|
|
</option>
|
|
|
|
<option value="de-de">
|
|
|
|
<xsl:if test="//account/@locale='de-de'">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='language_de-de']" />
|
|
|
|
</option>
|
2007-11-26 14:25:31 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
2007-12-17 12:38:02 +00:00
|
|
|
<h3><xsl:value-of select="$locale_strings[@id='account_pagesize']" /></h3>
|
2007-11-26 14:25:31 +00:00
|
|
|
<br />
|
2007-12-17 12:38:02 +00:00
|
|
|
<select name="pagesize" size="7">
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=1">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
1
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=2">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
2
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=5">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
5
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=10">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
10
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=20">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
20
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=50">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
50
|
|
|
|
</option>
|
|
|
|
<option>
|
|
|
|
<xsl:if test="//account/@pagesize=100">
|
|
|
|
<xsl:attribute name="selected">
|
|
|
|
selected
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
100
|
|
|
|
</option>
|
2007-11-26 14:25:31 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
2007-12-17 12:38:02 +00:00
|
|
|
<h3><xsl:value-of select="$locale_strings[@id='account_cortado']" /></h3>
|
|
|
|
<input type="radio" name="cortado" value="1">
|
|
|
|
<xsl:if test="//account/@cortado=1">
|
|
|
|
<xsl:attribute name="checked">
|
|
|
|
checked
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
</input>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
|
|
|
<br />
|
|
|
|
<input type="radio" name="cortado" value="0">
|
|
|
|
<xsl:if test="//account/@cortado=0">
|
|
|
|
<xsl:attribute name="checked">
|
|
|
|
checked
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
</input>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
2007-11-26 14:25:31 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2007-12-17 12:38:02 +00:00
|
|
|
<input name="submit" type="submit" />
|
2007-11-26 14:25:31 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//account/@show='bookmarks'">
|
2007-12-17 12:38:02 +00:00
|
|
|
<h2><xsl:value-of select="$locale_strings[@id='account_bookmarks']" /></h2>
|
|
|
|
<p>coming soon...</p>
|
2007-11-26 14:25:31 +00:00
|
|
|
</xsl:when>
|
2007-12-17 12:38:02 +00:00
|
|
|
<xsl:otherwise>
|
|
|
|
<p></p>
|
|
|
|
</xsl:otherwise>
|
2007-11-26 14:25:31 +00:00
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|