Subversion Repositories wimsdev

Rev

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

  1. !! 0 is used for title in the menu, 01 is juste some text.
  2. !! the next line doesn't work from everywhere (for example,
  3. !! when executing an exercise in a sheet so ... copy paste for the moment
  4. !! must be the same as scripts/adm/oneitem.phtml
  5. !!##!changeto adm/oneitem.phtml $wims_read_parm
  6.  
  7. !! be careful : if 3_ (url) contains a comma, there should be a confusion
  8. !! for types 2, 3, 4, 5, 7
  9. !! to have no bug, the url part (3_) should be coded, for example , -> %2C
  10. !! it should have been better to put the url always in last position.
  11. !! it would be the only way to be sure and to have no surprise.
  12.  
  13. !if $wims_theme_icon=yes
  14.  !set wims_theme_icon=$wims_theme
  15. !endif
  16. !distribute items $wims_read_parm into 1_,2_,3_,4_,5_
  17. !reset w_image
  18. !if " isin $1_
  19.  !set w_name=!replace internal " by in $1_
  20.  !reset w_name1
  21. !else
  22.  !set w_name1=!word 1 of $1_
  23.  !set w_name2=!word 2 to -1 of $1_
  24.  !set w_name=$(wims_name_$(w_name1)) $w_name2
  25.  !if $w_name issametext
  26.    !set w_name=$1_
  27.  !endif
  28. !endif
  29. !goto $2_
  30. :0
  31. $(wims_read_parm[3..-1])
  32. !exit
  33. :01
  34. $(wims_read_parm[3..-1])
  35. !exit
  36. :1
  37. !set 3_=!item 3 to -1 of $wims_read_parm
  38. !set 3_=!nospace $3_
  39. !set wims_ref_class=$w_name1
  40. !default wims_ref_title=$w_name
  41. !href $3_ $w_name
  42. !reset wims_ref_class wims_ref_title
  43. !exit
  44. :2
  45. !if $4_ notsametext
  46.  <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a>
  47. !else
  48.  <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a>
  49. !endif
  50. !exit
  51. :3
  52. <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a>
  53. !exit
  54. :4
  55. !set wims_ref_class=$w_name1
  56. !default wims_ref_title=$w_name
  57. !href target=wims_$4_ $3_ <span class="text_item">$w_name</span>
  58. !reset wims_ref_class wims_ref_title
  59. !exit
  60. :5
  61. <a href="$3_" class="$w_name1">$4_</a>
  62. !exit
  63. :6
  64. !! no text (only the icon - should exist)
  65. !set 3_=!item 3 to -1 of $wims_read_parm
  66. !set 3_=!nospace $3_
  67. !set wims_ref_class=$w_name1
  68. !default wims_ref_title=$w_name
  69. !href $3_ &nbsp;
  70. !reset wims_ref_class wims_ref_title
  71. !exit
  72. :7
  73. !set wims_ref_class=wims_button_feedback
  74. !default wims_ref_title=$w_name
  75. !href target=wims_$4_ $3_ $w_name
  76. !reset wims_ref_class wims_ref_title
  77. !exit
  78. :8
  79. <span class="text_item $wims_ref_class">$w_name</span>
  80. !reset wims_ref_class
  81. !exit
  82. :9
  83. !! title is the last item
  84. !set 3_=!item 3 to -2 of $wims_read_parm
  85. !set 3_=!nospace $3_
  86. !set wims_ref_class=$w_name1
  87. !set wims_ref_title=!item -1 of $wims_read_parm
  88. !href $3_ $w_name
  89. !reset wims_ref_class wims_ref_title
  90. !exit
  91. :*
  92.