diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-08 23:31:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-09 20:47:37 +0200 |
commit | 35b45a559472a660dc08a3bc518161e7ab400175 (patch) | |
tree | 0a20dba59f2cb671b344eb5194835c0dec0f8aaa /application/views/file/header.php | |
parent | 3f01ddce9dff69a49493541882de85854cbcebe5 (diff) |
more user changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file/header.php')
-rw-r--r-- | application/views/file/header.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/application/views/file/header.php b/application/views/file/header.php index 578ebe428..176dd5a25 100644 --- a/application/views/file/header.php +++ b/application/views/file/header.php @@ -12,15 +12,17 @@ <div class="top"> <?php echo anchor('file/index', 'New'); ?> - <?php if (!isset($username)) { ?> - <div style="float: right"> - <?=form_open("user/login"); ?> - <input type="text" name="username" /> - <input type="password" name="password" /> - <input type="submit" value="Login" name="process" /> - </form> - </div> - <?php } ?> + <div class="right"> + <?php if($username) { ?> + <?=anchor("user/logout", "Logout"); ?> + <?php } else { ?> + <?=form_open("user/login"); ?> + <input type="text" name="username" /> + <input type="password" name="password" /> + <input type="submit" value="Login" name="process" /> + </form> + <?php } ?> + </div> </div> <div class="content"> |