select all tables in the export list

This commit is contained in:
Marc Delisle
2006-10-13 17:05:57 +00:00
parent ef25d174ec
commit 57759bd126
2 changed files with 7 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ $Source$
* css/phpmyadmin.css.php: bug #1517428, some IE 6 versions have * css/phpmyadmin.css.php: bug #1517428, some IE 6 versions have
problems loading CSS when zlip.output_compression is on, problems loading CSS when zlip.output_compression is on,
thanks to Juergen Wind thanks to Juergen Wind
* db_details_export.php: select all tables by default to reflect
the default export behavior
2006-10-12 Marc Delisle <lem9@users.sourceforge.net> 2006-10-12 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php: bug #1566219, automated timestamp values * tbl_change.php: bug #1566219, automated timestamp values

View File

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