Subversion Repositories wimsdev

Rev

Rev 15837 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4561 obado 1
# GetScore
9909 obado 2
# Fournit les resultats de l'utilisateur quser
4561 obado 3
 
4667 obado 4
#on commence par verifier la classe $qclass
5
!read scripts/check.class
6
!if $error!=$empty
7
 !exit
8
!endif
9
 
23 reyssat 10
!read scripts/check.user
11
!if $error!=$empty
16196 bpr 12
  !exit
23 reyssat 13
!endif
14
 
5967 obado 15
!if $qsheet!=$empty
16
  type=sheets
17
  !read scripts/check.proc
18
  !if $error!=$empty
19
    !exit
20
  !endif
9896 obado 21
  summary      = !getscorepercent class=$qclass user=$quser
22
  summary      = !line  $qsheet of $summary
23
  gotdetail    = !getscore        class=$qclass user=$quser sheet=$qsheet
24
  meandetail   = !getscoremean    class=$qclass user=$quser sheet=$qsheet
25
  remain       = !getscoreremain  class=$qclass user=$quser sheet=$qsheet
26
  best_detail  = !getscorebest    class=$qclass user=$quser sheet=$qsheet
27
  level_detail = !getscorelevel   class=$qclass user=$quser sheet=$qsheet
15837 guerimand 28
  weights      = !getscoreweight class=$qclass user=$quser sheet=$qsheet
29
  requires     = !getscorerequire class=$qclass user=$quser sheet=$qsheet
5967 obado 30
!else
9896 obado 31
  summary      = !getscorepercent class=$qclass user=$quser
32
  gotdetail    = !getscore        class=$qclass user=$quser
33
  meandetail   = !getscoremean    class=$qclass user=$quser
34
  remain       = !getscoreremain  class=$qclass user=$quser
35
  best_detail  = !getscorebest    class=$qclass user=$quser
36
  level_detail = !getscorelevel   class=$qclass user=$quser
15837 guerimand 37
  weights      = !getscoreweight class=$qclass user=$quser
38
  requires     = !getscorerequire class=$qclass user=$quser
5967 obado 39
!endif
4176 obado 40
 
5967 obado 41
examscore    = !examscore       class=$qclass user=$quser
42
score_status = !getscorestatus  class=$qclass
43
 
23 reyssat 44
m=!record 0 of wimshome/log/classes/$qclass/sheets/.severity
45
scoremax=!word 1 of $m
46
 
47
option=!listintersect $option and $userdefs
48
!if $option=$empty
11380 obado 49
  option=$userdefs
23 reyssat 50
!endif