Subversion Repositories wimsdev

Rev

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

  1. !if $wims_read_parm=help
  2.  !read help/$lang/special/tooltip.phtml
  3.  !exit
  4. !endif
  5.  
  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=
  18. !else
  19.   !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
  20. !endif
  21. !set option=!trim $option
  22. !set option=!declosing $option
  23. !if $option=$empty
  24.   !set option=FONTSIZE, '12pt', ABOVE, 'true'
  25. !endif
  26. !if $parm1 != $empty
  27.  !set text=!replace internal ' by \' in $text
  28. !set text=!replace internal " by in $text
  29. !set text=!replace internal &#59; by ; in $text
  30. !set text=!replace internal &#44; by , in $text
  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
  34. !set text=!replace internal $\
  35. $ by  $  in  $text
  36. !set special_out=$special_out\
  37. <span class="tooltip"><a onmouseover="Tip('$text', $option)" onmouseout="UnTip()">$parm1</a></span>
  38. !else
  39. !set special_out=$text
  40. !endif
  41. $special_out
  42.