summaryrefslogtreecommitdiff
path: root/templates/header.tpl
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2008-03-08 20:38:37 +0000
committerNathan Kinkade <nath@nkinka.de>2008-03-08 20:38:37 +0000
commit11dda4516fd699bed0dbea92e8e8976f199e31da (patch)
tree6aa945dd61ac6444ca4bb58fe41b5003d5abf627 /templates/header.tpl
parent71d8569f0c49ca79c93a1eb3bc9130e862261911 (diff)
Rearrange header so that login and logout elements look and align better.
Diffstat (limited to 'templates/header.tpl')
-rw-r--r--templates/header.tpl23
1 files changed, 12 insertions, 11 deletions
diff --git a/templates/header.tpl b/templates/header.tpl
index ca7371d..2f08cdd 100644
--- a/templates/header.tpl
+++ b/templates/header.tpl
@@ -17,23 +17,24 @@
</div>
{if isset($isLoggedIn)}
- <div id='headerMiddle'></div>
<div id='headerRight'>
Hi {$smarty.session.user.username|escape:"html"}.<br />
[<a href='logout.php'>Logout</a>]
</div>
{else}
- <form action='login.php' method='post' id='loginForm' onsubmit='return validateLoginFields();'>
- <div id='headerMiddle'>
- Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br />
- Password <input type='password' name='password' id='password' size='15' maxlength='25' />
- </div>
- <div id='headerRight'>
- <input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br />
- <a href='register.php'>Register</a>.
- </div>
- </form>
+ <div id='headerRight'>
+ <form action='login.php' method='post' id='loginForm' onsubmit='return validateLoginFields();'>
+ <div id='loginLeft'>
+ Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br />
+ Password <input type='password' name='password' id='password' size='15' maxlength='25' />
+ </div>
+ <div id='loginRight'>
+ <input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br />
+ <a href='register.php'>Register</a>.
+ </div>
+ </form>
+ </div>
{/if}
<div id='headerLinkBar'>