Rev 3930 | Rev 3951 | 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 | |||
8 | !if bad_class=$error |
||
3947 | bpr | 9 | Strange, but it seems that your class is not valid! |
23 | reyssat | 10 | !exit |
11 | !endif |
||
12 | |||
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 | |||
1689 | bpr | 21 | !if bad_sheet=$error |
3947 | bpr | 22 | Your worksheet number is not valid. Could be this a bug? |
1689 | bpr | 23 | !exit |
24 | !endif |
||
25 | |||
23 | reyssat | 26 | !if no_title=$error |
3947 | bpr | 27 | You want to register a worksheet without a title, which is not advisable. |
28 | Did you simply forget? |
||
23 | reyssat | 29 | !exit |
30 | !endif |
||
31 | |||
1755 | bpr | 32 | !if $error=not_secure |
3947 | bpr | 33 | This action can only be done from a secure host. |
1755 | bpr | 34 | !if $sec=$empty |
3947 | bpr | 35 | You have not defined a secure host. Access denied. You may ask the webmaster |
1755 | bpr | 36 | to do it for you. |
37 | !else |
||
38 | Access denied. |
||
39 | !endif |
||
40 | !exit |
||
41 | !endif |
||
42 | |||
43 | !if $error=sharing_sheet |
||
3921 | bpr | 44 | You are sharing worksheets with other classes! |
1755 | bpr | 45 | !if $wims_ismanager<2 |
3930 | bpr | 46 | You must ask the webmaster to deactivate the worksheet for you. |
1755 | bpr | 47 | !exit |
48 | !endif |
||
3947 | bpr | 49 | Deactivating this worksheet may disrupted neighboring classes. |
50 | This action is therefore <b>strongly discouraged</b>. |
||
1755 | bpr | 51 | <p> |
3921 | bpr | 52 | Do you still want to deactivate the worksheet? |
1755 | bpr | 53 | <p><center> |
3245 | guerimand | 54 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 55 | . |
56 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
57 | . </center> |
||
58 | <p> |
||
59 | <b>Before continuing, ask at least the supervisors of your class neighbors to |
||
60 | save their classes!</b> |
||
61 | !exit |
||
62 | !endif |
||
63 | |||
64 | !if $error=sheet_in_exam |
||
3921 | bpr | 65 | Impossible to deactivate this worksheet, because you have exams based on its |
1755 | bpr | 66 | content. |
67 | !exit |
||
68 | !endif |
||
69 | |||
70 | !if $error=non_empty_activities |
||
3947 | bpr | 71 | You want to deactivate worksheet $sheet, although participants have already |
1755 | bpr | 72 | started to work on it! |
73 | <p> |
||
74 | !if share iswordof $confirmed |
||
3947 | bpr | 75 | Moreover, the worksheet is shared with other classes where there may be scores too. |
76 | It is therefore not allowed to deactivate it. |
||
1755 | bpr | 77 | !exit |
78 | !endif |
||
3947 | bpr | 79 | All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it. |
80 | Do you still want to proceed? |
||
1755 | bpr | 81 | <p><center> |
3245 | guerimand | 82 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 83 | . |
84 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
85 | . </center> <p> |
||
3947 | bpr | 86 | List of students having worked on this worksheet: |
1755 | bpr | 87 | <p> |
88 | <tt>$worktest</tt> |
||
89 | <p> |
||
3947 | bpr | 90 | <b>Note</b>. Only deactivate if you are using this class as a test. |
1755 | bpr | 91 | !exit |
92 | !endif |
||
93 | |||
23 | reyssat | 94 | !if prep_activate=$error |
3947 | bpr | 95 | You want to activate worksheet $sheet. <p> |
3927 | bpr | 96 | By activating a worksheet, you make it visible to the participants of the class. Once activated, |
97 | a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated |
||
98 | worksheet will result in losing the scores and grades of the participants. |
||
23 | reyssat | 99 | <p> |
3927 | bpr | 100 | Do you want to continue? |
23 | reyssat | 101 | <p><center> |
3245 | guerimand | 102 | !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1]) |
23 | reyssat | 103 | . |
1755 | bpr | 104 | !href cmd=resume $wims_name_no; $wims_name_giveup |
23 | reyssat | 105 | .</center> |
106 | !exit |
||
107 | !endif |
||
108 | |||
109 | !if prep_erase=$error |
||
3947 | bpr | 110 | Do you really want to erase worksheet #$sheet ($title)? |
23 | reyssat | 111 | <p><center> |
1755 | bpr | 112 | !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase |
113 | . |
||
114 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
||
115 | .</center> |
||
23 | reyssat | 116 | !exit |
117 | !endif |
||
1755 | bpr | 118 | |
23 | reyssat | 119 | !if prep_expire=$error |
3947 | bpr | 120 | Worksheet #$sheet ($title) normally expires on $expday |
23 | reyssat | 121 | !item $expmon of $months |
122 | $expyear. Do you want to expire it now? |
||
123 | <p><center> |
||
3245 | guerimand | 124 | !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2]) |
23 | reyssat | 125 | . |
1755 | bpr | 126 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
23 | reyssat | 127 | . </center> |
128 | <p><b>Remark.</b> Your students cannot continue to work on a |
||
3921 | bpr | 129 | expired worksheet. But their earlier scores will be conserved (and will be taken into |
23 | reyssat | 130 | account in the statistics), and you can always consult these scores. |
131 | !exit |
||
132 | !endif |
||
133 | |||
134 | !if prep_putsource=$error |
||
3947 | bpr | 135 | If you have saved the source code of a worksheet previously, you can insert this code |
136 | into the current worksheet, by copying this code into the window below, |
||
137 | then clicking on the button <tt>$wims_name_send</tt>. You may also insert the |
||
138 | source code of a public worksheet by cutting and pasting. |
||
1755 | bpr | 139 | <p> |
140 | !set wims_menu_items=!append line sheetadmin,1,cmd=resume \ |
||
141 | to $wims_menu_items |
||
142 | |||
23 | reyssat | 143 | !form reply |
3947 | bpr | 144 | <input type="hidden" name="job" value="putsource"><center> |
145 | <textarea cols="55" rows="10" name="source">$source</textarea> |
||
146 | <p><input type="submit" value="$wims_name_send"> |
||
23 | reyssat | 147 | </center></form> |
3947 | bpr | 148 | <b>Warning</b>. It is advised not to modify the source code of the worksheet as it may abort the |
149 | worksheet. |
||
23 | reyssat | 150 | !exit |
151 | !endif |
||
152 | |||
153 | !if prep_modify=$error |
||
154 | !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
155 | !if $modif>$cnt or $modif<1 |
||
156 | You have sent an invalid request. Ignored. |
||
157 | !else |
||
158 | !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
2210 | bpr | 159 | !changeto exomodify.phtml $exo |
23 | reyssat | 160 | !endif |
161 | !exit |
||
162 | !endif |
||
163 | |||
1755 | bpr | 164 | !if $error=toolate |
1780 | bpr | 165 | $name_expiration1 ($l_date). $name_expiration2 |
23 | reyssat | 166 | |
1755 | bpr | 167 | <p> |
168 | !href cmd=resume $wims_name_back2 |
||
169 | ($wims_name_sheetmanagement) |
||
170 | |||
23 | reyssat | 171 | !exit |
172 | !endif |
||
1755 | bpr | 173 | !msg $error |