diff --git a/libraries/config/FormDisplay.tpl.php b/libraries/config/FormDisplay.tpl.php index 5ed53f3c2..907c46189 100644 --- a/libraries/config/FormDisplay.tpl.php +++ b/libraries/config/FormDisplay.tpl.php @@ -117,9 +117,9 @@ function display_input($path, $name, $description = '', $type, $value, $value_is $name_id = 'name="' . $path . '" id="' . $path . '"'; $base_dir = defined('PMA_SETUP') ? '../' : ''; $img_path = defined('PMA_SETUP') - ? $GLOBALS['cfg']['ThemePath'] . '/original/img/' + ? '../' . ltrim($GLOBALS['cfg']['ThemePath'], './') . '/original/img/' : $_SESSION['PMA_Theme']->img_path; -d?> +?> @@ -188,7 +188,7 @@ d?> } if (isset($opts['show_restore_default']) && $opts['show_restore_default']) { ?> - + ; +} + +.config-form ul.tabs li a { + display: block; + margin: 0.1em 0.2em 0; + padding: 0.1em 0.4em; + white-space: nowrap; + text-decoration: none; + background-color: ; + border: 1px solid ; + border-bottom: none; +} + +.config-form ul.tabs li a:hover, +.config-form ul.tabs li a:active, +.config-form ul.tabs li a.active { + margin: 0; + padding: 0.1em 0.6em 0.2em; +} + +.config-form ul.tabs li a.active { + background-color: ; +} + +.config-form fieldset { + margin-top: 0; + padding: 0; + clear: both; + border-color: ; +} + +.config-form legend { + display: none; +} + +.config-form fieldset p { + margin: 0; + padding: 0.5em; +} + +.config-form fieldset .errors { /* form error list */ + margin: 0 -2px 1em -2px; + padding: 0.5em 1.5em; + background: #FBEAD9; + border: 1px #C83838 solid; + border-width: 1px 0; + list-style: none; + font-family: sans-serif; + font-size: small; +} + +.config-form fieldset .inline_errors { /* field error list */ + margin: 0.3em 0.3em 0.3em 0; + padding: 0; + list-style: none; + color: #9A0000; + font-size: small; +} + +.config-form fieldset th { + padding: 0.3em 0.3em 0.3em 0.5em; + text-align: left; + vertical-align: top; + width: 40%; + background: transparent; +} + +.config-form fieldset .doc { + margin-left: 1em; +} + +.config-form fieldset td { + padding-top: 0.3em; + padding-bottom: 0.3em; + vertical-align: top; +} + +.config-form fieldset th small { + display: block; + font-weight: normal; + font-family: sans-serif; + font-size: x-small; + color: #444; +} + +.config-form fieldset th, fieldset td { + border-top: 1px #666 dotted; +} + +.config-form .lastrow { + background: ;; + padding: 0.5em; + text-align: center; +} + +.config-form .form .lastrow { + border-top: 1px #555 dotted; +} + +.config-form .lastrow input { + font-weight: bold; +} + +/* form elements */ + +.config-form span.checkbox { + padding: 2px; + display: inline-block; +} + +.config-form .custom { /* customized field */ + background: #FFC; +} + +.config-form span.checkbox.custom { + padding: 1px; + border: 1px #EDEC90 solid; + background: #FFC; +} + +.config-form input[type="text"], +.config-form select, +.config-form textarea { + border: 1px #A7A6AA solid; +} + +.config-form input[type="text"]:focus, +.config-form select:focus, +.config-form textarea:focus { + border: 1px #6676FF solid; + background: #F7FBFF; +} diff --git a/user_preferences.php b/user_preferences.php index 613bafc9b..1241b3a8a 100644 --- a/user_preferences.php +++ b/user_preferences.php @@ -17,7 +17,7 @@ require_once './libraries/config/ConfigFile.class.php'; require_once './libraries/config/Form.class.php'; require_once './libraries/config/FormDisplay.class.php'; -$GLOBALS['js_include'][] = 'js/config.js'; +$GLOBALS['js_include'][] = 'config.js'; require_once './libraries/header.inc.php'; @@ -84,7 +84,7 @@ if (!$form_display->process(false)) { exit; } } -print_r($_SESSION); + /** * Displays the footer */