noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 16/107: Icon_Action add icon for locking , un


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 16/107: Icon_Action add icon for locking , unlocking
Date: Mon, 26 Aug 2019 10:31:48 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit bacf50448abc64233f7990bf4b52db9e59ad9fa5
Author: Dany De Bontridder <address@hidden>
Date:   Sun Feb 17 22:14:29 2019 +0100

    Icon_Action add icon for locking , unlocking
---
 html/image/fontello/fontello.eot   | Bin 24888 -> 31416 bytes
 html/image/fontello/fontello.svg   |  40 ++++++++++++++++++++++++++++++++++++-
 html/image/fontello/fontello.ttf   | Bin 24720 -> 31248 bytes
 html/image/fontello/fontello.woff  | Bin 15328 -> 19392 bytes
 html/image/fontello/fontello.woff2 | Bin 12980 -> 16316 bytes
 html/js/scripts.js                 |  24 ++++++++++++++++++++++
 include/lib/icon_action.class.php  |  28 +++++++++++++++++++++++++-
 scenario/icon_actionTest.php       |   9 +++++++++
 8 files changed, 99 insertions(+), 2 deletions(-)

diff --git a/html/image/fontello/fontello.eot b/html/image/fontello/fontello.eot
index b1e33b8..6f3fe70 100644
Binary files a/html/image/fontello/fontello.eot and 
b/html/image/fontello/fontello.eot differ
diff --git a/html/image/fontello/fontello.svg b/html/image/fontello/fontello.svg
index ce270cb..1cedeb4 100644
--- a/html/image/fontello/fontello.svg
+++ b/html/image/fontello/fontello.svg
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="no"?>
 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
 <svg xmlns="http://www.w3.org/2000/svg";>
-<metadata>Copyright (C) 2018 by original authors @ fontello.com</metadata>
+<metadata>Copyright (C) 2019 by original authors @ fontello.com</metadata>
 <defs>
 <font id="fontello" horiz-adv-x="1000" >
 <font-face font-family="fontello" font-weight="400" font-stretch="normal" 
units-per-em="1000" ascent="850" descent="-150" />
@@ -102,6 +102,30 @@
 
 <glyph glyph-name="up" unicode="&#xe82f;" d="M0 264l391 586 390-586-211 0 
0-414-359 0 0 414-211 0z" horiz-adv-x="781" />
 
+<glyph glyph-name="thumbs-up" unicode="&#xe830;" d="M143 100q0 15-11 25t-25 
11-25-11-11-25 11-25 25-11 25 11 11 25z m643 321q0 29-22 50t-50 22h-196q0 32 27 
89t26 89q0 55-17 81t-72 
27q-14-15-21-48t-17-70-33-61q-13-13-43-51-2-3-13-16t-18-23-19-24-22-25-22-19-22-15-20-6h-18v-357h18q7
 0 18-1t18-4 21-6 20-7 20-6 16-6q118-41 191-41h67q107 0 107 93 0 15-2 31 16 9 
