From a750f1eade18b8292e7f397fd3ef1745b54d4c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 26 Apr 2006 14:42:19 +0000 Subject: [PATCH] Add support for groupping options. --- ChangeLog | 1 + libraries/plugin_interface.lib.php | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5efee918e..cd79999fb 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ - Display information that there are no settings. - Be more verbose on error. - Drop tables used for layout. + - Add support for groupping options. * css/phpmyadmin.css.php, themes/darkblue_orange/css/theme_right.css.php, themes/original/css/theme_right.css.php: New style for non table forms used in plugins. diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index 664551816..46fb12b2a 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -171,14 +171,16 @@ function PMA_pluginGetChoice($section, $name, &$list) function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) { $ret = "\n"; - $ret .= '
' . "\n"; if ($opt['type'] == 'bool') { + $ret .= '
' . "\n"; $ret .= ''; $ret .= ''; + $ret .= '
' . "\n"; } elseif ($opt['type'] == 'text') { + $ret .= '
' . "\n"; $ret .= ''; $ret .= ''; + $ret .= '
' . "\n"; } elseif ($opt['type'] == 'select') { + $ret .= '
' . "\n"; $ret .= ''; $ret .= ''; + $ret .= '
' . "\n"; } elseif ($opt['type'] == 'hidden') { $ret .= ''; + } elseif ($opt['type'] == 'bgroup') { + $ret .= '
'; + $ret .= ''; + $ret .= ''; + $ret .= ''; + } elseif ($opt['type'] == 'egroup') { + $ret .= '
'; } else { /* This should be seen only by plugin writers, so I do not thing this * needs translation. */ @@ -211,7 +226,7 @@ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) if (isset($opt['doc'])) { $ret .= PMA_showMySQLDocu($opt['doc'][0], $opt['doc'][1]); } - $ret .= '
' . "\n"; + $ret .= "\n"; return $ret; }