Rev 12029 | Rev 12080 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !distribute words $wims_read_parm into cl,cls |
||
3 | |||
4 | $(cl)_usercnt=!recordcnt wimshome/$cls/.userlist |
||
5 | $(cl)_sheetcnt=!recordcnt wimshome/$cls/sheets/.sheets |
||
6 | $(cl)_examcnt=!recordcnt wimshome/$cls/exams/.exams |
||
7 | $(cl)_doccnt=!recordcnt wimshome/$cls/doc/.index |
||
8 | $(cl)_votecnt=!recordcnt wimshome/$cls/vote/.votes |
||
9 | $(cl)_forumcnt=!recordcnt wimshome/$cls/forum/.msglist |
||
1407 | bpr | 10 | $(cl)_docpubliccnt=!recordcnt wimshome/$cls/doc/.docindex |
23 | reyssat | 11 | t=!filelist $wims_home/$cls/src/*.oef |
12 | $(cl)_exocnt=!wordcnt $t |
||
12078 | guerimand | 13 | t=!filelist $wims_home/sessions/$wims_session/getfile/photoboard/ |
14 | $(cl)_userphotocnt=!wordcnt $t |
||
23 | reyssat | 15 | $(cl)_cdtcnt=!defof cdt_nbdate in wimshome/$cls/cdt/.def |
1505 | bpr | 16 | $(cl)_seqcnt=!record 0 of wimshome/$cls/seq/.sequences |
17 | $(cl)_seqcnt=!word 1 of $($(cl)_seqcnt) |
||
1858 | guerimand | 18 | $(cl)_livretcnt=!recordcnt wimshome/$cls/livret/.comps |
12029 | guerimand | 19 | t=!filelist $wims_home/$cls/cdt/src/* |
20 | $(cl)_cdtcnt=!wordcnt $t |
||
23 | reyssat | 21 | scorecnt=!mexec scripts/scorefcnt.sh $cls |
22 | !distribute words $scorecnt into $(cl)_scorecnt1,$(cl)_scorecnt2 |
||
23 | $(cl)_scorecnt=$[$($(cl)_scorecnt1)+$($(cl)_scorecnt2)] |
||
24 | t=!record 1 of wimshome/$cls/.grades |
||
25 | t=!line 2 of $t |
||
26 | t=!itemcnt $t |
||
27 | $(cl)_manualcnt=$[max(0,$t-2)] |
||
28 | $(cl)_testcnt=$[$($(cl)_scorecnt1)+$($(cl)_manualcnt)] |
||
29 | |||
30 | $(cl)_reccnt=$[$($(cl)_usercnt)+$($(cl)_sheetcnt)+$($(cl)_examcnt)\ |
||
1407 | bpr | 31 | +$($(cl)_doccnt)+$($(cl)_docpubliccnt)+$($(cl)_forumcnt)+$($(cl)_votecnt)\ |
23 | reyssat | 32 | +$($(cl)_exocnt)+$($(cl)_scorecnt)+$($(cl)_manualcnt)] |
9880 | bpr | 33 | $(cl)_motdcnt=!filelist $wims_home/$cls/.motd |
34 | !if $($(cl)_motdcnt)!=$empty |
||
35 | $(cl)_motdcnt=1 |
||
36 | !else |
||
37 | $(cl)_motdcnt=0 |
||
38 | !endif |
||
23 | reyssat | 39 | |
40 | t=!defof user_exists in wimshome/$cls/supervisor |
||
41 | !if $t=yes |
||
42 | $(cl)_supcnt=1 |
||
43 | !else |
||
44 | $(cl)_supcnt=0 |
||
1407 | bpr | 45 | !endif |