26 30t10 41-10 38q29 28 29 67 0 14-5 31t-14 26q18 1 30 26t12 45z m71 
1q0-50-27-91 5-18 5-38 0-43-21-81 1-12 1-24 0-56-33-99 0-78-48-1 [...]
+
+<glyph glyph-name="lock" unicode="&#xe831;" d="M179 421h285v108q0 59-42 
101t-101 41-101-41-41-101v-108z m464-53v-322q0-22-16-37t-38-16h-535q-23 0-38 
16t-16 37v322q0 22 16 38t38 15h17v108q0 102 74 176t176 74 177-74 
73-176v-108h18q23 0 38-15t16-38z" horiz-adv-x="642.9" />
+
+<glyph glyph-name="lock-open" unicode="&#xe832;" d="M929 
529v-143q0-15-11-25t-25-11h-36q-14 0-25 11t-11 25v143q0 59-41 101t-101 
41-101-41-42-101v-108h53q23 0 38-15t16-38v-322q0-22-16-37t-38-16h-535q-23 0-38 
16t-16 37v322q0 22 16 38t38 15h375v108q0 103 73 176t177 74 176-74 74-176z" 
horiz-adv-x="928.6" />
+
+<glyph glyph-name="thumbs-down" unicode="&#xe833;" d="M143 600q0 15-11 25t-25 
11-25-11-11-25 11-25 25-11 25 11 11 25z m643-321q0 19-12 45t-30 26q8 10 14 27t5 
31q0 38-29 66 10 17 10 38 0 21-10 41t-26 30q2 16 2 31 0 47-27 70t-76 23h-71q-73 
0-191-41-3-1-16-5t-20-7-20-7-21-6-18-4-18-1h-18v-357h18q9 0 20-5t22-15 22-20 
22-25 19-24 18-22 13-17q30-38 43-51 23-24 33-61t17-70 21-48q54 0 72 27t17 81q0 
33-26 89t-27 89h196q28 0 50 22t22 50z m71-1q0-57-42-100t-101-42h-98q27-55 
27-107 0-66-20-104-19-39 [...]
+
+<glyph glyph-name="bell" unicode="&#xe834;" d="M509-96q0 8-9 8-33 0-57 24t-23 
57q0 9-9 9t-9-9q0-41 29-70t69-28q9 0 9 9z m-372 160h726q-149 168-149 465 0 
28-13 58t-39 58-67 45-95 17-95-17-67-45-39-58-13-58q0-297-149-465z m827 
0q0-29-21-50t-50-21h-250q0-59-42-101t-101-42-101 42-42 101h-250q-29 0-50 21t-21 
50q28 24 51 49t47 67 42 89 27 115 11 145q0 84 66 157t171 89q-5 10-5 21 0 23 16 
38t38 16 38-16 16-38q0-11-5-21 106-16 171-89t66-157q0-78 11-145t28-115 41-89 
48-67 50-49z" horiz-adv-x="1000" />
+
+<glyph glyph-name="resize-small" unicode="&#xe835;" d="M429 
314v-250q0-14-11-25t-25-10-25 10l-81 81-185-186q-5-5-13-5t-12 5l-64 64q-6 6-6 
13t6 13l185 185-80 80q-11 11-11 25t11 25 25 11h250q14 0 25-11t11-25z m421 
375q0-7-6-12l-185-186 80-80q11-11 11-25t-11-25-25-11h-250q-14 0-25 11t-10 
25v250q0 14 10 25t25 10 25-10l81-80 185 185q6 5 13 5t13-5l63-64q6-5 6-13z" 
horiz-adv-x="857.1" />
+
+<glyph glyph-name="resize-full-1" unicode="&#xe836;" d="M421 
261q0-7-5-13l-185-185 80-81q10-10 10-25t-10-25-25-11h-250q-15 0-25 11t-11 
25v250q0 15 11 25t25 11 25-11l80-80 186 185q5 6 12 6t13-6l64-63q5-6 5-13z m436 
482v-250q0-15-10-25t-26-11-25 11l-80 80-185-185q-6-6-13-6t-13 6l-64 64q-5 5-5 
12t5 13l186 185-81 81q-10 10-10 25t10 25 25 11h250q15 0 26-11t10-25z" 
horiz-adv-x="857.1" />
+
+<glyph glyph-name="right-hand" unicode="&#xe837;" d="M143 100q0 15-11 25t-25 
11-25-11-11-25 11-25 25-11 25 11 11 25z m786 321q0 29-22 50t-50 22h-321q0 11 8 
27t19 31 18 38 8 47q0 37-24 54t-65 17q-13 
0-50-77-14-25-21-37-22-35-62-81-40-45-57-59-38-32-78-32h-18v-357h18q40 0 
93-18t108-35 101-18q105 0 105 93 0 15-3 31 17 9 27 30t9 41-10 38q30 28 30 67 0 
14-6 31t-14 26h185q29 0 50 21t22 50z m71 1q0-59-42-101t-101-42h-94q-2-35-21-67 
2-12 2-24 0-56-34-99 1-78-47-123t-127-45q-74 0-179 39-92 33-125 [...]
+
+<glyph glyph-name="left-hand" unicode="&#xe838;" d="M768 64h18v357h-18q-20 
0-38 7t-35 21-28 25-27 31q-4 5-7 7-40 46-62 81-8 13-21 38-1 2-6 13t-10 20-12 
20-12 17-10 6q-40 0-64-17t-25-54q0-24 8-47t19-38 18-31 8-27h-321q-28 
0-50-22t-22-50q0-29 22-50t50-21h185q-9-9-14-26t-6-31q0-39 
30-67-10-18-10-38t9-41 27-30q-2-13-2-31 0-47 27-70t75-23q47 0 102 18t109 35 93 
18z m161 36q0 15-11 25t-25 11-25-11-11-25 11-25 25-11 25 11 11 25z m71 
321v-357q0-29-21-50t-50-21h-161q-33 0-125-33-106-39-176-39-80 0 [...]
+
+<glyph glyph-name="up-hand" unicode="&#xe839;" d="M714-43q0 15-10 25t-25 
11-25-11-11-25 11-25 25-11 25 11 10 25z m72 427q0 105-93 105-15 0-32-3-9 17-29 
27t-41 9-38-10q-28 30-67 30-14 0-31-6t-26-14v185q0 29-22 50t-50 22q-28 
0-50-22t-21-50v-321q-11 0-27 8t-31 19-38 18-47 8q-37 0-55-24t-17-65q0-13 78-50 
25-14 36-21 36-22 81-62 45-40 59-57 32-38 32-78v-18h357v18q0 40 18 93t36 108 18 
101z m71 2q0-74-38-179-33-92-33-125v-161q0-29-21-50t-51-21h-357q-29 0-50 21t-21 
50v161q0 6-3 12t-8 13-10 13-12 [...]
+
+<glyph glyph-name="down-hand" unicode="&#xe83a;" d="M786 314q0 47-18 102t-36 
109-18 
93v18h-357v-18q0-20-7-38t-20-35-26-28-30-27q-5-4-8-7-45-40-81-62-12-8-38-21-1-1-12-6t-20-10-20-12-17-12-7-10q0-40
 17-64t55-25q24 0 47 8t38 19 31 18 27 8v-321q0-28 21-50t50-22q29 0 50 22t22 
