2007-10-26 17:42:03 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2007-10-09 15:58:37 +00:00
|
|
|
<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:output
|
|
|
|
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
|
|
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
2007-10-26 17:42:03 +00:00
|
|
|
encoding="UTF-8"
|
2007-10-09 15:58:37 +00:00
|
|
|
indent="yes"
|
|
|
|
method="xml"
|
|
|
|
media-type="application/xhtml+xml"
|
|
|
|
omit-xml-declaration="no"
|
|
|
|
/>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:include href="/xsl/xhtml/results.xsl"/>
|
|
|
|
<xsl:include href="/xsl/xhtml/video.xsl"/>
|
|
|
|
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:variable name="site_strings" select="document('../site/gnutube.xml')//strings/str" />
|
|
|
|
<xsl:variable name="locale_strings" select="document(concat('../locale/',/page/@locale,'.xml'))//strings/str" />
|
2007-10-09 15:58:37 +00:00
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<!-- this kills 99% of the processed XML... sorry Tim Bray.... -->
|
|
|
|
<xsl:template match="@*|node()">
|
|
|
|
<xsl:if test="not(/)">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="@*|node()" />
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-09 15:58:37 +00:00
|
|
|
<xsl:template match="/">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="application/xhtml+xml" />
|
2007-10-24 12:56:56 +00:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
|
2007-10-09 15:58:37 +00:00
|
|
|
<link rel="stylesheet" type="text/css">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="//@stylesheet" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</link>
|
|
|
|
<title>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="boolean(//frontpage)">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
-
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="boolean(//resultspage)">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
-
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='results_for_query']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
"<xsl:value-of select="//resultspage/@query" />"
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
-
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="string-length(//@username)=0">
|
|
|
|
<div class="header1">
|
2007-10-12 12:42:01 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_login']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='login_to_upload']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="header2">
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_register']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='register']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_login']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='login']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-24 12:56:56 +00:00
|
|
|
<img class="openid-icon" src="/images/openid-icon.png" alt="open id logo" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_login-openid']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='login_openid']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<div class="header1">
|
2007-10-12 12:42:01 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_upload']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='upload_video']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_bookmarks']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='bookmarks']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_account']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='account_details']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
<div class="header2">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
user/<xsl:value-of select="//@username" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="//@username" />
|
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_logout']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='logout']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
<hr />
|
2007-10-21 20:59:32 +00:00
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:if test="//message">
|
|
|
|
<xsl:call-template name="message"/>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//frontpage">
|
|
|
|
<xsl:call-template name="frontpage"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//registerform">
|
|
|
|
<xsl:call-template name="registerform"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//loginform">
|
|
|
|
<xsl:call-template name="loginform"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//uploadform">
|
|
|
|
<xsl:call-template name="uploadform"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//results">
|
|
|
|
<xsl:call-template name="results"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="//video">
|
|
|
|
<xsl:call-template name="video"/>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
2007-10-09 15:58:37 +00:00
|
|
|
|
|
|
|
<div class="footer">
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_gnutube-authors']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='gnutube_authors']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_gnutube-license']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='gnutube_license']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_gnutube-source-code']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='gnutube_source_code']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="frontpage">
|
2007-10-09 15:58:37 +00:00
|
|
|
|
|
|
|
<div class="logo-big">
|
2007-10-24 12:56:56 +00:00
|
|
|
<img src="/images/logo-big.png" alt="GNUtube logo (320x100)" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
<form method="get" enctype="text/plain">
|
|
|
|
<xsl:attribute name="action">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_results']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<fieldset>
|
|
|
|
<input type="text" name="query" size="40" /><br />
|
|
|
|
<input type="submit">
|
|
|
|
<xsl:attribute name="value">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='button_find']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</input> 
|
|
|
|
<input type="submit" name="lucky">
|
|
|
|
<xsl:attribute name="value">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='button_lucky']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="toplists">
|
2007-10-12 13:09:07 +00:00
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_query_latestadditions']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</xsl:attribute>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
2007-10-12 13:09:07 +00:00
|
|
|
</a>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
|
|
|
<a href="about:blank"><xsl:value-of select="$locale_strings[@id='query_mostdownloads']" /></a>
|
|
|
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
|
|
|
<a href="about:blank"><xsl:value-of select="$locale_strings[@id='query_bestrated']" /></a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:call-template name="tagcloud"/>
|
|
|
|
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-12 11:18:13 +00:00
|
|
|
<xsl:template name="searchbar">
|
2007-10-09 15:58:37 +00:00
|
|
|
|
|
|
|
<div class="logo-small-top">
|
2007-10-28 03:06:45 +00:00
|
|
|
<a href="/">
|
|
|
|
<img src="/images/logo-small-top.png" alt="GNUtube logo top (160x25)" />
|
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search-small">
|
|
|
|
<form method="get" enctype="text/plain">
|
|
|
|
<xsl:attribute name="action">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_results']" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<fieldset>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='search']" />:
|
2007-10-09 15:58:37 +00:00
|
|
|
<input type="text" name="query" size="auto" />
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="logo-small-bottom">
|
2007-10-28 03:06:45 +00:00
|
|
|
<a href="/">
|
|
|
|
<img src="/images/logo-small-bottom.png" alt="GNUtube logo top (160x25)" />
|
|
|
|
</a>
|
2007-10-09 15:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="message">
|
2007-10-21 20:59:32 +00:00
|
|
|
|
|
|
|
<div class="messagebox">
|
2007-10-21 22:02:39 +00:00
|
|
|
<xsl:attribute name="id">
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:value-of select="/page/message/@type" />
|
2007-10-21 22:02:39 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:choose>
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:when test="/page/message/@type='error'">
|
2007-10-24 12:56:56 +00:00
|
|
|
<img src="/images/tango/dialog-error.png" />
|
2007-10-21 22:02:39 +00:00
|
|
|
</xsl:when>
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:when test="/page/message/@type='information'">
|
2007-10-24 12:56:56 +00:00
|
|
|
<img src="/images/tango/dialog-information.png" />
|
2007-10-21 22:02:39 +00:00
|
|
|
</xsl:when>
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:when test="/page/message/@type='warning'">
|
2007-10-24 12:56:56 +00:00
|
|
|
<img src="/images/tango/dialog-warning.png" />
|
2007-10-21 22:02:39 +00:00
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:variable name="messagetext" select="/page/message/@text" />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
|
2007-10-21 22:02:39 +00:00
|
|
|
<!-- probably one can do this on one line, dunno how -->
|
2007-10-21 20:59:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="tagcloud">
|
2007-10-09 15:58:37 +00:00
|
|
|
|
|
|
|
<div class="tagcloud">
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:for-each select="//tagcloud/tag">
|
2007-10-09 15:58:37 +00:00
|
|
|
<xsl:sort select="text" order="ascending" data-type="text" />
|
|
|
|
<a class="tag">
|
|
|
|
<xsl:attribute name="style">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="count >= 64">font-size:32px</xsl:when>
|
|
|
|
<xsl:when test="count <= 28">font-size:14px</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
font-size:<xsl:value-of select="round(number(count)div 2)" />px
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="href">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_results']" />
|
2007-10-12 12:42:01 +00:00
|
|
|
tag:
|
|
|
|
<xsl:value-of select="text" />
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="text" />
|
|
|
|
(<xsl:value-of select="count" />)
|
|
|
|
</a>
|
|
|
|
</xsl:for-each>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="registerform">
|
2007-10-26 12:51:00 +00:00
|
|
|
|
|
|
|
<xsl:call-template name="searchbar"/>
|
2007-10-11 23:21:16 +00:00
|
|
|
|
|
|
|
<div class="registerform">
|
|
|
|
|
2007-10-12 15:12:44 +00:00
|
|
|
<form method="post">
|
|
|
|
<xsl:attribute name="action">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_register']" />
|
2007-10-12 15:12:44 +00:00
|
|
|
</xsl:attribute>
|
2007-10-11 23:21:16 +00:00
|
|
|
<fieldset>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='username']" />:
|
2007-10-12 15:12:44 +00:00
|
|
|
<br />
|
2007-10-11 23:21:16 +00:00
|
|
|
<input name="user" type="text" size="30" maxlength="30" />
|
2007-10-12 15:12:44 +00:00
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='password']" />:
|
2007-10-12 15:12:44 +00:00
|
|
|
<br />
|
2007-10-11 23:21:16 +00:00
|
|
|
<input name="pass" type="password" size="30" maxlength="30" />
|
2007-10-12 15:12:44 +00:00
|
|
|
<br />
|
2007-10-29 08:54:16 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='password_repeat']" />:
|
|
|
|
<br />
|
|
|
|
<input name="pass_repeat" type="password" size="30" maxlength="30" />
|
|
|
|
<br />
|
2007-10-12 15:12:44 +00:00
|
|
|
<input type="submit" name="register" >
|
|
|
|
<xsl:attribute name="value">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='button_register']" />
|
2007-10-12 15:12:44 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
2007-10-11 23:21:16 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
2007-10-11 23:47:13 +00:00
|
|
|
</div>
|
2007-10-11 23:21:16 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="loginform">
|
|
|
|
|
|
|
|
<xsl:call-template name="searchbar"/>
|
2007-10-12 00:44:24 +00:00
|
|
|
|
|
|
|
<div class="loginform">
|
2007-10-28 20:58:25 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="//loginform/@action='openid'">
|
|
|
|
<form method="post">
|
|
|
|
<xsl:attribute name="action">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_login']" />
|
2007-10-12 15:12:44 +00:00
|
|
|
</xsl:attribute>
|
2007-10-28 20:58:25 +00:00
|
|
|
<fieldset>
|
|
|
|
<input name="action" type="hidden" value="openid" />
|
|
|
|
OpenID:
|
|
|
|
<br />
|
|
|
|
<input name="user" type="text" style="background: url(http://stat.livejournal.com/img/openid-inputicon.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px;" />
|
|
|
|
<br />
|
|
|
|
e.g. http://username.myopenid.com
|
|
|
|
<br />
|
|
|
|
<input type="submit" name="login" >
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<br />
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_login']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
login with normal account
|
|
|
|
</a>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<form method="post">
|
|
|
|
<xsl:attribute name="action">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_login']" />
|
2007-10-20 16:32:04 +00:00
|
|
|
</xsl:attribute>
|
2007-10-28 20:58:25 +00:00
|
|
|
<fieldset>
|
|
|
|
<input name="action" type="hidden" value="login" />
|
|
|
|
<xsl:value-of select="$locale_strings[@id='username']" />:
|
|
|
|
<br />
|
|
|
|
<input name="user" type="text" size="30" maxlength="30" />
|
|
|
|
<br />
|
|
|
|
<xsl:value-of select="$locale_strings[@id='password']" />:
|
|
|
|
<br />
|
|
|
|
<input name="pass" type="password" size="30" maxlength="30" />
|
|
|
|
<br />
|
|
|
|
<input type="submit" name="login" >
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<br />
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="$site_strings[@id='page_login-openid']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
login with openid
|
|
|
|
</a>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2007-10-12 00:44:24 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-28 03:06:45 +00:00
|
|
|
<xsl:template name="uploadform">
|
|
|
|
|
|
|
|
<xsl:call-template name="searchbar"/>
|
2007-10-12 16:46:37 +00:00
|
|
|
|
|
|
|
<div class="uploadform">
|
2007-10-23 16:12:32 +00:00
|
|
|
<xsl:choose>
|
2007-10-12 16:46:37 +00:00
|
|
|
|
2007-10-23 16:12:32 +00:00
|
|
|
<xsl:when test="@page=1">
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<xsl:attribute name="action">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_uploader']" />
|
2007-10-12 16:46:37 +00:00
|
|
|
</xsl:attribute>
|
2007-10-23 16:12:32 +00:00
|
|
|
<fieldset>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_file']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="file" type="file" size="13" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_title']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Title" type="text" size="30" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_description']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Description" type="text" size="30" />
|
|
|
|
<br /><br />
|
|
|
|
<input type="submit" name="page2" >
|
|
|
|
<xsl:attribute name="value">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<br />
|
|
|
|
<span class="protip">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='this_is_page_1']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
</span>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:when test="@page=2">
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<xsl:attribute name="action">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$site_strings[@id='page_uploader']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<fieldset>
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_creator']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Creator" type="text" size="30" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_subject']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Subject" type="text" size="30" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_source']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Source" type="text" size="30" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_language']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Language" type="text" size="30" />
|
|
|
|
<br />
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='instruction_coverage']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
<br />
|
|
|
|
<input name="DC.Coverage" type="text" size="30" />
|
|
|
|
<br />
|
|
|
|
<input type="submit" name="page2" >
|
|
|
|
<xsl:attribute name="value">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='button_next_page']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<br />
|
|
|
|
<span class="protip">
|
2007-10-26 12:51:00 +00:00
|
|
|
<xsl:value-of select="$locale_strings[@id='this_is_page_2']" />
|
2007-10-23 16:12:32 +00:00
|
|
|
</span>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</xsl:when>
|
2007-10-12 16:46:37 +00:00
|
|
|
|
2007-10-23 16:12:32 +00:00
|
|
|
</xsl:choose>
|
2007-10-12 16:46:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-10-09 15:58:37 +00:00
|
|
|
</xsl:stylesheet>
|