2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 require_once './libraries/common.inc.php';
16 require './libraries/server_links.inc.php';
18 $export_page_title = __('View dump (schema) of databases') . "\n";
19 $checkall_url = 'server_export.php?'
20 . PMA_generate_common_url()
21 . '&goto=db_export.php';
23 $multi_values = '<div align="center">';
24 $multi_values .= '<a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . __('Select All') . '</a>
26 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . __('Unselect All') . '</a><br />';
28 $multi_values .= '<select name="db_select[]" size="10" multiple="multiple">';
29 $multi_values .= "\n";
31 foreach ($GLOBALS['pma']->databases
as $current_db) {
32 if (!empty($selectall) ||
(isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
33 $is_selected = ' selected="selected"';
37 $current_db = htmlspecialchars($current_db);
38 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
40 $multi_values .= "\n";
41 $multi_values .= '</select></div><br />';
43 $export_type = 'server';
44 require_once './libraries/display_export.lib.php';
50 require './libraries/footer.inc.php';