Added option in config.inc.php to set the default export method to quick, custom, or custom-no-form
This commit is contained in:
@@ -62,6 +62,9 @@ if (isset($single_table)) {
|
|||||||
|
|
||||||
echo '<input type="hidden" name="export_type" value="' . $export_type . '" />' . "\n";
|
echo '<input type="hidden" name="export_type" value="' . $export_type . '" />' . "\n";
|
||||||
|
|
||||||
|
// The export method (quick, custom or custom-no-form)
|
||||||
|
echo '<input type="hidden" name="export_method" value="' . $cfg['Export']['method'] . '" />';
|
||||||
|
|
||||||
if (! empty($sql_query)) {
|
if (! empty($sql_query)) {
|
||||||
echo '<input type="hidden" name="sql_query" value="' . htmlspecialchars($sql_query) . '" />' . "\n";
|
echo '<input type="hidden" name="sql_query" value="' . htmlspecialchars($sql_query) . '" />' . "\n";
|
||||||
}
|
}
|
||||||
@@ -85,11 +88,21 @@ if (! empty($sql_query)) {
|
|||||||
<h3><?php echo __('Export Method:'); ?></h3>
|
<h3><?php echo __('Export Method:'); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<?php echo '<input type="radio" name="quick_or_custom" value="quick" id="radio_quick_export" checked="checked" />';
|
<?php echo '<input type="radio" name="quick_or_custom" value="quick" id="radio_quick_export"';
|
||||||
|
if($cfg['Export']['method'] == 'custom' || $cfg['Export']['method'] == 'custom-no-form') {
|
||||||
|
echo ' />';
|
||||||
|
} else {
|
||||||
|
echo ' checked="checked" />';
|
||||||
|
}
|
||||||
echo '<label for ="radio_quick_export">' . __('Quick - display only the minimal options to configure') . '</label>'; ?>
|
echo '<label for ="radio_quick_export">' . __('Quick - display only the minimal options to configure') . '</label>'; ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<?php echo '<input type="radio" name="quick_or_custom" value="custom" id="radio_custom_export" />';
|
<?php echo '<input type="radio" name="quick_or_custom" value="custom" id="radio_custom_export"';
|
||||||
|
if($cfg['Export']['method'] == 'custom' || $cfg['Export']['method'] == 'custom-no-form') {
|
||||||
|
echo ' checked="checked" />';
|
||||||
|
} else {
|
||||||
|
echo ' />';
|
||||||
|
}
|
||||||
echo '<label for="radio_custom_export">' . __('Custom - display all possible options to configure') . '</label>';?>
|
echo '<label for="radio_custom_export">' . __('Custom - display all possible options to configure') . '</label>';?>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user