3.3.1 release
[phpmyadmin/dkf.git] / server_export.php
blobb9ed97e3a2b0532618e8398681b32e1eec6b9fef
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
10 * Does the common work
12 require_once './libraries/common.inc.php';
14 $GLOBALS['js_include'][] = 'functions.js';
16 /**
17 * Displays the links
19 require './libraries/server_links.inc.php';
21 $export_page_title = $strViewDumpDatabases . "\n";
22 $checkall_url = 'server_export.php?'
23 . PMA_generate_common_url()
24 . '&amp;goto=db_export.php';
26 $multi_values = '<div align="center">';
27 $multi_values .= '<a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . $strSelectAll . '</a>
29 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</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"';
37 } else {
38 $is_selected = '';
40 $current_db = htmlspecialchars($current_db);
41 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
42 } // end while
43 $multi_values .= "\n";
44 $multi_values .= '</select></div><br />';
46 $export_type = 'server';
47 require_once './libraries/display_export.lib.php';
50 /**
51 * Displays the footer
53 require_once './libraries/footer.inc.php';