Re: Page breaks and printing?
| From: | Leif K-Brooks | Date: | Fri, 17 Oct 2003 21:13:50 +0000 |
| Subject: | Re: Page breaks and printing? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166560@lists.php.net to get a copy of this message | ||
J J wrote:
Is there a good way in PHP to determine page breaks for long reports and printing? I'd like to be able to best determine where pages should begin and end and reprint things like table/page headers and footers on each page so the reports print nicely. Just use HTML thead/tfoot elements and let the browser do it for you:<table> <thead> <tr> <th>Something</th> <th>Something</th> <th>Something</th> <tr> </thead> <tbody> <tr> <td>Data</td> <td>Data</td> <td>Data</td> </tr> <tr> <td>Data</td> <td>Data</td> <td>Data</td> </tr> <tr> <td>Data</td> <td>Data</td> <td>Data</td> </tr> <tr> <td>Data</td> <td>Data</td> <td>Data</td> </tr> </tbody> <tfoot> <tr> <td colspan="3">Footer</td> </tr> </tfoot> </table> -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.