Subversion Repositories wimsdev

Rev

Rev 3947 | Rev 3960 | 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
3947 bpr 4
 Sorry, only the registered supervisor of a class can edit a worksheet
23 reyssat 5
 !exit
6
!endif
7
 
8
!if bad_class=$error
3947 bpr 9
 Strange, but it seems that your class is not valid!
23 reyssat 10
 !exit
11
!endif
12
 
3951 bpr 13
!if bad_series=$error
14
Strange, but  I do not find the exercise series to modify !!
15
 !exit
16
!endif
17
 
23 reyssat 18
!if bad_source=$error
3947 bpr 19
 The item number $bad_source in the source code you just submitted is not
23 reyssat 20
 valid.
1755 bpr 21
 !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
22
.
23 reyssat 23
 !exit
24
!endif
25
 
3951 bpr 26
!if active_sheet=$error
27
 Cette feuille est active. Son contenu ne peut pas être modifié.
28
 !exit
29
!endif
30
 
1689 bpr 31
!if bad_sheet=$error
3947 bpr 32
 Your worksheet number is not valid. Could be this a bug?
1689 bpr 33
 !exit
34
!endif
35
 
3951 bpr 36
!if bad_maxsheet=$error
37
 Le nombre de feuilles est limité à $max_sheet. Vous ne pouvez donc plus en créer.
38
 !exit
39
!endif
40
 
23 reyssat 41
!if no_title=$error
3947 bpr 42
 You want to register a worksheet without a title, which is not advisable.
43
 Did you simply forget?
23 reyssat 44
 !exit
45
!endif
46
 
1755 bpr 47
!if $error=not_secure
3947 bpr 48
 This action can only be done from a secure host.
1755 bpr 49
 !if $sec=$empty
3947 bpr 50
  You have not defined a secure host. Access denied. You may ask the webmaster
1755 bpr 51
  to do it for you.
52
 !else
53
  Access denied.
54
 !endif
55
 !exit
56
!endif
57
 
58
!if $error=sharing_sheet
3921 bpr 59
 You are sharing worksheets with other classes!
1755 bpr 60
 !if $wims_ismanager<2
3930 bpr 61
  You must ask the webmaster to deactivate the worksheet for you.
1755 bpr 62
  !exit
63
 !endif
3947 bpr 64
 Deactivating this worksheet may disrupted neighboring classes. 
65
 This action is therefore <b>strongly discouraged</b>.
1755 bpr 66
 <p>
3921 bpr 67
 Do you still want to deactivate the worksheet?
1755 bpr 68
 <p><center>
3245 guerimand 69
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
1755 bpr 70
 .&nbsp;&nbsp;
71
 !href cmd=resume $wims_name_no; $wims_name_giveup
72
 . </center>
73
 <p>
74
 <b>Before continuing, ask at least the supervisors of your class neighbors to
75
 save their classes!</b>
76
 !exit
77
!endif
78
 
79
!if $error=sheet_in_exam
3921 bpr 80
 Impossible to deactivate this worksheet, because you have exams based on its
1755 bpr 81
 content.
82
 !exit
83
!endif
84
 
85
!if $error=non_empty_activities
3947 bpr 86
 You want to deactivate worksheet $sheet, although participants have already
1755 bpr 87
 started to work on it!
88
 <p>
89
 !if share iswordof $confirmed
3947 bpr 90
  Moreover, the worksheet is shared with other classes where there may be scores too. 
91
  It is therefore not allowed to deactivate it.
1755 bpr 92
  !exit
93
 !endif
3947 bpr 94
 All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it.
95
 Do you still want to proceed?
1755 bpr 96
 <p><center>
3245 guerimand 97
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
1755 bpr 98
 .&nbsp;&nbsp;
99
 !href cmd=resume $wims_name_no; $wims_name_giveup
100
 . </center> <p>
3947 bpr 101
 List of students having worked on this worksheet:
1755 bpr 102
 <p>
