Page 1 of 1

2.3 MOD: Add Header and Footer to Print View

Posted: Thu Oct 06, 2011 2:24 pm
by Lisaweb
I needed to and our Header and Footer (header.txt and footer.txt) to the print view. Here's how I did it:

in print.php

Right after this code:

Code: Select all

<body onload="window.print()">
Add this:

Code: Select all

<?php
include(HESK_PATH . 'header.txt');
?>
And right after this code:

Code: Select all

echo $hesklang['end_ticket'];
?>
</p>
enter this line:

Code: Select all

<?php
include(HESK_PATH . 'footer.txt');
?>
Very easy.