diff --git a/include/lib/icon_action.class.php b/include/lib/icon_action.class.php index 7c59fef75..485e4802f 100644 --- a/include/lib/icon_action.class.php +++ b/include/lib/icon_action.class.php @@ -88,7 +88,21 @@ class Icon_Action return $r; } + /** + * Display a info in a bubble, text is given as parameter + * @param string $p_comment + * + * @return html string + */ + static function tips($p_comment) + { + $p_comment=htmlentities($p_comment); + $r=''; + $r.=""; + $r.=''; + return $r; + } /** * Display a icon ON * @param string $p_div id of element @@ -283,5 +297,14 @@ class Icon_Action */ static function unlock($p_id,$p_javascript) { + + $lock_cur=""; + + $r=sprintf( '%s', + $p_id, + $p_id, + $p_javascript, + $lock_cur); + return $r; } } diff --git a/scenario/icon_actionTest.php b/scenario/icon_actionTest.php index fe9fa9c28..4682d7e69 100644 --- a/scenario/icon_actionTest.php +++ b/scenario/icon_actionTest.php @@ -68,12 +68,13 @@ include_once NOALYSS_INCLUDE."/lib/icon_action.class.php";

more

-

- menu -

+

Lock

Unlock +

+

+ Tips

\ No newline at end of file