Rev 3960 | Rev 4552 | 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 |
32 | Le nombre de feuilles est limité à $max_sheet. Vous ne pouvez donc plus en créer. |
||
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 |
||
3947 | bpr | 59 | Deactivating this worksheet may disrupted neighboring classes. |
60 | This action is therefore <b>strongly discouraged</b>. |
||
1755 | bpr | 61 | <p> |
3921 | bpr | 62 | Do you still want to deactivate the worksheet? |
1755 | bpr | 63 | <p><center> |
3245 | guerimand | 64 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 65 | . |
66 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
67 | . </center> |
||
68 | <p> |
||
69 | <b>Before continuing, ask at least the supervisors of your class neighbors to |
||
70 | save their classes!</b> |
||
71 | !exit |
||
72 | !endif |
||
73 | |||
74 | !if $error=sheet_in_exam |
||
3921 | bpr | 75 | Impossible to deactivate this worksheet, because you have exams based on its |
1755 | bpr | 76 | content. |
77 | !exit |
||
78 | !endif |
||
79 | |||
80 | !if $error=non_empty_activities |
||
3947 | bpr | 81 | You want to deactivate worksheet $sheet, although participants have already |
1755 | bpr | 82 | started to work on it! |
83 | <p> |
||
84 | !if share iswordof $confirmed |
||
3947 | bpr | 85 | Moreover, the worksheet is shared with other classes where there may be scores too. |
86 | It is therefore not allowed to deactivate it. |
||
1755 | bpr | 87 | !exit |
88 | !endif |
||
3947 | bpr | 89 | All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it. |
90 | Do you still want to proceed? |
||
1755 | bpr | 91 | <p><center> |
3245 | guerimand | 92 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 93 | . |
94 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
95 | . </center> <p> |
||
3947 | bpr | 96 | List of students having worked on this worksheet: |
1755 | bpr | 97 | <p> |
98 | <tt>$worktest</tt> |
||
99 | <p> |
||
3947 | bpr | 100 | <b>Note</b>. Only deactivate if you are using this class as a test. |
1755 | bpr | 101 | !exit |
102 | !endif |
||
103 | |||
23 | reyssat | 104 | !if prep_activate=$error |
3947 | bpr | 105 | You want to activate worksheet $sheet. <p> |
3927 | bpr | 106 | By activating a worksheet, you make it visible to the participants of the class. Once activated, |
107 | a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated |
||
108 | worksheet will result in losing the scores and grades of the participants. |
||
23 | reyssat | 109 | <p> |
3927 | bpr | 110 | Do you want to continue? |
23 | reyssat | 111 | <p><center> |
3245 | guerimand | 112 | !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1]) |
23 | reyssat | 113 | . |
1755 | bpr | 114 | !href cmd=resume $wims_name_no; $wims_name_giveup |
23 | reyssat | 115 | .</center> |
116 | !exit |
||
117 | !endif |
||
118 | |||
119 | !if prep_erase=$error |
||
3947 | bpr | 120 | Do you really want to erase worksheet #$sheet ($title)? |
23 | reyssat | 121 | <p><center> |
1755 | bpr | 122 | !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase |
123 | . |
||
124 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
||
125 | .</center> |
||
23 | reyssat | 126 | !exit |
127 | !endif |
||
1755 | bpr | 128 | |
23 | reyssat | 129 | !if prep_expire=$error |
3947 | bpr | 130 | Worksheet #$sheet ($title) normally expires on $expday |
23 | reyssat | 131 | !item $expmon of $months |
132 | $expyear. Do you want to expire it now? |
||
133 | <p><center> |
||
3245 | guerimand | 134 | !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2]) |
23 | reyssat | 135 | . |
1755 | bpr | 136 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
23 | reyssat | 137 | . </center> |
138 | <p><b>Remark.</b> Your students cannot continue to work on a |
||
3921 | bpr | 139 | expired worksheet. But their earlier scores will be conserved (and will be taken into |
23 | reyssat | 140 | account in the statistics), and you can always consult these scores. |
141 | !exit |
||
142 | !endif |
||
143 | |||
144 | !if prep_putsource=$error |
||
3947 | bpr | 145 | If you have saved the source code of a worksheet previously, you can insert this code |
146 | into the current worksheet, by copying this code into the window below, |
||
147 | then clicking on the button <tt>$wims_name_send</tt>. You may also insert the |
||
148 | source code of a public worksheet by cutting and pasting. |
||
3951 | bpr | 149 | <p> |
1755 | bpr | 150 | !set wims_menu_items=!append line sheetadmin,1,cmd=resume \ |
151 | to $wims_menu_items |
||
152 | |||
23 | reyssat | 153 | !form reply |
3947 | bpr | 154 | <input type="hidden" name="job" value="putsource"><center> |
155 | <textarea cols="55" rows="10" name="source">$source</textarea> |
||
156 | <p><input type="submit" value="$wims_name_send"> |
||
23 | reyssat | 157 | </center></form> |
3947 | bpr | 158 | <b>Warning</b>. It is advised not to modify the source code of the worksheet as it may abort the |
159 | worksheet. |
||
23 | reyssat | 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 |
||
2210 | bpr | 169 | !changeto exomodify.phtml $exo |
23 | reyssat | 170 | !endif |
171 | !exit |
||
172 | !endif |
||
173 | |||
1755 | bpr | 174 | !if $error=toolate |
3951 | bpr | 175 | $name_expiration1 ($l_date). $name_expiration2 <p> |
176 | !href cmd=resume $wims_name_back2 |
||
1755 | bpr | 177 | ($wims_name_sheetmanagement) |
3951 | bpr | 178 | !exit |
179 | !endif |
||
1755 | bpr | 180 | |
3951 | bpr | 181 | !if $error=srcnoexo |
3960 | bpr | 182 | This worksheet does not have any exercises yet, so the source code is empty.<br> |
3951 | bpr | 183 | !href cmd=resume Back to edit the worksheet |
23 | reyssat | 184 | !exit |
185 | !endif |
||
3951 | bpr | 186 | |
1755 | bpr | 187 | !msg $error |