[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 40/73: Cosmetic : add button_magnifier for se
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 40/73: Cosmetic : add button_magnifier for searching |
Date: |
Fri, 28 May 2021 05:26:34 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 44360754651f7d42c1029509ee28b8501f42423e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Apr 25 23:42:28 2021 +0200
Cosmetic : add button_magnifier for searching
---
include/lib/icard.class.php | 2 +-
include/lib/icon_action.class.php | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/include/lib/icard.class.php b/include/lib/icard.class.php
index ed69aac..9152b33 100644
--- a/include/lib/icard.class.php
+++ b/include/lib/icard.class.php
@@ -580,7 +580,7 @@ class ICard extends HtmlInput
$javascript=$a.' search_card(this);return false;';
- $button=Icon_Action::icon_magnifier(uniqid(),$javascript);
+ $button=Icon_Action::button_magnifier(uniqid(),$javascript);
return $button;
}
diff --git a/include/lib/icon_action.class.php
b/include/lib/icon_action.class.php
index 566a259..7344b2c 100644
--- a/include/lib/icon_action.class.php
+++ b/include/lib/icon_action.class.php
@@ -44,6 +44,20 @@ class Icon_Action
$id, $p_style, $p_javascript);
return $r;
}
+ /**
+ * Display a icon with a magnify glass
+ * @param string $id id of element
+ * @param string $p_javascript
+ * @param string $p_style optionnal HTML code
+ * @return type
+ */
+ static function button_magnifier($id, $p_javascript, $p_style="")
+ {
+ $r="";
+ $r.=sprintf('<input type="button" id="%s" class=" smallbutton icon"
style="%s" onclick="%s" value="">',
+ $id, $p_style, $p_javascript);
+ return $r;
+ }
/**
*
- [Noalyss-commit] [noalyss] 41/73: Cosmetic : Card History, (continued)
- [Noalyss-commit] [noalyss] 41/73: Cosmetic : Card History, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 47/73: Fix block problem with font, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 49/73: Improve function display_row_custom for the custom sort key see Sorttable.js, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 50/73: Improve Manage_Table_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 55/73: Manage_Table_SQL : typo, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 56/73: Output_HTML adapt to bootstrap navbar, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 57/73: Task #1807: Boutons indistincts – thème 7 classic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 44/73: Cosmetic : width to large if recover passwd enable and icon trash not available for document (in operation detail), Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 28/73: Task #0001961: Devise : faciliter les calculs d'écarts de conversion, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 38/73: Task #1961 : Currency remove default currency, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 40/73: Cosmetic : add button_magnifier for searching,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 52/73: Code Rewriting : rename Noalyss_SQL class by Table_Data_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 53/73: Code Rewriting : rename Noalyss_SQL class by Table_Data_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 45/73: Cosmetic : button with HREF, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 60/73: Cosmetic : navigator on small device, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 62/73: Remove dead code, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 63/73: Unit test : update, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 65/73: Task #0001992: Prévision, calcul avec comptabilité analytique, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 54/73: Security : Check the folder, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 05/73: comptability version 7.4 warning null is not a countable, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 48/73: PLpgSQL function , format properly the accounting before inserting fiche_detail and tmp_pcmn tables, Dany De Bontridder, 2021/05/28