Rev 10976 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10976 | Rev 12973 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !if $wims_read_parm=help |
1 | !if $wims_read_parm=help |
2 | !read help/$lang/special/tooltip.phtml |
2 | !read help/$lang/special/tooltip.phtml |
3 | !exit |
3 | !exit |
4 | !endif |
4 | !endif |
5 | 5 | ||
6 | !set parms=$wims_read_parm |
6 | !set parms=$wims_read_parm |
7 | !if $parms issametext |
7 | !if $parms issametext |
8 |
|
8 | !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script> |
9 | $special_out |
9 | $special_out |
10 | !exit |
10 | !exit |
11 | !endif |
11 | !endif |
- | 12 | !set parms=!slashsubst $parms |
|
- | 13 | !set parmscnt=!itemcnt $parms |
|
12 | !set parm1=!item 1 of $parms |
14 | !set parm1=!item 1 of $parms |
13 | !set text=!item 3 to -1 of $parms |
15 | !set text=!item 3 to -1 of $parms |
14 | !if $text=$empty |
16 | !if $text=$empty |
15 | !set text=!item 2 of $parms |
17 | !set text=!item 2 of $parms |
16 | !else |
18 | !else |
17 | !set option=!item 2 of $parms |
19 | !set option=!item 2 of $parms |
18 | !endif |
20 | !endif |
19 | !if nojs iswordof $option |
21 | !if nojs iswordof $option |
20 | !set option=!replace internal nojs by in $option |
22 | !set option=!replace internal nojs by in $option |
21 | !set special_out= |
23 | !set special_out= |
22 | !else |
- | |
23 | !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script> |
- | |
24 | !endif |
24 | !endif |
25 | - | ||
26 | !set option=!trim $option |
25 | !set option=!trim $option |
27 | !set option=!declosing $option |
26 | !set option=!declosing $option |
28 | !if |
27 | !if $parm1 = $empty |
29 | !set |
28 | !set special_out=$text |
30 | ! |
29 | !goto end |
31 | ! |
30 | !else |
32 | !set |
31 | !set text=!replace internal ; by ; in $text |
33 |
|
32 | !set text=!replace internal , by , in $text |
34 |
|
33 | !set text=!replace internal $\ |
- | 34 | $ by $ in $text |
|
- | 35 | !if DURATION notin $option |
|
- | 36 | !set option_=!lowercase $option |
|
- | 37 | !!for small compatibility : use the old tooltip without option if no DURATION |
|
- | 38 | !! the new option will be the css option (very small use with the old tooltip) |
|
- | 39 | !if option!=$empty and $option=$option_ |
|
- | 40 | !set class=!getopt class in $option |
|
35 |
|
41 | !set style=!getopt style in $option |
- | 42 | !if $style!=$empty |
|
- | 43 | !set style=$ style="$style" |
|
- | 44 | !endif |
|
- | 45 | !endif |
|
36 |
|
46 | !set test_div=!detag $text |
- | 47 | !if $test_div=$text |
|
- | 48 | !set div0=span |
|
- | 49 | !else |
|
- | 50 | !set div0=div |
|
- | 51 | !endif |
|
- | 52 | !set special_out=$special_out\ |
|
- | 53 | <$div0 class="wims_tooltip">$parm1\ |
|
- | 54 | <$div0 class="wims_tooltiptext $class" $style>$text</$div0>\ |
|
- | 55 | </$div0> |
|
- | 56 | !else |
|
37 |
|
57 | !set text=!replace internal ' by \' in $text |
38 |
|
58 | !set text=!replace internal " by in $text |
39 | !set text=!replace internal $\ |
59 | !set text=!replace internal $\ |
40 | $ by $ in $text |
60 | $ by $ in $text |
- | 61 | !set special_out=<script type="text/javascript" src="scripts/js/wz_tooltip.js"></script> |
|
41 | !set special_out=$special_out\ |
62 | !set special_out=$special_out\ |
42 |
|
63 | <span class="<tooltip"><a onmouseover="Tip('$text', $option)" onmouseout="UnTip()">$parm1</a></span> |
43 | |
64 | !endif |
44 | !set special_out=$text |
- | |
45 |
|
65 | !endif |
- | 66 | :end |
|
46 | $special_out |
67 | $special_out |
- | 68 | ||
- | 69 | !reset special_out |