Subversion Repositories wimsdev

Rev

Rev 14819 | Rev 15004 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14819 guerimand 1
!! desactivate freework
2
!! change statut from 1 to 0 (return to preparation mode)
14297 guerimand 3
 
14819 guerimand 4
!if $activetest!=1
5
  job=configfw
6
  !reset back
7
  !changeto $job.proc
8
!endif
9
 
14297 guerimand 10
!! -------- desactivate freework of type=1
11
!! nocondition
12
 
14819 guerimand 13
!! -------- desactivate freework of type=2 or type=3
14
!if $type=2 or $type=3
15
!! desactivated is possible only if no student work
16
  !reset list
17
  list=!filelist $wims_home/log/classes/$wims_class/freeworksdata/$freework/work
18
  !if $list!=$empty
19
    error=notallowed_desactivated
20
    job=configfw
21
    !changeto $job.proc
22
  !endif
23
!endif
24
 
14297 guerimand 25
!! change statut
26
activetest=0
27
update_content=0\
28
$class_expiration\
29
$title\
30
$desc\
31
$comment\
32
$type\
33
$deadline.$timedeadline\
34
$soldate.$timesoldate\
14537 guerimand 35
$sizelimitfile\
14747 guerimand 36
$scoring\
14537 guerimand 37
$seealltime
14297 guerimand 38
 
39
update_field=$freework
14537 guerimand 40
update_nbline=11
14297 guerimand 41
!read adm/uprecord wimshome/log/classes/$wims_class/freeworks/.freeworks
42
 
43
success=gooddeactivate
44
!if $back=1
45
  !restart module=home
46
!else
47
  job=configfw
48
  !reset back
49
  !changeto $job.proc
50
!endif
51
 
14819 guerimand 52
 
53
 
54
 
55