Rev 17327 | Rev 17331 | 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. |
||
17206 | guerimand | 16 | !href cmd=reply&job=prep_putsource $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 | |
||
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 | |
||
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 | |||
17206 | guerimand | 170 | !set wims_form_method=post |
16286 | bpr | 171 | !form reply |
17180 | bpr | 172 | <input type="hidden" name="job" value="putsource"><p class="wimscenter"> |
17206 | guerimand | 173 | <textarea cols="55" rows="10" name="source">$ssource</textarea> |
5850 | bpr | 174 | </p> |
17180 | bpr | 175 | <p class="wimscenter"><input type="submit" value="$wims_name_send"></p> |
7801 | bpr | 176 | |
16286 | bpr | 177 | !formend |
178 | <span class="wims_warning">$wims_name_warning</span>. |
||
179 | It is advised not to modify the source code of the worksheet as it may abort the |
||
180 | worksheet. |
||
181 | !exit |
||
23 | reyssat | 182 | !endif |
183 | |||
184 | !if prep_modify=$error |
||
185 | !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
186 | !if $modif>$cnt or $modif<1 |
||
187 | You have sent an invalid request. Ignored. |
||
188 | !else |
||
189 | !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
2210 | bpr | 190 | !changeto exomodify.phtml $exo |
23 | reyssat | 191 | !endif |
192 | !exit |
||
193 | !endif |
||
194 | |||
1755 | bpr | 195 | !if $error=toolate |
16286 | bpr | 196 | !read adm/lang/date.phtml.$moduclass_lang $class_expiration |
197 | <p>$name_expiration1 ($l_date_out). $name_expiration2 </p> |
||
198 | !set wims_ref_class=wims_button |
||
199 | !href cmd=resume&job=$empty&save=$empty $wims_name_back2 |
||
200 | ($wims_name_sheetmanagement) |
||
201 | !exit |
||
3951 | bpr | 202 | !endif |
1755 | bpr | 203 | |
3951 | bpr | 204 | !if $error=srcnoexo |
17180 | bpr | 205 | This worksheet does not have any exercise yet, so the source code is empty.<br> |
16286 | bpr | 206 | !href cmd=resume Back to edit the worksheet |
207 | !exit |
||
23 | reyssat | 208 | !endif |
3951 | bpr | 209 | |
15859 | guerimand | 210 | !if $error=depindiv |
211 | <div class="wims_msg alert"> |
||
212 | <strong>$wims_name_Error:</strong> |
||
16286 | bpr | 213 | Il n'est pas possible de définir des dépendances de score en même temps que |
15946 | guerimand | 214 | l'activation de l'individualisation des feuilles de travail avec une variable technique. |
17180 | bpr | 215 | <br> |
15859 | guerimand | 216 | Vous devez choisir entre les deux avant de pouvoir activer cette feuille. |
217 | !reset error |
||
218 | </div> |
||
15947 | guerimand | 219 | <div class="wimscenter"> |
220 | !set wims_ref_class=wims_button |
||
221 | !href cmd=resume Retour |
||
222 | </div> |
||
15859 | guerimand | 223 | !exit |
224 | !endif |
||
225 | |||
16195 | guerimand | 226 | !if badtechvarname iswordof $error |
227 | <div class="wims_msg alert"> |
||
228 | <strong>$wims_name_Error:</strong> |
||
17327 | guerimand | 229 | !let code=!word 2 to -1 of $error |
230 | !if $code=_ |
||
231 | une des conditions <span class="wims_code_words">Condition pour cacher la feuille aux participants</span> n'a pas de nom de variable |
||
232 | !else |
||
233 | Un des noms de variable ( |
||
234 | !let code=!listcomplement _ in $code |
||
235 | $code |
||
17329 | guerimand | 236 | ) n'est pas un nom correct de variable technique. Les noms incorrects de variable technique |
237 | ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>. |
||
17327 | guerimand | 238 | !endif |
16195 | guerimand | 239 | </div> |
240 | <div class="wimscenter"> |
||
241 | !set wims_ref_class=wims_button |
||
242 | !reset error |
||
243 | !href cmd=resume Retour |
||
244 | </div> |
||
245 | !exit |
||
246 | !endif |
||
247 | |||
16729 | guerimand | 248 | !if toomanyexo=$error |
249 | <div class="wims_msg alert"> |
||
250 | Le nombre d'exercices dans une feuille est limité à $max_exos. Vous devez supprimer des exercices avant de pouvoir |
||
251 | l'activer. |
||
252 | </div> |
||
253 | !exit |
||
254 | !endif |
||
255 | |||
16798 | guerimand | 256 | !if $error=badallowshare |
257 | <div class="wims_msg alert"> |
||
258 | <strong>$wims_name_Error:</strong> |
||
259 | La variable technique que vous souhaitez utiliser n'est pas disponible dans toutes les classes en partage de ressources avec votre |
||
17180 | bpr | 260 | classe. |
16798 | guerimand | 261 | Vous ne pouvez donc pas propager ces réglages aux autres classes en partage. |
262 | </div> |
||
263 | <div class="wimscenter"> |
||
264 | !set wims_ref_class=wims_button |
||
265 | !reset error |
||
266 | !href cmd=resume Retour |
||
267 | </div> |
||
268 | !exit |
||
269 | !endif |
||
270 | |||
17327 | guerimand | 271 | !if $error=hiddenbadtechvar |
272 | Attention, la <span class="wims_code_words">condition pour cacher la feuille aux participants</span> en utilisant une variable technique est incorrecte. Vous devez la corriger. |
||
273 | !exit |
||
274 | !endif |
||
275 | |||
1755 | bpr | 276 | !msg $error |