Subversion Repositories wimsdev

Rev

Rev 12501 | 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
 
2940 guerimand 20
!bound exo between 1 and $maxexo default $empty
21
!if $sh!=$empty and $exo!=$empty
12501 bpr 22
  requires=!getscorerequire sheet=$sh
23
  means=!getscoremean sheet=$sh
24
  scores=!getscore sheet=$sh
25
  !readproc adm/mkdepsheet.proc $sh
26
  dep=!row $exo of $deps
27
  dep=!trim $dep
28
  !if $dep!=$empty
29
    !exit
30
  !endif
31
  d=!record $exo of $file
32
  !distribute line $d into r1,r2,r3
33
  !restart module=$r1&cmd=new&worksheet=$(directworksheet[1])&$r2
2940 guerimand 34
!endif