50v185q25-20 57-20 39 0 67 30 17-10 38-10t41 9 29 27q14-2 32-2 47 0 70 27t23 
75z m-72 429q0 14-10 25t-25 11-25-11-11-25 11-25 25-11 25 11 10 25z 
m143-426q0-80-43-129t-121-48l-3 0q-43-34-100-34-12 0-24 2-30-17-66-21v-94q [...]
+
+<glyph glyph-name="eye-off" unicode="&#xe83b;" d="M310 105l43 79q-48 35-76 
88t-27 114q0 67 34 125-128-65-213-197 94-144 239-209z m217 424q0 11-8 19t-19 
7q-70 0-120-50t-50-119q0-11 8-19t19-8 19 8 8 19q0 48 34 82t82 34q11 0 19 8t8 
19z m202 106q0-4 0-5-59-105-176-316t-176-316l-28-50q-5-9-15-9-7 0-75 39-9 6-9 
16 0 7 25 49-80 36-147 96t-117 137q-11 17-11 38t11 39q86 131 212 207t277 76q50 
0 100-10l31 54q5 9 15 9 3 0 10-3t18-9 18-10 18-10 10-7q9-5 9-15z 
m21-249q0-78-44-142t-117-91l157 280q4-25  [...]
+
 <glyph glyph-name="down-open" unicode="&#xf004;" d="M0 533q0 25 18 43t44 18 
42-18l305-303 304 303q18 18 43 18t43-18q18-18 18-43t-18-43l-390-391-391 391q-18 
19-18 43z" horiz-adv-x="817.4" />
 
 <glyph glyph-name="up-open" unicode="&#xf005;" d="M0 167q0 26 18 43l391 391 
390-391q17-17 17-43 0-26-17-44-18-17-44-17t-43 17l-303 
305-305-305q-18-17-43-17t-43 17q-18 18-18 44z" horiz-adv-x="816.9" />
@@ -116,10 +140,18 @@
 
 <glyph glyph-name="link-ext" unicode="&#xf08e;" d="M786 
