Rev 6200 | Rev 9798 | Go to most recent revision | 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. |
9736 | bpr | 2 | !! the next line doesn't work from everywhere (for example, |
1337 | bpr | 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 |
||
1364 | bpr | 6 | !if $wims_theme_icon=yes |
7 | !set wims_theme_icon=$wims_theme |
||
1337 | bpr | 8 | !endif |
6200 | bpr | 9 | !distribute items $wims_read_parm into 1_,2_,3_,4_,5_ |
1337 | bpr | 10 | !reset w_image |
11 | !if " isin $1_ |
||
12 | !set w_name=!replace internal " by in $1_ |
||
5236 | bpr | 13 | !reset w_name1 |
1337 | bpr | 14 | !else |
15 | !set w_name1=!word 1 of $1_ |
||
16 | !set w_name2=!word 2 to -1 of $1_ |
||
17 | !set w_name=$(wims_name_$(w_name1)) $w_name2 |
||
1390 | bpr | 18 | !if $w_name issametext |
19 | !set w_name=$1_ |
||
20 | !endif |
||
1337 | bpr | 21 | !endif |
22 | !goto $2_ |
||
23 | :0 |
||
24 | $(wims_read_parm[3..-1]) |
||
25 | !exit |
||
6200 | bpr | 26 | :01 |
27 | $(wims_read_parm[3..-1]) |
||
28 | !exit |
||
1337 | bpr | 29 | :1 |
30 | !set 3_=!item 3 to -1 of $wims_read_parm |
||
31 | !set 3_=!nospace $3_ |
||
1364 | bpr | 32 | !set wims_ref_class=$w_name1 |
2747 | bpr | 33 | !set wims_ref_title=$w_name |
1364 | bpr | 34 | !href $3_ $w_name |
2522 | bpr | 35 | !reset wims_ref_class |
1337 | bpr | 36 | !exit |
37 | :2 |
||
38 | !if $4_ notsametext |
||
1364 | bpr | 39 | <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 40 | !else |
1390 | bpr | 41 | <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 42 | !endif |
43 | !exit |
||
44 | :3 |
||
1390 | bpr | 45 | <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 46 | !exit |
47 | :4 |
||
3554 | bpr | 48 | !set wims_ref_class=$w_name1 |
2747 | bpr | 49 | !set wims_ref_title=$w_name |
1364 | bpr | 50 | !href target=wims_$4_ $3_ <span class="text_item">$w_name</span> |
2522 | bpr | 51 | !reset wims_ref_class |
1337 | bpr | 52 | !exit |
2233 | bpr | 53 | :5 |
54 | <a href="$3_" class="$w_name1">$4_</a> |
||
55 | !exit |
||
3554 | bpr | 56 | :6 |
57 | !! no text (only the icon - should exist) |
||
58 | !set 3_=!item 3 to -1 of $wims_read_parm |
||
59 | !set 3_=!nospace $3_ |
||
60 | !set wims_ref_class=$w_name1 |
||
61 | !set wims_ref_title=$w_name |
||
62 | !href $3_ |
||
63 | !reset wims_ref_class |
||
64 | !exit |
||
4519 | bpr | 65 | :7 |
66 | !set wims_ref_class=wims_button_feedback |
||
4424 | bpr | 67 | !set wims_ref_title=$w_name |
4519 | bpr | 68 | !href target=wims_$4_ $3_ $w_name |
4424 | bpr | 69 | !reset wims_ref_class |
70 | !exit |
||
9736 | bpr | 71 | :8 |
72 | <span class="text_item">$w_name</span> |
||
73 | !exit |
||
74 | |||
75 | :* |