added default values

This commit is contained in:
Roland Gruber 2004-10-14 20:16:23 +00:00
parent 9aac2700a4
commit 3001419602
1 changed files with 7 additions and 1 deletions

View File

@ -144,6 +144,7 @@ function showMainPage($scope) {
echo "<ul>\n";
echo "<li><b>" . _("Identifier") . ":</b> " . "dn_suffix</li>\n";
echo "<li><b>" . _("Example value") . ":</b> " . "ou=accounts,dc=yourdomain,dc=org</li>\n";
echo "<li><b>" . _("Default value") . ":</b> " . call_user_func(array($_SESSION['config'], 'get_' . ucfirst($scope) . 'Suffix')) . "</li>\n";
echo "<li>\n";
echo "<a href=\"help.php?HelpNumber=361\" target=\"lamhelp\">" . _("Help") . "</a>\n";
echo "</li>\n";
@ -154,7 +155,7 @@ function showMainPage($scope) {
echo "<br>\n";
echo "<ul>\n";
echo "<li><b>" . _("Identifier") . ":</b> " . "dn_rdn</li>\n";
echo "<li><b>" . _("Possible values") . ":</b> " . "uid, cn, sambaSID</li>\n"; // TODO fill with correct values
echo "<li><b>" . _("Possible values") . ":</b> " . implode(", ", getRDNAttributes($scope)) . "</li>\n";
echo "<li><b>" . _("Example value") . ":</b> " . "uid</li>\n";
echo "<li>\n";
echo "<a href=\"help.php?HelpNumber=301\" target=\"lamhelp\">" . _("Help") . "</a>\n";
@ -276,6 +277,11 @@ function showColumnData($module, $data) {
echo "<li>\n";
echo "<b>" . _("Example value") . ":</b> " . $data['example'] . "\n";
echo "</li>\n";
if (isset($data['default'])) {
echo "<li>\n";
echo "<b>" . _("Default value") . ":</b> " . $data['default'] . "\n";
echo "</li>\n";
}
echo "<li>\n";
echo "<a href=\"help.php?module=" . $module . "&amp;HelpNumber=" . $data['help'] . "\" target=\"lamhelp\">" . _("Help") . "</a>\n";
echo "</li>\n";