RFE #700307 - Display DB comments / MIME-types where appropriate.
This commit is contained in:
@@ -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 ' </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 ' </td>' . "\n";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user