diff --git a/Documentation.html b/Documentation.html index a297e19cf..50eb22d3d 100755 --- a/Documentation.html +++ b/Documentation.html @@ -681,6 +681,12 @@

+
$cfgLeftWidth integer
+
+ Left frame width in pixel. +

+
+
$cfgLeftBgColor string [HTML color]
$cfgRightBgColor string [HTML color] @@ -690,6 +696,13 @@

+
$cfgLeftPointerColor string [HTML color]
+
+ The color (HTML) used for the pointer in the left frame (does not work + with NS4). +

+
+
$cfgBorder integer
The size of a table's border. @@ -714,7 +727,7 @@

-
$cfgPointerColor string [HTML color]
+
$cfgBrowsePointerColor string [HTML color]
The color (HTML) used for the pointer in browse mode (does not work with NS4). @@ -749,12 +762,6 @@

-
$cfgLeftWidth integer
-
- Left frame width in pixel. -

-
-
$cfgColumnTypes array
All possible types of a MySQL column. In most cases you don't need to diff --git a/config.inc.php3 b/config.inc.php3 index 04afc5ebe..2e0691e1b 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -158,19 +158,22 @@ require('./libraries/select_lang.lib.php3'); /** * Customization & design */ +$cfgLeftWidth = 150; // left frame width $cfgLeftBgColor = '#D0DCE0'; // background color for the left frame +$cfgLeftPointerColor = '#CCFFCC'; // color of the pointer in left frame + // (blank for no pointer) $cfgRightBgColor = '#F5F5F5'; // background color for the right frame $cfgBorder = 0; // border width on tables $cfgThBgcolor = '#D3DCE3'; // table header row colour $cfgBgcolorOne = '#CCCCCC'; // table data row colour $cfgBgcolorTwo = '#DDDDDD'; // table data row colour, alternate -$cfgPointerColor = '#CCFFCC'; // color of the pointer in browse mode +$cfgBrowsePointerColor = '#CCFFCC'; // color of the pointer in browse mode + // (blank for no pointer) $cfgTextareaCols = 40; // textarea size (columns) in edit mode $cfgTextareaRows = 7; // textarea size (rows) in edit mode $cfgLimitChars = 50; // max field data length in browse mode $cfgModifyDeleteAtLeft = TRUE; // show edit/delete links on left side of browse $cfgModifyDeleteAtRight = FALSE; // show edit/delete links on right side of browse -$cfgLeftWidth = 150; // left frame width /** diff --git a/left.php3 b/left.php3 index 75a5fc2ff..24015db76 100755 --- a/left.php3 +++ b/left.php3 @@ -210,8 +210,9 @@ if ($num_dbs > 1) { } // end if // Displays the database name + $on_mouse = (($cfgLeftPointerColor == '') ? '' : 'onmouseover="this.style.backgroundColor=\'' . $cfgLeftPointerColor . '\'" onmouseout="this.style.backgroundColor=\'' . $cfgLeftBgColor . '\'"'); echo "\n"; - echo '
'; + echo '
'; if (!empty($num_tables)) { echo "\n"; diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 6cc082c90..4d338b75e 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -142,11 +142,14 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){ if (!isset($cfgLeftBgColor)) { $cfgLeftBgColor = '#D0DCE0'; } + if (!isset($cfgLeftPointerColor)) { + $cfgLeftPointerColor = ''; + } if (!isset($cfgRightBgColor)) { $cfgRightBgColor = '#F5F5F5'; } - if (!isset($cfgPointerColor)) { - $cfgPointerColor = '#CCFFCC'; + if (!isset($cfgBrowsePointerColor)) { + $cfgBrowsePointerColor = ''; } if (!isset($cfgTextareaCols)) { $cfgTextareaCols = 40;