Rev 15947 | Rev 16286 | 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 |
||
3947 | bpr | 4 | Sorry, only the registered supervisor of a class can edit a worksheet |
23 | reyssat | 5 | !exit |
6 | !endif |
||
7 | |||
3951 | bpr | 8 | !if bad_series=$error |
9 | Strange, but I do not find the exercise series to modify !! |
||
10 | !exit |
||
11 | !endif |
||
12 | |||
23 | reyssat | 13 | !if bad_source=$error |
3947 | bpr | 14 | The item number $bad_source in the source code you just submitted is not |
23 | reyssat | 15 | valid. |
1755 | bpr | 16 | !href cmd=reply&job=prep_putsource&source=$source $name_correctsource |
17 | . |
||
23 | reyssat | 18 | !exit |
19 | !endif |
||
20 | |||
3951 | bpr | 21 | !if active_sheet=$error |
22 | Cette feuille est active. Son contenu ne peut pas être modifié. |
||
23 | !exit |
||
24 | !endif |
||
25 | |||
1689 | bpr | 26 | !if bad_sheet=$error |
3947 | bpr | 27 | Your worksheet number is not valid. Could be this a bug? |
1689 | bpr | 28 | !exit |
29 | !endif |
||
30 | |||
3951 | bpr | 31 | !if bad_maxsheet=$error |
8255 | bpr | 32 | Le nombre de feuilles est limité à $max_sheets. Vous ne pouvez donc plus en créer. |
3951 | bpr | 33 | !exit |
34 | !endif |
||
35 | |||
23 | reyssat | 36 | !if no_title=$error |
3947 | bpr | 37 | You want to register a worksheet without a title, which is not advisable. |
38 | Did you simply forget? |
||
23 | reyssat | 39 | !exit |
40 | !endif |
||
41 | |||
1755 | bpr | 42 | !if $error=not_secure |
3947 | bpr | 43 | This action can only be done from a secure host. |
1755 | bpr | 44 | !if $sec=$empty |
3947 | bpr | 45 | You have not defined a secure host. Access denied. You may ask the webmaster |
1755 | bpr | 46 | to do it for you. |
47 | !else |
||
48 | Access denied. |
||
49 | !endif |
||
50 | !exit |
||
51 | !endif |
||
52 | |||
53 | !if $error=sharing_sheet |
||
3921 | bpr | 54 | You are sharing worksheets with other classes! |
1755 | bpr | 55 | !if $wims_ismanager<2 |
3930 | bpr | 56 | You must ask the webmaster to deactivate the worksheet for you. |
1755 | bpr | 57 | !exit |
58 | !endif |
||
7801 | bpr | 59 | Deactivating this worksheet may disrupted neighboring classes. |
3947 | bpr | 60 | This action is therefore <b>strongly discouraged</b>. |
5657 | obado | 61 | <p> Do you still want to deactivate the worksheet?</p> |
62 | <p style="text-align:center"> |
||
63 | !set wims_ref_class=wims_button |
||
3245 | guerimand | 64 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
5657 | obado | 65 | |
13313 | obado | 66 | !set wims_ref_class=wims_button wims_secondary_button |
1755 | bpr | 67 | !href cmd=resume $wims_name_no; $wims_name_giveup |
5657 | obado | 68 | </p> |
1755 | bpr | 69 | <p> |
5657 | obado | 70 | <b>Before continuing, ask at least the supervisors of your class neighbors to |
71 | save their classes!</b> |
||
72 | </p> |
||
1755 | bpr | 73 | !exit |
74 | !endif |
||
75 | |||
14395 | bpr | 76 | !if sheet_in_exam iswordof $error |
77 | !set exa=!word 2 of $error |
||
78 | Impossible to deactivate this worksheet, because you have exams based on its |
||
79 | content (for example exam $exa). |
||
1755 | bpr | 80 | !exit |
81 | !endif |
||
82 | |||
83 | !if $error=non_empty_activities |
||
14099 | obado | 84 | <p class="wims_msg warning">You want to deactivate worksheet $sheet, although participants have already |
85 | started to work on it!</p> |
||
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 |
||
1755 | bpr | 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? |
||
94 | </p> |
||
95 | <p style="text-align:center"> |
||
96 | !set wims_ref_class=wims_button |
||
97 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
||
98 | |
||
13313 | obado | 99 | !set wims_ref_class=wims_button wims_secondary_button |
5657 | obado | 100 | !href cmd=resume $wims_name_no; $wims_name_giveup |
101 | </p> |
||
1755 | bpr | 102 | <p> |
5657 | obado | 103 | List of students having worked on this worksheet: |
14099 | obado | 104 | <span class="tt">$worktest</span> |
5657 | obado | 105 | </p> |
14099 | obado | 106 | <div class="wims_msg info"><b>Note</b>. Only deactivate if you are using this class as a test.</div> |
1755 | bpr | 107 | !exit |
108 | !endif |
||
109 | |||
23 | reyssat | 110 | !if prep_activate=$error |
5657 | obado | 111 | You want to activate worksheet $sheet. |
112 | <p>By activating a worksheet, you make it visible to the participants of the class. Once activated, |
||
7801 | bpr | 113 | a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated |
5657 | obado | 114 | worksheet will result in losing the scores and grades of the participants.</p> |
7801 | bpr | 115 | !if $test_expire!=$empty |
116 | <div class="wims_warning"> |
||
117 | The expiration date of the sheet is previous to today, it will be |
||
118 | updated at the expiration date of your class. |
||
119 | </div> |
||
120 | !endif |
||
5657 | obado | 121 | <p>Do you want to continue?</p> |
122 | <p style="text-align:center"> |
||
123 | !set wims_ref_class=wims_button |
||
124 | !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1]) |
||
125 | |
||
126 | !set wims_ref_class=wims_button |
||
127 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
128 | </p> |
||
23 | reyssat | 129 | !exit |
130 | !endif |
||
131 | |||
132 | !if prep_erase=$error |
||
3947 | bpr | 133 | Do you really want to erase worksheet #$sheet ($title)? |
5657 | obado | 134 | <p style="text-align:center"> |
7973 | bpr | 135 | !set wims_ref_class=wims_button wims_warning |
1755 | bpr | 136 | !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase |
7973 | bpr | 137 | |
5657 | obado | 138 | !set wims_ref_class=wims_button |
1755 | bpr | 139 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
5657 | obado | 140 | </p> |
23 | reyssat | 141 | !exit |
142 | !endif |
||
1755 | bpr | 143 | |
23 | reyssat | 144 | !if prep_expire=$error |
3947 | bpr | 145 | Worksheet #$sheet ($title) normally expires on $expday |
23 | reyssat | 146 | !item $expmon of $months |
147 | $expyear. Do you want to expire it now? |
||
5657 | obado | 148 | <p style="text-align:center"> |
149 | !set wims_ref_class=wims_button |
||
3245 | guerimand | 150 | !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2]) |
5657 | obado | 151 | |
152 | !set wims_ref_class=wims_button |
||
1755 | bpr | 153 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
5657 | obado | 154 | </p> |
23 | reyssat | 155 | <p><b>Remark.</b> Your students cannot continue to work on a |
3921 | bpr | 156 | expired worksheet. But their earlier scores will be conserved (and will be taken into |
5657 | obado | 157 | account in the statistics), and you can always consult these scores.</p> |
23 | reyssat | 158 | !exit |
159 | !endif |
||
160 | |||
161 | !if prep_putsource=$error |
||
3947 | bpr | 162 | If you have saved the source code of a worksheet previously, you can insert this code |
163 | into the current worksheet, by copying this code into the window below, |
||
7801 | bpr | 164 | then clicking on the button <span class="wims_button disabled">$wims_name_send</span>. |
4552 | bpr | 165 | You may also insert the |
3947 | bpr | 166 | source code of a public worksheet by cutting and pasting. |
3951 | bpr | 167 | <p> |
1755 | bpr | 168 | !set wims_menu_items=!append line sheetadmin,1,cmd=resume \ |
169 | to $wims_menu_items |
||
170 | |||
23 | reyssat | 171 | !form reply |
6235 | bpr | 172 | <input type="hidden" name="job" value="putsource" /><p class="wimscenter"> |
5657 | obado | 173 | <textarea cols="55" rows="10" name="source">$source</textarea> |
5850 | bpr | 174 | </p> |
6235 | bpr | 175 | <p class="wimscenter"><input type="submit" value="$wims_name_send" /></p> |
7801 | bpr | 176 | |
5926 | bpr | 177 | !formend |
7801 | bpr | 178 | <span class="wims_warning">$wims_name_warning</span>. |
4552 | bpr | 179 | It is advised not to modify the source code of the worksheet as it may abort the |
3947 | bpr | 180 | worksheet. |
23 | reyssat | 181 | !exit |
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 |
11035 | 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 |
||
12089 | guerimand | 199 | !href cmd=resume&job=$empty&save=$empty $wims_name_back2 |
11035 | bpr | 200 | ($wims_name_sheetmanagement) |
3951 | bpr | 201 | !exit |
202 | !endif |
||
1755 | bpr | 203 | |
3951 | bpr | 204 | !if $error=srcnoexo |
6235 | bpr | 205 | This worksheet does not have any exercises yet, so the source code is empty.<br /> |
3951 | bpr | 206 | !href cmd=resume Back to edit the worksheet |
23 | reyssat | 207 | !exit |
208 | !endif |
||
3951 | bpr | 209 | |
15859 | guerimand | 210 | !if $error=depindiv |
211 | <div class="wims_msg alert"> |
||
212 | <strong>$wims_name_Error:</strong> |
||
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. |
15859 | guerimand | 215 | <br/> |
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> |
||
229 | Un des noms de variable ( |
||
230 | !word 2 to -1 of $error |
||
231 | ) n'est pas un nom correct de variable technique. Les noms de variable technique |
||
232 | incorrect ont été supprimés du champs <span class="wims_code_words">Condition pour cacher la feuille aux participants</span>. |
||
233 | </div> |
||
234 | <div class="wimscenter"> |
||
235 | !set wims_ref_class=wims_button |
||
236 | !reset error |
||
237 | !href cmd=resume Retour |
||
238 | </div> |
||
239 | !exit |
||
240 | !endif |
||
241 | |||
1755 | bpr | 242 | !msg $error |