Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin...
[phpmyadmin/lorilee.git] / server_export.php
blob67817bccb79f9ef25a80806fcd8a3fe1de98ed8f
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
9 * Does the common work
11 require_once './libraries/common.inc.php';
13 $GLOBALS['js_include'][] = 'export.js';
15 /**
16 * Displays the links
18 require './libraries/server_links.inc.php';
20 $export_page_title = __('View dump (schema) of databases') . "\n";
21 $checkall_url = 'server_export.php?'
22 . PMA_generate_common_url()
23 . '&amp;goto=db_export.php';
25 $multi_values = '<div align="left">';
26 $multi_values .= '<a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . __('Select All') . '</a>
28 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . __('Unselect All') . '</a><br />';
30 $multi_values .= '<select name="db_select[]" id="db_select" size="10" multiple="multiple">';
31 $multi_values .= "\n";
33 foreach ($GLOBALS['pma']->databases as $current_db) {
34 if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
35 $is_selected = ' selected="selected"';
36 } else {
37 $is_selected = '';
39 $current_db = htmlspecialchars($current_db);
40 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
41 } // end while
42 $multi_values .= "\n";
43 $multi_values .= '</select></div>';
45 $export_type = 'server';
46 require_once './libraries/display_export.lib.php';
49 /**
50 * Displays the footer
52 require './libraries/footer.inc.php';