login badly fscked up, but it looks nice

git-svn-id: http://yolanda.mister-muffin.de/svn@59 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-10-12 15:12:44 +00:00
parent 670989df53
commit ba465eef17
3 changed files with 47 additions and 8 deletions

View file

@ -38,8 +38,11 @@
<!-- search bar--> <!-- search bar-->
<str id="search">search</str> <str id="search">search</str>
<!-- --> <!-- login / register page -->
<str id=""></str> <str id="username">username</str>
<str id="password">password</str>
<str id="button_register">register</str>
<str id="button_login">login</str>
<!-- dublin core entities --> <!-- dublin core entities -->
<str id="DC.title">title</str> <str id="DC.title">title</str>

View file

@ -61,6 +61,17 @@ div
vertical-align: text-top; vertical-align: text-top;
} }
div.loginform, div.registerform
{
padding: 1.5em;
text-align: center;
}
div.loginform form, div.registerform form
{
margin: 1.5em;
}
div.logo-big div.logo-big
{ {
padding-top: 1.5em; padding-top: 1.5em;

View file

@ -290,17 +290,30 @@
</xsl:for-each> </xsl:for-each>
</table> </table>
</xsl:template> </xsl:template>v
<xsl:template match="registerform"> <xsl:template match="registerform">
<div class="registerform"> <div class="registerform">
<form action="register.pl" method="post"> <form method="post">
<xsl:attribute name="action">
<xsl:value-of select="$site_strings/str[@id='page_register']" />
</xsl:attribute>
<fieldset> <fieldset>
<xsl:value-of select="$locale_strings/str[@id='username']" />:
<br />
<input name="user" type="text" size="30" maxlength="30" /> <input name="user" type="text" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings/str[@id='password']" />:
<br />
<input name="pass" type="password" size="30" maxlength="30" /> <input name="pass" type="password" size="30" maxlength="30" />
<input type="submit" name="register" value=" register " /> <br />
<input type="submit" name="register" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings/str[@id='button_register']" />
</xsl:attribute>
</input>
</fieldset> </fieldset>
</form> </form>
@ -312,12 +325,24 @@
<div class="loginform"> <div class="loginform">
<form action="login.pl" method="POST"> <form method="post">
<xsl:attribute name="action">
<xsl:value-of select="$site_strings/str[@id='page_login']" />
</xsl:attribute>
<fieldset> <fieldset>
<input name="action" type="hidden" value="login" /> <xsl:value-of select="$locale_strings/str[@id='username']" />:
<br />
<input name="user" type="text" size="30" maxlength="30" /> <input name="user" type="text" size="30" maxlength="30" />
<br />
<xsl:value-of select="$locale_strings/str[@id='password']" />:
<br />
<input name="pass" type="password" size="30" maxlength="30" /> <input name="pass" type="password" size="30" maxlength="30" />
<input type="submit" name="login" value=" login " /> <br />
<input type="submit" name="login" >
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings/str[@id='button_login']" />
</xsl:attribute>
</input>
</fieldset> </fieldset>
</form> </form>