Rev 9798 | Rev 10151 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9798 | Rev 9954 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! 0 is used for title in the menu, 01 is juste some text. |
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 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 | ||
2 | !if $wims_theme_icon=yes |
13 | !if $wims_theme_icon=yes |
3 |
|
14 | !set wims_theme_icon=$wims_theme |
4 | !endif |
15 | !endif |
5 |
|
16 | !distribute items $wims_read_parm into 1_,2_,3_,4_,5_ |
6 | !reset w_image |
17 | !reset w_image |
7 | !if " isin $1_ |
18 | !if " isin $1_ |
8 | !set w_name=!replace internal " by in $1_ |
19 | !set w_name=!replace internal " by in $1_ |
9 | !reset w_name1 |
20 | !reset w_name1 |
10 | !else |
21 | !else |
Line 13... | Line 24... | ||
13 | !set w_name=$(wims_name_$(w_name1)) $w_name2 |
24 | !set w_name=$(wims_name_$(w_name1)) $w_name2 |
14 | !if $w_name issametext |
25 | !if $w_name issametext |
15 | !set w_name=$1_ |
26 | !set w_name=$1_ |
16 | !endif |
27 | !endif |
17 | !endif |
28 | !endif |
18 | !set wims_ref_title=$6_ |
- | |
19 | !goto $2_ |
29 | !goto $2_ |
20 | :0 |
30 | :0 |
21 | $(wims_read_parm[3..-1]) |
31 | $(wims_read_parm[3..-1]) |
22 | !exit |
32 | !exit |
23 | :01 |
33 | :01 |
24 | $(wims_read_parm[3..-1]) |
34 | $(wims_read_parm[3..-1]) |
25 | !exit |
35 | !exit |
26 | :1 |
36 | :1 |
27 |
|
37 | !set 3_=!item 3 to -1 of $wims_read_parm |
28 |
|
38 | !set 3_=!nospace $3_ |
29 |
|
39 | !set wims_ref_class=$w_name1 |
30 |
|
40 | !default wims_ref_title=$w_name |
31 |
|
41 | !href $3_ $w_name |
32 |
|
42 | !reset wims_ref_class |
33 | !reset wims_ref_title |
43 | !reset wims_ref_title |
34 | !exit |
44 | !exit |
35 | :2 |
45 | :2 |
36 | !if $4_ notsametext |
46 | !if $4_ notsametext |
37 | <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a> |
47 | <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a> |
38 | !else |
48 | !else |
39 | <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
49 | <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
40 |
|
50 | !endif |
41 |
|
51 | !exit |
42 | :3 |
52 | :3 |
43 | <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
53 | <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
44 | !exit |
54 | !exit |
45 | :4 |
55 | :4 |
46 | !set wims_ref_class=$w_name1 |
56 | !set wims_ref_class=$w_name1 |
47 | !default wims_ref_title=$w_name |
57 | !default wims_ref_title=$w_name |
48 | !href target=wims_$4_ $3_ <span class="text_item">$w_name</span> |
58 | !href target=wims_$4_ $3_ <span class="text_item">$w_name</span> |
49 |
|
59 | !reset wims_ref_class |
50 |
|
60 | !reset wims_ref_title |
51 | !exit |
61 | !exit |
52 | :5 |
62 | :5 |
53 | <a href="$3_" class="$w_name1">$4_</a> |
63 | <a href="$3_" class="$w_name1">$4_</a> |
54 | !exit |
64 | !exit |
55 | :6 |
65 | :6 |
56 | !! no text (only the icon - should exist) |
66 | !! no text (only the icon - should exist) |
57 | !set 3_=!item 3 to -1 of $wims_read_parm |
67 | !set 3_=!item 3 to -1 of $wims_read_parm |
58 |
|
68 | !set 3_=!nospace $3_ |
59 |
|
69 | !set wims_ref_class=$w_name1 |
60 | !default wims_ref_title=$w_name |
70 | !default wims_ref_title=$w_name |
61 | !href $3_ |
71 | !href $3_ |
62 | !reset wims_ref_class |
72 | !reset wims_ref_class |
63 | !reset wims_ref_title |
73 | !reset wims_ref_title |
64 | !exit |
74 | !exit |
Line 72... | Line 82... | ||
72 | :8 |
82 | :8 |
73 | !set wims_ref_class=$w_name1 |
83 | !set wims_ref_class=$w_name1 |
74 | !set wims_ref_title=$w_name |
84 | !set wims_ref_title=$w_name |
75 | <span class="text_item">$w_name</span> |
85 | <span class="text_item">$w_name</span> |
76 | !exit |
86 | !exit |
77 | 87 | :9 |
|
- | 88 | !! title is the last item |
|
- | 89 | !set 3_=!item 3 to -2 of $wims_read_parm |
|
- | 90 | !set 3_=!nospace $3_ |
|
- | 91 | !set wims_ref_class=$w_name1 |
|
- | 92 | !set wims_ref_title=!item -1 of $wims_read_parm |
|
- | 93 | !href $3_ $w_name |
|
- | 94 | !reset wims_ref_class |
|
- | 95 | !reset wims_ref_title |
|
- | 96 | !exit |
|
78 | :* |
97 | :* |