* 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:
@@ -9,6 +9,10 @@ $Source$
|
|||||||
2002-06-22 Robin Johnson <robbat2@users.sourceforge.net>
|
2002-06-22 Robin Johnson <robbat2@users.sourceforge.net>
|
||||||
* sql.php3:
|
* sql.php3:
|
||||||
- Fix warning and error from mysql_free_result($cna_all_result);
|
- 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>
|
2002-06-21 Olivier L. M<>ller <om@omnis.ch>
|
||||||
* libraries/common.lib.php3, main.php3: be more tolerant with lazy
|
* libraries/common.lib.php3, main.php3: be more tolerant with lazy
|
||||||
|
@@ -62,9 +62,19 @@ if ($multi_tables) {
|
|||||||
} // end if
|
} // end if
|
||||||
reset($the_tables);
|
reset($the_tables);
|
||||||
|
|
||||||
|
$tablecount = count($the_tables);
|
||||||
|
reset($the_tables);
|
||||||
|
$counter = 0;
|
||||||
|
|
||||||
while (list($key, $table) = each($the_tables)) {
|
while (list($key, $table) = each($the_tables)) {
|
||||||
$table = urldecode($table);
|
$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";
|
echo '<h1>' . $table . '</h1>' . "\n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -541,8 +551,8 @@ while (list($key, $table) = each($the_tables)) {
|
|||||||
unset($ret_keys);
|
unset($ret_keys);
|
||||||
unset($num_rows);
|
unset($num_rows);
|
||||||
unset($show_comment);
|
unset($show_comment);
|
||||||
echo '</div>' . "\n";
|
|
||||||
echo '<hr />' . "\n";
|
echo '<hr />' . "\n";
|
||||||
|
echo '</div>' . "\n";
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
} // end while
|
} // end while
|
||||||
|
Reference in New Issue
Block a user