[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
- [Noalyss-commit] [noalyss] branch master updated (5864835 -> f6a3b1e), Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 01/27: Traduction, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 02/27: dans script, LANGUAGE non obligatoire, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 04/27: code : alignement, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 03/27: Change Direct Form par Acces Direct, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 08/27: Code format, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 09/27: A div can not have a name, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 07/27: Improve waiting box Add effect to display result, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 06/27: Remove obsolete, Improve waiting box, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 11/27: Button_image Add button with icon,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/27: Cosmetique icon, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 12/27: resize icon, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 14/27: Cosmetique remove border, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 10/27: Correct mes Task #1038 - Recherche de fiche par poste comptable, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 17/27: Traduction, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 19/27: Last version of prototype + patch, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 23/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 18/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 22/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 24/27: Code rewriting, Dany De Bontridder, 2014/11/02