From e033b3f347a446f5f043e68a8ca69cd9dbeece21 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 2 Nov 2005 17:10:27 +0000 Subject: [PATCH] - replaced $cfg['Bgcolor*'] with classes - reduced output size by 40% --- ChangeLog | 3 ++ css/print.css | 10 +++++ db_datadict.php | 102 ++++++++++++++++++++---------------------------- 3 files changed, 55 insertions(+), 60 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f5ee70b4..fc2c47cb1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,9 @@ $Source$ * libraries/common.lib.php, browse_foreigners.php: - replaced $cfg['Bgcolor*'] with classes - make use of fieldset + * css/print.css, dbv_datadict.php: + - replaced $cfg['Bgcolor*'] with classes + - reduced output size by 40% 2005-11-01 Marc Delisle * server_privileges.php: undefined variable when changing a password diff --git a/css/print.css b/css/print.css index ada52c82c..ec031afc1 100644 --- a/css/print.css +++ b/css/print.css @@ -1,3 +1,13 @@ .print_ignore { display: none; } + +table, +table tr td, +table tr th { + border: 1px solid black; + border-collapse: collapse; + background-color: white; + color: white; + font-size: 8pt; +} \ No newline at end of file diff --git a/db_datadict.php b/db_datadict.php index 5ee1af977..6fef609ae 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -41,10 +41,8 @@ if ($cfgRelation['commwork']) { */ if (is_array($comment)) { ?> - -

- -

+

+

= 3.23 */ if (!empty($show_comment)) { - echo $strTableComments . ': ' . $show_comment . '

'; + echo $strTableComments . ': ' . $show_comment . '

'; } /** * Displays the table structure */ - ?> + ?> - - - - +
+ - +*/ ?> - +*/ ?> ' . $strLinksTo . '' . "\n"; } @@ -183,12 +177,9 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) { } ?> - - - + - - - - - + xml:lang="en" dir="ltr"> +>*/ ?> + + +>*/ ?> '; + echo ' ' . "\n"; + echo '' . "\n"; } if ($cfgRelation['commwork'] || PMA_MYSQL_INT_VERSION >= 40100) { - echo ' ' . "\n"; + echo '' . "\n"; } if ($cfgRelation['mimework']) { $mime_map = PMA_getMIME($db, $table, true); - echo ' ' . "\n"; + echo '' . "\n"; } ?> -
+ ?> +
' . $field_name . ' ' . "\n"; + echo '' . $field_name . ''; } else { - echo ' ' . $field_name . ' ' . "\n"; + echo $field_name; } - ?> + ?> >  '; if (isset($res_rel[$field_name])) { echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field']); } - echo ' '; + echo ' '; if (isset($comments[$field_name])) { echo htmlspecialchars($comments[$field_name]); } - echo ' '; + echo ' '; if (isset($mime_map[$field_name])) { echo htmlspecialchars(str_replace('_', '/', $mime_map[$field_name]['mimetype'])); } - echo ' 
- - ' . "\n"; - + PMA_DBI_free_result( $result ); $count++; + ?> + + + -
 ' . "\n"; +echo '

'; require_once('./footer.inc.php'); ?>