[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 98/107: New :: function Icon_Action::tips for
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 98/107: New :: function Icon_Action::tips for short comment New : Icon_Action::unlock |
Date: |
Mon, 26 Aug 2019 10:32:08 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit ae1725f955de2ba4b745f28dbf9fd94e013e23a7
Author: Dany De Bontridder <address@hidden>
Date: Mon Aug 26 11:37:46 2019 +0200
New :: function Icon_Action::tips for short comment
New : Icon_Action::unlock
---
include/lib/icon_action.class.php | 23 +++++++++++++++++++++++
scenario/icon_actionTest.php | 7 ++++---
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/include/lib/icon_action.class.php
b/include/lib/icon_action.class.php
index 7c59fef..485e480 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='<span tabindex="-1" class="icon"
style="cursor:pointer;display:inline;text-decoration:none;"
onmouseover="displayBulle(\''.$p_comment.'\')"
onclick="displayBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">';
+ $r.="";
+ $r.='</span>';
+ 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( '<span id="%s" is_locked="0"
onclick="toggle_lock(\'%s\');%s" class="icon smallicon">%s</span>',
+ $p_id,
+ $p_id,
+ $p_javascript,
+ $lock_cur);
+ return $r;
}
}
diff --git a/scenario/icon_actionTest.php b/scenario/icon_actionTest.php
index fe9fa9c..4682d7e 100644
--- a/scenario/icon_actionTest.php
+++ b/scenario/icon_actionTest.php
@@ -68,12 +68,13 @@ include_once NOALYSS_INCLUDE."/lib/icon_action.class.php";
<p>
more <?php echo Icon_Action::more(uniqid(), "alert('test')");?>
</p>
-<p>
- menu <?php echo Icon_Action::menu(uniqid(), "alert('test')");?>
-</p>
+
<p>
Lock <?php echo Icon_Action::lock(uniqid(), "alert('test')");?>
</p>
<p>
Unlock <?php echo Icon_Action::unlock(uniqid(), "alert('test')");?>
+</p>
+<p>
+ Tips <?php echo Icon_Action::tips("Allo ?")?>
</p>
\ No newline at end of file
- [Noalyss-commit] [noalyss] 28/107: Debug : add function tracedebug, (continued)
- [Noalyss-commit] [noalyss] 28/107: Debug : add function tracedebug, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 32/107: Cosmetic : font new symbol Cosmetic : CSS padding for div.menu2 a.mtitle, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 58/107: javascript Add new function json_response, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 52/107: Adapt Unit Test, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 76/107: fixup! Improve message progress bar + translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 78/107: Purpose is to contain all the prepared query called from different locations, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 83/107: Task#1734 New : Add PRINTTVA to have a summary of VAT by ledger, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 93/107: Documentation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 92/107: Code : remove direct use of $_GET, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 39/107: Code cleaning : split database into database (for noalyss) and databasecore , with the functions, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 98/107: New :: function Icon_Action::tips for short comment New : Icon_Action::unlock,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 84/107: Task #1734 Upgrade patch for PRINTTVA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 46/107: Code Cleaning split PDF into PDF_Core and PDF, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 105/107: fixup! New Task 1728: Aide à l'encodage - Journaux négatifs (note de crédit), Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 106/107: cosmetic, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 64/107: Add demo for fontello, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 75/107: Task #0001731: Moyen de paiement, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 81/107: Task #0001733: Impression moyen paiement, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 56/107: New function PDF_Core:is_fill add documentation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 38/107: load_all must always return an array, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 67/107: SQL : add constraint for payment_method, Dany De Bontridder, 2019/08/26