Subversion Repositories wimsdev

Rev

Rev 16798 | Rev 17206 | 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
 ©êºp¡A§@·~²M³æªº·Ç³Æ / ­×§ïÅv§Q«O¯dµ¹½Òµ{ªººÞ²zªÌ¡C
5
 !exit
6
!endif
7
 
8
!if bad_class=$error
9
 ©_©Ç¡A§Úµo²{±zªº½Òµ{¤£À³·í¡I
10
 !exit
11
!endif
12
 
2210 bpr 13
!if bad_source=$error
14
 The item number $bad_source in the source you just submitted is not
15
 valid.
16
 !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
17
.
18
 !exit
19
!endif
20
 
23 reyssat 21
!if bad_sheet=$error
22
 ±zªº§@·~²M³æ½s¸¹¤£¾A·í¡A¥i¯à¬O³nÅ骺 bug ¡H
23
 !exit
24
!endif
25
 
3062 bpr 26
!if bad_maxsheet=$error
8255 bpr 27
 The number of worksheets is limited to $max_sheets. You may not create another worksheet.
3062 bpr 28
 !exit
29
!endif
30
 
23 reyssat 31
!if no_title=$error
32
 ±z©Òµn¿ýªº§@·~²M³æ¨S¦³¼ÐÃD¡A¤£«ØÄ³±z³o»ò°µ¡C³B²z®Éªº¿ù»~¡H
33
 !exit
34
!endif
35
 
2210 bpr 36
 
37
 
38
!if $error=not_secure
39
 This operation can only be done from a secure host.
40
 !if $sec=$empty
3947 bpr 41
  You have not defined secure host. Access denied. You may ask the webmaster
2210 bpr 42
  to do it for you.
43
 !else
44
  Access denied.
45
 !endif
46
 !exit
47
!endif
48
 
49
!if $error=sharing_sheet
3921 bpr 50
 You are sharing worksheets with other classes!
2210 bpr 51
 !if $wims_ismanager<2
3930 bpr 52
  You must ask the webmaster to deactivate the worksheet for you.
2210 bpr 53
  !exit
54
 !endif
55
 You might put your neighboring classes in total disorder by deactivating
3921 bpr 56
 this worksheet. This operation is therefore <b>stronly discouraged</b>.
2210 bpr 57
 <p>
3921 bpr 58
 Do you still want to deactivate the worksheet?
5850 bpr 59
 </p>
60
 <div class="wimscenter">
3245 guerimand 61
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
2210 bpr 62
 .&nbsp;&nbsp;
63
 !href cmd=resume $wims_name_no; $wims_name_giveup
5764 bpr 64
 . </div>
2210 bpr 65
 <b>Before continuing, ask at least the supervisors of your class neighbors to
66
 save their classes!</b>
67
 !exit
68
!endif
69
 
14395 bpr 70
!if sheet_in_exam iswordof $error
71
  !set exa=!word 2 of $error
72
  Impossible to deactivate this worksheet, because you have exams based on its
73
  content (for example, exam $exa).
74
  !exit
2210 bpr 75
!endif
76
 
77
!if $error=non_empty_activities
14099 obado 78
 <p class="wims_msg warning">You want to deactivate the worksheet $sheet, while participants have already
79
 started to work on it!</p>
2210 bpr 80
 !if share iswordof $confirmed
3921 bpr 81
  Moreover, the worksheet is shared with other classes where there may be works
2210 bpr 82
  and scores too. It is therefore not allowed to deactivate it.
83
  !exit
84
 !endif
3921 bpr 85
 All scores obtained on this worksheet will be erased, if you deactivate. Really
2210 bpr 86
 want to do it?
5764 bpr 87
  <div class="wimscenter">
3245 guerimand 88
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
2210 bpr 89
 .&nbsp;&nbsp;
90
 !href cmd=resume $wims_name_no; $wims_name_giveup
5764 bpr 91
 . </div>
3921 bpr 92
 List of accounts having worked on this worksheet:
14099 obado 93
 <p class="tt">$worktest</p>
94
 <div class="wims_msg info"><b>Note</b>. This action should be taken only if this is a testing class.
95
 Do not go further if the participants are your real students!</div>
2210 bpr 96
 !exit
97
!endif
98
 
23 reyssat 99
!if prep_activate=$error
17180 bpr 100
 ±z­n¨D¹B§@§@·~²M³æ  $sheet ¡A¥ç§YÅý§@·~²M³æ³Q½Òµ{°Ñ»PªÌ¦s¨ú¡C<br>
23 reyssat 101
 ½Ðª`·N¡A¤@¥¹§@·~²M³æ¹B§@«á¡A±z´NµLªk¦A­×§ï²M³æ¡C±z½T©w­nÄ~Äò¡H
7801 bpr 102
!if $test_expire!=$empty
103
  <div class="wims_warning">
104
   The expiration date of the sheet is previous to today, it will be
105
   updated at the expiration date of your class.
106
  </div>
107
 !endif
108
   <div class="wimscenter">
16286 bpr 109
 !href cmd=reply&save=$wims_name_tosave&job=activate  ¹B§@²M³æ
23 reyssat 110
 ¡C&nbsp;&nbsp;
111
 !href cmd=resume  ©ñ±ó¹B§@
5764 bpr 112
 ¡C</div>
23 reyssat 113
 !exit
114
!endif
115
 
116
!if prep_erase=$error
117
 ±z½T©w­n§R°£³o­Ó§@·~²M³æ #$sheet ($title) ¶Ü¡H
5764 bpr 118
  <div class="wimscenter">
23 reyssat 119
 !href cmd=reply&job=erase  §R°£
120
 ¡C&nbsp;&nbsp;
121
 !href cmd=resume  ©ñ±ó§R°£
5764 bpr 122
 ¡C</div>
23 reyssat 123
 !exit
124
!endif
125
 
126
!if prep_expire=$error
127
 
128
 §@·~²M³æ #$sheet ($title) ªººI¤î¤é´Á¬°¡G $expday
129
 !item $expmon of $months
130
 $expyear ¡C±z­n±N²M³æ³]©w¬°¤w¹L´Á¶Ü¡H
5764 bpr 131
  <div class="wimscenter">
23 reyssat 132
 !href cmd=reply&job=expire ³]©w¬°¤w¹L´Á
133
 ¡C&nbsp;&nbsp;
134
 !href cmd=resume ©ñ±ó³]©w
5764 bpr 135
 ¡C </div><b>³Æµù¡G</b>±zªº¾Ç¥ÍµLªk¹B§@¤w¨ì´Áªº§@·~²M³æ
23 reyssat 136
 ¡C¦ý¥L­Ì­ì¥ýªº¦¨ÁZ¤´µM«O¯d(²Î­p®É¤´µM¥]§t³o¨Ç¦¨ÁZ)¡A¥B±z¤´¥i¥H¬d¸ß³o¨Ç¦¨ÁZ¡C
137
 !exit
138
!endif
139
 
2210 bpr 140
!if prep_putsource=$error
3921 bpr 141
 If you have a source of a worksheet saved earlier, you can insert this source
142
 into the current worksheet, by copying this source into the window below,
2210 bpr 143
 then clicking on the button `Send'. This form also allows you to insert the
3918 bpr 144
 source of a public worksheet using cut-and-paste.
5850 bpr 145
 
2210 bpr 146
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
147
to $wims_menu_items
148
 
149
 !form reply
17180 bpr 150
 <input type="hidden" name="job" value="putsource"><p class="wimscenter">
3951 bpr 151
 <textarea cols="55" rows="10" name="source">$source</textarea>
5850 bpr 152
 </p>
17180 bpr 153
 <p class="wimscenter"><input type="submit" value="$wims_name_send">
5926 bpr 154
 </p>
155
!formend
4552 bpr 156
 <span class="wims_warning">$wims_name_warning</span>.
157
 Do not insert modified source file! You risk to make your
2210 bpr 158
 worksheet useless.
159
 !exit
160
!endif
161
 
162
!if prep_modify=$error
163
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
164
 !if $modif>$cnt or $modif<1
165
  You have sent an invalid request. Ignored.
166
 !else
167
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
168
  !changeto exomodify.phtml $exo
169
 !endif
170
 !exit
171
!endif
172
 
11035 bpr 173
!!if $error=toolate
174
!read adm/lang/date.phtml.$moduclass_lang $class_expiration
175
 <p>$name_expiration1 ($l_date_out). $name_expiration2 </p>
176
 !set wims_ref_class=wims_button
12089 guerimand 177
 !href cmd=resume&job=$empty&ssave=$empty $wims_name_back2
2210 bpr 178
 ($wims_name_sheetmanagement)
179
 !exit
180
!endif
11035 bpr 181
 
15859 guerimand 182
!if $error=depindiv
183
  <div class="wims_msg alert">
184
    <strong>$wims_name_Error:</strong>
16286 bpr 185
    Il n'est pas possible de définir des dépendances de score en même temps que
15946 guerimand 186
    l'activation de l'individualisation des feuilles de travail avec une variable technique.
17180 bpr 187
    <br>
15859 guerimand 188
    Vous devez choisir entre les deux avant de pouvoir activer cette feuille.
189
    !reset error
190
  </div>
15947 guerimand 191
  <div class="wimscenter">
192
   !set wims_ref_class=wims_button
193
   !href cmd=resume Retour
194
  </div>
15859 guerimand 195
  !exit
196
!endif
197
 
16195 guerimand 198
!if badtechvarname iswordof $error
199
  <div class="wims_msg alert">
200
    <strong>$wims_name_Error:</strong>
201
    Un des noms de variable (
202
    !word 2 to -1 of $error
203
    ) n'est pas un nom correct de variable technique. Les noms de variable technique
204
    incorrect ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>.
205
  </div>
206
  <div class="wimscenter">
207
   !set wims_ref_class=wims_button
208
   !reset error
209
   !href cmd=resume Retour
210
  </div>
211
  !exit
212
!endif
213
 
16729 guerimand 214
!if toomanyexo=$error
215
  <div class="wims_msg alert">
216
    Le nombre d'exercices dans une feuille est limité à $max_exos. Vous devez supprimer des exercices avant de pouvoir
217
    l'activer.
218
  </div>
219
  !exit
220
!endif
221
 
16798 guerimand 222
!if $error=badallowshare
223
  <div class="wims_msg alert">
224
    <strong>$wims_name_Error:</strong>
225
  La variable technique que vous souhaitez utiliser n'est pas disponible dans toutes les classes en partage de ressources avec votre
17180 bpr 226
  classe.
16798 guerimand 227
  Vous ne pouvez donc pas propager ces réglages aux autres classes en partage.
228
  </div>
229
  <div class="wimscenter">
230
   !set wims_ref_class=wims_button
231
   !reset error
232
   !href cmd=resume Retour
233
  </div>
234
  !exit
235
!endif
236
 
23 reyssat 237
!msg $error
16195 guerimand 238