From 532c1ee25fc72bfa81f052676ffd6b3980e5ad11 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 28 Mar 2005 15:54:14 +0000 Subject: [PATCH] Implemented the forgotten view icon. --- ChangeLog | 3 +++ left.php | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc0a552f7..9620b7703 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-03-28 Alexander M. Turek + * left.php: Implemented the forgotten view icon. + 2005-03-27 Marc Delisle * lang/serbian: Updated, thanks to Mihailo Stefanovic (mikis). * libraries/relation.lib.php: bug #1170549, adding fields NOT NULL diff --git a/left.php b/left.php index 2472c4252..8b30bdd3e 100644 --- a/left.php +++ b/left.php @@ -451,7 +451,7 @@ if ($num_dbs > 1) { if (!empty($db_start) && $db == $db_start) { $selected_db = $j; } - $tables = PMA_DBI_try_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', NULL, PMA_DBI_QUERY_STORE); + $tables = PMA_DBI_try_query('SHOW ' . (PMA_MYSQL_INT_VERSION >= 50000 ? 'FULL ' : '') . 'TABLES FROM ' . PMA_backquote($db) . ';', NULL, PMA_DBI_QUERY_STORE); $num_tables = ($tables) ? @PMA_DBI_num_rows($tables) : 0; $common_url_query = PMA_generate_common_url($db); if ($num_tables) { @@ -517,11 +517,13 @@ if ($num_dbs > 1) { // Displays the list of tables from the current database $tablestack = array(); $table_array = array(); - while (list($table) = PMA_DBI_fetch_row($tables)) { + $table_types = array(); + while (list($table, $type) = PMA_DBI_fetch_row($tables)) { $table_item = (!empty($tooltip_name) && isset($tooltip_name[$table]) && !empty($tooltip_name[$table]) && $cfg['ShowTooltipAliasTB'] && strtolower($cfg['ShowTooltipAliasTB']) !== 'nested' ? htmlspecialchars($tooltip_name[$table]) : htmlspecialchars($table)); $table_array[$table] = $table_item; + $table_types[$table] = empty($type) ? 'BASE TABLE' : $type; } if ($cfg['NaturalOrder']) { @@ -546,7 +548,7 @@ if ($num_dbs > 1) { $book_sql_query = (isset($book_sql_cache[$table]) ? $book_sql_cache[$table] : FALSE); $list_item = ''; - $list_item .= '' . $strBrowse . ': ' . $url_title . ''; + $list_item .= '' . $strBrowse . ': ' . $url_title . ''; $list_item .= ' ' . "\n"; $list_item .= ''; $list_item .= $table_item . '
' . "\n"; @@ -594,7 +596,7 @@ if ($num_dbs > 1) { $table_array = array(); // Gets the list of tables from the current database $book_sql_cache = PMA_queryDBBookmarks($db, $cfg['Bookmark'], $table_array); - while (list($table) = PMA_DBI_fetch_row($tables)) { + while (list($table, $type) = PMA_DBI_fetch_row($tables)) { $table_array[$table] = ''; $url_title = (!empty($tooltip) && isset($tooltip[$table])) ? htmlspecialchars($tooltip[$table]) @@ -608,7 +610,7 @@ if ($num_dbs > 1) { // natural order or not, use an array for the table list $table_array[$table] .= '
' . "\n"; - $table_array[$table] .= ' ' . $strBrowse . ': ' . $url_title . ' ' . "\n"; + $table_array[$table] .= ' ' . $strBrowse . ': ' . $url_title . ' ' . "\n"; if (PMA_USR_BROWSER_AGENT == 'IE') { $table_array[$table] .= ' ' . ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '
' . "\n";