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, |
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 |
3 | !! when executing an exercise in a sheet so ... copy paste for the moment |
4 | !! must be the same as scripts/adm/oneitem.phtml |
4 | !! must be the same as scripts/adm/oneitem.phtml |
5 | !!##!changeto adm/oneitem.phtml $wims_read_parm |
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 | ||
6 | !if $wims_theme_icon=yes |
13 | !if $wims_theme_icon=yes |
7 | !set |
14 | !set wims_theme_icon=$wims_theme |
8 | !endif |
15 | !endif |
9 | !distribute items $wims_read_parm into |
16 | !distribute items $wims_read_parm into 1_,2_,3_,4_,5_ |
10 | !reset w_image |
17 | !reset w_image |
11 | !if " isin $1_ |
18 | !if " isin $1_ |
12 | !set w_name=!replace internal " by in $1_ |
19 | !set w_name=!replace internal " by in $1_ |
13 | !reset w_name1 |
20 | !reset w_name1 |
14 | !else |
21 | !else |
Line 17... | Line 24... | ||
17 | !set w_name=$(wims_name_$(w_name1)) $w_name2 |
24 | !set w_name=$(wims_name_$(w_name1)) $w_name2 |
18 | !if $w_name issametext |
25 | !if $w_name issametext |
19 | !set w_name=$1_ |
26 | !set w_name=$1_ |
20 | !endif |
27 | !endif |
21 | !endif |
28 | !endif |
22 | !set wims_ref_title=$6_ |
- | |
23 | !goto $2_ |
29 | !goto $2_ |
24 | :0 |
30 | :0 |
25 | $(wims_read_parm[3..-1]) |
31 | $(wims_read_parm[3..-1]) |
26 | !exit |
32 | !exit |
27 | :01 |
33 | :01 |
28 | $(wims_read_parm[3..-1]) |
34 | $(wims_read_parm[3..-1]) |
29 | !exit |
35 | !exit |
30 | :1 |
36 | :1 |
31 | !set 3_=!item 3 to -1 of $wims_read_parm |
37 | !set 3_=!item 3 to -1 of $wims_read_parm |
32 | !set 3_=!nospace $3_ |
38 | !set 3_=!nospace $3_ |
33 | !set wims_ref_class=$w_name1 |
39 | !set wims_ref_class=$w_name1 |
34 | !default wims_ref_title=$w_name |
40 | !default wims_ref_title=$w_name |
35 | !href $3_ $w_name |
41 | !href $3_ $w_name |
36 | !reset wims_ref_class |
42 | !reset wims_ref_class |
37 | !reset wims_ref_title |
43 | !reset wims_ref_title |
38 | !exit |
44 | !exit |
39 | :2 |
45 | :2 |
40 | !if $4_ notsametext |
46 | !if $4_ notsametext |
41 | <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> |
42 | !else |
48 | !else |
43 | <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> |
44 | !endif |
50 | !endif |
45 | !exit |
51 | !exit |
46 | :3 |
52 | :3 |
47 | <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> |
48 | !exit |
54 | !exit |
49 | :4 |
55 | :4 |
50 | !set wims_ref_class=$w_name1 |
56 | !set wims_ref_class=$w_name1 |
51 | !default wims_ref_title=$w_name |
57 | !default wims_ref_title=$w_name |
52 | !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> |
53 | !reset wims_ref_class |
59 | !reset wims_ref_class |
54 | !reset wims_ref_title |
60 | !reset wims_ref_title |
55 | !exit |
61 | !exit |
56 | :5 |
62 | :5 |
57 | <a href="$3_" class="$w_name1">$4_</a> |
63 | <a href="$3_" class="$w_name1">$4_</a> |
58 | !exit |
64 | !exit |
59 | :6 |
65 | :6 |
60 | !! no text (only the icon - should exist) |
66 | !! no text (only the icon - should exist) |
61 | !set 3_=!item 3 to -1 of $wims_read_parm |
67 | !set 3_=!item 3 to -1 of $wims_read_parm |
62 | !set 3_=!nospace $3_ |
68 | !set 3_=!nospace $3_ |
63 | !set wims_ref_class=$w_name1 |
69 | !set wims_ref_class=$w_name1 |
64 | !default wims_ref_title=$w_name |
70 | !default wims_ref_title=$w_name |
65 | !href $3_ |
71 | !href $3_ |
66 | !reset wims_ref_class |
72 | !reset wims_ref_class |
67 | !reset wims_ref_title |
73 | !reset wims_ref_title |
68 | !exit |
74 | !exit |
Line 76... | Line 82... | ||
76 | :8 |
82 | :8 |
77 | !set wims_ref_class=$w_name1 |
83 | !set wims_ref_class=$w_name1 |
78 | !set wims_ref_title=$w_name |
84 | !set wims_ref_title=$w_name |
79 | <span class="text_item">$w_name</span> |
85 | <span class="text_item">$w_name</span> |
80 | !exit |
86 | !exit |
81 | 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 |
|
82 | :* |
97 | :* |