'; $multi_values .= ''; $multi_values .= __('Select all'); $multi_values .= ''; $multi_values .= ' / '; $multi_values .= ''; $multi_values .= __('Unselect all') . '
'; $multi_values .= ''; return $multi_values; } /** * Prints Html For Export Hidden Input * * @param String $export_type Selected Export Type * @param String $db Selected DB * @param String $table Selected Table * @param String $single_table Single Table * @param String $sql_query Sql Query * * @return string */ function PMA_getHtmlForHiddenInput( $export_type, $db, $table, $single_table, $sql_query ) { global $cfg; $html = ""; if ($export_type == 'server') { $html .= PMA_URL_getHiddenInputs('', '', 1); } elseif ($export_type == 'database') { $html .= PMA_URL_getHiddenInputs($db, '', 1); } else { $html .= PMA_URL_getHiddenInputs($db, $table, 1); } // just to keep this value for possible next display of this form after saving // on server if (!empty($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 (! empty($sql_query)) { $html .= '' . "\n"; } elseif (isset($_GET['sql_query'])) { $html .= '' . "\n"; } $html .= ''; return $html; } /** * Prints Html For Export Options Header * * @param String $export_type Selected Export Type * @param String $db Selected DB * @param String $table Selected Table * * @return string */ function PMA_getHtmlForExportOptionHeader($export_type, $db, $table) { $html = ''; return $html; } /** * Returns HTML for export template operations * * @param string $export_type export type - server, database, or table * * @return string HTML for export template operations */ function PMA_getHtmlForExportTemplateLoading($export_type) { $html = '
'; $html .= '

' . __('Export templates:') . '

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

' . __('New template:') . '

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

' . __('Existing templates:') . '

'; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= '
'; $html .= '
'; return $html; } /** * Returns HTML for the options in teplate dropdown * * @param string $export_type export type - server, database, or table * * @return string HTML for the options in teplate dropdown */ function PMA_getOptionsForExportTemplates($export_type) { $ret = ''; // Get the relation settings $cfgRelation = PMA_getRelationsParam(); $query = "SELECT `id`, `template_name` FROM " . PMA\libraries\Util::backquote($cfgRelation['db']) . '.' . PMA\libraries\Util::backquote($cfgRelation['export_templates']) . " WHERE `username` = " . "'" . PMA\libraries\Util::sqlAddSlashes($GLOBALS['cfg']['Server']['user']) . "' AND `export_type` = '" . $export_type . "'" . " ORDER BY `template_name`;"; $result = PMA_queryAsControlUser($query); if (!$result) { return $ret; } while ($row = $GLOBALS['dbi']->fetchAssoc($result, $GLOBALS['controllink'])) { $ret .= '