Just for visual coherence, i added this to CCR.
Best Regards.
From d6e436fea7951b9e2b30ef7b5a3c2e8103d73497 Mon Sep 17 00:00:00 2001
From: Manuel Tortosa <[email protected]>
Date: Wed, 29 Sep 2010 14:20:31 +0200
Subject: [PATCH 4/4] Convert logout and forgot password in buttons

---
 web/template/login_form.php |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/web/template/login_form.php b/web/template/login_form.php
index ab00071..39692e0 100644
--- a/web/template/login_form.php
+++ b/web/template/login_form.php
@@ -1,9 +1,12 @@
 <div id="login_bar" class="pgbox">
 <?php
-if (isset($_COOKIE["AURSID"])) {
-	print __("Logged-in as: %s", '<b>' . username_from_sid($_COOKIE["AURSID"]) . '</b>');
+if (isset($_COOKIE["AURSID"])) { 
 ?>
- <a href="logout.php">[<?php print __("Logout"); ?>]</a>
+	<form>
+		<?php print __("Logged-in as: %s", '<b>' . username_from_sid($_COOKIE["AURSID"]) . '</b>');
+?>
+		<input type="button" class="button" value="<?php  print __("Logout"); ?>" onclick="window.location.href='logout.php'"> 
+	</form>
 <?php
 }
 else {
@@ -22,7 +25,9 @@ else {
 	<input type="password" name="passwd" size="30" maxlength="<?php print PASSWD_MAX_LEN; ?>" />
 	<input type="checkbox" name="remember_me" /><?php print __("Remember me"); ?>
 	<input type="submit" class="button" value="<?php  print __("Login"); ?>" />
-	<a href="passreset.php">[<?php echo __('Forgot Password') ?>]</a>
+	<form>
+		<input type="button" class="button" value="<?php  print __("Forgot Password"); ?>" onclick="window.location.href='passreset.php'"> 
+	</form>
 	</div>
 </form>
 <?php } ?>
-- 
1.7.1

Reply via email to