103
 <tt>$worktest</tt>
104
 <p>
3947 bpr 105
 <b>Note</b>. Only deactivate if you are using this class as a test.
1755 bpr 106
 !exit
107
!endif
108
 
23 reyssat 109
!if prep_activate=$error
3947 bpr 110
 You want to activate worksheet $sheet. <p>
3927 bpr 111
 By activating a worksheet, you make it visible to the participants of the class.  Once activated,
112
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated 
113
 worksheet will result in losing the scores and grades of the participants.
23 reyssat 114
 <p>
3927 bpr 115
 Do you want to continue?
23 reyssat 116
 <p><center>
3245 guerimand 117
 !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
23 reyssat 118
 .&nbsp;&nbsp;
1755 bpr 119
 !href cmd=resume $wims_name_no; $wims_name_giveup
23 reyssat 120
 .</center>
121
 !exit
122
!endif
123
 
124
!if prep_erase=$error
3947 bpr 125
 Do you really want to erase worksheet #$sheet ($title)?
23 reyssat 126
 <p><center>
1755 bpr 127
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
128
.&nbsp;&nbsp;
129
 !href cmd=resume $wims_name_no ; $wims_name_giveup
130
.</center>
23 reyssat 131
 !exit
132
!endif
1755 bpr 133
 
23 reyssat 134
!if prep_expire=$error
3947 bpr 135
 Worksheet #$sheet ($title) normally expires on $expday
23 reyssat 136
 !item $expmon of $months
137
 $expyear. Do you want to expire it now?
138
 <p><center>
3245 guerimand 139
 !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
23 reyssat 140
 .&nbsp;&nbsp;
1755 bpr 141
 !href cmd=resume $wims_name_no ; $wims_name_giveup
23 reyssat 142
 . </center>
143
 <p><b>Remark.</b> Your students cannot continue to work on a
3921 bpr 144
 expired worksheet. But their earlier scores will be conserved (and will be taken into
23 reyssat 145
 account in the statistics), and you can always consult these scores.
146
 !exit
147
!endif
148
 
149
!if prep_putsource=$error
3947 bpr 150
 If you have saved the source code of a worksheet previously, you can insert this code
151
 into the current worksheet, by copying this code into the window below,
152
 then clicking on the button <tt>$wims_name_send</tt>. You may also insert the
153
 source code of a public worksheet by cutting and pasting.
3951 bpr 154
<p>
1755 bpr 155
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
156
to $wims_menu_items
157
 
23 reyssat 158
 !form reply
3947 bpr 159
 <input type="hidden" name="job" value="putsource"><center>
160
 <textarea cols="55" rows="10" name="source">$source</textarea>
161
 <p><input type="submit" value="$wims_name_send">
23 reyssat 162
 </center></form>
3947 bpr 163
 <b>Warning</b>. It is advised not to modify the source code of the worksheet as it may abort the
164
 worksheet.
23 reyssat 165
 !exit
166
!endif
167
 
168
!if prep_modify=$error
169
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
170
 !if $modif>$cnt or $modif<1
171
  You have sent an invalid request. Ignored.
172
 !else
173
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
2210 bpr 174
  !changeto exomodify.phtml $exo
23 reyssat 175
 !endif
176
 !exit
177
!endif
178
 
1755 bpr 179
!if $error=toolate
3951 bpr 180
 $name_expiration1 ($l_date). $name_expiration2 <p>
181
 !href cmd=resume $wims_name_back2
1755 bpr 182
 ($wims_name_sheetmanagement)
3951 bpr 183
 !exit
184
!endif
1755 bpr 185
 
3951 bpr 186
!if $error=srcnoexo
187
 Cette feuille ne contient aucun exercice, donc son source est vide.<br>
188
 !href cmd=resume Back to edit the worksheet
23 reyssat 189
 !exit
190
!endif
3951 bpr 191
 
1755 bpr 192
!msg $error
3951 bpr 193