Rev 12489 | Rev 13567 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5205 | guerimand | 1 | !! add help to a series of exercise of a sheet |
2 | !! |
||
3 | |||
4 | !default step=0 |
||
5 | !default picksheet=1 |
||
6 | !bound note between 0 and 10 default 10 |
||
7 | |||
8 | sheets= |
||
9 | !for i=1 to $sheettot |
||
12489 | bpr | 10 | sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets |
11 | !distribute lines $sh into a_,t_,title |
||
12 | nb=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$i |
||
13 | sheets=!append line $i,$nb,$title to $sheets |
||
5205 | guerimand | 14 | !next i |
15 | sheetcnt=!linecnt $sheets |
||
5215 | guerimand | 16 | lnumsheet=!column 1 of $sheets |
5205 | guerimand | 17 | |
18 | !if $step=0 |
||
12489 | bpr | 19 | !ifval $sheetcnt=0 |
20 | error=no_sheet |
||
21 | !exit |
||
22 | !endif |
||
23 | !bound picksheet within $lnumsheet default $(lnumsheet[1]) |
||
5205 | guerimand | 24 | !exit |
25 | !endif |
||
26 | |||
27 | !if $step=1 |
||
12489 | bpr | 28 | !bound picksheet within $lnumsheet default 0 |
29 | !bound exo between 1 and $nb default 0 |
||
30 | !ifval $exo*$picksheet=0 |
||
31 | error=bad_exo |
||
32 | !exit |
||
33 | !endif |
||
34 | update_field=9 |
||
35 | t=cmd=new |
||
36 | !if $t notin $iniparm |
||
37 | update_content=module=$dir&$iniparm&cmd=new,$note |
||
38 | !else |
||
39 | update_content=module=$dir&$iniparm,$note |
||
40 | !endif |
||
41 | sheet=$picksheet |
||
42 | !read adm/class/update.exo |
||
12595 | bpr | 43 | !if $dir!=adm/tool/glossary |
44 | title=!module title $dir |
||
45 | desc=!module description $dir |
||
46 | !else |
||
47 | !set gl=!getopt gl in $iniparm |
||
48 | title=!record $gl of wimshome/log/classes/$wims_class/tool/.glossaryindex |
||
49 | title=!line 2 of $title |
||
50 | !endif |
||
5205 | guerimand | 51 | !endif |