[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 12/218: Action_Code : add validate, cancel an
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 12/218: Action_Code : add validate, cancel and modify icon |
Date: |
Thu, 12 Sep 2019 15:58:30 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit d3e649d211da32b028cc3595c1260b0274c06fae
Author: Dany De Bontridder <address@hidden>
Date: Sat Apr 28 15:39:36 2018 +0200
Action_Code : add validate, cancel and modify icon
---
include/lib/icon_action.class.php | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/include/lib/icon_action.class.php
b/include/lib/icon_action.class.php
index 68fec5e..ad9a30b 100644
--- a/include/lib/icon_action.class.php
+++ b/include/lib/icon_action.class.php
@@ -193,4 +193,40 @@ class Icon_Action
$r='<span id="'.$p_id.'" onclick="'.$p_javascript.'"
class="icon"></span>';
return $r;
}
+ /**
+ * Display the icon to modify a idem
+ * @param type $p_id
+ * @param type $p_javascript
+ * @return string
+ */
+ static function modify($p_id,$p_javascript)
+ {
+ $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon
icon" style="margin-left:5px"></span>';
+
+ return $r;
+ }
+ /**
+ * Display the icon to modify a idem
+ * @param type $p_id
+ * @param type $p_javascript
+ * @return string
+ */
+ static function validate($p_id,$p_javascript)
+ {
+ $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon
icon" style="margin-left:5px">✓</span>';
+
+ return $r;
+ }
+ /**
+ * Display the icon to modify a idem
+ * @param type $p_id
+ * @param type $p_javascript
+ * @return string
+ */
+ static function cancel($p_id,$p_javascript)
+ {
+ $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon
icon" style="margin-left:5px"></span>';
+
+ return $r;
+ }
}
- [Noalyss-commit] [noalyss] branch entreprise created (now 0030779), Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 01/218: create currency SQL tables, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 02/218: Currency : add PHP Class for SQL table, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 03/218: Currency : create view + add currency name to table currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 06/218: Currency : add ajax call to delete one rate , add documentation , remove debug info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 12/218: Action_Code : add validate, cancel and modify icon,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 15/218: insert_jrnx : add debug, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 19/218: Task #448 : currency : cosmetic operation detail, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 07/218: Currency : add menu for currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 11/218: Currency : SQL menu change, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 14/218: INum : add function onchange with inplace edit, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 10/218: Currency : add SQL constraint + doc, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 05/218: html_page_start : protect query, improve code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 08/218: Currency = add a mode currency, possible to work without, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 04/218: Currency : add test file + database file + mtable, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 21/218: Task #448 : issue with reconciliation amount, Dany De Bontridder, 2019/09/12