Rev 4298 | Go to most recent revision | Details | 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 |
||
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 |
||
12 | !else |
||
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 |
||
16 | !endif |
||
17 | maxexo=!recordcnt $file |
||
18 | !bound exo between 1 and $maxexo default $empty |
||
19 | !if $sh!=$empty and $exo!=$empty |
||
20 | requires=!getscorerequire sheet=$sh |
||
21 | means=!getscoremean sheet=$sh |
||
22 | scores=!getscore sheet=$sh |
||
23 | !readproc adm/mkdepsheet.proc $sh |
||
24 | dep=!row $exo of $deps |
||
25 | dep=!trim $dep |
||
26 | !if $dep!=$empty |
||
27 | !exit |
||
28 | !endif |
||
29 | d=!record $exo of $file |
||
30 | !distribute line $d into r1,r2,r3 |
||
31 | !restart module=$r1&cmd=new&worksheet=$(directworksheet[1])&$r2 |
||
32 | !endif |