use help tooltips

This commit is contained in:
Roland Gruber 2009-02-07 22:28:28 +00:00
parent bb7117f467
commit da20910d41
7 changed files with 44 additions and 103 deletions

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -64,6 +64,7 @@ echo $_SESSION['header'];
</head>
<body>
<?php
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
// set focus on password field
echo "<script type=\"text/javascript\" language=\"javascript\">\n";
echo "<!--\n";
@ -123,11 +124,9 @@ echo $_SESSION['header'];
if (sizeof($files) > 0) echo "<input type=\"password\" name=\"passwd\">\n";
else echo "<input disabled type=\"password\" name=\"passwd\">\n";
if (sizeof($files) > 0) echo "<input type=\"submit\" name=\"submit\" value=\"" . _("Ok") . "\">\n";
else echo "<input disabled type=\"submit\" name=\"submit\" value=\"" . _("Ok") . "\">\n";
else echo "<input disabled type=\"submit\" name=\"submit\" value=\"" . _("Ok") . "\">&nbsp;\n";
// help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=200\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '200'), '200');
?>
</td>
<td style="border-style:none" rowspan="4" width="20"></td>

View File

@ -150,9 +150,7 @@ echo ("<tr><td align=\"right\"><b>" . _("Server address") . " *: </b></td>".
"<input tabindex=\"$tabindex\" size=50 type=\"text\" name=\"serverurl\" value=\"" . $conf->get_ServerURL() . "\">".
"</td>\n");
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=201\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '201'), '201');
echo "</td></tr>\n";
$tabindex++;
@ -164,9 +162,7 @@ echo ("<tr><td align=\"right\"><b>".
_("Tree suffix") . ": </b></td>".
"<td><input tabindex=\"$tabindex\" size=50 type=\"text\" name=\"sufftree\" value=\"" . $conf->get_Suffix('tree') . "\"></td>\n");
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=203\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '203'), '203');
echo "</td></tr>\n";
$tabindex++;
@ -186,9 +182,7 @@ if ($conf->get_cacheTimeout() != 15) echo("<option>15</option>\n");
echo ("</select></td>\n");
$tabindex++;
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=214\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '214'), '214');
echo "</td></tr>\n";
// access level is only visible in Pro version
@ -221,9 +215,7 @@ if (isLAMProVersion()) {
echo ("</select></td>\n");
$tabindex++;
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=214\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '215'), '215');
echo "</td></tr>\n";
}
@ -245,9 +237,7 @@ echo "<br>\n";
echo "<input tabindex=\"$tabindex\" type=\"submit\" name=\"edittypes\" value=\"" . _("Edit account types") . "\">&nbsp;&nbsp;";
$tabindex++;
echo "<input tabindex=\"$tabindex\" type=\"submit\" name=\"editmodules\" value=\"" . _("Edit modules") . "\">&nbsp;&nbsp;";
echo "<a href=\"../help.php?HelpNumber=217\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '217'), '217');
$tabindex++;
echo ("</fieldset>");
@ -326,9 +316,7 @@ else
}
echo ("</td>\n");
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=209\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '209'), '209');
echo "</td></tr>\n";
echo ("</table>\n");
@ -345,18 +333,14 @@ echo ("<tr><td align=\"right\"><b>".
"<td><input tabindex=\"$tabindex\" size=50 type=\"text\" name=\"scriptservers\" value=\"" . $conf->get_scriptServers(false) . "\"></td>\n");
$tabindex++;
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=218\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '218'), '218');
echo "</td></tr>\n";
echo ("<tr><td align=\"right\"><b>".
_("Path to external script") . ": </b></td>".
"<td><input tabindex=\"$tabindex\" size=50 type=\"text\" name=\"scriptpath\" value=\"" . $conf->get_scriptPath() . "\"></td>\n");
$tabindex++;
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=210\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '210'), '210');
echo "</td></tr>\n";
echo "<tr><td align=\"right\"><b>". _("Rights for the home directory") . ": </b></td>\n";
$owr = "";
@ -399,9 +383,7 @@ echo "<td align=\"center\">\n";
echo "</tr></table>";
$tabindex++;
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=219\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '219'), '219');
echo "</td></tr>\n";
echo ("</table>\n");
@ -418,9 +400,7 @@ echo ("<tr><td align=\"right\"><b>".
_("List of valid users") . " *: </b></td>".
"<td><textarea tabindex=\"$tabindex\" name=\"admins\" cols=75 rows=5>" . $adminText . "</textarea></td>\n");
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=207\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '207'), '207');
echo "</td></tr>\n";
$tabindex++;
@ -432,9 +412,7 @@ echo ("<tr><td align=\"right\"><font color=\"red\"><b>".
"<td align=\"left\"><input tabindex=\"$tabindex\" type=\"password\" name=\"passwd1\"></td>\n");
$tabindex++;
echo "<td rowspan=2>";
echo "<a href=\"../help.php?HelpNumber=212\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '212'), '212');
echo "</td></tr>\n";
// reenter password
echo ("<tr><td align=\"right\"><font color=\"red\"><b>".

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2004 - 2006 Roland Gruber
Copyright (C) 2004 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -80,6 +80,7 @@ for ($i = 0; $i < sizeof($types); $i++){
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $types[$i] . ".css\">\n";
}
echo "</head><body>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
echo ("<p align=\"center\"><a href=\"http://lam.sourceforge.net\" target=\"new_window\">".
"<img src=\"../../graphics/banner.jpg\" border=1 alt=\"LDAP Account Manager\"></a></p><hr><br>\n");
@ -119,10 +120,9 @@ echo "</p>\n";
echo "<p><br><br>\n";
echo "(*) " . _("Base module");
// help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=237\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
echo "</p>\n";
echo "&nbsp;";
printHelpLink(getHelp('', '237'), '237');
echo "<br><br><br></p>\n";
echo "</form>\n";
echo "</body>\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2004 - 2006 Roland Gruber
Copyright (C) 2004 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -158,6 +158,7 @@ for ($i = 0; $i < sizeof($allTypes); $i++){
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $allTypes[$i] . ".css\">\n";
}
echo "</head><body>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
echo ("<p align=\"center\"><a href=\"http://lam.sf.net\" target=\"new_window\">".
"<img src=\"../../graphics/banner.jpg\" border=1 alt=\"LDAP Account Manager\"></a></p><hr><br>\n");
@ -200,9 +201,7 @@ if (sizeof($activeTypes) > 0) {
echo "<td>" . _("LDAP suffix") . "</td>\n";
echo "<td><input type=\"text\" size=\"40\" name=\"suffix_" . $activeTypes[$i] . "\" value=\"" . $_SESSION['conf_typeSettings']['suffix_' . $activeTypes[$i]] . "\"></td>\n";
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=202\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '202'), '202');
echo "</td>\n";
echo "</tr>\n";
// list attributes
@ -216,9 +215,7 @@ if (sizeof($activeTypes) > 0) {
echo "<td>" . _("List attributes") . "</td>\n";
echo "<td><input type=\"text\" size=\"40\" name=\"attr_" . $activeTypes[$i] . "\" value=\"" . $attributes . "\"></td>\n";
echo "<td>";
echo "<a href=\"../help.php?HelpNumber=206\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '206'), '206');
echo "</td>\n";
echo "</tr>\n";
echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -81,6 +81,7 @@ echo $_SESSION['header'];
echo "}\n";
echo "//-->\n";
echo "</script>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
?>
<p align="center"><a href="http://lam.sourceforge.net" target="_blank">
<img src="../../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
@ -116,9 +117,8 @@ echo $_SESSION['header'];
<td style="border-style:none" align="center">
<input type="password" name="passwd">
<input type="submit" name="submit" value="<?php echo _("Ok"); ?>">
&nbsp;<a href="../help.php?HelpNumber=236" target="lamhelp">
<img src="../../graphics/help.png" alt="<?php echo _('Help'); ?>" title="<?php echo _('Help'); ?>">
</a>
&nbsp;
<?php printHelpLink(getHelp('', '236'), '236'); ?>
</td>
<td style="border-style:none" rowspan="3" width="20"></td>
</tr>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -68,6 +68,7 @@ echo $_SESSION['header'];
<hr><br>
<?php
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
// check if submit button was pressed
if (isset($_POST['submit'])) {
@ -175,10 +176,7 @@ if (isset($_POST['submit'])) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=238\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '238'), '238');
?>
</td>
</tr>
@ -192,10 +190,7 @@ if (isset($_POST['submit'])) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=241\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '241'), '241');
?>
</td>
</tr>
@ -232,9 +227,7 @@ if (isset($_POST['submit'])) {
echo "</select>\n";
echo "</td>\n";
echo "<td>\n";
echo "<a href=\"../help.php?HelpNumber=242\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '242'), '242');
echo "</td>\n";
echo "</tr>\n";
}
@ -268,10 +261,7 @@ if (isset($_POST['submit'])) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=239\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '239'), '239');
?>
</td>
</tr>
@ -284,10 +274,7 @@ if (isset($_POST['submit'])) {
</TD>
<TD>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=240\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '240'), '240');
?>
</TD>
</TR>
@ -348,10 +335,7 @@ if (isset($_POST['submit'])) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=235\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '235'), '235');
?>
</td>
</tr>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2009 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -60,6 +60,7 @@ echo $_SESSION['header'];
<hr><br>
<?php
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
$cfg = new LAMCfgMain();
// check if submit button was pressed
@ -175,10 +176,7 @@ if (!isset($cfg->default)) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=230\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '230'), '230');
?>
</td>
</tr>
@ -227,10 +225,7 @@ if (!isset($cfg->default)) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=231\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '231'), '231');
?>
</td>
</tr>
@ -257,10 +252,7 @@ if (!isset($cfg->default)) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=232\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '232'), '232');
?>
</td>
</tr>
@ -291,10 +283,7 @@ if (!isset($cfg->default)) {
</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=233\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '233'), '233');
?>
</td>
</tr>
@ -336,10 +325,7 @@ if (!isset($cfg->default)) {
<td>&nbsp;</td>
<td>&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=234\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '234'), '234');
?>
</td>
</tr>
@ -360,10 +346,7 @@ if (!isset($cfg->default)) {
<input type="submit" name="submit" value=" <?php echo _("Ok"); ?> ">
&nbsp;
<?PHP
// help link
echo "<a href=\"../help.php?HelpNumber=236\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a>\n";
printHelpLink(getHelp('', '236'), '236');
?>
</form>