Bug Fixing : user unable to get disconnect from OPAC.
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Wed, 14 Nov 2007 18:11:17 +0000 (12:11 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 16 Nov 2007 13:35:22 +0000 (07:35 -0600)
using the same facility as the intranet : logout.x=1
It is the easiest way.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc

index bdeff07..7d7c6f6 100644 (file)
@@ -1,6 +1,25 @@
-
+</div>
+<!-- TMPL_IF NAME="opacuserlogin" -->
+<div id="login">
+    <!-- TMPL_IF NAME="loggedinusername" -->
+        <a href="/cgi-bin/koha/opac-user.pl"><b>User Info</b></a>
+        <p>Logged in as: <b> <!-- TMPL_VAR NAME="loggedinusername" --> </b></p>
+        <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></p>
+    <!-- TMPL_ELSE -->
+        <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
+            <p>Login:</p>
+            <input type="text" id="userid" size="10" name="userid" />
+            <p>Pass:</p>
+            <input type="password" id="password" size="10" name="password" />
+            <p>
+                <input type="submit" value="Log In" class="submit" />
+            </p>
+       </form>
+    <!-- /TMPL_IF -->
+</div>
+<!-- /TMPL_IF -->
 <!-- TMPL_IF NAME="opaccredits" -->
-    <div id="ft">
+
         <!-- TMPL_VAR NAME="opaccredits" -->
     </div>
 <!-- /TMPL_IF -->