From 48f9947eb035c71099c54a2bdce17346e3faf782 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 11 Dec 2010 19:15:49 +0000 Subject: [PATCH] Add HtmlInput::print_window --- include/class_html_input.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/class_html_input.php b/include/class_html_input.php index 597539258..627e4c0f7 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -405,5 +405,14 @@ class HtmlInput $r.=''; return $r; } + /** + * Javascript to print the current window + */ + static function print_window() + { + $r=''; + $r.=HtmlInput::button('print','Imprimer','onclick="window.print();"'); + return $r; + } }