Subversion Repositories wimsdev

Rev

Rev 4429 | Rev 10976 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
67 bpr 1
!if $wims_read_parm=help
3298 bpr 2
 !read help/$lang/special/tooltip.phtml
2071 zjchen 3
 !exit
67 bpr 4
!endif
5
 
756 bpr 6
!set parms=$wims_read_parm
7
!if $parms issametext
8
   !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
9
   $special_out
10
!exit
11
!endif
12
!set parm1=!item 1 of $parms
13
!set text=!item 3 to -1 of $parms
14
!set option=!item  2 of $parms
15
!if nojs iswordof $option
16
  !set option=!replace internal nojs by in $option
17
  !set special_out=
67 bpr 18
!else
7680 bpr 19
  !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
67 bpr 20
!endif
756 bpr 21
!set option=!trim $option
22
!set option=!declosing $option
67 bpr 23
!if $option=$empty
756 bpr 24
  !set option=FONTSIZE, '12pt', ABOVE, 'true'
67 bpr 25
!endif
756 bpr 26
!if $parm1 != $empty
421 bpr 27
 !set text=!replace internal ' by \' in $text
3655 bpr 28
 !set text=!replace internal " by in $text
4429 bpr 29
 !set text=!replace internal &#59; by ; in $text
30
 !set text=!replace internal &#44; by , in $text
3591 bpr 31
!! !set text=!replace internal " by &#quot; in $text
32
!! !set text=!replace internal < by &#lt; in $text
33
!! !set text=!replace internal > by &#gt; in $text
756 bpr 34
 !set text=!replace internal $\
35
$ by  $  in  $text
36
 !set special_out=$special_out\
3591 bpr 37
 <span class="tooltip"><a onmouseover="Tip('$text', $option)" onmouseout="UnTip()">$parm1</a></span>
7680 bpr 38
 !else
756 bpr 39
 !set special_out=$text
40
 !endif
67 bpr 41
$special_out