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;
+ }
}