2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 require_once './libraries/common.inc.php';
13 $js_to_run = 'functions.js';
18 require './libraries/server_links.inc.php';
20 $export_page_title = $strViewDumpDatabases . "\n";
21 $checkall_url = 'server_export.php?'
22 . PMA_generate_common_url()
23 . '&goto=db_export.php';
25 $multi_values = '<div align="center">';
26 $multi_values .= '<a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . $strSelectAll . '</a>
28 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a><br />';
30 $multi_values .= '<select name="db_select[]" size="6" multiple="multiple">';
31 $multi_values .= "\n";
33 foreach ($GLOBALS['PMA_List_Database']->items
as $current_db) {
34 if (!empty($selectall) ||
(isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
35 $is_selected = ' selected="selected"';
39 $current_db = htmlspecialchars($current_db);
40 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
42 $multi_values .= "\n";
43 $multi_values .= '</select></div><br />';
45 $export_type = 'server';
46 require_once './libraries/display_export.lib.php';
52 require_once './libraries/footer.inc.php';