diff options
author | lorilee <leelorik@gmail.com> | 2010-08-11 09:11:57 +0400 |
---|---|---|
committer | lorilee <leelorik@gmail.com> | 2010-08-11 09:11:57 +0400 |
commit | 4482228f66b55e07a4f7a48685a764315a462411 (patch) | |
tree | 13b42202c6213542825f74ca432d0bc82d33220b /server_export.php | |
parent | 90c0e573f75d745da55dc25ecc5f2eabe855da59 (diff) |
Back button on export.php page
Diffstat (limited to 'server_export.php')
-rw-r--r-- | server_export.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server_export.php b/server_export.php index 67817bccb7..2ab625d635 100644 --- a/server_export.php +++ b/server_export.php @@ -30,8 +30,19 @@ $multi_values .= '<a href="' . $checkall_url . '&selectall=1" onclick="setSe $multi_values .= '<select name="db_select[]" id="db_select" size="10" multiple="multiple">'; $multi_values .= "\n"; +if(isset($_GET['db_select'])) { + $_GET['db_select'] = urldecode($_GET['db_select']); + $_GET['db_select'] = explode(",", $_GET['db_select']); +} + foreach ($GLOBALS['pma']->databases as $current_db) { - if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) { + if(isset($_GET['db_select'])) { + if(in_array($current_db, $_GET['db_select'])) { + $is_selected = ' selected="selected"'; + } else { + $is_selected = ''; + } + } elseif (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) { $is_selected = ' selected="selected"'; } else { $is_selected = ''; |