2 /* vim: set expandtab sw=4 ts=4 sts=4: */
7 * @uses libraries/db_common.inc.php
8 * @uses libraries/db_info.inc.php
9 * @uses libraries/display_export.lib.php
10 * @uses $tables from libraries/db_info.inc.php
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 .= '&goto=db_export.php';
23 require_once './libraries/db_info.inc.php';
28 $export_page_title = $strViewDumpDB;
30 // exit if no tables in db found
31 if ($num_tables < 1) {
32 PMA_Message
::error('strNoTablesFound')->display();
33 require './libraries/footer.inc.php';
37 $checkall_url = 'db_export.php?'
38 . PMA_generate_common_url($db)
39 . '&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;">' . $strSelectAll . '</a>
44 <a href="' . $checkall_url . '&unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a><br />';
46 $multi_values .= '<select name="table_select[]" size="6" multiple="multiple">';
47 $multi_values .= "\n";
49 foreach ($tables as $each_table) {
50 // ok we show also views
51 //if (is_null($each_table['Engine'])) {
52 // Don't offer to export views yet.
55 if (! empty($unselectall)
56 ||
(isset($tmp_select)
57 && false !== strpos($tmp_select, '|' . $each_table['Name'] . '|'))) {
60 $is_selected = ' selected="selected"';
62 $table_html = htmlspecialchars($each_table['Name']);
63 $multi_values .= ' <option value="' . $table_html . '"'
65 . str_replace(' ', ' ', $table_html) . '</option>' . "\n";
67 $multi_values .= "\n";
68 $multi_values .= '</select></div><br />';
70 $export_type = 'database';
71 require_once './libraries/display_export.lib.php';
76 require_once './libraries/footer.inc.php';