Fix selecting of default export.
This commit is contained in:
@@ -63,7 +63,7 @@ echo PMA_pluginGetJavascript($export_list);
|
|||||||
<legend><?php echo $export_page_title; ?></legend>
|
<legend><?php echo $export_page_title; ?></legend>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* this table is needed to fix rendering in Opera <= 9 and Safari <= 2
|
* this table is needed to fix rendering in Opera <= 9 and Safari <= 2
|
||||||
* normaly just the two fieldset would have float: left
|
* normaly just the two fieldset would have float: left
|
||||||
*/
|
*/
|
||||||
@@ -72,7 +72,7 @@ echo PMA_pluginGetJavascript($export_list);
|
|||||||
|
|
||||||
<div id="div_container_exportoptions">
|
<div id="div_container_exportoptions">
|
||||||
<fieldset id="exportoptions">
|
<fieldset id="exportoptions">
|
||||||
<?php echo PMA_pluginGetChoice('Export', 'what', $export_list); ?>
|
<?php echo PMA_pluginGetChoice('Export', 'what', $export_list, 'format'); ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -135,7 +135,7 @@ function PMA_pluginIsActive($section, $opt, $val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* string PMA_pluginGetChoice(string $section, string $name, array &$list)
|
* string PMA_pluginGetChoice(string $section, string $name, array &$list, string $cfgname)
|
||||||
*
|
*
|
||||||
* returns html radio form element for plugin choice
|
* returns html radio form element for plugin choice
|
||||||
*
|
*
|
||||||
@@ -145,10 +145,14 @@ function PMA_pluginIsActive($section, $opt, $val)
|
|||||||
* $GLOBALS['cfg'][$section] for plugin
|
* $GLOBALS['cfg'][$section] for plugin
|
||||||
* @param string $name name of radio element
|
* @param string $name name of radio element
|
||||||
* @param array &$list array with plugin configuration defined in plugin file
|
* @param array &$list array with plugin configuration defined in plugin file
|
||||||
|
* @param string $cfgname name of config value, if none same as $name
|
||||||
* @return string html input radio tag
|
* @return string html input radio tag
|
||||||
*/
|
*/
|
||||||
function PMA_pluginGetChoice($section, $name, &$list)
|
function PMA_pluginGetChoice($section, $name, &$list, $cfgname = NULL)
|
||||||
{
|
{
|
||||||
|
if (!isset($cfgname)) {
|
||||||
|
$cfgname = $name;
|
||||||
|
}
|
||||||
$ret = '';
|
$ret = '';
|
||||||
foreach ($list as $plugin_name => $val) {
|
foreach ($list as $plugin_name => $val) {
|
||||||
$ret .= '<!-- ' . $plugin_name . ' -->' . "\n";
|
$ret .= '<!-- ' . $plugin_name . ' -->' . "\n";
|
||||||
@@ -157,7 +161,7 @@ function PMA_pluginGetChoice($section, $name, &$list)
|
|||||||
. ' onclick="if(this.checked) { hide_them_all();'
|
. ' onclick="if(this.checked) { hide_them_all();'
|
||||||
.' document.getElementById(\'' . $plugin_name . '_options\').style.display = \'block\'; };'
|
.' document.getElementById(\'' . $plugin_name . '_options\').style.display = \'block\'; };'
|
||||||
.' return true"'
|
.' return true"'
|
||||||
. PMA_pluginIsActive($section, $name, $plugin_name) . '/>' . "\n";
|
. PMA_pluginIsActive($section, $cfgname, $plugin_name) . '/>' . "\n";
|
||||||
$ret .= '<label for="radio_plugin_' . $plugin_name . '">'
|
$ret .= '<label for="radio_plugin_' . $plugin_name . '">'
|
||||||
. PMA_getString($val['text']) . '</label>' . "\n";
|
. PMA_getString($val['text']) . '</label>' . "\n";
|
||||||
$ret .= '<br /><br />' . "\n";
|
$ret .= '<br /><br />' . "\n";
|
||||||
|
Reference in New Issue
Block a user