use help tooltips

This commit is contained in:
Roland Gruber 2009-02-07 22:56:36 +00:00
parent da20910d41
commit f566345a4b
3 changed files with 23 additions and 25 deletions

View File

@ -77,6 +77,7 @@ for ($i = 0; $i < sizeof($types); $i++) {
} }
echo "</head>\n"; echo "</head>\n";
echo "<body>\n"; echo "<body>\n";
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
// check if account specific page should be shown // check if account specific page should be shown
if (isset($_POST['type'])) showMainPage($_POST['type']); if (isset($_POST['type'])) showMainPage($_POST['type']);
@ -157,9 +158,8 @@ function showMainPage($scope) {
echo "<td width=\"50%\">\n"; echo "<td width=\"50%\">\n";
echo "<b>" . _("DN suffix") . "</b>\n"; echo "<b>" . _("DN suffix") . "</b>\n";
// help link // help link
echo "&nbsp;<a href=\"help.php?HelpNumber=361\" target=\"lamhelp\">"; echo "&nbsp;";
echo "<img src=\"../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">"; printHelpLink(getHelp('', '361'), '361');
echo "</a>\n";
echo "<br>\n"; echo "<br>\n";
echo "<ul>\n"; echo "<ul>\n";
echo "<li><b>" . _("Identifier") . ":</b> " . "dn_suffix</li>\n"; echo "<li><b>" . _("Identifier") . ":</b> " . "dn_suffix</li>\n";
@ -170,9 +170,8 @@ function showMainPage($scope) {
echo "<td width=\"50%\">\n"; echo "<td width=\"50%\">\n";
echo "<b><font color=\"red\">" . _("RDN identifier") . "</font></b>\n"; echo "<b><font color=\"red\">" . _("RDN identifier") . "</font></b>\n";
// help link // help link
echo "&nbsp;<a href=\"help.php?HelpNumber=301\" target=\"lamhelp\">"; echo "&nbsp;";
echo "<img src=\"../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">"; printHelpLink(getHelp('', '301'), '301');
echo "</a>\n";
echo "<br>\n"; echo "<br>\n";
echo "<ul>\n"; echo "<ul>\n";
echo "<li><b>" . _("Identifier") . ":</b> " . "dn_rdn</li>\n"; echo "<li><b>" . _("Identifier") . ":</b> " . "dn_rdn</li>\n";
@ -308,9 +307,8 @@ function showColumnData($module, $data, $scope) {
echo "</b>\n"; echo "</b>\n";
} }
// help link // help link
echo "&nbsp;<a href=\"help.php?module=$module&amp;HelpNumber=". $data['help'] . "&amp;scope=" . $scope . "\" target=\"lamhelp\">"; echo "&nbsp;";
echo "<img src=\"../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">"; printHelpLink(getHelp($module, $data['help'], $scope), $data['help'], $module, $scope);
echo "</a>\n";
echo "<br>\n"; echo "<br>\n";
echo "<ul>\n"; echo "<ul>\n";
echo "<li>\n"; echo "<li>\n";

View File

@ -152,6 +152,7 @@ function display_main() {
} }
echo ("</head>\n"); echo ("</head>\n");
echo ("<body>\n"); echo ("<body>\n");
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
echo "<h1>" . _("OU editor") . "</h1>"; echo "<h1>" . _("OU editor") . "</h1>";
echo ("<br>\n"); echo ("<br>\n");
echo ("<form action=\"ou_edit.php\" method=\"post\">\n"); echo ("<form action=\"ou_edit.php\" method=\"post\">\n");
@ -179,9 +180,9 @@ function display_main() {
echo "<td>"; echo "<td>";
echo "<input type=\"submit\" name=\"createOU\" value=\"" . _("Ok") . "\">&nbsp;"; echo "<input type=\"submit\" name=\"createOU\" value=\"" . _("Ok") . "\">&nbsp;";
echo "</td>"; echo "</td>";
echo "<td><a href=\"help.php?HelpNumber=601\" target=\"lamhelp\">"; echo "<td>";
echo "<img src=\"../graphics/help.png\" alt=\"". _("Help") ."\" title=\"" . _("Help") . "\">"; printHelpLink(getHelp('', '601'), '601');
echo "</a></td>\n"; echo "</td>\n";
echo ("</tr>\n"); echo ("</tr>\n");
echo "<tr><td colspan=5>&nbsp;</td></tr>\n"; echo "<tr><td colspan=5>&nbsp;</td></tr>\n";
// delete OU // delete OU
@ -195,9 +196,9 @@ function display_main() {
echo "<td>"; echo "<td>";
echo "<input type=\"submit\" name=\"deleteOU\" value=\"" . _("Ok") . "\">&nbsp;"; echo "<input type=\"submit\" name=\"deleteOU\" value=\"" . _("Ok") . "\">&nbsp;";
echo "</td>"; echo "</td>";
echo "<td><a href=\"help.php?HelpNumber=602\" target=\"lamhelp\">"; echo "<td>";
echo "<img src=\"../graphics/help.png\" alt=\"". _("Help") ."\" title=\"" . _("Help") . "\">"; printHelpLink(getHelp('', '602'), '602');
echo "</a></td>\n"; echo "</td>\n";
echo ("</tr>\n"); echo ("</tr>\n");
echo ("</table>\n"); echo ("</table>\n");
echo ("</fieldset>\n"); echo ("</fieldset>\n");

View File

@ -196,9 +196,9 @@ echo "<legend><img align=\"middle\" src=\"../../graphics/logo32.png\" alt=\"logo
echo "</select>\n"; echo "</select>\n";
echo "</td><td>"; echo "</td><td>";
// help link // help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=361\" target=\"lamhelp\">"; echo "&nbsp;";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">"; printHelpLink(getHelp('', '361'), '361');
echo "</a><br>\n"; echo "<br>\n";
echo "</td></tr>"; echo "</td></tr>";
// LDAP RDN // LDAP RDN
echo "<tr><td>"; echo "<tr><td>";
@ -216,9 +216,9 @@ echo "<legend><img align=\"middle\" src=\"../../graphics/logo32.png\" alt=\"logo
echo "</select>\n"; echo "</select>\n";
echo "</td><td>"; echo "</td><td>";
// help link // help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=301\" target=\"lamhelp\">"; echo "&nbsp;";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">"; printHelpLink(getHelp('', '301'), '301');
echo "</a><br>\n"; echo "<br>\n";
echo "</td></tr>"; echo "</td></tr>";
echo "</table>"; echo "</table>";
echo "</fieldset>\n<br>\n"; echo "</fieldset>\n<br>\n";
@ -251,10 +251,8 @@ for ($m = 0; $m < sizeof($modules); $m++) {
echo ("<b>" . _("Profile name") . ":</b> \n"); echo ("<b>" . _("Profile name") . ":</b> \n");
$tabindex++; $tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"text\" name=\"profname\" value=\"" . $_GET['edit'] . "\">\n"); echo ("<input tabindex=\"$tabindex\" type=\"text\" name=\"profname\" value=\"" . $_GET['edit'] . "\">\n");
// help link printHelpLink(getHelp('', '360'), '360');
echo "<a href=\"../help.php?HelpNumber=360\" target=\"lamhelp\">"; echo "<br><br>\n";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a><br><br>\n";
$tabindex++; $tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"save\" value=\"" . _("Save") . "\">\n"); echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"save\" value=\"" . _("Save") . "\">\n");
$tabindex++; $tabindex++;
@ -262,6 +260,7 @@ echo ("<input tabindex=\"$tabindex\" type=\"reset\" name=\"reset\" value=\"" . _
$tabindex++; $tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"abort\" value=\"" . _("Cancel") . "\">\n"); echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"abort\" value=\"" . _("Cancel") . "\">\n");
echo "<input type=\"hidden\" name=\"accounttype\" value=\"$type\">\n"; echo "<input type=\"hidden\" name=\"accounttype\" value=\"$type\">\n";
echo "<br><br><br><br>\n";
echo ("</form></body></html>\n"); echo ("</form></body></html>\n");