From e79ab010c245cd2d5671caef7a67a3e14c290aab Mon Sep 17 00:00:00 2001 From: mikelittle Date: Wed, 17 Dec 2003 01:07:40 +0000 Subject: [PATCH] Default page if no group selected. git-svn-id: http://svn.automattic.com/wordpress/trunk@620 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options.php | 68 ++++++++++++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 22 deletions(-) diff --git a/wp-admin/options.php b/wp-admin/options.php index c90a75e33b..f1a8d090bf 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -36,8 +36,10 @@ for ($i=0; $iget_results("SELECT $tableoptions.option_id, option_name, option_type, option_value, option_admin_level " . "FROM $tableoptions " @@ -102,12 +104,37 @@ default: $standalone = 0; include_once("./admin-header.php"); if ($user_level <= 3) { - die("You have no right to edit the options for this blog.
Ask for a promotion to your blog admin :)"); + die("You have no right to edit the options for this blog.
Ask for a promotion from your blog admin :)"); } ?> + + +
+get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id"); + foreach ($option_groups as $option_group) { + echo("
group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}
\n"); + $current_long_desc = $option_group->group_longdesc; + if ($current_long_desc == '') { + $current_long_desc = 'No help for this group of options.'; + } + echo("
{$option_group->group_desc}: $current_long_desc
\n"); + } // end for each group +?> +
Permalinks
+
Permanent link configuration
+
+ -
+
-

-
- - - +

+ + + \n"); + echo(' \n"); } } ?> @@ -147,25 +173,23 @@ default:
'. get_option_widget($option, ($user_level >= $option->option_admin_level), '')); - echo("$option->option_description
'. get_option_widget($option, ($user_level >= $option->option_admin_level), '')); + echo(" $option->option_description
- +
- -
-

No help for this group of options.

+

No help for this group of options.

\ No newline at end of file