332v-178q0-67-47-114t-114-47h-464q-67 0-114 47t-47 114v464q0 66 47 113t114 
48h393q7 0 12-5t5-13v-36q0-8-5-13t-12-5h-393q-37 0-63-26t-27-63v-464q0-37 
27-63t63-27h464q37 0 63 27t26 63v178q0 8 5 13t13 5h36q8 0 13-5t5-13z m214 
482v-285q0-15-11-25t-25-11-25 11l-98 98-364-364q-5-6-13-6t-12 6l-64 64q-6 5-6 
12t6 13l364 364-98 98q-11 11-11 25t11 25 25 11h285q15 0 25-11t11-25z" 
horiz-adv-x="1000" />
 
+<glyph glyph-name="comment-empty" unicode="&#xf0e5;" d="M500 636q-114 
0-213-39t-157-105-59-142q0-62 40-119t113-98l48-28-15-53q-13-51-39-97 85 36 154 
96l24 21 32-3q38-5 72-5 114 0 213 39t157 105 59 142-59 142-157 105-213 39z 
m500-286q0-97-67-179t-182-130-251-48q-39 0-81 4-110-97-257-135-27-8-63-12h-3q-8 
0-15 6t-9 15v1q-2 2 0 6t1 6 2 5l4 5t4 5 4 5q4 5 17 19t20 22 17 22 18 28 15 33 
15 42q-88 50-138 123t-51 157q0 97 67 179t182 130 251 48 251-48 182-130 67-179z" 
horiz-adv-x="1000" />
+
 <glyph glyph-name="doc-text" unicode="&#xf0f6;" d="M819 638q16-16 
27-42t11-50v-642q0-23-15-38t-38-16h-750q-23 0-38 16t-16 38v892q0 23 16 38t38 
16h500q22 0 49-11t42-27z m-248 136v-210h210q-5 17-12 23l-175 175q-6 7-23 12z 
m215-853v572h-232q-23 0-38 16t-16 37v233h-429v-858h715z m-572 483q0 7 5 12t13 
5h393q8 0 13-5t5-12v-36q0-8-5-13t-13-5h-393q-8 0-13 5t-5 13v36z m411-125q8 0 
13-5t5-13v-36q0-8-5-13t-13-5h-393q-8 0-13 5t-5 13v36q0 8 5 13t13 5h393z 
m0-143q8 0 13-5t5-13v-36q0-8-5-13t-13-5h-393q [...]
 
 <glyph glyph-name="plus-squared" unicode="&#xf0fe;" d="M714 314v72q0 14-10 
25t-25 10h-179v179q0 15-11 25t-25 11h-71q-15 0-25-11t-11-25v-179h-178q-15 
0-25-10t-11-25v-72q0-14 11-25t25-10h178v-179q0-14 11-25t25-11h71q15 0 25 11t11 
25v179h179q14 0 25 10t10 25z m143 304v-536q0-66-47-113t-114-48h-535q-67 0-114 
48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" 
/>
 
+<glyph glyph-name="lock-open-alt" unicode="&#xf13e;" d="M589 421q23 0 
38-15t16-38v-322q0-22-16-37t-38-16h-535q-23 0-38 16t-16 37v322q0 22 16 38t38 
15h17v179q0 103 74 177t176 73 177-73 73-177q0-14-10-25t-25-11h-36q-14 0-25 
11t-11 25q0 59-42 101t-101 42-101-42-41-101v-179h410z" horiz-adv-x="642.9" />
+
+<glyph glyph-name="sort-alt-up" unicode="&#xf160;" d="M411 
46q0-6-6-13l-178-178q-5-5-13-5-6 0-12 5l-179 179q-8 9-4 19 4 11 17 11h107v768q0 
8 5 13t13 5h107q8 0 13-5t5-13v-768h107q8 0 13-5t5-13z 
m589-71v-107q0-8-5-13t-13-5h-464q-8 0-13 5t-5 13v107q0 8 5 13t13 5h464q8 0 
13-5t5-13z m-107 286v-107q0-8-5-13t-13-5h-357q-8 0-13 5t-5 13v107q0 8 5 13t13 
5h357q8 0 13-5t5-13z m-107 285v-107q0-7-5-12t-13-6h-250q-8 0-13 6t-5 12v107q0 8 
5 13t13 5h250q8 0 13-5t5-13z m-107 286v-107q0-8-5-13t-13-5h-143q-8 [...]
+
+<glyph glyph-name="sort-alt-down" unicode="&#xf161;" 
d="M679-25v-107q0-8-5-13t-13-5h-143q-8 0-13 5t-5 13v107q0 8 5 13t13 5h143q8 0 
13-5t5-13z m-268 71q0-6-6-13l-178-178q-5-5-13-5-6 0-12 5l-179 179q-8 9-4 19 4 
11 17 11h107v768q0 8 5 13t13 5h107q8 0 13-5t5-13v-768h107q8 0 13-5t5-13z m375 
215v-107q0-8-5-13t-13-5h-250q-8 0-13 5t-5 13v107q0 8 5 13t13 5h250q8 0 
13-5t5-13z m107 285v-107q0-7-5-12t-13-6h-357q-8 0-13 6t-5 12v107q0 8 5 13t13 
5h357q8 0 13-5t5-13z m107 286v-107q0-8-5-13t-13-5h-464q-8 [...]
+
 <glyph glyph-name="bitbucket" unicode="&#xf171;" d="M455 
