Rev 2497 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
832 | guerimand | 1 | !bound bst_num between 1 and 200 default 10 |
2 | !readproc scripts/ccaccount.proc |
||
286 | guerimand | 3 | |
832 | guerimand | 4 | test=!record 0 of wimshome/s2/$wims_session/$bst_since |
840 | guerimand | 5 | nbcls=!linecnt $test |
6 | |||
832 | guerimand | 7 | test=!line 1 to $bst_num of $test |
286 | guerimand | 8 | sccnt=0 |
9 | clcnt=0 |
||
10 | !if $test=$empty |
||
15421 | bpr | 11 | !exit |
286 | guerimand | 12 | !endif |
13 | |||
14 | n=!linecnt $test |
||
15 | !for i=1 to $n |
||
15421 | bpr | 16 | l=!line $i of $test |
17 | !distribute item $l into c,t |
||
18 | l=!defof class_lang\ |
||
286 | guerimand | 19 | class_supervisor\ |
20 | class_email\ |
||
21 | class_creation\ |
||
22 | class_expiration\ |
||
23 | class_description\ |
||
24 | class_institution\ |
||
25 | class_type in wimshome/log/classes/$c/.def |
||
15421 | bpr | 26 | nbuser=!recordcnt wimshome/log/classes/$c/.userlist |
27 | !distribute line $l into lg,sup,mail,cre,exp,des,inst,ty |
||
28 | t=$[floor(($t+30)/60)] |
||
29 | don=$c,$lg,$sup,$mail,$cre,$exp,$des,$inst,$t,$nbuser |
||
30 | !if $ty isin 24 |
||
31 | !advance sccnt |
||
32 | sclasses=!append line $don to $sclasses |
||
33 | !else |
||
34 | !advance clcnt |
||
35 | classes=!append line $don to $classes |
||
36 | !endif |
||
37 | !next i |