Added support for context help
authorslubek <slubek>
Wed, 27 Aug 2003 22:52:43 +0000 (22:52 +0000)
committerslubek <slubek>
Wed, 27 Aug 2003 22:52:43 +0000 (22:52 +0000)
classes/Misc.php
lang/english.php
lang/polish.php
lang/recoded/english.php
lang/recoded/polish.php

index d3a26a14a460c84dcaecffe488955a32fe5211df..b9527e5cdbe147920a0c5062d6e23abc6d4e5d6e 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.41 2003/08/12 08:18:53 chriskl Exp $
+        * $Id: Misc.php,v 1.42 2003/08/27 22:52:43 slubek Exp $
         */
         
        class Misc {
                                echo "</p></center>\n";
                        }
                }               
+
+               /**
+                * Displays link to the context help.if $conf['docsdir'] is set
+                * @param $url - last part of a document's url (relative to $conf['docsdir'])
+                */
+
+               function printHelp($url) {
+                       global $lang, $conf;
+
+                       if (isset($conf['docdir'])) {
+                               echo "<p><a href=\"" . $conf['docdir'] . $url . "\" target=\"_blank\">";
+                               echo $lang['strhelp'];
+                               echo "</a></p>\n";
+                       }
+               }
        
        }
 ?>
index b361484708c8d410ec15bdafe068850a990106e9..d2f913eeb16dc4170e08316b12c90c20a82047f9 100755 (executable)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.99 2003/08/26 05:59:49 chriskl Exp $
+        * $Id: english.php,v 1.100 2003/08/27 22:52:43 slubek Exp $
         */
 
        // Language and character set
        // Miscellaneous
        $lang['strtopbar'] = '%s running on %s:%s -- You are logged in as user "%s", %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
+       $lang['strhelp'] = 'Help';
 
 ?>
index ffbed58f03e225798283abd72b0e88d48cfb995c..1635ccbacd60a4a031908e0a47f7d95e26727d65 100644 (file)
@@ -4,7 +4,7 @@
         * Polish language file for WebDB.
         * @maintainer Rafal Slubowski [slubek@users.sourceforge.net]
         *
-        * $Id: polish.php,v 1.26 2003/08/26 21:24:21 slubek Exp $
+        * $Id: polish.php,v 1.27 2003/08/27 22:52:43 slubek Exp $
         */
 
        // Language and character set
        // Miscellaneous
        $lang['strtopbar'] = '%s uruchomiony na %s:%s -- Jeste¶ zalogowany jako "%s", %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
+       $lang['strhelp'] = 'Pomoc';
+
 ?>
index 059bbd3a5bfd0a42fc4fc4164e3dda66af075601..a863f3b4c3b4a09d310942253f3649235d88766c 100644 (file)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.51 2003/08/26 05:59:49 chriskl Exp $
+        * $Id: english.php,v 1.52 2003/08/27 22:52:43 slubek Exp $
         */
 
        // Language and character set
        // Miscellaneous
        $lang['strtopbar'] = '%s running on %s:%s -- You are logged in as user &quot;%s&quot;, %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
+       $lang['strhelp'] = 'Help';
 
 ?>
index e96852e9dd2125a97c713babff4488c5507352fb..4043bdde2b3bba364da74b993f96eb7d61b8b732 100644 (file)
@@ -4,7 +4,7 @@
         * Polish language file for WebDB.
         * @maintainer Rafal Slubowski [slubek@users.sourceforge.net]
         *
-        * $Id: polish.php,v 1.19 2003/08/26 21:24:21 slubek Exp $
+        * $Id: polish.php,v 1.20 2003/08/27 22:52:43 slubek Exp $
         */
 
        // Language and character set
        // Miscellaneous
        $lang['strtopbar'] = '%s uruchomiony na %s:%s -- Jeste&#347; zalogowany jako &quot;%s&quot;, %s';
        $lang['strtimefmt'] = 'jS M, Y g:iA';
+       $lang['strhelp'] = 'Pomoc';
+
 ?>