diff --git a/ChangeLog b/ChangeLog index 0a6b50259..917296e63 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-02-21 Marc Delisle + * pdf_pages.php: patch #1120466 (modified): optional column names + in visual scratchboard, thanks to Remco Aalbers - remcoa + 2005-02-17 Marc Delisle * header.inc.php, queryframe.php: HTML improvement, thanks to Armel Fauveau diff --git a/pdf_pages.php b/pdf_pages.php index f08f8128d..842622cd0 100644 --- a/pdf_pages.php +++ b/pdf_pages.php @@ -301,6 +301,9 @@ while ($temp_sh_page = @PMA_DBI_fetch_assoc($page_rs)) { // garvin: Display WYSIWYG-PDF parts? if ($cfg['WYSIWYG-PDF']) { + if (!isset($_POST['with_field_names']) && !isset($_POST['showwysiwyg'])) { + $with_field_names = TRUE; + } ?>
@@ -330,8 +333,10 @@ foreach ($array_sh_page AS $key => $temp_sh_page) { $fields_cnt = PMA_DBI_num_rows($fields_rs); echo '
' . $temp_sh_page['table_name'] . ''; - while ($row = PMA_DBI_fetch_assoc($fields_rs)) { - echo '
' . htmlspecialchars($row['Field']) . "\n"; + if (isset($with_field_names)) { + while ($row = PMA_DBI_fetch_assoc($fields_rs)) { + echo '
' . htmlspecialchars($row['Field']) . "\n"; + } } echo '
' . "\n"; PMA_DBI_free_result($fields_rs); @@ -439,6 +444,7 @@ function resetDrag() { echo "\n" . ' '; echo ($cfg['WYSIWYG-PDF'] ? "\n" . ' ' : ''); + echo "\n" . ' ' . $strColumnNames . '
'; echo "\n" . ' '; echo "\n" . '
' . "\n\n"; } // end if @@ -483,7 +489,7 @@ function resetDrag() { -
+ ' . $strDisplayPDF . ''; ?>: