Subversion Repositories wimsdev

Rev

Rev 12973 | Details | Compare with Previous | Last modification | View Log | RSS feed

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