From 932528741209aa13b8709db0a78f2e18c7800e86 Mon Sep 17 00:00:00 2001 From: Robin Johnson Date: Sat, 22 Jun 2002 19:57:58 +0000 Subject: [PATCH] * tbl_printview.php3: - Fixed style="PAGE-BREAK-AFTER: always" from appearing on the last
, to stop a blank page being printed - Moved
to just inside
- gets line on the same page --- ChangeLog | 4 ++++ tbl_printview.php3 | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25ed1597c..17fad2e99 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,10 @@ $Source$ 2002-06-22 Robin Johnson * sql.php3: - Fix warning and error from mysql_free_result($cna_all_result); + * tbl_printview.php3: + - Fixed style="PAGE-BREAK-AFTER: always" from appearing on the + last
, to stop a blank page being printed + - Moved
to just inside
- gets line on the same page 2002-06-21 Olivier L. Müller * libraries/common.lib.php3, main.php3: be more tolerant with lazy diff --git a/tbl_printview.php3 b/tbl_printview.php3 index b9cf79250..29a8d4519 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -62,9 +62,19 @@ if ($multi_tables) { } // end if reset($the_tables); +$tablecount = count($the_tables); +reset($the_tables); +$counter = 0; + while (list($key, $table) = each($the_tables)) { $table = urldecode($table); - echo '
' . "\n"; + if($counter+1>=$tablecount) { + $breakstyle = ''; + } else { + $breakstyle = ' style="page-break-after: always;"'; + } + $counter++; + echo '' . "\n"; echo '

' . $table . '

' . "\n"; /** @@ -541,8 +551,8 @@ while (list($key, $table) = each($the_tables)) { unset($ret_keys); unset($num_rows); unset($show_comment); - echo '
' . "\n"; echo '
' . "\n"; + echo '' . "\n"; } // end if } // end while