Refactored ConfigFile class so that it is no longer a singleton
[phpmyadmin.git] / libraries / display_export.inc.php
blob39b07d38d28c48b4142a05f0ab05507d386fb64b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays export tab.
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 // Get relations & co. status
13 $cfgRelation = PMA_getRelationsParam();
15 if (isset($_REQUEST['single_table'])) {
16 $GLOBALS['single_table'] = $_REQUEST['single_table'];
19 require_once './libraries/file_listing.lib.php';
20 require_once './libraries/plugin_interface.lib.php';
21 require_once './libraries/display_export.lib.php';
23 /* Scan for plugins */
24 $export_list = PMA_getPlugins(
25 "export",
26 'libraries/plugins/export/',
27 array(
28 'export_type' => $export_type,
29 'single_table' => isset($single_table)
33 /* Fail if we didn't find any plugin */
34 if (empty($export_list)) {
35 PMA_Message::error(
36 __('Could not load export plugins, please check your installation!')
37 )->display();
38 exit;
41 $html = '<form method="post" action="export.php" '
42 . ' name="dump" class="disableAjax">';
44 //output Hidden Inputs
45 $single_table_str = isset($single_table)? $single_table : '';
46 $sql_query_str = isset($sql_query)? $sql_query : '';
47 $html .= PMA_getHtmlForHiddenInput(
48 $export_type,
49 $db,
50 $table,
51 $single_table_str,
52 $sql_query_str
55 //output Export Options
56 $num_tables_str = isset($num_tables)? $num_tables : '';
57 $unlim_num_rows_str = isset($unlim_num_rows)? $unlim_num_rows : '';
58 $multi_values_str = isset($multi_values)? $multi_values : '';
59 $html .= PMA_getHtmlForExportOptions(
60 $export_type,
61 $db,
62 $table,
63 $multi_values_str,
64 $num_tables_str,
65 $export_list,
66 $unlim_num_rows_str
69 $html .= '</form>';
71 $response = PMA_Response::getInstance();
72 $response->addHTML($html);