Translation update done using Pootle.
[phpmyadmin/lorilee.git] / db_export.php
bloba44469ef279efc1e3b02adab3b2cbc1ee4897cac
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * dumps a database
6 * @uses libraries/db_common.inc.php
7 * @uses libraries/db_info.inc.php
8 * @uses libraries/display_export.lib.php
9 * @uses $tables from libraries/db_info.inc.php
10 * @package phpMyAdmin
13 /**
14 * Gets some core libraries
16 require_once './libraries/common.inc.php';
18 // $sub_part is also used in db_info.inc.php to see if we are coming from
19 // db_export.php, in which case we don't obey $cfg['MaxTableList']
20 $sub_part = '_export';
21 require_once './libraries/db_common.inc.php';
22 $url_query .= '&amp;goto=db_export.php';
23 require_once './libraries/db_info.inc.php';
25 /**
26 * Displays the form
28 $export_page_title = __('View dump (schema) of database');
30 // exit if no tables in db found
31 if ($num_tables < 1) {
32 PMA_Message::error(__('No tables found in database.'))->display();
33 require './libraries/footer.inc.php';
34 exit;
35 } // end if
37 $checkall_url = 'db_export.php?'
38 . PMA_generate_common_url($db)
39 . '&amp;goto=db_export.php';
41 $multi_values = '<div align="center">';
42 $multi_values .= '<a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . __('Select All') . '</a>
44 <a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . __('Unselect All') . '</a><br />';
46 $multi_values .= '<select name="table_select[]" size="10" multiple="multiple">';
47 $multi_values .= "\n";
49 if (!empty($selected_tbl) && empty($table_select)) {
50 $table_select = $selected_tbl;
53 foreach ($tables as $each_table) {
54 if (! empty($unselectall)
55 || (! empty($table_select) && !in_array($each_table['Name'], $table_select))) {
56 $is_selected = '';
57 } else {
58 $is_selected = ' selected="selected"';
60 $table_html = htmlspecialchars($each_table['Name']);
61 $multi_values .= ' <option value="' . $table_html . '"'
62 . $is_selected . '>'
63 . str_replace(' ', '&nbsp;', $table_html) . '</option>' . "\n";
64 } // end for
66 $multi_values .= "\n";
67 $multi_values .= '</select></div><br />';
69 $export_type = 'database';
70 require_once './libraries/display_export.lib.php';
72 /**
73 * Displays the footer
75 require './libraries/footer.inc.php';