/** * 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 .= '<image id="' . $id . '" ' . $p_class . ' onclick="' . $javascript . '" src="' . $p_image . '" />'; return $r; }