native comments

This commit is contained in:
Marc Delisle
2005-03-05 23:21:25 +00:00
parent 857fdb0e79
commit 9bef31439e
7 changed files with 116 additions and 57 deletions

View File

@@ -59,7 +59,7 @@ $count = 0;
while ($row = PMA_DBI_fetch_assoc($rowset)) {
$myfieldname = 'Tables_in_' . htmlspecialchars($db);
$table = $row[$myfieldname];
if ($cfgRelation['commwork']) {
if ($cfgRelation['commwork'] || PMA_MYSQL_INT_VERSION >= 40100) {
$comments = PMA_getComments($db, $table);
}
@@ -175,7 +175,7 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
if ($have_rel) {
echo ' <th>' . $strLinksTo . '</th>' . "\n";
}
if ($cfgRelation['commwork']) {
if ($cfgRelation['commwork'] || PMA_MYSQL_INT_VERSION >= 40100) {
echo ' <th>' . $strComments . '</th>' . "\n";
}
if ($cfgRelation['mimework']) {
@@ -258,7 +258,7 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
}
echo '&nbsp;</td>' . "\n";
}
if ($cfgRelation['commwork']) {
if ($cfgRelation['commwork'] || PMA_MYSQL_INT_VERSION >= 40100) {
echo ' <td class="print">';
if (isset($comments[$field_name])) {
echo htmlspecialchars($comments[$field_name]);