Rev 9736 | Rev 9954 | 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 |
9798 | bpr | 9 | !distribute items $wims_read_parm into 1_,2_,3_,4_,5_,6_ |
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 |
9798 | bpr | 22 | !set wims_ref_title=$6_ |
1337 | bpr | 23 | !goto $2_ |
24 | :0 |
||
25 | $(wims_read_parm[3..-1]) |
||
26 | !exit |
||
6200 | bpr | 27 | :01 |
28 | $(wims_read_parm[3..-1]) |
||
29 | !exit |
||
1337 | bpr | 30 | :1 |
31 | !set 3_=!item 3 to -1 of $wims_read_parm |
||
32 | !set 3_=!nospace $3_ |
||
1364 | bpr | 33 | !set wims_ref_class=$w_name1 |
9798 | bpr | 34 | !default wims_ref_title=$w_name |
1364 | bpr | 35 | !href $3_ $w_name |
2522 | bpr | 36 | !reset wims_ref_class |
9798 | bpr | 37 | !reset wims_ref_title |
1337 | bpr | 38 | !exit |
39 | :2 |
||
40 | !if $4_ notsametext |
||
1364 | bpr | 41 | <a href="$3_" target="wims_$4_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 42 | !else |
1390 | bpr | 43 | <a href="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 44 | !endif |
45 | !exit |
||
46 | :3 |
||
1390 | bpr | 47 | <a href="#" onclick="$3_" class="$w_name1"><span class="text_item">$w_name</span></a> |
1337 | bpr | 48 | !exit |
49 | :4 |
||
3554 | bpr | 50 | !set wims_ref_class=$w_name1 |
9798 | bpr | 51 | !default wims_ref_title=$w_name |
1364 | bpr | 52 | !href target=wims_$4_ $3_ <span class="text_item">$w_name</span> |
2522 | bpr | 53 | !reset wims_ref_class |
9798 | bpr | 54 | !reset wims_ref_title |
1337 | bpr | 55 | !exit |
2233 | bpr | 56 | :5 |
57 | <a href="$3_" class="$w_name1">$4_</a> |
||
58 | !exit |
||
3554 | bpr | 59 | :6 |
60 | !! no text (only the icon - should exist) |
||
61 | !set 3_=!item 3 to -1 of $wims_read_parm |
||
62 | !set 3_=!nospace $3_ |
||
63 | !set wims_ref_class=$w_name1 |
||
9798 | bpr | 64 | !default wims_ref_title=$w_name |
3554 | bpr | 65 | !href $3_ |
66 | !reset wims_ref_class |
||
9798 | bpr | 67 | !reset wims_ref_title |
3554 | bpr | 68 | !exit |
4519 | bpr | 69 | :7 |
70 | !set wims_ref_class=wims_button_feedback |
||
9798 | bpr | 71 | !default wims_ref_title=$w_name |
4519 | bpr | 72 | !href target=wims_$4_ $3_ $w_name |
4424 | bpr | 73 | !reset wims_ref_class |
9798 | bpr | 74 | !reset wims_ref_title |
4424 | bpr | 75 | !exit |
9736 | bpr | 76 | :8 |
9798 | bpr | 77 | !set wims_ref_class=$w_name1 |
78 | !set wims_ref_title=$w_name |
||
9736 | bpr | 79 | <span class="text_item">$w_name</span> |
80 | !exit |
||
81 | |||
82 | :* |