371q4-35-28-57t-63-3q-21 9-29 32t-1 46 29 32q20 11 41 7t36-20 15-37z m62 11q-8 
60-63 92t-110 7q-35-15-56-49t-20-72q3-51 44-87t92-31q51 4 85 47t28 93z m133 
303q-11 15-31 25t-32 12-40 7q-162 26-316-1-24-4-37-7t-30-12-28-24q16-16 
42-26t41-12 49-6q127-16 250-1 35 5 50 7t40 12 42 26z 
m32-578q-4-14-9-42t-7-47-16-39-33-32q-48-27-106-40t-112-12-113 10q-25 5-45 
10t-43 15-41 25-29 34q-14 54-31 163l3 9 10 5q124-83 283-83t283 83q12-3 
13-13t-3- [...]
 
 <glyph glyph-name="linux" unicode="&#xf17c;" d="M370 621q-6-1-9-6t-4-5q-3-1-3 
2 0 7 10 9h6z m49-8q-3-1-7 4t-10 2q14 6 18-1 2-3-1-5z m-196-238q-3 
0-4-2t-2-7-3-8-6-7q-5-6 0-7 2 0 7 4t7 10q0 2 1 4t1 4 1 2 0 2v2t-1 1-1 2z 
m477-201q0 10-31 24 2 8 4 15t3 15 2 12 0 12 0 11-2 12-3 12-2 14-4 14q-5 27-26 
58t-40 42q13-11 32-47 48-90 30-155-6-22-28-23-17-2-21 10t-5 47-6 60q-5 21-11 
38t-11 25-9 14-7 8-4 4q-8 35-17 58t-17 31-13 19-8 22q-3 12 3 30t2 27-24 14q-9 
2-25 10t-20 9q-4 1-6 15t4 28 20 15q21 2 2 [...]
@@ -130,8 +162,14 @@
 
 <glyph glyph-name="fax" unicode="&#xf1ac;" d="M161 636q37 0 
63-26t26-64v-607q0-37-26-63t-63-26h-72q-36 0-63 26t-26 63v607q0 37 26 64t63 
26h72z m768-91q32-19 52-52t19-72v-428q0-59-42-101t-101-42h-482q-37 0-63 26t-26 
63v857q0 23 15 38t38 16h375q23 0 49-11t43-27l85-85q15-15 26-42t12-49v-91z 
m-411-552v71q0 8-5 13t-13 5h-71q-8 0-13-5t-5-13v-71q0-8 5-13t13-5h71q8 0 13 5t5 
13z m0 143v71q0 8-5 13t-13 5h-71q-8 0-13-5t-5-13v-71q0-8 5-13t13-5h71q8 0 13 
5t5 13z m0 143v71q0 8-5 13t-13 5h-71q-8 0-13-5 [...]
 
