Subversion Repositories wimsdev

Rev

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


!if $step=$empty
 !readdef wimshome/log/classes/$wims_class/supervisor
 !read oef/default
 !bound user_qnum between integer 1 and 9 default $(default_choice[1])
 !bound user_qcmlevel between integer 1 and 9 default $(default_choice[2])
 !bound user_sepow between 1 and 6 default $(list_sepow[1])
 !bound user_expow between 1 and 6 default $(list_expow[1])
 !bound user_precw between 0 and 1 default $(list_precw[1])
 !if $nw_scoredelay!=$empty
  nw_scoredelay=!items2words $nw_scoredelay
  !distribute word $nw_scoredelay into l1,l2
  !bound l1 between 1 to 2000
  !bound l2 between $l1 to 2000 default $l1
  nw_scoredelay=$l1,$l2
 !endif
 !bound user_qcmpresent between integer 2 and 8 default $(default_choice[4])
 !bound user_presentsol between 0 and 2 default $(default_choice[3])
  nw_check_=$nw_check1,$nw_check2,$nw_check3,$nw_check4
  nw_check_=!listintersect $nw_check_ and 1,2,3,4
!else
 !bound nw_qnum between integer 1 and 9 default $user_qnum
 !bound nw_qcmlevel between 1 and 9 default $user_qcmlevel
 nw_scoredelay=!items2words $nw_scoredelay
 !distribute word $nw_scoredelay into l1,l2
 !if $l1!=$empty or $l2!=$empty
  !bound l1 between 1 and 2000
  !bound l2 between $l1 and 2000 default $empty
  nw_scoredelay=$l1,$l2
 !else
  nw_scoredelay=$empty
 !endif
 !bound nw_qcmpresent between 2 and 8 default $user_qcmpresent
 !bound nw_presentsol between 0 and 2 default $user_presentsol
 !bound nw_sepow between 1 and 6 default $user_sepow
 !bound nw_expow between 1 and 6 default $user_expow
 !bound nw_precw between 0 and 1 default $user_precw
 !set nw_check_=$nw_check1,$nw_check2,$nw_check3,$nw_check4
 !set nw_check_=!nonempty items $nw_check_
 !set nw_check_=!listintersect $nw_check_ and 1,2,3,4

 !setdef !set user_qnum=$nw_qnum\
!set user_qcmlevel=$nw_qcmlevel\
!set user_scoredelay=$nw_scoredelay\
!set user_qcmpresent=$nw_qcmpresent\
!set user_presentsol=$nw_presentsol\
!set user_check=$nw_check_\
!set user_sepow=$nw_sepow\
!set user_expow=$nw_expow\
!set user_precw=$nw_precw\
in wimshome/log/classes/$wims_class/supervisor

 !setdef wims_oefdefault_qnum=$nw_qnum\
wims_oefdefault_qcmlevel=$nw_qcmlevel\
wims_oefdefault_scoredelay=$nw_scoredelay\
wims_oefdefault_qcmpresent=$nw_qcmpresent\
wims_oefdefault_presentsol=$nw_presentsol\
wims_oefdefault_check=$nw_check_\
wims_oefdefault_expow=$nw_expow\
wims_oefdefault_sepow=$nw_sepow\
wims_oefdefault_precw=$nw_precw\
in wimshome/sessions/$wims_session/var.stat

!readdef wimshome/log/classes/$wims_class/supervisor

!endif