Subversion Repositories wimsdev

Rev

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

!set wims_module_log=error: $error

!if not_supervisor=$error
 Sorry, but the operation of preparation / modification of an exam
 is reserved to registered supervisor of a class.
 !exit
!endif

!if $error=no_sheet
 The content of an exam must be taken from activated worksheets (active or
 expired).
 <p>
 Your class does not have activated worksheets yet. Please define your
 worksheets, put works into them then activate them,
 before defining an exam for the class.
 !exit
!endif

!if bad_exam=$error
 Your exam number is not valid. Bug of the software?
 !exit
!endif

!if $error=simuchange
 This exam sheet has just changed its status. Please
 !href cmd=reply&job=scorereg click here
 to terminate your session.
 !exit
!endif

!if already_registered=$error
 Your score is already registered.
 !exit
!endif

!if no_more_registration=$error
 This exam allows you to register your score only $stries times. You can
 make no more registrations.
 !exit
!endif

!if bad_source=$error
 The item number $bad_source in the source code you just submitted is not
 valid.
 !href cmd=reply&job=prep_putsource&source=$source Correct the source
 .
 !exit
!endif

!if no_title=$error
 You want to register a exam without title, which is not advisable.
 Error of manipulation?
 !exit
!endif

!if prep_activate=$error
 You have asked to activate the exam $exam, that is, to make it accessible
 to participants of the class. <p>
 Please take note that once activated, you can no longer modify the exam.
 Do you want to continue?
 <p><center>
 !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
 .&nbsp;&nbsp;
 !href cmd=resume $wims_name_no; $wims_name_giveup
 . </center>
 !exit
!endif

!if prep_erase=$error
 Do you really want to erase this exam #$exam ($title)?
 <p><center>
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
 .&nbsp;&nbsp;
 !href cmd=resume $wims_name_no; $wims_name_giveup
 . </center>
 !exit
!endif

!if prep_expire=$error
 This exam #$exam ($title) expires normally expires on $expday
 !item $expmon of $months
 $expyear. Do you want to expire it now?
 <p><center>
 !href cmd=reply&job=expire $wims_name_yes; $(wims_name_actionlist[2])
 .&nbsp;&nbsp;
 !href cmd=resume $wims_name_no; $wims_name_giveup
 . </center>
 <p><b>Remark.</b> Your students cannot continue to work on a
 expired exam. But their earlier scores will be conserved (and will be taken into
 account in the statistics), and you can always consult these scores.
 !exit
!endif

!if prep_putsource=$error
 If you have a source of a exam saved earlier, you can insert this source
 into the current exam, by copying this source into the window below,
 then clicking on the button `Send'.
 <p>
 Otherwise,
 !href cmd=resume Return to the main page of the exam.
 !form reply
 <input type="hidden" name="job" value="putsource"/><center>
 <textarea cols="55" rows="10" name="source">$source</textarea>
 <p><input type="submit" value="Send"/>
 </center></form>
 <b>Warning</b>. Do not insert modified source file! You risk to make your
 workexam useless.
 !exit
!endif

!if nodeactivate=$error
  The exam cannot be desactivated because
  !if badstructure isin $deactivate
   of the class structure.
  !else
   !if score isin $deactivate
    some participants have already begun to work on this exam !
   !else
    your exams are shared with another class !
   !endif
  !endif
!endif

!if active_exam=$error
 Sorry, this exam is activated, hence non-modifiable. No exercise in it can be changed.
 !exit
!endif 

!if $error=prep_noexercise
  The content of the exercise $exo of the exam is empty. Try again.
  !exit
!endif

!msg $error

Generated by GNU Enscript 1.6.5.90.