2007-11-22 05:21:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
2008-02-14 22:23:25 +00:00
|
|
|
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#"
|
2007-11-22 05:21:17 +00:00
|
|
|
>
|
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
<xsl:template name="loginbox">
|
2008-04-09 01:10:21 +00:00
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
<div class="loginbox">
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<form method="post">
|
2008-04-20 00:37:59 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<xsl:attribute name="action">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
|
|
|
</xsl:attribute>
|
2008-04-20 00:37:59 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<fieldset>
|
2008-04-20 00:37:59 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<label for="user">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='username_or_openid']" />:
|
|
|
|
</label>
|
|
|
|
<br />
|
|
|
|
<input id="username" name="user" onkeyup="check_openid();" type="text" />
|
|
|
|
<br />
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<label for="pass">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='password']" />:
|
|
|
|
</label>
|
|
|
|
<br />
|
|
|
|
<input id="password" name="pass" type="password" />
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<input type="submit" name="login" >
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
</fieldset>
|
2008-04-20 00:37:59 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
</form>
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
</div>
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
<script type="text/javascript">
|
2008-03-24 16:04:46 +00:00
|
|
|
|
|
|
|
<!--
|
2008-04-09 01:10:21 +00:00
|
|
|
this looks awfully ugly, but nevertheless generates javascript inside _valid_ XHTML
|
|
|
|
kudos to toby white who details the solution on http://scispace.net/tow21/weblog/718.html
|
2008-03-27 16:43:08 +00:00
|
|
|
-->
|
2008-04-09 01:10:21 +00:00
|
|
|
|
|
|
|
<xsl:text disable-output-escaping="yes"><![CDATA[
|
|
|
|
<![CDATA[
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
function check_openid()
|
|
|
|
{
|
|
|
|
password = document.getElementById('password');
|
|
|
|
if (
|
|
|
|
document.getElementById('username').value.substring(7,0).toLowerCase() == "http://"
|
|
|
|
||
|
|
|
|
document.getElementById('username').value.substring(8,0).toLowerCase() == "https://"
|
|
|
|
)
|
|
|
|
{
|
|
|
|
password.disabled = true;
|
|
|
|
password.type = 'input';
|
|
|
|
password.value = ']]></xsl:text><xsl:value-of select="$locale_strings[@id='input_password_not_required']" /><xsl:text disable-output-escaping="yes"><![CDATA[';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
password.disabled = false;
|
|
|
|
password.type = 'password';
|
|
|
|
password.value = '';
|
|
|
|
}
|
|
|
|
}
|
2008-03-27 16:43:08 +00:00
|
|
|
|
2008-04-09 01:10:21 +00:00
|
|
|
]]]]></xsl:text>
|
|
|
|
<xsl:text disable-output-escaping="yes">></xsl:text>
|
|
|
|
</script>
|
2008-03-24 16:04:46 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-11-22 05:21:17 +00:00
|
|
|
<xsl:template name="loginform">
|
2008-03-24 16:04:46 +00:00
|
|
|
<!--
|
|
|
|
the loginform template is deprecated
|
|
|
|
-->
|
2008-02-14 22:23:25 +00:00
|
|
|
<div class="loginform">
|
2008-04-03 13:47:12 +00:00
|
|
|
<form method="post">
|
|
|
|
<xsl:attribute name="action">
|
|
|
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<fieldset>
|
|
|
|
<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']" />
|
2008-02-14 22:23:25 +00:00
|
|
|
</xsl:attribute>
|
2008-04-03 13:47:12 +00:00
|
|
|
</input>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2008-02-14 22:23:25 +00:00
|
|
|
</div>
|
2007-11-22 05:21:17 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
</xsl:stylesheet>
|