Minor HTML/PHP rewrite.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
5837dba61a
commit
66c3491041
115
prefs_manage.php
115
prefs_manage.php
@ -283,8 +283,12 @@ if (file_exists('setup/index.php')) {
|
||||
<h2><?php echo __('More settings') ?></h2>
|
||||
<div class="group-cnt">
|
||||
<?php
|
||||
echo sprintf(__('You can set more settings by modifying config.inc.php, eg. by using %sSetup script%s.'), '<a href="setup/index.php" target="_blank">', '</a>');
|
||||
echo PMA_Util::showDocu('setup', 'setup-script');
|
||||
echo sprintf(
|
||||
__(
|
||||
'You can set more settings by modifying config.inc.php, eg. '
|
||||
. 'by using %sSetup script%s.'
|
||||
), '<a href="setup/index.php" target="_blank">', '</a>'
|
||||
) . PMA_Util::showDocu('setup', 'setup-script');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@ -294,58 +298,77 @@ if (file_exists('setup/index.php')) {
|
||||
</div>
|
||||
<div id="main_pane_right">
|
||||
<div class="group">
|
||||
<h2><?php echo __('Export') ?></h2>
|
||||
<h2><?php echo __('Export'); ?></h2>
|
||||
<div class="click-hide-message group-cnt" style="display:none">
|
||||
<?php
|
||||
PMA_Message::rawSuccess(
|
||||
__('Configuration has been saved.')
|
||||
)->display();
|
||||
echo '</div>'
|
||||
. '<form class="group-cnt prefs-form disableAjax" name="prefs_export"'
|
||||
. ' action="prefs_manage.php" method="post">'
|
||||
. PMA_URL_getHiddenInputs()
|
||||
. '<div style="padding-bottom:0.5em">'
|
||||
. '<input type="radio" id="export_text_file" name="export_type"'
|
||||
. ' value="text_file" checked="checked" />'
|
||||
. '<label for="export_text_file">' . __('Save as file') . '</label>'
|
||||
. '<br />'
|
||||
. '<input type="radio" id="export_local_storage" name="export_type"'
|
||||
. ' value="local_storage" disabled="disabled" />'
|
||||
. '<label for="export_local_storage">'
|
||||
. __('Save to browser\'s storage') . '</label>'
|
||||
. '</div>'
|
||||
. '<div id="opts_export_local_storage" class="prefsmanage_opts disabled">'
|
||||
. '<span class="localStorage-supported">'
|
||||
. __('Settings will be saved in your browser\'s local storage.')
|
||||
. '<div class="localStorage-exists">'
|
||||
. '<b>' . __('Existing settings will be overwritten!') . '</b>'
|
||||
. '</div>'
|
||||
. '</span>'
|
||||
. '<div class="localStorage-unsupported">';
|
||||
PMA_Message::notice(
|
||||
__('This feature is not supported by your web browser')
|
||||
)->display();
|
||||
?>
|
||||
PMA_Message::rawSuccess(
|
||||
__('Configuration has been saved.')
|
||||
)->display();
|
||||
?>
|
||||
</div>
|
||||
<form class="group-cnt prefs-form disableAjax" name="prefs_export"
|
||||
action="prefs_manage.php" method="post">
|
||||
<?php echo PMA_URL_getHiddenInputs(); ?>
|
||||
<div style="padding-bottom:0.5em">
|
||||
<input type="radio" id="export_text_file" name="export_type"
|
||||
value="text_file" checked="checked" />
|
||||
<label for="export_text_file">
|
||||
<?php echo __('Save as file'); ?>
|
||||
</label><br />
|
||||
<input type="radio" id="export_local_storage" name="export_type"
|
||||
value="local_storage" disabled="disabled" />
|
||||
<label for="export_local_storage">
|
||||
<?php echo __('Save to browser\'s storage'); ?></label>
|
||||
</div>
|
||||
<div id="opts_export_local_storage"
|
||||
class="prefsmanage_opts disabled">
|
||||
<span class="localStorage-supported">
|
||||
<?php
|
||||
echo __(
|
||||
'Settings will be saved in your browser\'s local '
|
||||
. 'storage.'
|
||||
);
|
||||
?>
|
||||
<div class="localStorage-exists">
|
||||
<b>
|
||||
<?php
|
||||
echo __(
|
||||
'Existing settings will be overwritten!'
|
||||
);
|
||||
?>
|
||||
</b>
|
||||
</div>
|
||||
</span>
|
||||
<div class="localStorage-unsupported">
|
||||
<?php
|
||||
PMA_Message::notice(
|
||||
__('This feature is not supported by your web browser')
|
||||
)->display();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<?php
|
||||
echo '<input type="submit" name="submit_export" value="' . __('Go') . '" />';
|
||||
?>
|
||||
<?php
|
||||
echo '<input type="submit" name="submit_export" value="' . __(
|
||||
'Go'
|
||||
) . '" />';
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
<div class="group">
|
||||
<?php
|
||||
echo '<h2>' . __('Reset') . '</h2>'
|
||||
. '<form class="group-cnt prefs-form disableAjax" name="prefs_reset"'
|
||||
. ' action="prefs_manage.php" method="post">'
|
||||
. PMA_URL_getHiddenInputs()
|
||||
. __('You can reset all your settings and restore them to default values.')
|
||||
. '<br /><br />'
|
||||
. '<input type="submit" name="submit_clear" value="'
|
||||
. __('Reset') . '" />'
|
||||
. '</form>';
|
||||
?>
|
||||
<h2><?php echo __('Reset'); ?></h2>
|
||||
<form class="group-cnt prefs-form disableAjax" name="prefs_reset"
|
||||
action="prefs_manage.php" method="post">
|
||||
<?php
|
||||
echo PMA_URL_getHiddenInputs() . __(
|
||||
'You can reset all your settings and restore them to default '
|
||||
. 'values.'
|
||||
);
|
||||
?>
|
||||
<br /><br />
|
||||
<input type="submit" name="submit_clear"
|
||||
value="<?php echo __('Reset'); ?>"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<br class="clearfloat" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user