Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
!set wims_module_log=error: $error
2
 
3
!if not_supervisor=$error
4
 Sorry, but the operation of preparation / modification of an exam
5
 is reserved to registered supervisor of a class.
6
 !exit
7
!endif
8
 
9
!if $error=no_sheet
10
 The content of an exam must be taken from activated worksheets (active or
11
 expired).
12
 <p>
13
 Your class does not have activated worksheets yet. Please define your
14
 worksheets, put works into them then activate them,
15
 before defining an exam for the class.
16
 !exit
17
!endif
18
 
19
!if bad_exam=$error
20
 Your exam number is not valid. Bug of the software?
21
 !exit
22
!endif
23
 
24
!if $error=simuchange
25
 This exam sheet has just changed its status. Please
26
 !href cmd=reply&job=scorereg click here
27
 to terminate your session.
28
 !exit
29
!endif
30
 
31
!if already_registered=$error
32
 Your score is already registered.
33
 !exit
34
!endif
35
 
36
!if no_more_registration=$error
37
 This exam allows you to register your score only $stries times. You can
38
 make no more registrations.
39
 !exit
40
!endif
41
 
42
!if bad_source=$error
3957 bpr 43
 The item number $bad_source in the source code you just submitted is not
23 reyssat 44
 valid.
45
 !href cmd=reply&job=prep_putsource&source=$source Correct the source
46
 .
47
 !exit
48
!endif
49
 
50
!if no_title=$error
51
 You want to register a exam without title, which is not advisable.
52
 Error of manipulation?
53
 !exit
54
!endif
55
 
56
!if prep_activate=$error
57
 You have asked to activate the exam $exam, that is, to make it accessible
58
 to participants of the class. <p>
2872 reyssat 59
 Please take note that once activated, you can no longer modify the exam.
23 reyssat 60
 Do you want to continue?
5764 bpr 61
  <div class="wimscenter">
3984 bpr 62
 !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
23 reyssat 63
 .&nbsp;&nbsp;
3984 bpr 64
 !href cmd=resume $wims_name_no; $wims_name_giveup
5764 bpr 65
 . </div>
23 reyssat 66
 !exit
67
!endif
68
 
69
!if prep_erase=$error
70
 Do you really want to erase this exam #$exam ($title)?
5764 bpr 71
  <div class="wimscenter">
3984 bpr 72
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
23 reyssat 73
 .&nbsp;&nbsp;
3984 bpr 74
 !href cmd=resume $wims_name_no; $wims_name_giveup
5764 bpr 75
 . </div>
23 reyssat 76
 !exit
77
!endif
3984 bpr 78
 
23 reyssat 79
!if prep_expire=$error
80
 This exam #$exam ($title) expires normally expires on $expday
81
 !item $expmon of $months
82
 $expyear. Do you want to expire it now?
5764 bpr 83
  <div class="wimscenter">
3984 bpr 84
 !href cmd=reply&job=expire $wims_name_yes; $(wims_name_actionlist[2])
23 reyssat 85
 .&nbsp;&nbsp;
3984 bpr 86
 !href cmd=resume $wims_name_no; $wims_name_giveup
5764 bpr 87
 . </div><b>Remark.</b> Your students cannot continue to work on a
23 reyssat 88
 expired exam. But their earlier scores will be conserved (and will be taken into
89
 account in the statistics), and you can always consult these scores.
90
 !exit
91
!endif
92
 
93
!if prep_putsource=$error
94
 If you have a source of a exam saved earlier, you can insert this source
95
 into the current exam, by copying this source into the window below,
96
 then clicking on the button `Send'.
97
 <p>
98
 Otherwise,
99
 !href cmd=resume Return to the main page of the exam.
100
 !form reply
5734 bpr 101
 <input type="hidden" name="job" value="putsource"/><center>
3984 bpr 102
 <textarea cols="55" rows="10" name="source">$source</textarea>
5734 bpr 103
 <p><input type="submit" value="Send"/>
23 reyssat 104
 </center></form>
3950 bpr 105
 <b>Warning</b>. Do not insert modified source file! You risk to make your
23 reyssat 106
 workexam useless.
107
 !exit
108
!endif
109
 
976 bpr 110
!if nodeactivate=$error
111
  The exam cannot be desactivated because
112
  !if badstructure isin $deactivate
113
   of the class structure.
114
  !else
115
   !if score isin $deactivate
116
    some participants have already begun to work on this exam !
117
   !else
118
    your exams are shared with another class !
119
   !endif
120
  !endif
121
!endif
122
 
2329 guerimand 123
!if active_exam=$error
2334 schaersvoo 124
 Sorry, this exam is activated, hence non-modifiable. No exercise in it can be changed.
2329 guerimand 125
 !exit
126
!endif 
127
 
2766 bpr 128
!if $error=prep_noexercise
129
  The content of the exercise $exo of the exam is empty. Try again.
130
  !exit
131
!endif
3984 bpr 132
 
133
!msg $error