From c4cf36a08da2222e5a66cf98f7722b40affe47c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 7 Mar 2005 15:10:19 +0000 Subject: [PATCH] Show database comment on each tab (same as we do with table comments). --- ChangeLog | 2 ++ db_details_links.php | 23 +++++++++++++++++++++++ db_details_structure.php | 26 ++------------------------ 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8bb2bde11..b3197430c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,8 @@ $Source$ libraries/header_meta_style.inc.php: Actually use print style in themes, also fixes RFE #1120880. * sql.php: Better calculate inserted row id (bug #1156963). + * db_details_links.php, db_details_structure.php: Show database comment on + each tab (same as we do with table comments). 2005-03-06 Michael Keck * themes/*/img/bd_deltbl.png, themes/*/bd_drop.png: Added disabled diff --git a/db_details_links.php b/db_details_links.php index c5bc36386..6d89e9f34 100644 --- a/db_details_links.php +++ b/db_details_links.php @@ -97,6 +97,29 @@ if (!$cfg['LightTabs']) { echo '
'; } +/** + * Settings for relations stuff + */ +require_once('./libraries/relation.lib.php'); +$cfgRelation = PMA_getRelationsParam(); + +// Get additional information about tables for tooltip is done in db_details_db_info.php only once +if ($cfgRelation['commwork']) { + $comment = PMA_getComments($db); + + /** + * Displays table comment + */ + if (is_array($comment)) { + ?> + +

+ +

+ - -

- -

-
@@ -478,10 +456,10 @@ else { if ($cfg['ShowStats']) { ?> -  -  +  -  -  -  +  -