Subversion Repositories wimsdev

Rev

Rev 16729 | Rev 17180 | 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
16286 bpr 4
  Sorry, only the registered supervisor of a class can edit a worksheet
5
  !exit
23 reyssat 6
!endif
7
 
3951 bpr 8
!if bad_series=$error
16286 bpr 9
  Strange, but  I do not find the exercise series to modify !!
10
  !exit
3951 bpr 11
!endif
12
 
23 reyssat 13
!if bad_source=$error
16286 bpr 14
  The item number $bad_source in the source code you just submitted is not
15
  valid.
16
  !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
1755 bpr 17
.
16286 bpr 18
  !exit
23 reyssat 19
!endif
20
 
3951 bpr 21
!if active_sheet=$error
16286 bpr 22
  Cette feuille est active. Son contenu ne peut pas être modifié.
23
  !exit
3951 bpr 24
!endif
25
 
1689 bpr 26
!if bad_sheet=$error
16286 bpr 27
  Your worksheet number is not valid. Could be this a bug?
28
  !exit
1689 bpr 29
!endif
30
 
3951 bpr 31
!if bad_maxsheet=$error
16286 bpr 32
 The number of worksheets is limited to $max_sheets. You may not create another worksheet.
3951 bpr 33
 !exit
34
!endif
35
 
23 reyssat 36
!if no_title=$error
16286 bpr 37
  You want to register a worksheet without a title, which is not advisable.
38
  Did you simply forget?
39
  !exit
23 reyssat 40
!endif
41
 
1755 bpr 42
!if $error=not_secure
16286 bpr 43
  This action can only be done from a secure host.
44
  !if $sec=$empty
45
    You have not defined a secure host. Access denied. You may ask the webmaster
46
    to do it for you.
47
  !else
48
    Access denied.
49
  !endif
50
  !exit
1755 bpr 51
!endif
52
 
53
!if $error=sharing_sheet
16286 bpr 54
  You are sharing worksheets with other classes!
55
  !if $wims_ismanager<2
56
    You must ask the webmaster to deactivate the worksheet for you.
57
    !exit
58
  !endif
59
  Deactivating this worksheet may disrupted neighboring classes.
60
  This action is therefore <b>strongly discouraged</b>.
61
  <p>Do you still want to deactivate the worksheet?</p>
62
  <p class="wimscenter">
63
  !set wims_ref_class=wims_button
64
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes, $(wims_name_actionlist[3])
65
$ $
66
  !set wims_ref_class=wims_button wims_secondary_button
67
  !href cmd=resume $wims_name_no, $wims_name_giveup
68
 </p><p>
5657 obado 69
  <b>Before continuing, ask at least the supervisors of your class neighbors to
70
  save their classes!</b>
71
 </p>
1755 bpr 72
 !exit
73
!endif
74
 
14395 bpr 75
!if sheet_in_exam iswordof $error
76
  !set exa=!word 2 of $error
77
  Impossible to deactivate this worksheet, because you have exams based on its
78
  content (for example exam $exa).
16286 bpr 79
  !exit
1755 bpr 80
!endif
81
 
82
!if $error=non_empty_activities
16286 bpr 83
  <p class="wims_msg warning">You want to deactivate worksheet $sheet, although participants have already
84
  started to work on it!</p>
85
 
86
  !if share iswordof $confirmed
87
    <p>Moreover, the worksheet is shared with other classes where there may be scores too.
88
    It is therefore not allowed to deactivate it.</p>
89
    !exit
90
  !endif
91
  <p>
5657 obado 92
  All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it.
93
  Do you still want to proceed?
16286 bpr 94
  </p>
95
  <p class="wimscenter">
5657 obado 96
  !set wims_ref_class=wims_button
16286 bpr 97
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes, $(wims_name_actionlist[3])
98
   &nbsp;&nbsp;
99
   !set wims_ref_class=wims_button wims_secondary_button
100
  !href cmd=resume $wims_name_no, $wims_name_giveup
101
  </p>
5657 obado 102
  List of students having worked on this worksheet:
16286 bpr 103
  <p class="tt">$worktest</p>
104
 
105
  <div class="wims_msg info"><b>Note</b>. Only deactivate if you are using this class as a test.</div>
106
  !exit
1755 bpr 107
!endif
108
 
23 reyssat 109
!if prep_activate=$error
5657 obado 110
 You want to activate worksheet $sheet.
111
 <p>By activating a worksheet, you make it visible to the participants of the class.  Once activated,
7801 bpr 112
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated
5657 obado 113
 worksheet will result in losing the scores and grades of the participants.</p>
16286 bpr 114
  !if $test_expire!=$empty
115
   <div class="wims_warning">
116
    The expiration date of the sheet is previous to today, it will be
117
    updated at the expiration date of your class.
118
   </div>
119
  !endif
120
  <p>Do you want to continue?</p>
121
  <p class="wimscenter">
122
   !set wims_ref_class=wims_button
123
   !href cmd=reply&save=$wims_name_tosave&job=activate $wims_name_yes; $(wims_name_actionlist[1])
124
$ $
125
   !set wims_ref_class=wims_button
126
   !href cmd=resume $wims_name_no, $wims_name_giveup
127
  </p>
128
  !exit
23 reyssat 129
!endif
130
 
131
!if prep_erase=$error
3947 bpr 132
 Do you really want to erase worksheet #$sheet ($title)?
5657 obado 133
 <p style="text-align:center">
