Subversion Repositories wimsdev

Rev

Rev 14537 | Rev 14830 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

!! expirefreework

!! --- testing if freework is active
!if $activetest!=1
  error=fwnotactive
  job=configfw
  !changeto $job.proc
!endif

!!testing if all work are corrected (and deposit)
!if $type>=2 and $notcorrected>0
  error=notallcorrected
  job=configfw
  !changeto $job.proc
!endif

!! testing if solutiondate pass (user can view solution)
!ifval $type>=2 and $displaysolution!=1
  error=expire_nosoldisplay
  job=configfw
  !changeto $job.proc
!endif

!! change statut
activetest=2
update_content=2\
$class_expiration\
$title\
$desc\
$comment\
$type\
$deadline.$timedeadline\
$soldate.$timesoldate\
$sizelimitfile\
$scoring\
$seealltime

update_field=$freework
update_nbline=11
!read adm/uprecord wimshome/log/classes/$wims_class/freeworks/.freeworks

success=goodstatut
!if $back=1
  !restart module=home
!else
  job=configfw
  !changeto $job.proc
!endif