Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
6200 bpr 1
!! 0 is used for title in the menu, 01 is juste some text.
9954 bpr 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 html/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
 
1364 bpr 13
!if $wims_theme_icon=yes
9954 bpr 14
  !set wims_theme_icon=$wims_theme
1255 bpr 15
!endif
9954 bpr 16
!distribute items $wims_read_parm into 1_,2_,3_,4_,5_
1255 bpr 17
!reset w_image
1193 bpr 18
!if " isin $1_
19
  !set w_name=!replace internal " by in $1_
5236 bpr 20
  !reset w_name1
1193 bpr 21
!else
1293 bpr 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
1390 bpr 25
  !if $w_name issametext
26
    !set w_name=$1_
27
  !endif
1193 bpr 28
!endif
16 reyssat 29
!goto $2_
30
:0
31
 $(wims_read_parm[3..-1])
17665 bpr 32
!exit
6200 bpr 33
:01
34
 $(wims_read_parm[3..-1])
35
 !exit
16 reyssat 36
:1
37
 !set 3_=!item 3 to -1 of $wims_read_parm
38
 !set 3_=!nospace $3_
1364 bpr 39
 !set wims_ref_class=$w_name1
11200 bpr 40
 !default wims_ref_title=$(wims_name_title_$1_)
15704 obado 41
 !!default wims_ref_title=!detag $w_name
13171 obado 42
 !href $3_ <span>$w_name</span>
10151 bpr 43
 !reset wims_ref_class wims_ref_title
16 reyssat 44
 !exit
45
:2
1239 bpr 46
 !if $4_ notsametext
1364 bpr 47
  <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a>
1239 bpr 48
 !else
1390 bpr 49
  <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a>
1239 bpr 50
 !endif
16 reyssat 51
 !exit
52
:3
1390 bpr 53
 <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a>
16 reyssat 54
 !exit
55
:4
13171 obado 56
  !!open in a new window (target=wims_$4_)
57
  !set wims_ref_class=$w_name1
58
  !default wims_ref_title=$(wims_name_title_$1_)
15704 obado 59
  !!default wims_ref_title=$w_name
13171 obado 60
  !href target=wims_$4_ $3_ <span class="text_item">$w_name</span>
61
  !reset wims_ref_class wims_ref_title
62
  !exit
2233 bpr 63
:5
64
 <a href="$3_" class="$w_name1">$4_</a>
65
 !exit
3554 bpr 66
:6
67
!! no text (only the icon - should exist)
68
 !set 3_=!item 3 to -1 of $wims_read_parm
69
 !set 3_=!nospace $3_
70
 !set wims_ref_class=$w_name1
15704 obado 71
 !!default wims_ref_title=$w_name
11741 bpr 72
 !href $3_ <span class="show-for-sr">$w_name</span>
10151 bpr 73
 !reset wims_ref_class wims_ref_title
3554 bpr 74
 !exit
4528 bpr 75
:7
76
 !set wims_ref_class=wims_button_feedback
11796 bpr 77
 !default wims_ref_title=$(wims_name_title_$1_)
15704 obado 78
 !!default wims_ref_title=$w_name
14709 obado 79
 !href target=wims_$4_ $3_ <span>$w_name</span>
10151 bpr 80
 !reset wims_ref_class wims_ref_title
4528 bpr 81
 !exit
9736 bpr 82
:8
10642 obado 83
 <span class="text_item $wims_ref_class">$w_name</span>
84
 !reset wims_ref_class
9736 bpr 85
 !exit
9954 bpr 86
:9
87
!! title is the last item
88
 !set 3_=!item 3 to -2 of $wims_read_parm
89
 !set 3_=!nospace $3_
90
 !set wims_ref_class=$w_name1
91
 !set wims_ref_title=!item -1 of $wims_read_parm
92
 !href $3_ $w_name
10151 bpr 93
 !reset wims_ref_class wims_ref_title
9954 bpr 94
 !exit
9736 bpr 95
:*