bug 722791
[phpmyadmin/crack.git] / db_details_export.php3
blobedf38c56f9b172a46f9a2430c80d4c87a3884a14
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
6 /**
7 * Gets some core libraries
8 */
9 $sub_part = '_export';
10 require('./db_details_common.php3');
11 $url_query .= '&amp;goto=db_details_export.php3';
12 require('./db_details_db_info.php3');
14 /**
15 * Displays the form
18 <h2>
19 <?php echo $strViewDumpDB; ?>
20 </h2>
22 <?php
23 $multi_tables = '';
24 if ($num_tables > 1) {
26 $multi_tables = '<div align="center"><select name="table_select[]" size="6" multiple="multiple">';
27 $multi_tables .= "\n";
29 $i = 0;
30 $is_selected = (!empty($selectall) ? ' selected="selected"' : '');
31 while ($i < $num_tables) {
32 $table = htmlspecialchars((PMA_MYSQL_INT_VERSION >= 32303) ? $tables[$i]['Name'] : $tables[$i]);
33 $multi_tables .= ' <option value="' . $table . '"' . $is_selected . '>' . $table . '</option>' . "\n";
34 $i++;
35 } // end while
36 $multi_tables .= "\n";
37 $multi_tables .= '</select></div>';
39 $checkall_url = 'db_details_export.php3?'
40 . PMA_generate_common_url($db)
41 . '&amp;goto=db_details_export.php3';
43 $multi_tables .= '<br />
44 <a href="' . $checkall_url . '&amp;selectall=1#dumpdb" onclick="setSelectOptions(\'db_dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
45 &nbsp;/&nbsp;
46 <a href="' . $checkall_url . '#dumpdb" onclick="setSelectOptions(\'db_dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>
47 <br /><br />';
48 } // end if
49 echo "\n";
51 $tbl_dump_form_name = 'db_dump';
52 require('./libraries/display_export.lib.php3');
54 /**
55 * Displays the footer
57 require('./footer.inc.php3');