<br> after "Page number" only in navi, thanks to Juergen Wind
[phpmyadmin/crack.git] / db_export.php
blobe8c4de49b851e3575f2a25aa8f9a7ffacfe77337
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * dumps a database
6 * @version $Id$
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
13 /**
14 * Gets some core libraries
16 require_once './libraries/common.inc.php';
18 $sub_part = '_export';
19 require_once './libraries/db_common.inc.php';
20 $url_query .= '&amp;goto=db_export.php';
21 require_once './libraries/db_info.inc.php';
23 /**
24 * Displays the form
26 $export_page_title = $strViewDumpDB;
28 // exit if no tables in db found
29 if ($num_tables < 1) {
30 echo '<div class="warning">' . $strNoTablesFound . '</div>';
31 require './libraries/footer.inc.php';
32 exit;
33 } // end if
35 $multi_values = '<div align="center"><select name="table_select[]" size="6" multiple="multiple">';
36 $multi_values .= "\n";
38 foreach ($tables as $each_table) {
39 // ok we show also views
40 //if (PMA_MYSQL_INT_VERSION >= 50000 && is_null($each_table['Engine'])) {
41 // Don't offer to export views yet.
42 // continue;
43 //}
44 if (! empty($unselectall)
45 || (isset($tmp_select)
46 && false !== strpos($tmp_select, '|' . $each_table['Name'] . '|'))) {
47 $is_selected = '';
48 } else {
49 $is_selected = ' selected="selected"';
51 $table_html = htmlspecialchars($each_table['Name']);
52 $multi_values .= ' <option value="' . $table_html . '"'
53 . $is_selected . '>'
54 . str_replace(' ', '&nbsp;', $table_html) . '</option>' . "\n";
55 } // end for
56 $multi_values .= "\n";
57 $multi_values .= '</select></div>';
59 $checkall_url = 'db_export.php?'
60 . PMA_generate_common_url($db)
61 . '&amp;goto=db_export.php';
63 $multi_values .= '<br />
64 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
66 <a href="' . $checkall_url . '&amp;unselectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>';
68 $export_type = 'database';
69 require_once './libraries/display_export.lib.php';
71 /**
72 * Displays the footer
74 require_once './libraries/footer.inc.php';