From df70c112510316d957c62a43873fa261deb47ae5 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 13 Oct 2014 00:49:57 +0200 Subject: [PATCH] Button_image Add button with icon --- include/class_html_input.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/class_html_input.php b/include/class_html_input.php index d3595882f..19463e9c1 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -445,6 +445,23 @@ class HtmlInput $r.=''; return $r; + } + /** + * button Html image + *@param $javascript javascript to execute + * @param $id id of the button + * @param $class class of the button + * @param $p_image image + */ + static function button_image($javascript,$id="xx",$p_class='class="button"',$p_image="") + { + if ($id=="xx"){ + $id=HtmlInput::generate_id("xx"); + } + $r=""; + $r.=''; + return $r; + } /** * Return a html string with an anchor to hide a div, put it in the right corner