Subversion Repositories wimsdev

Rev

Rev 20 | Rev 201 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
 
2
!if \ isin $parm1
3
 !for p in 1
4
  !set parm$p=!slashsubst $(parm$p)
5
 !next p
6
!endif
7
!set add=$parm1
8
!if ? isin $add
9
  !set add=!translate internal ? to , in $add
10
  !set add=!item 2 of $add
11
!endif
12
!set eq==
13
!if $eq notin $add and $wims_class>0 and / isin $add \
14
        and $prim iswordof exercise tool
15
 !set add=!translate internal / to $ $ in $add
16
 !distribute words $add into sh_,ex_
17
 !set l_=!record $ex_ of wimshome/log/classes/$wims_class/sheets/.sheet$sh_
18
 !distribute lines $l_ into m_,p_,a_,b_,t_,d_
19
 !set m_exotitle=$t_
20
 !set m_exodescription=$d_
21
 !set prompt=!item 2 to -1 of $parms
22
 !default prompt=$t_
23
 !href cmd=new&module=$m_&worksheet=$sh_&$p_ $prompt
24
 !exit
25
!endif
26
!set add=!translate internal & to $ $ in $add
27
!set n=!wordcnt $add
28
!reset nadd,lmod,lses,lcmd
29
!for i=1 to $n
30
 !set l=!word $i of $add
31
 !set ll=!translate = to , in $l
32
 !distribute items $ll into l1,l2
33
 !if $l1=cmd and $l2 iswordof intro help close
34
    !set lcmd=$l2
35
 !endif
36
 !if $l1=module
37
   !set lmod=$l2
38
 !endif
39
 !if $l1 notwordof module cmd session
40
   !set nadd=$nadd $l
41
 !endif
42
!next i
43
!default lmod=home
44
!default lcmd=new
45
!set nadd=!translate internal $ $ to & in $nadd
46
!set prompt=!item 2 to -1 of $parms
47
!default prompt=!module title $lmod
48
 
49
!default prompt=Unknown activity
50
 
51
!href module=$lmod&cmd=$lcmd$nadd $prompt
52