7973 bpr 134
 !set wims_ref_class=wims_button wims_warning
1755 bpr 135
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
7973 bpr 136
 
5657 obado 137
 !set wims_ref_class=wims_button
1755 bpr 138
 !href cmd=resume $wims_name_no ; $wims_name_giveup
5657 obado 139
 </p>
23 reyssat 140
 !exit
141
!endif
1755 bpr 142
 
23 reyssat 143
!if prep_expire=$error
16286 bpr 144
  Worksheet #$sheet ($title) normally expires on $expday
145
  !item $expmon of $months
146
  $expyear. Do you want to expire it now?
147
  <p class="wimscenter">
148
  !set wims_ref_class=wims_button
149
  !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
150
  &nbsp;&nbsp;
151
  !set wims_ref_class=wims_button
152
  !href cmd=resume $wims_name_no ; $wims_name_giveup
153
  </p>
154
  <p><b>Remark.</b> Your students cannot continue to work on a
155
  expired worksheet. But their earlier scores will be conserved (and will be taken into
156
  account in the statistics), and you can always consult these scores.</p>
157
  !exit
23 reyssat 158
!endif
159
 
160
!if prep_putsource=$error
16286 bpr 161
  If you have saved the source code of a worksheet previously, you can insert this code
162
  into the current worksheet, by copying this code into the window below,
163
  then clicking on the button <span class="wims_button disabled">$wims_name_send</span>.
164
  You may also insert the
165
  source code of a public worksheet by cutting and pasting.
166
  <p>
1755 bpr 167
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
168
to $wims_menu_items
169
 
16286 bpr 170
  !form reply
6235 bpr 171
  <input type="hidden" name="job" value="putsource" /><p class="wimscenter">
5657 obado 172
  <textarea cols="55" rows="10" name="source">$source</textarea>
5850 bpr 173
  </p>
6235 bpr 174
  <p class="wimscenter"><input type="submit" value="$wims_name_send" /></p>
7801 bpr 175
 
16286 bpr 176
  !formend
177
  <span class="wims_warning">$wims_name_warning</span>.
178
  It is advised not to modify the source code of the worksheet as it may abort the
179
  worksheet.
180
  !exit
23 reyssat 181
!endif
182
 
183
!if prep_modify=$error
184
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
185
 !if $modif>$cnt or $modif<1
186
  You have sent an invalid request. Ignored.
187
 !else
188
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
2210 bpr 189
  !changeto exomodify.phtml $exo
23 reyssat 190
 !endif
191
 !exit
192
!endif
193
 
1755 bpr 194
!if $error=toolate
16286 bpr 195
  !read adm/lang/date.phtml.$moduclass_lang $class_expiration
196
  <p>$name_expiration1 ($l_date_out). $name_expiration2 </p>
197
  !set wims_ref_class=wims_button
198
  !href cmd=resume&job=$empty&save=$empty $wims_name_back2
199
  ($wims_name_sheetmanagement)
200
  !exit
3951 bpr 201
!endif
1755 bpr 202
 
3951 bpr 203
!if $error=srcnoexo
16286 bpr 204
  This worksheet does not have any exercise yet, so the source code is empty.<br />
205
  !href cmd=resume Back to edit the worksheet
206
  !exit
23 reyssat 207
!endif
3951 bpr 208
 
15859 guerimand 209
!if $error=depindiv
210
  <div class="wims_msg alert">
211
    <strong>$wims_name_Error:</strong>
16286 bpr 212
    Il n'est pas possible de définir des dépendances de score en même temps que
15946 guerimand 213
    l'activation de l'individualisation des feuilles de travail avec une variable technique.
15859 guerimand 214
    <br/>
215
    Vous devez choisir entre les deux avant de pouvoir activer cette feuille.
216
    !reset error
217
  </div>
15947 guerimand 218
  <div class="wimscenter">
219
   !set wims_ref_class=wims_button
220
   !href cmd=resume Retour
221
  </div>
15859 guerimand 222
  !exit
223
!endif
224
 
16195 guerimand 225
!if badtechvarname iswordof $error
226
  <div class="wims_msg alert">
227
    <strong>$wims_name_Error:</strong>
228
    Un des noms de variable (
229
    !word 2 to -1 of $error
230
    ) n'est pas un nom correct de variable technique. Les noms de variable technique
231
    incorrect ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>.
232
  </div>
233
  <div class="wimscenter">
234
   !set wims_ref_class=wims_button
235
   !reset error
236
   !href cmd=resume Retour
237
  </div>
238
  !exit
239
!endif
240
 
16729 guerimand 241
!if toomanyexo=$error
242
  <div class="wims_msg alert">
243
    Le nombre d'exercices dans une feuille est limité à $max_exos. Vous devez supprimer des exercices avant de pouvoir
244
    l'activer.
245
  </div>
246
  !exit
247
!endif
248
 
16798 guerimand 249
!if $error=badallowshare
250
  <div class="wims_msg alert">
251
    <strong>$wims_name_Error:</strong>
252
  La variable technique que vous souhaitez utiliser n'est pas disponible dans toutes les classes en partage de ressources avec votre
253
  classe. 
254
  Vous ne pouvez donc pas propager ces réglages aux autres classes en partage.
255
  </div>
256
  <div class="wimscenter">
257
   !set wims_ref_class=wims_button
258
   !reset error
259
   !href cmd=resume Retour
260
  </div>
261
  !exit
262
!endif
263
 
1755 bpr 264
!msg $error