It's not so big, if you remove instructions around 3kb(CSS included).Oliver Georgi wrote:why that complex? use some lines of code and CSS style print.css and everything works the same. And check file printwindow.php in code snippets folder of phpwcms - or check this:
You can place any part of code/html there if neccessary.Code: Select all
[PHP] if($GLOBALS['aktion'][2] !=0) { echo '<script language="JavaScript" type="text/javascript">'; echo "\n<!--\n"; echo 'window.print();'; echo "\n//-->\n"; echo '</script>'; } [/PHP]
Oliver
I like features like different logo for print page, displaying URL of printed article and Print button.