Subversion Repositories wimsdev

Rev

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