noalyss-commit
[Top][All Lists]
Advanced

[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">&#xe80f;</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">&#xe80d;</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">&#x2713;</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">&#xe802;</span>';
+        
+        return $r;
+    }
 }



reply via email to

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