diff --git a/tbl_printview.php b/tbl_printview.php
index 1a1e761f5a..b9401aceb6 100644
--- a/tbl_printview.php
+++ b/tbl_printview.php
@@ -178,15 +178,14 @@ foreach ($the_tables as $key => $table) {
if (!empty($analyzed_sql[0]['create_table_fields'][$field_name]['type']) && $analyzed_sql[0]['create_table_fields'][$field_name]['type'] == 'TIMESTAMP' && $analyzed_sql[0]['create_table_fields'][$field_name]['timestamp_not_null']) {
$row['Null'] = '';
}
- ?>
-
|
- ' . $field_name . '' . "\n";
- } else {
- echo ' ' . $field_name . "\n";
- }
+ echo ' |
| ';
+
+ if (isset($pk_array[$row['Field']])) {
+ echo ' ' . $field_name . '' . "\n";
+ } else {
+ echo ' ' . $field_name . "\n";
+ }
?>
|
|
@@ -195,28 +194,28 @@ foreach ($the_tables as $key => $table) {
|
';
+ if (isset($res_rel[$field_name])) {
+ echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field']);
+ }
+ echo ' ' . "\n";
+ }
echo ' ';
- if (isset($res_rel[$field_name])) {
- echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field']);
+ $comments = PMA_getComments($db, $table);
+ if (isset($comments[$field_name])) {
+ echo htmlspecialchars($comments[$field_name]);
}
echo ' | ' . "\n";
- }
- echo ' ';
- $comments = PMA_getComments($db, $table);
- if (isset($comments[$field_name])) {
- echo htmlspecialchars($comments[$field_name]);
- }
- echo ' | ' . "\n";
- if ($cfgRelation['mimework']) {
- $mime_map = PMA_getMIME($db, $table, true);
+ if ($cfgRelation['mimework']) {
+ $mime_map = PMA_getMIME($db, $table, true);
- echo ' ';
- if (isset($mime_map[$field_name])) {
- echo htmlspecialchars(str_replace('_', '/', $mime_map[$field_name]['mimetype']));
+ echo ' | ';
+ if (isset($mime_map[$field_name])) {
+ echo htmlspecialchars(str_replace('_', '/', $mime_map[$field_name]['mimetype']));
+ }
+ echo ' | ' . "\n";
}
- echo ' ' . "\n";
- }
?>
$table) {
if ($nonisam == false) {
// Gets some sizes
- $mergetable = PMA_Table::isMerge($db, $table);
+ $mergetable = PMA_Table::isMerge($db, $table);
list($data_size, $data_unit) = PMA_formatByteDown($showtable['Data_length']);
if ($mergetable == false) {