Rev 18089 | Rev 18217 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7270 | bpr | 1 | !read getparm $module_init_parm wksheet |
18052 | bpr | 2 | !setdef wims_wksheet=$get_wksheet in wimshome/sessions/$wims_session/var.stat |
7270 | bpr | 3 | |
14431 | bpr | 4 | !if \ isin $parm1 |
12490 | bpr | 5 | !for p in 1 |
6 | !set parm$p=!slashsubst $(parm$p) |
||
7 | !next p |
||
23 | reyssat | 8 | !endif |
18009 | bpr | 9 | |
23 | reyssat | 10 | !set add=$parm1 |
11 | !if ? isin $add |
||
12 | !set add=!translate internal ? to , in $add |
||
13 | !set add=!item 2 of $add |
||
14 | !endif |
||
15 | !set eq== |
||
18009 | bpr | 16 | !!for exercices and tools in a class, syntax of the form numero_sheet/numero_exercise |
23 | reyssat | 17 | !if $eq notin $add and $wims_class>0 and / isin $add \ |
12490 | bpr | 18 | and $prim iswordof exercise tool |
19 | !set add=!translate internal / to $ $ in $add |
||
20 | !distribute words $add into sh,ex |
||
21 | !set l_=!record $ex of wimshome/log/classes/$wims_class/sheets/.sheet$sh |
||
18014 | bpr | 22 | !set sev=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
23 | !set sev=!line $sh+1 of $sev |
||
12490 | bpr | 24 | !distribute lines $l_ into m_,p_,a_,b_,t_,d_ |
25 | !set m_exotitle=$t_ |
||
26 | !set m_exodescription=$d_ |
||
27 | !set prompt=!item 2 to -1 of $parms |
||
28 | !default prompt=$t_ |
||
18014 | bpr | 29 | !read docu/scoreprint $sh/$ex,$sev |
12490 | bpr | 30 | !href target=wims_exo cmd=new&module=$m_&worksheet=$sh&$p_ $prompt |
31 | !exit |
||
23 | reyssat | 32 | !endif |
18057 | bpr | 33 | !set add=!replace internal &+ by & in $add |
34 | !set add=!replace internal %2F by / in $add |
||
18052 | bpr | 35 | !read getparm $add wksheet |
23 | reyssat | 36 | !set add=!translate internal & to $ $ in $add |
37 | !set n=!wordcnt $add |
||
38 | !reset nadd,lmod,lses,lcmd |
||
39 | !for i=1 to $n |
||
12490 | bpr | 40 | !set l=!word $i of $add |
41 | !set ll=!translate = to , in $l |
||
42 | !distribute items $ll into l1,l2 |
||
43 | !if $l1=cmd and $l2 iswordof intro help close |
||
44 | !set lcmd=$l2 |
||
45 | !endif |
||
46 | !if $l1=module |
||
47 | !set lmod=$l2 |
||
48 | !endif |
||
18053 | bpr | 49 | !if $l1 notwordof module cmd session worksheet wksheet |
12490 | bpr | 50 | !set nadd=$nadd $l |
51 | !endif |
||
23 | reyssat | 52 | !next i |
53 | !default lmod=home |
||
54 | !default lcmd=new |
||
18009 | bpr | 55 | !set nadd=!trim $nadd |
23 | reyssat | 56 | !set nadd=!translate internal $ $ to & in $nadd |
57 | !set prompt=!item 2 to -1 of $parms |
||
6810 | czzmrn | 58 | !default prompt=!module title_$lang $lmod |
23 | reyssat | 59 | !default prompt=!module title $lmod |
60 | |||
747 | bpr | 61 | !default prompt=$n_unknown |
23 | reyssat | 62 | |
63 | !if $prim=exercise |
||
10032 | bpr | 64 | !reset ww_ |
18009 | bpr | 65 | !if $get_wksheet!=$empty and $get_wksheet!=0 |
66 | !set ww_=&worksheet=$get_wksheet |
||
18089 | bpr | 67 | !set work=!getexoindex module=$lmod param=$nadd sheet=$get_wksheet |
18014 | bpr | 68 | !if $work!=$empty |
69 | !read docu/scoreprint $work |
||
70 | !endif |
||
10032 | bpr | 71 | !endif |
18009 | bpr | 72 | !href target=wims_exo module=$lmod&cmd=$lcmd&$nadd$ww_ $prompt |
10032 | bpr | 73 | !if $lcmd=new |
12490 | bpr | 74 | !set nadd=!replace internal &+ by & in $nadd |
75 | !set nadd=!char 2 to -1 of $nadd |
||
76 | !set sheetdata=$sheetdata\ |
||
23 | reyssat | 77 | :$lmod\ |
78 | $nadd\ |
||
79 | 10\ |
||
80 | 1\ |
||
81 | $prompt\ |
||
5378 | bpr | 82 | \ |
83 | \ |
||
84 | \ |
||
85 | module=$module&doc=$doc&block=$block&cmd=new,9\ |
||
23 | reyssat | 86 | |
12490 | bpr | 87 | !endif |
23 | reyssat | 88 | !endif |
89 | !if $prim=tool |
||
18215 | bpr | 90 | !href target=wims_tool module=$lmod&cmd=$lcmd&$nadd $prompt |
23 | reyssat | 91 | !endif |
92 | !if $prim=doc |
||
18215 | bpr | 93 | !href target=wims_doc module=$lmod&cmd=$lcmd&$nadd $prompt xxxx |
23 | reyssat | 94 | !endif |
95 | !if $prim=example |
||
18215 | bpr | 96 | !href target=wims_example module=$lmod&cmd=$lcmd&$nadd $prompt |
23 | reyssat | 97 | !endif |
98 | !if $prim=help |
||
18215 | bpr | 99 | !href target=wims_help module=$lmod&cmd=$lcmd&$nadd $prompt |
23 | reyssat | 100 | !endif |
101 | !if $prim=adm |
||
12490 | bpr | 102 | !href module=$lmod&cmd=$lcmd$nadd $prompt |
23 | reyssat | 103 | !endif |
18009 | bpr | 104 | !if $prim=glose |
105 | !set lcmd=reply |
||
106 | !set nadd=!replace internal & by &special_parm= in $nadd |
||
107 | !href module=adm/tool/glossary&cmd=$lcmd$nadd&job=main prompt |
||
108 | !endif |