Rev 17329 | Rev 17333 | 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 |
17331 | bpr | 32 | The number of worksheets is limited to $max_sheets. You may not create another worksheet. |
33 | !exit |
||
3951 | bpr | 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> |
||
17331 | bpr | 72 | !exit |
1755 | bpr | 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 | !if share iswordof $confirmed |
||
86 | <p>Moreover, the worksheet is shared with other classes where there may be scores too. |
||
87 | It is therefore not allowed to deactivate it.</p> |
||
88 | !exit |
||
89 | !endif |
||
90 | <p> |
||
5657 | obado | 91 | All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it. |
92 | Do you still want to proceed? |
||
16286 | bpr | 93 | </p> |
94 | <p class="wimscenter"> |
||
5657 | obado | 95 | !set wims_ref_class=wims_button |
16286 | bpr | 96 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes, $(wims_name_actionlist[3]) |
97 | |
||
98 | !set wims_ref_class=wims_button wims_secondary_button |
||
99 | !href cmd=resume $wims_name_no, $wims_name_giveup |
||
100 | </p> |
||
5657 | obado | 101 | List of students having worked on this worksheet: |
16286 | bpr | 102 | <p class="tt">$worktest</p> |
103 | |||
104 | <div class="wims_msg info"><b>Note</b>. Only deactivate if you are using this class as a test.</div> |
||
105 | !exit |
||
1755 | bpr | 106 | !endif |
107 | |||
23 | reyssat | 108 | !if prep_activate=$error |
5657 | obado | 109 | You want to activate worksheet $sheet. |
110 | <p>By activating a worksheet, you make it visible to the participants of the class. Once activated, |
||
7801 | bpr | 111 | a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated |
5657 | obado | 112 | worksheet will result in losing the scores and grades of the participants.</p> |
16286 | bpr | 113 | !if $test_expire!=$empty |
114 | <div class="wims_warning"> |
||
115 | The expiration date of the sheet is previous to today, it will be |
||
116 | updated at the expiration date of your class. |
||
117 | </div> |
||
118 | !endif |
||
119 | <p>Do you want to continue?</p> |
||
120 | <p class="wimscenter"> |
||
121 | !set wims_ref_class=wims_button |
||
122 | !href cmd=reply&save=$wims_name_tosave&job=activate $wims_name_yes; $(wims_name_actionlist[1]) |
||
123 | $ $ |
||
17331 | bpr | 124 | !set wims_ref_class=wims_button |
125 | !href cmd=resume $wims_name_no, $wims_name_giveup |
||
16286 | bpr | 126 | </p> |
127 | !exit |
||
23 | reyssat | 128 | !endif |
129 | |||
130 | !if prep_erase=$error |
||
3947 | bpr | 131 | Do you really want to erase worksheet #$sheet ($title)? |
5657 | obado | 132 | <p style="text-align:center"> |
7973 | bpr | 133 | !set wims_ref_class=wims_button wims_warning |
1755 | bpr | 134 | !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase |
7973 | bpr | 135 | |
5657 | obado | 136 | !set wims_ref_class=wims_button |
1755 | bpr | 137 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
5657 | obado | 138 | </p> |
23 | reyssat | 139 | !exit |
140 | !endif |
||
1755 | bpr | 141 | |
23 | reyssat | 142 | !if prep_expire=$error |
16286 | bpr | 143 | Worksheet #$sheet ($title) normally expires on $expday |
144 | !item $expmon of $months |
||
145 | $expyear. Do you want to expire it now? |
||
146 | <p class="wimscenter"> |
||
147 | !set wims_ref_class=wims_button |
||
148 | !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2]) |
||
149 | |
||
150 | !set wims_ref_class=wims_button |
||
151 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
||
152 | </p> |
||
153 | <p><b>Remark.</b> Your students cannot continue to work on a |
||
154 | expired worksheet. But their earlier scores will be conserved (and will be taken into |
||
155 | account in the statistics), and you can always consult these scores.</p> |
||
156 | !exit |
||
23 | reyssat | 157 | !endif |
158 | |||
159 | !if prep_putsource=$error |
||
16286 | bpr | 160 | If you have saved the source code of a worksheet previously, you can insert this code |
161 | into the current worksheet, by copying this code into the window below, |
||
162 | then clicking on the button <span class="wims_button disabled">$wims_name_send</span>. |
||
163 | You may also insert the |
||
164 | source code of a public worksheet by cutting and pasting. |
||
165 | <p> |
||
1755 | bpr | 166 | !set wims_menu_items=!append line sheetadmin,1,cmd=resume \ |
167 | to $wims_menu_items |
||
168 | |||
17206 | guerimand | 169 | !set wims_form_method=post |
16286 | bpr | 170 | !form reply |
17180 | bpr | 171 | <input type="hidden" name="job" value="putsource"><p class="wimscenter"> |
17206 | guerimand | 172 | <textarea cols="55" rows="10" name="source">$ssource</textarea> |
5850 | bpr | 173 | </p> |
17180 | 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 |
17180 | bpr | 204 | This worksheet does not have any exercise yet, so the source code is empty.<br> |
16286 | bpr | 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. |
17180 | bpr | 214 | <br> |
15859 | guerimand | 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> |
||
17327 | guerimand | 228 | !let code=!word 2 to -1 of $error |
229 | !if $code=_ |
||
230 | une des conditions <span class="wims_code_words">Condition pour cacher la feuille aux participants</span> n'a pas de nom de variable |
||
231 | !else |
||
232 | Un des noms de variable ( |
||
233 | !let code=!listcomplement _ in $code |
||
234 | $code |
||
17329 | guerimand | 235 | ) n'est pas un nom correct de variable technique. Les noms incorrects de variable technique |
236 | ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>. |
||
17327 | guerimand | 237 | !endif |
16195 | guerimand | 238 | </div> |
239 | <div class="wimscenter"> |
||
240 | !set wims_ref_class=wims_button |
||
241 | !reset error |
||
242 | !href cmd=resume Retour |
||
243 | </div> |
||
244 | !exit |
||
245 | !endif |
||
246 | |||
16729 | guerimand | 247 | !if toomanyexo=$error |
248 | <div class="wims_msg alert"> |
||
249 | Le nombre d'exercices dans une feuille est limité à $max_exos. Vous devez supprimer des exercices avant de pouvoir |
||
250 | l'activer. |
||
251 | </div> |
||
252 | !exit |
||
253 | !endif |
||
254 | |||
16798 | guerimand | 255 | !if $error=badallowshare |
256 | <div class="wims_msg alert"> |
||
257 | <strong>$wims_name_Error:</strong> |
||
258 | La variable technique que vous souhaitez utiliser n'est pas disponible dans toutes les classes en partage de ressources avec votre |
||
17180 | bpr | 259 | classe. |
16798 | guerimand | 260 | Vous ne pouvez donc pas propager ces réglages aux autres classes en partage. |
261 | </div> |
||
262 | <div class="wimscenter"> |
||
263 | !set wims_ref_class=wims_button |
||
264 | !reset error |
||
265 | !href cmd=resume Retour |
||
266 | </div> |
||
267 | !exit |
||
268 | !endif |
||
269 | |||
17327 | guerimand | 270 | !if $error=hiddenbadtechvar |
271 | 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. |
||
272 | !exit |
||
273 | !endif |
||
274 | |||
1755 | bpr | 275 | !msg $error |