$val) { $ret .= '' . "\n"; $ret .= '' . "\n"; $ret .= '' . "\n"; $ret .= '

' . "\n"; } return $ret; } /** * string PMA_pluginGetOneOption(string $section, string $plugin_name, string $id, array &$opt) * * returns single option in a table row * * @uses PMA_getString() * @uses PMA_pluginCheckboxCheck() * @uses PMA_pluginGetDefault() * @param string $section name of config section in * $GLOBALS['cfg'][$section] for plugin * @param string $plugin_name unique plugin name * @param string $id option id * @param array &$opt plugin option details * @return string table row with option */ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) { $ret = ''; $ret .= ''; if ($opt['type'] == 'bool') { $ret .= ''; $ret .= ''; $ret .= ''; $ret .= ''; } elseif ($opt['type'] == 'text') { $ret .= ''; $ret .= ''; $ret .= ''; $ret .= ''; $ret .= ''; } else { /* This should be seen only by plugin writers, so I do not thing this * needs translation. */ $ret .= ''; $ret .= 'UNKNOWN OPTION IN IMPORT PLUGIN ' . $plugin_name . '!'; $ret .= ''; } $ret .= ''; return $ret; } /** * string PMA_pluginGetOptions(string $section, array &$list) * * return html fieldset with editable options for plugin * * @uses PMA_getString() * @uses PMA_pluginGetOneOption() * @param string $section name of config section in $GLOBALS['cfg'][$section] * @param array &$list array with plugin configuration defined in plugin file * @return string html fieldset with plugin options */ function PMA_pluginGetOptions($section, &$list) { $ret = ''; // Options for plugins that support them foreach ($list as $plugin_name => $val) { $ret .= '
'; $ret .= '' . PMA_getString($val['options_text']) . ''; if (isset($val['options'])) { $ret .= ''; $ret .= ''; foreach ($val['options'] as $id => $opt) { $ret .= PMA_pluginGetOneOption($section, $plugin_name, $id, $opt); } $ret .= ''; $ret .= '
'; } else { $ret .= $GLOBALS['strNoOptions']; } $ret .= '
'; } return $ret; } function PMA_pluginGetJavascript(&$list) { $ret = ' '; return $ret; } ?>