From f00d5856d811fa85f8605bc0cf51b4dcc0bcca45 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 9 May 2002 22:11:43 +0000 Subject: [PATCH] bug #546011 (Navigation tooltips) --- ChangeLog | 4 ++++ left.php3 | 8 ++++---- libraries/common.lib.php3 | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b7a8441c..60fa5e97f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-05-10 Alexander M. Turek + * left.php3, libraries/common.lib.php3: + Fixed bug #546011 (Navigation tooltips). + 2002-05-08 Marc Delisle * Documentation.html: update example for foreign_display_field * display_tbl.lib.php3: more room for record number diff --git a/left.php3 b/left.php3 index 6db65bbe2..b2012c52f 100755 --- a/left.php3 +++ b/left.php3 @@ -270,7 +270,7 @@ if ($num_dbs > 1) { <?php echo " title="" />  - +
1) { $table_list .= ' ' . "\n"; $table_list .= ' ' . $strBrowse . ': ' . $table . ' ' . "\n"; if (PMA_USR_BROWSER_AGENT == 'IE') { - $table_list .= ' ' . $table . '
' . "\n"; + $table_list .= ' ' . $table . '
' . "\n"; } else { - $table_list .= ' ' . $table . '
' . "\n"; + $table_list .= ' ' . $table . '
' . "\n"; } } // end for $t (tables list) @@ -414,7 +414,7 @@ else if ($num_dbs == 1) { ?> <?php echo " title="" />  - +
'); //--> + + = 32303) { + $result = mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($GLOBALS['db'])); + while ($tmp = mysql_fetch_array($result, MYSQL_ASSOC)) { + if ($tmp['Name'] == $GLOBALS['table']) { + if (empty($tmp['Comment'])) { + $tooltip = ''; + } else { + $tooltip = $tmp['Comment'] . ' '; + } + $tooltip .= '(' . $tmp['Rows'] . ' ' . $GLOBALS['strRows'] . ')'; + unset($tmp); + break; + } + } + ?> +