$export_type, 'single_table' => isset($single_table) ) ); /* Fail if we didn't find any plugin */ if (empty($export_list)) { PMA_Message::error( __('Could not load export plugins, please check your installation!') )->display(); exit; } $html = ""; $html .= '
'; if ($export_type == 'server') { $html .= PMA_generate_common_hidden_inputs('', '', 1); } elseif ($export_type == 'database') { $html .= PMA_generate_common_hidden_inputs($db, '', 1); } else { $html .= PMA_generate_common_hidden_inputs($db, $table, 1); } // just to keep this value for possible next display of this form after saving // on server if (isset($single_table)) { $html .= '' . "\n"; } $html .= ''; $html .= "\n"; // If the export method was not set, the default is quick if (isset($_GET['export_method'])) { $cfg['Export']['method'] = $_GET['export_method']; } elseif (! isset($cfg['Export']['method'])) { $cfg['Export']['method'] = 'quick'; } // The export method (quick, custom or custom-no-form) $html .= ''; if (isset($_GET['sql_query'])) { $html .= '' . "\n"; } elseif (! empty($sql_query)) { $html .= '' . "\n"; } $html .= ''; if (isset($_GET['quick_or_custom'])) { $export_method = $_GET['quick_or_custom']; } else { $export_method = $cfg['Export']['method']; } $html .= '
'; $html .= '

' . __('Export Method:') . '

'; $html .= '
'; if (strlen($table) && ! isset($num_tables) && ! PMA_Table::isMerge($db, $table)) { $html .= '
'; $html .= '

' . __('Rows:') . '

'; $html .= ''; $html .= '
'; } if (isset($cfg['SaveDir']) && !empty($cfg['SaveDir'])) { $html .= '
'; $html .= '

' . __('Output:') . '

'; $html .= '
'; $html .= '
'; $html .= '

' . __('Format:') . '

'; $html .= PMA_pluginGetChoice('Export', 'what', $export_list, 'format'); $html .= '
'; $html .= '
'; $html .= '

' . __('Format-specific options:') . '

'; $html .= '

'; $html .= __('Scroll down to fill in the options for the selected format and ignore the options for other formats.'); $html .= '

'; $html .= PMA_pluginGetOptions('Export', $export_list); $html .= '
'; if (function_exists('PMA_Kanji_encodingForm')) { // Encoding setting form appended by Y.Kawada // Japanese encoding setting $html .= '
'; $html .= '

' . __('Encoding Conversion:') . '

'; $html .= PMA_Kanji_encodingForm(); $html .= '
'; } $html .= '
'; $html .= PMA_Util::getExternalBug( __('SQL compatibility mode'), 'mysql', '50027', '14515' ); $html .= ''; $html .= '
'; $html .= '
'; $response = PMA_Response::getInstance(); $response->addHTML($html);