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

View File

@ -152,6 +152,7 @@ function display_main() {
}
echo ("</head>\n");
echo ("<body>\n");
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
echo "<h1>" . _("OU editor") . "</h1>";
echo ("<br>\n");
echo ("<form action=\"ou_edit.php\" method=\"post\">\n");
@ -179,9 +180,9 @@ function display_main() {
echo "<td>";
echo "<input type=\"submit\" name=\"createOU\" value=\"" . _("Ok") . "\">&nbsp;";
echo "</td>";
echo "<td><a href=\"help.php?HelpNumber=601\" target=\"lamhelp\">";
echo "<img src=\"../graphics/help.png\" alt=\"". _("Help") ."\" title=\"" . _("Help") . "\">";
echo "</a></td>\n";
echo "<td>";
printHelpLink(getHelp('', '601'), '601');
echo "</td>\n";
echo ("</tr>\n");
echo "<tr><td colspan=5>&nbsp;</td></tr>\n";
// delete OU
@ -195,9 +196,9 @@ function display_main() {
echo "<td>";
echo "<input type=\"submit\" name=\"deleteOU\" value=\"" . _("Ok") . "\">&nbsp;";
echo "</td>";
echo "<td><a href=\"help.php?HelpNumber=602\" target=\"lamhelp\">";
echo "<img src=\"../graphics/help.png\" alt=\"". _("Help") ."\" title=\"" . _("Help") . "\">";
echo "</a></td>\n";
echo "<td>";
printHelpLink(getHelp('', '602'), '602');
echo "</td>\n";
echo ("</tr>\n");
echo ("</table>\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 "</td><td>";
// help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=361\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a><br>\n";
echo "&nbsp;";
printHelpLink(getHelp('', '361'), '361');
echo "<br>\n";
echo "</td></tr>";
// LDAP RDN
echo "<tr><td>";
@ -216,9 +216,9 @@ echo "<legend><img align=\"middle\" src=\"../../graphics/logo32.png\" alt=\"logo
echo "</select>\n";
echo "</td><td>";
// help link
echo "&nbsp;<a href=\"../help.php?HelpNumber=301\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a><br>\n";
echo "&nbsp;";
printHelpLink(getHelp('', '301'), '301');
echo "<br>\n";
echo "</td></tr>";
echo "</table>";
echo "</fieldset>\n<br>\n";
@ -251,10 +251,8 @@ for ($m = 0; $m < sizeof($modules); $m++) {
echo ("<b>" . _("Profile name") . ":</b> \n");
$tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"text\" name=\"profname\" value=\"" . $_GET['edit'] . "\">\n");
// help link
echo "<a href=\"../help.php?HelpNumber=360\" target=\"lamhelp\">";
echo "<img src=\"../../graphics/help.png\" alt=\"" . _('Help') . "\" title=\"" . _('Help') . "\">";
echo "</a><br><br>\n";
printHelpLink(getHelp('', '360'), '360');
echo "<br><br>\n";
$tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"save\" value=\"" . _("Save") . "\">\n");
$tabindex++;
@ -262,6 +260,7 @@ echo ("<input tabindex=\"$tabindex\" type=\"reset\" name=\"reset\" value=\"" . _
$tabindex++;
echo ("<input tabindex=\"$tabindex\" type=\"submit\" name=\"abort\" value=\"" . _("Cancel") . "\">\n");
echo "<input type=\"hidden\" name=\"accounttype\" value=\"$type\">\n";
echo "<br><br><br><br>\n";
echo ("</form></body></html>\n");