Configuration forms styling
This commit is contained in:
@@ -117,9 +117,9 @@ function display_input($path, $name, $description = '', $type, $value, $value_is
|
|||||||
$name_id = 'name="' . $path . '" id="' . $path . '"';
|
$name_id = 'name="' . $path . '" id="' . $path . '"';
|
||||||
$base_dir = defined('PMA_SETUP') ? '../' : '';
|
$base_dir = defined('PMA_SETUP') ? '../' : '';
|
||||||
$img_path = defined('PMA_SETUP')
|
$img_path = defined('PMA_SETUP')
|
||||||
? $GLOBALS['cfg']['ThemePath'] . '/original/img/'
|
? '../' . ltrim($GLOBALS['cfg']['ThemePath'], './') . '/original/img/'
|
||||||
: $_SESSION['PMA_Theme']->img_path;
|
: $_SESSION['PMA_Theme']->img_path;
|
||||||
d?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<label for="<?php echo htmlspecialchars($path) ?>"><?php echo $name ?></label>
|
<label for="<?php echo htmlspecialchars($path) ?>"><?php echo $name ?></label>
|
||||||
@@ -188,7 +188,7 @@ d?>
|
|||||||
}
|
}
|
||||||
if (isset($opts['show_restore_default']) && $opts['show_restore_default']) {
|
if (isset($opts['show_restore_default']) && $opts['show_restore_default']) {
|
||||||
?>
|
?>
|
||||||
<a class="restore-default" href="#<?php echo $path ?>" title="<?php echo __('Restore default value') ?>" style="display:none"><img alt="restore-default" src="../<?php echo $img_path ?>s_reload.png" width="16" height="16" /></a>
|
<a class="restore-default" href="#<?php echo $path ?>" title="<?php echo __('Restore default value') ?>" style="display:none"><img alt="restore-default" src="<?php echo $img_path ?>s_reload.png" width="16" height="16" /></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
// this must match with displayErrors() in scripts.js
|
// this must match with displayErrors() in scripts.js
|
||||||
|
@@ -253,10 +253,6 @@ fieldset th {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset th small {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset .doc {
|
fieldset .doc {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
@@ -267,6 +263,7 @@ fieldset td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fieldset th small {
|
fieldset th small {
|
||||||
|
display: block;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
@@ -314,16 +311,16 @@ fieldset.simple .lastrow {
|
|||||||
|
|
||||||
span.checkbox {
|
span.checkbox {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom { /* customized field */
|
.custom { /* customized field */
|
||||||
background: #FFC;
|
background: #FFC;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.checkbox.custom {
|
.checkbox.custom {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
border: 1px #EDEC90 solid;
|
border: 1px #EDEC90 solid;
|
||||||
background: #FFC;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"], select, textarea {
|
input[type="text"], select, textarea {
|
||||||
|
@@ -582,7 +582,7 @@ form.login label {
|
|||||||
/* specific elements */
|
/* specific elements */
|
||||||
|
|
||||||
/* topmenu */
|
/* topmenu */
|
||||||
ul#topmenu {
|
ul#topmenu, ul.tabs {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -1232,3 +1232,146 @@ table#serverconnection_trg_local {
|
|||||||
*/
|
*/
|
||||||
.invalid_value
|
.invalid_value
|
||||||
{background:#F00;}
|
{background:#F00;}
|
||||||
|
|
||||||
|
/* config forms */
|
||||||
|
.config-form ul.tabs {
|
||||||
|
margin: 1em 0.2em 0;
|
||||||
|
padding: 0 0 0.3em 0;
|
||||||
|
list-style: none;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-form ul.tabs li {
|
||||||
|
float: <?php echo $left; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
|
||||||
|
border: 1px solid <?php echo $GLOBALS['cfg']['BgTwo']; ?>;
|
||||||
|
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: <?php echo $GLOBALS['cfg']['BgTwo']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.config-form fieldset {
|
||||||
|
margin-top: 0;
|
||||||
|
padding: 0;
|
||||||
|
clear: both;
|
||||||
|
border-color: <?php echo $GLOBALS['cfg']['BgTwo']; ?>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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: <?php echo $GLOBALS['cfg']['ThBackground']; ?>;;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
@@ -17,7 +17,7 @@ require_once './libraries/config/ConfigFile.class.php';
|
|||||||
require_once './libraries/config/Form.class.php';
|
require_once './libraries/config/Form.class.php';
|
||||||
require_once './libraries/config/FormDisplay.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';
|
require_once './libraries/header.inc.php';
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ if (!$form_display->process(false)) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print_r($_SESSION);
|
|
||||||
/**
|
/**
|
||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user