Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | # Variable calculations should be done in this file. |
2 | # It is read and interpreted by wims for all valid calls to the module. |
||
3 | |||
4 | !if $class_expiration=$empty |
||
5 | !defread wimshome/log/classes/$wims_class/.def |
||
6 | !endif |
||
7 | !if $class_expiration=$empty |
||
8 | error=bad_class |
||
9 | !exit |
||
10 | !endif |
||
11 | |||
12 | !if $cdt_nbdate<$max_defaffi |
||
13 | jour_begin=$class_creation |
||
14 | jour_end=$class_expiration |
||
15 | !else |
||
16 | j=!char 7 to 8 of $wims_now |
||
17 | m=!char 5 to 6 of $wims_now |
||
18 | y=!char 1 to 4 of $wims_now |
||
19 | !if $m=1 |
||
20 | m=12 |
||
21 | y=$[$y-1] |
||
22 | !else |
||
23 | m=$[($m-1)+100] |
||
24 | m=!char 2 to 3 of $m |
||
25 | !endif |
||
26 | jour_begin=$y$m$j |
||
27 | jour_end=$wims_now |
||
28 | !endif |
||
29 | jday=!char 7 to 8 of $jour_begin |
||
30 | jmonth=!char 5 to 6 of $jour_begin |
||
31 | jyear=!char 1 to 4 of $jour_begin |
||
32 | jday2=!char 7 to 8 of $jour_end |
||
33 | jmonth2=!char 5 to 6 of $jour_end |
||
34 | jyear2=!char 1 to 4 of $jour_end |
||
35 | !if $cdt_supervise!=yes |
||
36 | class_parent=!text select 0123456789/ in $class_parent |
||
37 | courses=!record 0 of wimshome/log/classes/$wims_class/courses |
||
38 | courses=!column 1 of $courses |
||
39 | courses=!items2lines $courses |
||
40 | courses=!replace internal / by , in $courses |
||
41 | courses=!columns 3 of $courses |
||
42 | courses=!text select 0123456789, in $courses |
||
43 | courses=!items2lines $courses |
||
44 | !endif |
||
45 | list=!mexec proc/mkwork.sh |
||
46 | nbligne=!linecnt $list |
||
47 | job=work |
||
48 | !if $cdt_nbdate<$max_defaffi |
||
49 | !! !reset jour_begin,jour_end |
||
50 | !endif |