noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 11/27: Button_image Add button with icon


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/27: Button_image Add button with icon
Date: Sun, 02 Nov 2014 11:08:48 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit df70c112510316d957c62a43873fa261deb47ae5
Author: Dany De Bontridder <address@hidden>
Date:   Mon Oct 13 00:49:57 2014 +0200

    Button_image Add button with icon
---
 include/class_html_input.php |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/include/class_html_input.php b/include/class_html_input.php
index d359588..19463e9 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -447,6 +447,23 @@ class HtmlInput
 
     }
     /**
+     * button Html image
+     address@hidden $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;
+
+    }
+    /**
      * Return a html string with an anchor to hide a div, put it in the right 
corner
      address@hidden $action action action to perform (message)
      address@hidden $javascript javascript



reply via email to

[Prev in Thread] Current Thread [Next in Thread]