Rev 17329 | 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. |
||
17206 | guerimand | 16 | !href cmd=reply&job=prep_putsource $name_correctsource |
2210 | bpr | 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¤£«Øij±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 | . |
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 | . |
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 | ±zn¨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©wnÄ~Äò¡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 |
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©wn§R°£³oÓ§@·~²M³æ #$sheet ($title) ¶Ü¡H |
||
5764 | bpr | 118 | <div class="wimscenter"> |
23 | reyssat | 119 | !href cmd=reply&job=erase §R°£ |
120 | ¡C |
||
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±zn±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 |
||
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 | |||
17206 | guerimand | 149 | !set wims_form_method=post |
2210 | bpr | 150 | !form reply |
17180 | bpr | 151 | <input type="hidden" name="job" value="putsource"><p class="wimscenter"> |
17206 | guerimand | 152 | <textarea cols="55" rows="10" name="source">$ssource</textarea> |
5850 | bpr | 153 | </p> |
17180 | bpr | 154 | <p class="wimscenter"><input type="submit" value="$wims_name_send"> |
5926 | bpr | 155 | </p> |
156 | !formend |
||
4552 | bpr | 157 | <span class="wims_warning">$wims_name_warning</span>. |
158 | Do not insert modified source file! You risk to make your |
||
2210 | bpr | 159 | worksheet useless. |
160 | !exit |
||
161 | !endif |
||
162 | |||
163 | !if prep_modify=$error |
||
164 | !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
165 | !if $modif>$cnt or $modif<1 |
||
166 | You have sent an invalid request. Ignored. |
||
167 | !else |
||
168 | !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
169 | !changeto exomodify.phtml $exo |
||
170 | !endif |
||
171 | !exit |
||
172 | !endif |
||
173 | |||
11035 | bpr | 174 | !!if $error=toolate |
175 | !read adm/lang/date.phtml.$moduclass_lang $class_expiration |
||
176 | <p>$name_expiration1 ($l_date_out). $name_expiration2 </p> |
||
177 | !set wims_ref_class=wims_button |
||
12089 | guerimand | 178 | !href cmd=resume&job=$empty&ssave=$empty $wims_name_back2 |
2210 | bpr | 179 | ($wims_name_sheetmanagement) |
180 | !exit |
||
181 | !endif |
||
11035 | bpr | 182 | |
15859 | guerimand | 183 | !if $error=depindiv |
184 | <div class="wims_msg alert"> |
||
185 | <strong>$wims_name_Error:</strong> |
||
16286 | bpr | 186 | Il n'est pas possible de définir des dépendances de score en même temps que |
15946 | guerimand | 187 | l'activation de l'individualisation des feuilles de travail avec une variable technique. |
17180 | bpr | 188 | <br> |
15859 | guerimand | 189 | Vous devez choisir entre les deux avant de pouvoir activer cette feuille. |
190 | !reset error |
||
191 | </div> |
||
15947 | guerimand | 192 | <div class="wimscenter"> |
193 | !set wims_ref_class=wims_button |
||
194 | !href cmd=resume Retour |
||
195 | </div> |
||
15859 | guerimand | 196 | !exit |
197 | !endif |
||
198 | |||
16195 | guerimand | 199 | !if badtechvarname iswordof $error |
200 | <div class="wims_msg alert"> |
||
201 | <strong>$wims_name_Error:</strong> |
||
17327 | guerimand | 202 | !let code=!word 2 to -1 of $error |
203 | !if $code=_ |
||
204 | une des conditions <span class="wims_code_words">Condition pour cacher la feuille aux participants</span> n'a pas de nom de variable |
||
205 | !else |
||
206 | Un des noms de variable ( |
||
207 | !let code=!listcomplement _ in $code |
||
208 | $code |
||
17329 | guerimand | 209 | ) n'est pas un nom correct de variable technique. Les noms incorrects de variable technique |
210 | ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>. |
||
17327 | guerimand | 211 | !endif |
16195 | guerimand | 212 | </div> |
213 | <div class="wimscenter"> |
||
214 | !set wims_ref_class=wims_button |
||
215 | !reset error |
||
216 | !href cmd=resume Retour |
||
217 | </div> |
||
218 | !exit |
||
219 | !endif |
||
220 | |||
16729 | guerimand | 221 | !if toomanyexo=$error |
222 | <div class="wims_msg alert"> |
||
223 | Le nombre d'exercices dans une feuille est limité à $max_exos. Vous devez supprimer des exercices avant de pouvoir |
||
224 | l'activer. |
||
225 | </div> |
||
226 | !exit |
||
227 | !endif |
||
228 | |||
16798 | guerimand | 229 | !if $error=badallowshare |
230 | <div class="wims_msg alert"> |
||
231 | <strong>$wims_name_Error:</strong> |
||
232 | La variable technique que vous souhaitez utiliser n'est pas disponible dans toutes les classes en partage de ressources avec votre |
||
17180 | bpr | 233 | classe. |
16798 | guerimand | 234 | Vous ne pouvez donc pas propager ces réglages aux autres classes en partage. |
235 | </div> |
||
236 | <div class="wimscenter"> |
||
237 | !set wims_ref_class=wims_button |
||
238 | !reset error |
||
239 | !href cmd=resume Retour |
||
240 | </div> |
||
241 | !exit |
||
242 | !endif |
||
243 | |||
17327 | guerimand | 244 | !if $error=hiddenbadtechvar |
245 | 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. |
||
246 | !exit |
||
247 | !endif |
||
248 | |||
17333 | guerimand | 249 | !if techvardiscord iswordof $error |
250 | !! TODO_lang techvardiscord |
||
251 | !changeto lang/msg.phtml.fr |
||
252 | !endif |
||
253 | |||
23 | reyssat | 254 | !msg $error |
16195 | guerimand | 255 |