@@ -67,75 +67,86 @@ if (! empty($sql_query)) {
|
|||||||
}
|
}
|
||||||
echo PMA_pluginGetJavascript($export_list);
|
echo PMA_pluginGetJavascript($export_list);
|
||||||
?>
|
?>
|
||||||
|
<fieldset id="fieldsetexport">
|
||||||
|
<legend><?php echo $export_page_title; ?></legend>
|
||||||
|
|
||||||
<div class="exportoptions" id="format">
|
<?php
|
||||||
<h3>Format:</h3>
|
/*
|
||||||
<?php echo PMA_pluginGetChoice('Export', 'what', $export_list, 'format'); ?>
|
* this table is needed to fix rendering in Opera <= 9 and Safari <= 2
|
||||||
|
* normaly just the two fieldset would have float: left
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<table><tr><td>
|
||||||
|
|
||||||
|
<div id="div_container_exportoptions">
|
||||||
|
<fieldset id="exportoptions">
|
||||||
|
<legend><?php echo __('Export'); ?></legend>
|
||||||
|
|
||||||
|
<?php if (! empty($multi_values)) { ?>
|
||||||
|
<div class="formelementrow">
|
||||||
|
<?php echo $multi_values; ?>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
<?php echo PMA_pluginGetChoice('Export', 'what', $export_list, 'format'); ?>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="exportoptions" id="databases_and_tables">
|
</td><td>
|
||||||
<?php
|
|
||||||
if($export_type == 'server') {
|
<div id="div_container_sub_exportoptions">
|
||||||
echo '<h3>' . __('Database(s):') . '</h3>';
|
<?php echo PMA_pluginGetOptions('Export', $export_list); ?>
|
||||||
} else if($export_type == 'database') {
|
|
||||||
echo '<h3>' . __('Table(s):') . '</h3>';
|
|
||||||
}
|
|
||||||
if (! empty($multi_values)) {
|
|
||||||
echo $multi_values;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
<?php if (strlen($table) && ! isset($num_tables) && ! PMA_Table::isMerge($db, $table)) { ?>
|
<?php if (strlen($table) && ! isset($num_tables) && ! PMA_Table::isMerge($db, $table)) { ?>
|
||||||
<div class="exportoptions" id="rows">
|
<div class="formelementrow">
|
||||||
<h3><?php echo __('Rows:'); ?></h3>
|
<?php
|
||||||
<ul>
|
echo '<input type="radio" name="allrows" value="0" id="radio_allrows_0" checked="checked" />';
|
||||||
<li>
|
|
||||||
<?php echo '<input type="radio" name="allrows" value="0" id="radio_allrows_0" checked="checked" />';
|
echo sprintf(__('Dump %s row(s) starting at row # %s'),
|
||||||
echo '<label for ="radio_allrows_0">' . __('Dump some row(s)') . '</label>'; ?>
|
'<input type="text" name="limit_to" size="5" value="'
|
||||||
<ul>
|
|
||||||
<li> <?php echo __('Number of rows:') . ' <input type="text" name="limit_to" size="5" value="'
|
|
||||||
. (isset($unlim_num_rows) ? $unlim_num_rows : PMA_Table::countRecords($db, $table))
|
. (isset($unlim_num_rows) ? $unlim_num_rows : PMA_Table::countRecords($db, $table))
|
||||||
. '" onfocus="this.select()" />' ?></li>
|
. '" onfocus="this.select()" />',
|
||||||
<li><?php echo __('Row to begin at:') . ' <input type="text" name="limit_from" value="0" size="5"'
|
'<input type="text" name="limit_from" value="0" size="5"'
|
||||||
.' onfocus="this.select()" />'; ?></li>
|
.' onfocus="this.select()" /> ');
|
||||||
</ul>
|
|
||||||
</li>
|
echo '<input type="radio" name="allrows" value="1" id="radio_allrows_1" />';
|
||||||
<li>
|
echo '<label for="radio_allrows_1">' . __('Dump all rows') . '</label>';
|
||||||
<?php echo '<input type="radio" name="allrows" value="1" id="radio_allrows_1" />';
|
?>
|
||||||
echo ' <label for="radio_allrows_1">' . __('Dump all rows') . '</label>';?>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
<input type="checkbox" name="asfile" value="sendit"
|
||||||
|
id="checkbox_dump_asfile" <?php PMA_exportCheckboxCheck('asfile'); ?> />
|
||||||
|
<label for="checkbox_dump_asfile"><?php echo __('Save as file'); ?></label>
|
||||||
|
</legend>
|
||||||
|
|
||||||
<div class="exportoptions" id="output">
|
|
||||||
<h3><?php echo __('Output:'); ?></h3>
|
|
||||||
<ul id="output">
|
|
||||||
<li>
|
|
||||||
<input type="radio" name="output_format" value="sendit" id="radio_dump_asfile" <?php PMA_exportCheckboxCheck('asfile'); ?> />
|
|
||||||
<label for="radio_dump_asfile"><?php echo __('Save output to a file'); ?></label>
|
|
||||||
<ul id="ul_save_asfile">
|
|
||||||
<?php if (isset($cfg['SaveDir']) && !empty($cfg['SaveDir'])) { ?>
|
<?php if (isset($cfg['SaveDir']) && !empty($cfg['SaveDir'])) { ?>
|
||||||
<li>
|
|
||||||
<input type="checkbox" name="onserver" value="saveit"
|
<input type="checkbox" name="onserver" value="saveit"
|
||||||
id="checkbox_dump_onserver"
|
id="checkbox_dump_onserver"
|
||||||
|
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
<?php PMA_exportCheckboxCheck('onserver'); ?> />
|
<?php PMA_exportCheckboxCheck('onserver'); ?> />
|
||||||
<label for="checkbox_dump_onserver">
|
<label for="checkbox_dump_onserver">
|
||||||
<?php echo sprintf(__('Save on server in %s directory'), htmlspecialchars(PMA_userDir($cfg['SaveDir']))); ?>
|
<?php echo sprintf(__('Save on server in %s directory'), htmlspecialchars(PMA_userDir($cfg['SaveDir']))); ?>
|
||||||
</label>
|
</label>,<br />
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="checkbox" name="onserverover" value="saveitover"
|
<input type="checkbox" name="onserverover" value="saveitover"
|
||||||
id="checkbox_dump_onserverover"
|
id="checkbox_dump_onserverover"
|
||||||
|
onclick="document.getElementById('checkbox_dump_onserver').checked = true;
|
||||||
|
document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
<?php PMA_exportCheckboxCheck('onserver_overwrite'); ?> />
|
<?php PMA_exportCheckboxCheck('onserver_overwrite'); ?> />
|
||||||
<label for="checkbox_dump_onserverover"><?php echo __('Overwrite existing file(s)'); ?></label>
|
<label for="checkbox_dump_onserverover">
|
||||||
</li>
|
<?php echo __('Overwrite existing file(s)'); ?></label>
|
||||||
|
<br />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li>
|
|
||||||
<label for="filename_template">
|
<label for="filename_template">
|
||||||
<?php
|
<?php
|
||||||
echo __('File name template');
|
echo __('File name template');
|
||||||
|
|
||||||
$trans = new PMA_Message;
|
$trans = new PMA_Message;
|
||||||
$trans->addMessage('__SERVER__/');
|
$trans->addMessage('__SERVER__/');
|
||||||
$trans->addString(__('server name'));
|
$trans->addString(__('server name'));
|
||||||
@@ -182,6 +193,7 @@ echo PMA_pluginGetJavascript($export_list);
|
|||||||
echo '"';
|
echo '"';
|
||||||
?>
|
?>
|
||||||
/>
|
/>
|
||||||
|
|
||||||
(
|
(
|
||||||
<input type="checkbox" name="remember_template"
|
<input type="checkbox" name="remember_template"
|
||||||
id="checkbox_remember_template"
|
id="checkbox_remember_template"
|
||||||
@@ -189,13 +201,14 @@ echo PMA_pluginGetJavascript($export_list);
|
|||||||
<label for="checkbox_remember_template">
|
<label for="checkbox_remember_template">
|
||||||
<?php echo __('remember template'); ?></label>
|
<?php echo __('remember template'); ?></label>
|
||||||
)
|
)
|
||||||
</li>
|
|
||||||
<li>
|
<div class="formelementrow">
|
||||||
<?php
|
<?php
|
||||||
// charset of file
|
// charset of file
|
||||||
if ($cfg['AllowAnywhereRecoding']) {
|
if ($cfg['AllowAnywhereRecoding']) {
|
||||||
echo ' <label for="select_charset_of_file">'
|
echo ' <label for="select_charset_of_file">'
|
||||||
. __('Character set of the file:') . '</label>' . "\n";
|
. __('Character set of the file:') . '</label>' . "\n";
|
||||||
|
|
||||||
reset($cfg['AvailableCharsets']);
|
reset($cfg['AvailableCharsets']);
|
||||||
echo '<select id="select_charset_of_file" name="charset_of_file" size="1">';
|
echo '<select id="select_charset_of_file" name="charset_of_file" size="1">';
|
||||||
foreach ($cfg['AvailableCharsets'] as $temp_charset) {
|
foreach ($cfg['AvailableCharsets'] as $temp_charset) {
|
||||||
@@ -209,39 +222,47 @@ echo PMA_pluginGetJavascript($export_list);
|
|||||||
echo '</select>';
|
echo '</select>';
|
||||||
} // end if
|
} // end if
|
||||||
?>
|
?>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<?php
|
|
||||||
// zip, gzip and bzip2 encode features
|
|
||||||
$is_zip = ($cfg['ZipDump'] && @function_exists('gzcompress'));
|
|
||||||
$is_gzip = ($cfg['GZipDump'] && @function_exists('gzencode'));
|
|
||||||
$is_bzip = ($cfg['BZipDump'] && @function_exists('bzcompress'));
|
|
||||||
if ($is_zip || $is_gzip || $is_bzip) { ?>
|
|
||||||
<label for="compression"><?php echo __('Compression:'); ?></label>
|
|
||||||
<select id="compression" name="compression">
|
|
||||||
<option value="none"><?php echo __('None'); ?></option>
|
|
||||||
<?php if ($is_zip) { ?>
|
|
||||||
<option value="zip"><?php echo __('zipped'); ?></option>
|
|
||||||
<?php } if ($is_gzip) { ?>
|
|
||||||
<option value="gzip"><?php echo __('gzipped'); ?></option>
|
|
||||||
<?php } if ($is_bzip) { ?>
|
|
||||||
<option value="bzip"><?php echo __('bzipped'); ?></option>
|
|
||||||
<?php } ?>
|
|
||||||
</select>
|
|
||||||
<?php } else { ?>
|
|
||||||
<input type="hidden" name="compression" value="none" />
|
|
||||||
<?php } ?>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><input type="radio" id="radio_view_as_text" name="output_format" value="astext"><label for="radio_view_as_text">View output as text</label></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="exportoptions" id="format_specific_opts">
|
<?php
|
||||||
<h3><?php echo __('Format-Specific Options:'); ?></h3>
|
// zip, gzip and bzip2 encode features
|
||||||
<?php echo PMA_pluginGetOptions('Export', $export_list); ?>
|
$is_zip = ($cfg['ZipDump'] && @function_exists('gzcompress'));
|
||||||
</div>
|
$is_gzip = ($cfg['GZipDump'] && @function_exists('gzencode'));
|
||||||
|
$is_bzip = ($cfg['BZipDump'] && @function_exists('bzcompress'));
|
||||||
|
|
||||||
|
if ($is_zip || $is_gzip || $is_bzip) { ?>
|
||||||
|
<div class="formelementrow">
|
||||||
|
<?php echo __('Compression'); ?>:
|
||||||
|
<input type="radio" name="compression" value="none"
|
||||||
|
id="radio_compression_none"
|
||||||
|
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
|
<?php PMA_exportIsActive('compression', 'none'); ?> />
|
||||||
|
<label for="radio_compression_none"><?php echo __('None'); ?></label>
|
||||||
|
<?php
|
||||||
|
if ($is_zip) { ?>
|
||||||
|
<input type="radio" name="compression" value="zip"
|
||||||
|
id="radio_compression_zip"
|
||||||
|
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
|
<?php PMA_exportIsActive('compression', 'zip'); ?> />
|
||||||
|
<label for="radio_compression_zip"><?php echo __('"zipped"'); ?></label>
|
||||||
|
<?php } if ($is_gzip) { ?>
|
||||||
|
<input type="radio" name="compression" value="gzip"
|
||||||
|
id="radio_compression_gzip"
|
||||||
|
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
|
<?php PMA_exportIsActive('compression', 'gzip'); ?> />
|
||||||
|
<label for="radio_compression_gzip"><?php echo __('"gzipped"'); ?></label>
|
||||||
|
<?php } if ($is_bzip) { ?>
|
||||||
|
<input type="radio" name="compression" value="bzip"
|
||||||
|
id="radio_compression_bzip"
|
||||||
|
onclick="document.getElementById('checkbox_dump_asfile').checked = true;"
|
||||||
|
<?php PMA_exportIsActive('compression', 'bzip2'); ?> />
|
||||||
|
<label for="radio_compression_bzip"><?php echo __('"bzipped"'); ?></label>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<input type="hidden" name="compression" value="none" />
|
||||||
|
<?php } ?>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<?php if (function_exists('PMA_set_enc_form')) { ?>
|
<?php if (function_exists('PMA_set_enc_form')) { ?>
|
||||||
<!-- Encoding setting form appended by Y.Kawada -->
|
<!-- Encoding setting form appended by Y.Kawada -->
|
||||||
|
Reference in New Issue
Block a user