Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
14297 guerimand 1
!! expirefreework
2
 
3
!! --- testing if freework is active
14830 guerimand 4
!if $activetest!=1 and $activetest!=3
14297 guerimand 5
  error=fwnotactive
6
  job=configfw
7
  !changeto $job.proc
8
!endif
9
 
14830 guerimand 10
!if $activetest=1
11
  !!testing if all work are corrected (and deposit)
12
  !if $type>=2 and $notcorrected>0
13
    error=notallcorrected
14
    job=configfw
15
    !changeto $job.proc
16
  !endif
14297 guerimand 17
 
14830 guerimand 18
  !! testing if solutiondate pass (user can view solution)
19
  !ifval $type>=2 and $displaysolution!=1
20
    error=expire_nosoldisplay
21
    job=configfw
22
    !changeto $job.proc
23
  !endif
14537 guerimand 24
!endif
25
 
14297 guerimand 26
!! change statut
27
activetest=2
28
update_content=2\
29
$class_expiration\
30
$title\
31
$desc\
32
$comment\
33
$type\
34
$deadline.$timedeadline\
35
$soldate.$timesoldate\
14537 guerimand 36
$sizelimitfile\
14747 guerimand 37
$scoring\
17593 czzmrn 38
$seealltime\
39
$studentclose
14537 guerimand 40
 
14297 guerimand 41
update_field=$freework
17634 czzmrn 42
update_nbline=$fw_nbline
14297 guerimand 43
!read adm/uprecord wimshome/log/classes/$wims_class/freeworks/.freeworks
44
 
45
success=goodstatut
46
!if $back=1
47
  !restart module=home
48
!else
49
  job=configfw
50
  !changeto $job.proc
51
!endif