+<glyph glyph-name="sliders" unicode="&#xf1de;" d="M196 64v-71h-196v71h196z 
m197 72q14 0 25-11t11-25v-143q0-14-11-25t-25-11h-143q-14 0-25 11t-11 25v143q0 
15 11 25t25 11h143z m89 214v-71h-482v71h482z m-357 286v-72h-125v72h125z 
m732-572v-71h-411v71h411z m-536 643q15 0 
26-10t10-26v-142q0-15-10-25t-26-11h-142q-15 0-25 11t-11 25v142q0 15 11 26t25 
10h142z m358-286q14 0 25-10t10-25v-143q0-15-10-25t-25-11h-143q-15 0-25 11t-11 
25v143q0 14 11 25t25 10h143z m178-71v-71h-125v71h125z m0 286v-72h-482v7 [...]
+
+<glyph glyph-name="share" unicode="&#xf1e0;" d="M679 279q74 0 
126-53t52-126-52-126-126-53-127 53-52 126q0 7 1 19l-201 100q-51-48-121-48-75 
0-127 53t-52 126 52 126 127 53q70 0 121-48l201 100q-1 12-1 19 0 74 52 126t127 
53 126-53 52-126-52-126-126-53q-71 0-122 48l-201-100q1-12 1-19t-1-19l201-100q51 
48 122 48z" horiz-adv-x="857.1" />
+
 <glyph glyph-name="calc" unicode="&#xf1ec;" d="M214-7q0 29-21 50t-50 
21-51-21-21-50 21-51 51-21 50 21 21 51z m215 0q0 29-21 50t-51 21-50-21-21-50 
21-51 50-21 51 21 21 51z m-215 214q0 30-21 51t-50 21-51-21-21-51 21-50 51-21 50 
21 21 50z m429-214q0 29-21 50t-51 21-50-21-21-50 21-51 50-21 51 21 21 51z m-214 
214q0 30-21 51t-51 21-50-21-21-51 21-50 50-21 51 21 21 50z m-215 214q0 30-21 
51t-50 21-51-21-21-51 21-50 51-21 50 21 21 50z m429-214q0 30-21 51t-51 
21-50-21-21-51 21-50 50-21 51 21 21 50 [...]
 
+<glyph glyph-name="bell-off-empty" unicode="&#xf1f7;" d="M580-96q0 8-9 8-32 
0-56 24t-24 57q0 9-9 9t-9-9q0-41 29-70t69-28q9 0 9 9z m-299 265l489 424q-23 
49-74 82t-125 32q-51 0-94-17t-68-45-38-58-14-58q0-215-76-360z 
m755-105q0-29-21-50t-51-21h-250q0-59-42-101t-101-42-100 42-42 100l83 72h422q-92 
105-126 256l61 55q35-199 167-311z m48 777l47-53q4-6 
4-14t-6-12l-1045-905q-5-5-13-4t-12 6l-47 53q-4 6-4 14t6 12l104 90q-11 17-11 36 
28 24 51 49t47 67 42 89 28 115 11 145q0 84 65 157t171 89q-4 10-4 21 [...]
+
 <glyph glyph-name="toggle-off" unicode="&#xf204;" d="M643 350q0 58-23 111t-61 
91-91 61-111 23-111-23-91-61-61-91-23-111 23-111 61-91 91-61 111-23 111 23 91 
61 61 91 23 111z m428 0q0 58-22 111t-61 91-91 61-111 23h-216q67-50 
106-125t38-161-38-161-106-125h216q58 0 111 23t91 61 61 91 22 111z m72 
0q0-72-29-139t-76-113-114-77-138-28h-429q-72 0-138 28t-114 77-76 113-29 139 29 
139 76 114 114 76 138 28h429q72 0 138-28t114-76 76-114 29-139z" 
horiz-adv-x="1142.9" />
 
 <glyph glyph-name="toggle-on" unicode="&#xf205;" d="M0 350q0 73 29 139t76 114 
