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