From 430acc6f4fe1aebc32a96ad8480dcd4ef7e0fe2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 20 Jan 2002 19:26:55 +0000 Subject: [PATCH] in left frame, build tooltips only if required in light mode --- ChangeLog | 3 ++- left.php3 | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index bab8a4ff5..495fdc63e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,7 +7,8 @@ $Source$ 2002-01-20 Loïc Chapeaux * left.php3: - - optimized the code a bit; + - optimized the code a bit (build tooltips only if required in light + mode, ...); - selecting a database in light mode launches the database properties page at the main frame (both frames changes). * left.js, lines 291-300: fixed CSS problems under NS4 and left frame diff --git a/left.php3 b/left.php3 index 47c82189f..988cfe986 100755 --- a/left.php3 +++ b/left.php3 @@ -217,7 +217,8 @@ if ($num_dbs > 1) { // Get additional infomation about tables for tooltip if ($cfgShowTooltip && PMA_MYSQL_INT_VERSION >= 32303 - && $num_tables) { + && $num_tables + && (!$cfgLeftFrameLight || $selected_db == $j)) { $tooltip = array(); $result = mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db)); while ($tmp = mysql_fetch_array($result)) { @@ -257,8 +258,8 @@ if ($num_dbs > 1) { @@ -267,7 +268,7 @@ if ($num_dbs > 1) { " target="phpmain" href="tbl_properties.php3?&table=">
@@ -284,8 +285,8 @@ if ($num_dbs > 1) { // Builds the databases' names list if (!empty($db_start) && $db == $db_start) { // Gets the list of tables from the current database - for ($j = 0; $j < $num_tables; $j++) { - $table = mysql_tablename($tables, $j); + for ($t = 0; $t < $num_tables; $t++) { + $table = mysql_tablename($tables, $t); $table_list .= ' ' . "\n"; $table_list .= ' ' . $strBrowse . ': ' . $table . ' ' . "\n"; if (PMA_USR_BROWSER_AGENT == 'IE') { @@ -293,7 +294,7 @@ if ($num_dbs > 1) { } else { $table_list .= ' ' . $table . '
' . "\n"; } - } // end for $j (tables list) + } // end for $t (tables list) if (!$table_list) { $table_list = ' ' . $strNoTablesFound . "\n";