'."\n";
return $html;
}
/**
* Prints Html For Import Javascript
*
* @param int $upload_id The selected upload id
*
* @return string
*/
function PMA_getHtmlForImportJS($upload_id)
{
global $SESSION_KEY;
$html = '';
$html .= '';
return $html;
}
/**
* Prints Html For Display Export options
*
* @param String $import_type Import type: server, database, table
* @param String $db Selected DB
* @param String $table Selected Table
*
* @return string
*/
function PMA_getHtmlForExportOptions($import_type, $db, $table)
{
$html = '
';
$html .= '
';
$html .= PMA_Util::getImage('b_import.png', __('Import'));
if ($import_type == 'server') {
$html .= __('Importing into the current server');
} elseif ($import_type == 'database') {
$import_str = sprintf(
__('Importing into the database "%s"'),
htmlspecialchars($db)
);
$html .= $import_str;
} else {
$import_str = sprintf(
__('Importing into the table "%s"'),
htmlspecialchars($table)
);
$html .= $import_str;
}
$html .= '
';
$html .= '
';
return $html;
}
/**
* Prints Html For Display Import options : Compressions
*
* @return string
*/
function PMA_getHtmlForImportCompressions()
{
global $cfg;
$html = '';
// zip, gzip and bzip2 encode features
$compressions = array();
if ($cfg['GZipDump'] && @function_exists('gzopen')) {
$compressions[] = 'gzip';
}
if ($cfg['BZipDump'] && @function_exists('bzopen')) {
$compressions[] = 'bzip2';
}
if ($cfg['ZipDump'] && @function_exists('zip_open')) {
$compressions[] = 'zip';
}
// We don't have show anything about compression, when no supported
if ($compressions != array()) {
$html .= '
';
$compress_str = sprintf(
__('File may be compressed (%s) or uncompressed.'),
implode(", ", $compressions)
);
$html .= $compress_str;
$html .= ' ';
$html .= __(
'A compressed file\'s name must end in .[format].[compression]. '
. 'Example: .sql.zip'
);
$html .= '
';
}
return $html;
}
/**
* Prints Html For Display Import charset
*
* @return string
*/
function PMA_getHtmlForImportCharset()
{
global $cfg;
$html = '
';
return $html;
}
/**
* Prints Html For Display Import options : Partial Import
*
* @param String $timeout_passed timeout passed
* @param String $offset timeout offset
*
* @return string
*/
function PMA_getHtmlForImportOptionsPartialImport($timeout_passed, $offset)
{
$html = '
';
$html .= '
' . __('Partial Import:') . '
';
if (isset($timeout_passed) && $timeout_passed) {
$html .= '
' . "\n";
$html .= '';
$html .= sprintf(
__(
'Previous import timed out, after resubmitting '
. 'will continue from position %d.'
),
$offset
);
$html .= '
' . "\n";
}
$html .= '
';
$html .= ' ';
$html .= ' ';
$html .= '
';
if (! (isset($timeout_passed) && $timeout_passed)) {
$html .= '
';
$html .= ' ';
$html .= ' ';
$html .= '
';
} else {
// If timeout has passed,
// do not show the Skip dialog to avoid the risk of someone
// entering a value here that would interfere with "skip"
$html .= ' ';
}
$html .= '
';
return $html;
}
/**
* Prints Html For Display Import options : Format
*
* @param Array $import_list import list
*
* @return string
*/
function PMA_getHtmlForImportOptionsFormat($import_list)
{
$html = '