select all tables in the export list

This commit is contained in:
Marc Delisle
2006-10-13 17:09:11 +00:00
parent 9b9d0b800c
commit 106741652c
2 changed files with 7 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ $HeadURL$
* css/phpmyadmin.css.php: bug #1517428, some IE 6 versions have
problems loading CSS when zlip.output_compression is on,
thanks to Juergen Wind
* db_details_export.php: select all tables by default to reflect
the default export behavior
2006-10-13 Michal Čihař <michal@cihar.com>
* Documentation.html: Mention wiki.

View File

@@ -40,12 +40,12 @@ foreach ( $tables as $each_table ) {
// Don't offer to export views yet.
continue;
}
if ( ! empty( $selectall )
if ( ! empty( $unselectall )
|| ( isset( $tmp_select )
&& false !== strpos( $tmp_select, '|' . $each_table['Name'] . '|') ) ) {
$is_selected = ' selected="selected"';
} else {
$is_selected = '';
} else {
$is_selected = ' selected="selected"';
}
$table_html = htmlspecialchars( $each_table['Name'] );
$multi_values .= ' <option value="' . $table_html . '"'
@@ -59,9 +59,9 @@ $checkall_url = 'db_details_export.php?'
. '&amp;goto=db_details_export.php';
$multi_values .= '<br />
<a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
/
<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>';
<a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>';
$export_type = 'database';
require_once('./libraries/display_export.lib.php');