114 76 138 28h429q72 0 138-28t114-76 76-114 
29-139-29-139-76-113-114-77-138-28h-429q-72 0-138 28t-114 77-76 113-29 139z 
m786-286q58 0 111 23t91 61 61 91 22 111-22 111-61 91-91 61-111 
23-111-23-91-61-61-91-23-111 23-111 61-91 91-61 111-23z" horiz-adv-x="1142.9" />
diff --git a/html/image/fontello/fontello.ttf b/html/image/fontello/fontello.ttf
index 5cc022c..68203b8 100644
Binary files a/html/image/fontello/fontello.ttf and 
b/html/image/fontello/fontello.ttf differ
diff --git a/html/image/fontello/fontello.woff 
b/html/image/fontello/fontello.woff
index ed94d11..e1dd8b0 100644
Binary files a/html/image/fontello/fontello.woff and 
b/html/image/fontello/fontello.woff differ
diff --git a/html/image/fontello/fontello.woff2 
b/html/image/fontello/fontello.woff2
index 88cd730..0ae70a4 100644
Binary files a/html/image/fontello/fontello.woff2 and 
b/html/image/fontello/fontello.woff2 differ
diff --git a/html/js/scripts.js b/html/js/scripts.js
index 694f3f3..7449e66 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -3522,3 +3522,27 @@ function 
updatePeriode(p_dossier,p_exercice,p_periode_from,p_periode_to,p_last)
     new 
Ajax.Updater(p_periode_to,"ajax_misc.php",{method:"get",parameters:{op:"periode_change","gDossier":p_dossier,"exercice":exercice,field:p_periode_to,"type":"to","last":p_last}});
     remove_waiting_box();
 }
+/**
+ * 
+ * @param {string} p_domid DOM id of the span containing the padlock icon
+ * @returns none
+ */
+function toggle_lock(p_domid)
+{
+    var padlock=document.getElementById(p_domid);
+    if ( padlock == null) {
+        console.error("domid invalid");
+    }
+    var status = padlock.getAttribute("is_locked");
+    if ( status == 1 ) {
+        padlock.innerHTML="&#xe832;";
+        padlock.setAttribute("is_locked",0);
+    } else if (status == 0) {
+        padlock.innerHTML="&#xe831;";
+        padlock.setAttribute("is_locked",1);
+    } else {
+        throw "toggle_lock failed";
+    }
+        
+    
+}
\ No newline at end of file
diff --git a/include/lib/icon_action.class.php 
b/include/lib/icon_action.class.php
index 4d1135a..a23ba44 100644
--- a/include/lib/icon_action.class.php
+++ b/include/lib/icon_action.class.php
@@ -251,5 +251,31 @@ class Icon_Action
                 $p_javascript);
         return $r;
     }
-    
+    /**
+     * Display the icon of a padlock to lock or unlock element
+     * @param string $p_id DOMid 
+     * @param string $p_javascript
+     * @return htmlString
+     */
+    static function lock($p_id,$p_javascript) 
+    {
+        $lock_cur="&#xe831;";
+        $lock_next="&#xe832;";
+        
+        $r=sprintf( '<span id="%s" is_locked="1" 
onclick="toggle_lock(\'%s\');%s" class="icon smallicon">%s</span>',
+                $p_id,
+                $p_id,
+                $p_javascript, 
+                $lock_cur);
+        return $r;
+    }
+    /**
+     * Display the icon of a trashbin
+     * @param string $p_id DOMid 
+     * @param string $p_javascript
+     * @return htmlString
+     */
+    static function unlock($p_id,$p_javascript) 
+    {
+    }    
 }
diff --git a/scenario/icon_actionTest.php b/scenario/icon_actionTest.php
index c032d3e..fe9fa9c 100644
--- a/scenario/icon_actionTest.php
+++ b/scenario/icon_actionTest.php
@@ -32,6 +32,9 @@ include_once NOALYSS_INCLUDE."/lib/icon_action.class.php";
    iconon <?php echo Icon_Action::iconon(uniqid(), "alert('test')");?>
 </p>
 <p>
+   iconoff <?php echo Icon_Action::iconoff(uniqid(), "alert('test')");?>
+</p>
+<p>
    close <?php echo Icon_Action::close("close_span");?>
    <span id="close_span" class="inner_box">Close me !</span>
 </p>
@@ -67,4 +70,10 @@ include_once NOALYSS_INCLUDE."/lib/icon_action.class.php";
 </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>
\ No newline at end of file



reply via email to

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