2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 if (! defined('PHPMYADMIN')) {
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 /* @var $export_list ExportPlugin[] */
25 $export_list = PMA_getPlugins(
27 'libraries/plugins/export/',
29 'export_type' => $export_type,
30 'single_table' => isset($single_table)
34 /* Fail if we didn't find any plugin */
35 if (empty($export_list)) {
37 __('Could not load export plugins, please check your installation!')
42 $html = PMA_getHtmlForExportOptionHeader($export_type, $db, $table);
44 $cfgRelation = PMA_getRelationsParam();
45 if ($cfgRelation['exporttemplateswork']) {
46 $html .= PMA_getHtmlForExportTemplateLoading($export_type);
49 $html .= '<form method="post" action="export.php" '
50 . ' name="dump" class="disableAjax">';
52 //output Hidden Inputs
53 $single_table_str = isset($single_table)?
$single_table : '';
54 $sql_query_str = isset($sql_query)?
$sql_query : '';
55 $html .= PMA_getHtmlForHiddenInput(
63 //output Export Options
64 $num_tables_str = isset($num_tables)?
$num_tables : '';
65 $unlim_num_rows_str = isset($unlim_num_rows)?
$unlim_num_rows : '';
66 $multi_values_str = isset($multi_values)?
$multi_values : '';
67 $html .= PMA_getHtmlForExportOptions(
79 $response = PMA_Response
::getInstance();
80 $response->addHTML($html);