RFE #700307 - Display DB comments / MIME-types where appropriate.

This commit is contained in:
Garvin Hicking
2003-03-12 19:13:37 +00:00
parent 22c8c1dd58
commit 2a3bd1cc7a
5 changed files with 84 additions and 7 deletions

View File

@@ -15,6 +15,8 @@ if (!isset($selected_tbl)) {
* Gets the relations settings
*/
require('./libraries/relation.lib.php3');
require('./libraries/transformations.lib.php3');
$cfgRelation = PMA_getRelationsParam();
@@ -188,6 +190,9 @@ while (list($key, $table) = each($the_tables)) {
if ($cfgRelation['commwork']) {
echo ' <th>' . $strComments . '</th>' . "\n";
}
if ($cfgRelation['mimework']) {
echo ' <th>MIME</th>' . "\n";
}
?>
</tr>
@@ -273,6 +278,15 @@ while (list($key, $table) = each($the_tables)) {
}
echo '&nbsp;</td>' . "\n";
}
if ($cfgRelation['mimework']) {
$mime_map = PMA_getMIME($db, $table, true);
echo ' <td class="print">';
if (isset($mime_map[$field_name])) {
echo htmlspecialchars(str_replace('_', '/', $mime_map[$field_name]['mimetype']));
}
echo '&nbsp;</td>' . "\n";
}
?>
</tr>
<?php