Translation update done using Pootle.
[phpmyadmin/dkf.git] / server_export.php
blobe728465bcac21e9cb88167357f1b1fc390086fda
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 = __('View dump (schema) of databases') . "\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;">' . __('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"';
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';