[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/11: Action_Code : add validate, cancel and
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/11: Action_Code : add validate, cancel and modify icon |
Date: |
Fri, 1 Jun 2018 17:02:49 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 03497b90478bc0f7aca21351ea4e20a816c6fca2
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 master updated (490aeb1 -> ecc3b53), Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 01/11: Missing class : missing class for acc_ledger, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 05/11: Display the balance difference, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 08/11: Add upgrade128.sql, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 04/11: Action_Code : add validate, cancel and modify icon,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/11: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 03/11: html_page_start : protect query, improve code, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 06/11: Bug in QUANT_PURCHASE , dp_dep_priv is not saved, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 07/11: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 10/11: Security : direct injection, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 09/11: Upgrade 128.sql, Dany De Bontridder, 2018/06/01
- [Noalyss-commit] [noalyss] 11/11: Fix : security fixes see rapport exakat (Damien Seguy), Dany De Bontridder, 2018/06/01