Subversion Repositories wimsdev

Rev

Rev 12595 | Rev 14646 | 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
13567 bpr 29
  !set nbexo=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$picksheet
30
  !bound exo between 1 and $nbexo default 0
12489 bpr 31
  !ifval $exo*$picksheet=0
32
    error=bad_exo
33
    !exit
34
  !endif
35
  update_field=9
36
  t=cmd=new
37
  !if $t notin $iniparm
38
    update_content=module=$dir&$iniparm&cmd=new,$note
39
  !else
40
    update_content=module=$dir&$iniparm,$note
41
  !endif
42
  sheet=$picksheet
43
  !read adm/class/update.exo
12595 bpr 44
  !if $dir!=adm/tool/glossary
45
    title=!module title $dir
46
    desc=!module description $dir
47
  !else
48
    !set gl=!getopt gl in $iniparm
49
    title=!record $gl of wimshome/log/classes/$wims_class/tool/.glossaryindex
50
    title=!line 2 of $title
51
  !endif
5205 guerimand 52
!endif