rfe #2726479 [export] Export tables preselect

This commit is contained in:
Herman van Rink
2009-06-12 12:35:18 +00:00
parent 35e0a1efe5
commit c6c39d2b2e
6 changed files with 17 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ patch #2724755 [display] Full/partial text links (big T) are back, + patch #2724755 [display] Full/partial text links (big T) are back,
thanks to nullbarriere - nullbarriere thanks to nullbarriere - nullbarriere
- bug [display] handle NavigationBarIconic as documented for navi buttons - bug [display] handle NavigationBarIconic as documented for navi buttons
+ rfe #2726479 [export] Export tables preselect
3.2.1.0 (not yet released) 3.2.1.0 (not yet released)
- bug #2799009 Login with ipv6 IP address breaks redirect - bug #2799009 Login with ipv6 IP address breaks redirect

View File

@@ -44,9 +44,13 @@ $multi_values .= '<a href="' . $checkall_url . '" onclick="setSelectOptions(\'du
/ /
<a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a><br />'; <a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a><br />';
$multi_values .= '<select name="table_select[]" size="6" multiple="multiple">'; $multi_values .= '<select name="table_select[]" size="10" multiple="multiple">';
$multi_values .= "\n"; $multi_values .= "\n";
if (!empty($selected_tbl) && empty($table_select)) {
$table_select = $selected_tbl;
}
foreach ($tables as $each_table) { foreach ($tables as $each_table) {
// ok we show also views // ok we show also views
//if (is_null($each_table['Engine'])) { //if (is_null($each_table['Engine'])) {
@@ -54,8 +58,7 @@ foreach ($tables as $each_table) {
// continue; // continue;
//} //}
if (! empty($unselectall) if (! empty($unselectall)
|| (isset($tmp_select) || !in_array($each_table['Name'], $table_select)) {
&& false !== strpos($tmp_select, '|' . $each_table['Name'] . '|'))) {
$is_selected = ''; $is_selected = '';
} else { } else {
$is_selected = ' selected="selected"'; $is_selected = ' selected="selected"';

View File

@@ -493,6 +493,8 @@ echo ' <option value="' . $strRepairTable . '" >'
. $strRepairTable . '</option>' . "\n"; . $strRepairTable . '</option>' . "\n";
echo ' <option value="' . $strAnalyzeTable . '" >' echo ' <option value="' . $strAnalyzeTable . '" >'
. $strAnalyzeTable . '</option>' . "\n"; . $strAnalyzeTable . '</option>' . "\n";
echo ' <option value="' . $strExport . '" >'
. $strExport . '</option>' . "\n";
?> ?>
</select> </select>
<script type="text/javascript"> <script type="text/javascript">

View File

@@ -59,6 +59,11 @@ if (! empty($submit_mult)
$query_type = 'analyze_tbl'; $query_type = 'analyze_tbl';
$mult_btn = $strYes; $mult_btn = $strYes;
break; break;
case $strExport:
unset($submit_mult);
require('db_export.php');
exit;
break;
} // end switch } // end switch
} }
} elseif (isset($selected_fld) && !empty($selected_fld)) { } elseif (isset($selected_fld) && !empty($selected_fld)) {

View File

@@ -172,7 +172,7 @@ function PMA_pluginGetChoice($section, $name, &$list, $cfgname = NULL)
. PMA_pluginIsActive($section, $cfgname, $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 />' . "\n";
} }
return $ret; return $ret;
} }

View File

@@ -28,7 +28,7 @@ $multi_values .= '<a href="' . $checkall_url . '&amp;selectall=1" onclick="setSe
/ /
<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a><br />'; <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a><br />';
$multi_values .= '<select name="db_select[]" size="6" multiple="multiple">'; $multi_values .= '<select name="db_select[]" size="10" multiple="multiple">';
$multi_values .= "\n"; $multi_values .= "\n";
foreach ($GLOBALS['pma']->databases as $current_db) { foreach ($GLOBALS['pma']->databases as $current_db) {