* tbl_printview.php3:

- Fixed style="PAGE-BREAK-AFTER: always" from appearing on the
          last <div>, to stop a blank page being printed
        - Moved <hr /> to just inside </div> - gets line on the same page
This commit is contained in:
Robin Johnson
2002-06-22 19:57:58 +00:00
parent 2846270415
commit 9325287412
2 changed files with 16 additions and 2 deletions

View File

@@ -9,6 +9,10 @@ $Source$
2002-06-22 Robin Johnson <robbat2@users.sourceforge.net>
* 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 <div>, to stop a blank page being printed
- Moved <hr /> to just inside </div> - gets line on the same page
2002-06-21 Olivier L. M<>ller <om@omnis.ch>
* libraries/common.lib.php3, main.php3: be more tolerant with lazy

View File

@@ -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 '<div style="page-break-after: always;">' . "\n";
if($counter+1>=$tablecount) {
$breakstyle = '';
} else {
$breakstyle = ' style="page-break-after: always;"';
}
$counter++;
echo '<div' . $breakstyle . '>' . "\n";
echo '<h1>' . $table . '</h1>' . "\n";
/**
@@ -541,8 +551,8 @@ while (list($key, $table) = each($the_tables)) {
unset($ret_keys);
unset($num_rows);
unset($show_comment);
echo '</div>' . "\n";
echo '<hr />' . "\n";
echo '</div>' . "\n";
} // end if
} // end while