Subversion Repositories wimsdev

Rev

Rev 6431 | Rev 12489 | 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
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
9675 guerimand 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
19
 !ifval $sheetcnt=0
20
  error=no_sheet
21
  !exit
22
 !endif
5215 guerimand 23
 !bound picksheet within $lnumsheet default $(lnumsheet[1])
5205 guerimand 24
 !exit
25
!endif
26
 
27
!if $step=1
5215 guerimand 28
 !bound picksheet within $lnumsheet default 0
5205 guerimand 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
5211 guerimand 37
  update_content=module=$dir&$iniparm&cmd=new,$note
5205 guerimand 38
 !else
39
  update_content=module=$dir&$iniparm,$note
40
 !endif
41
 sheet=$picksheet
42
 !read adm/class/update.exo
43
 title=!module title $dir
44
 desc=!module description $dir
45
!endif