Show database comment on each tab (same as we do with table comments).

This commit is contained in:
Michal Čihař
2005-03-07 15:10:19 +00:00
parent 287af827e5
commit c4cf36a08d
3 changed files with 27 additions and 24 deletions

View File

@@ -97,6 +97,29 @@ if (!$cfg['LightTabs']) {
echo '<br />';
}
/**
* 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)) {
?>
<!-- DB comment -->
<p id="dbComment"><i>
<?php echo htmlspecialchars(implode(' ', $comment)) . "\n"; ?>
</i></p>
<?php
} // end if
}
/**
* Displays a message
*/