From c0252e2ea6d35b41d17528a6c82b9aed1cefd924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 20 Jan 2002 13:36:44 +0000 Subject: [PATCH] * optimized a bit the code of 'left.php3'; * selecting a database in light mode launches the database properties page at the main frame (both frames changes). --- ChangeLog | 6 ++++++ left.php3 | 52 ++++++++++++++++++++++++++-------------------------- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c47c33c8..3be426f79 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-01-20 Loïc Chapeaux + * left.php3: + - optimized the code a bit; + - selecting a database in light mode launches the database properties + page at the main frame (both frames changes). + 2002-01-19 Loïc Chapeaux * lang/*; libraries/common.lib.php3; Documentation.html: removed trailing whitespaces and ensured compatibility with old releases. diff --git a/left.php3 b/left.php3 index bb7234747..e4bc24eea 100755 --- a/left.php3 +++ b/left.php3 @@ -24,16 +24,6 @@ if ($cfgOBGzip) { } } -/** - * Findout if we want to display the standard left.php or the light version - */ - -if (isset($cfgLeftFrameLight) && $cfgLeftFrameLight) { - $lightMode = 1; -} else { - $lightMode = 0; -} - /** * Get the list and number of available databases. @@ -193,8 +183,9 @@ echo "\n"; // In this case, the database should not be collapsible/expandable if ($num_dbs > 1) { - if ($lightMode) { - echo '
' . "\n"; + // Light mode -> beginning of the select combo for databases + if ($cfgLeftFrameLight) { + echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; @@ -330,12 +323,15 @@ if ($num_dbs > 1) { // Displays the current database name and the list of tables it // contains - echo $db_name; echo '
' . "\n"; echo $table_list; echo '
' . "\n"; - } else { // lightmode == 0 + } + + // No light mode -> initialize some js variables for the + // expandible/collapsible stuff + else { ?> @@ -352,10 +348,11 @@ if ($num_dbs > 1) { 1) + // Case where only one database has to be displayed else if ($num_dbs == 1) { $db = $dblist[0]; @@ -406,6 +403,9 @@ else if ($num_dbs == 1) { ' . $strNoDatabases . '

';