Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2940 guerimand 1
#### !language independant
2
###
3
### this job allow to launch series of exercices with menu items link
4
 
5
directworksheet=!replace internal . by , in $directworksheet
6
!distribute item $directworksheet into sh,exo
7
!if P isin $sh
12501 bpr 8
  sh=!char 2 to -1 of $sh
9
  don=!record 0 of wimshome/$wims_sesdir/.sheets
10
  don=!line $sh of $don
11
  file=wimshome/public_html/bases/sheet/$don.def
2940 guerimand 12
!else
12501 bpr 13
  maxsh=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
14
  !bound sh between 1 and $maxsh default $empty
15
  file=wimshome/log/classes/$wims_class/sheets/.sheet$sh
2940 guerimand 16
!endif
4298 obado 17
 
2940 guerimand 18
maxexo=!recordcnt $file
4298 obado 19
!setdef wims_sheetmax=$maxexo in wimshome/sessions/$wims_session/var.stat
20
 
2940 guerimand 21
!bound exo between 1 and $maxexo default $empty
22
!if $sh!=$empty and $exo!=$empty
12501 bpr 23
  requires=!getscorerequire sheet=$sh
24
  means=!getscoremean sheet=$sh
25
  scores=!getscore sheet=$sh
26
  !readproc adm/mkdepsheet.proc $sh
27
  dep=!row $exo of $deps
28
  dep=!trim $dep
29
  !if $dep!=$empty
30
    !exit
31
  !endif
32
  d=!record $exo of $file
33
  !distribute line $d into r1,r2,r3
34
  !restart module=$r1&cmd=new&worksheet=$(directworksheet[1])&$r2
2940 guerimand 35
!endif