From 0081eb33c2bf5aa5c07bd5b78d03a5cfab54ce8d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 5 Mar 2006 21:31:56 +0000 Subject: [PATCH] page_code() now should work a wee bit better --- printer.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/printer.php b/printer.php index 4d12075..9d9a487 100644 --- a/printer.php +++ b/printer.php @@ -71,6 +71,13 @@ class Printer */ var $css = ''; + /** + * Extra code to place + * @var sring + * @access private + */ + var $code = ''; + /** * Fields array that is used in this module * @var array @@ -270,6 +277,7 @@ JS; echo "\n\t$title"; echo "\n\t"; echo $this->css; + echo $this->code; echo ($extra ? "\n$extra" : ''); echo "\n\n\n"; @@ -326,7 +334,14 @@ JS; */ function page_code($code) { - echo "\n\n$code\n\n"; + if (defined('ISSO_PRINTER_DONE_HEADER')) + { + echo "\n\n$code\n\n"; + } + else + { + $this->code .= "\n\n$code\n\n"; + } } // ################################################################### -- 2.43.5