Rev 3918 | Rev 3927 | 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 |
||
3921 | bpr | 4 | Sorry, but the operation of preparation / modification of a worksheet |
23 | reyssat | 5 | is reserved to registered supervisor of a class. |
6 | !exit |
||
7 | !endif |
||
8 | |||
9 | !if bad_class=$error |
||
10 | Strange, but I find that your class is not valid! |
||
11 | !exit |
||
12 | !endif |
||
13 | |||
14 | !if bad_source=$error |
||
15 | The item number $bad_source in the source you just submitted is not |
||
16 | valid. |
||
1755 | bpr | 17 | !href cmd=reply&job=prep_putsource&source=$source $name_correctsource |
18 | . |
||
23 | reyssat | 19 | !exit |
20 | !endif |
||
21 | |||
1689 | bpr | 22 | !if bad_sheet=$error |
3921 | bpr | 23 | Your worksheet number is not valid. Bug of the software? |
1689 | bpr | 24 | !exit |
25 | !endif |
||
26 | |||
23 | reyssat | 27 | !if no_title=$error |
3921 | bpr | 28 | You want to register a worksheet without title, which is not advisable. |
23 | reyssat | 29 | Error of manipulation? |
30 | !exit |
||
31 | !endif |
||
32 | |||
1755 | bpr | 33 | !if $error=not_secure |
34 | This operation can only be done from a secure host. |
||
35 | !if $sec=$empty |
||
36 | You haven't defined secure host. Access denied. You may ask the site manager |
||
37 | to do it for you. |
||
38 | !else |
||
39 | Access denied. |
||
40 | !endif |
||
41 | !exit |
||
42 | !endif |
||
43 | |||
44 | !if $error=sharing_sheet |
||
3921 | bpr | 45 | You are sharing worksheets with other classes! |
1755 | bpr | 46 | !if $wims_ismanager<2 |
3921 | bpr | 47 | You must ask the site manager to deactivate the worksheet for you. |
1755 | bpr | 48 | !exit |
49 | !endif |
||
50 | You might put your neighboring classes in total disorder by deactivating |
||
3921 | bpr | 51 | this worksheet. This operation is therefore <b>stronly discouraged</b>. |
1755 | bpr | 52 | <p> |
3921 | bpr | 53 | Do you still want to deactivate the worksheet? |
1755 | bpr | 54 | <p><center> |
3245 | guerimand | 55 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 56 | . |
57 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
58 | . </center> |
||
59 | <p> |
||
60 | <b>Before continuing, ask at least the supervisors of your class neighbors to |
||
61 | save their classes!</b> |
||
62 | !exit |
||
63 | !endif |
||
64 | |||
65 | !if $error=sheet_in_exam |
||
3921 | bpr | 66 | Impossible to deactivate this worksheet, because you have exams based on its |
1755 | bpr | 67 | content. |
68 | !exit |
||
69 | !endif |
||
70 | |||
71 | !if $error=non_empty_activities |
||
3921 | bpr | 72 | You want to deactivate the worksheet $sheet, while participants have already |
1755 | bpr | 73 | started to work on it! |
74 | <p> |
||
75 | !if share iswordof $confirmed |
||
3921 | bpr | 76 | Moreover, the worksheet is shared with other classes where there may be works |
1755 | bpr | 77 | and scores too. It is therefore not allowed to deactivate it. |
78 | !exit |
||
79 | !endif |
||
3921 | bpr | 80 | All scores obtained on this worksheet will be erased, if you deactivate. Really |
1755 | bpr | 81 | want to do it? |
82 | <p><center> |
||
3245 | guerimand | 83 | !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3]) |
1755 | bpr | 84 | . |
85 | !href cmd=resume $wims_name_no; $wims_name_giveup |
||
86 | . </center> <p> |
||
3921 | bpr | 87 | List of accounts having worked on this worksheet: |
1755 | bpr | 88 | <p> |
89 | <tt>$worktest</tt> |
||
90 | <p> |
||
91 | <b>Note</b>. This action should be taken only if this is a testing class. |
||
92 | Don't go further if the participants are your real students! |
||
93 | !exit |
||
94 | !endif |
||
95 | |||
23 | reyssat | 96 | !if prep_activate=$error |
1755 | bpr | 97 | Vous demandez d'activer la feuille $sheet, c'est-à-dire la rendre |
98 | accessible aux participants de la classe. <p> |
||
99 | Veuillez noter qu'une feuille active n'est pas modifiable sans être |
||
100 | désactivée préalablement, et la désactivation de la feuille entraîne la |
||
101 | suppression de l'ensemble des scores sur la feuille, si elle n'est pas |
||
102 | interdite par la situation. |
||
23 | reyssat | 103 | <p> |
1755 | bpr | 104 | Voulez-vous continuer? |
23 | reyssat | 105 | <p><center> |
3245 | guerimand | 106 | !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1]) |
23 | reyssat | 107 | . |
1755 | bpr | 108 | !href cmd=resume $wims_name_no; $wims_name_giveup |
23 | reyssat | 109 | .</center> |
110 | !exit |
||
111 | !endif |
||
112 | |||
113 | !if prep_erase=$error |
||
3921 | bpr | 114 | Do you really want to erase this worksheet #$sheet ($title)? |
23 | reyssat | 115 | <p><center> |
1755 | bpr | 116 | !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase |
117 | . |
||
118 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
||
119 | .</center> |
||
23 | reyssat | 120 | !exit |
121 | !endif |
||
1755 | bpr | 122 | |
23 | reyssat | 123 | !if prep_expire=$error |
3921 | bpr | 124 | This worksheet #$sheet ($title) expires normally expires on $expday |
23 | reyssat | 125 | !item $expmon of $months |
126 | $expyear. Do you want to expire it now? |
||
127 | <p><center> |
||
3245 | guerimand | 128 | !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2]) |
23 | reyssat | 129 | . |
1755 | bpr | 130 | !href cmd=resume $wims_name_no ; $wims_name_giveup |
23 | reyssat | 131 | . </center> |
132 | <p><b>Remark.</b> Your students cannot continue to work on a |
||
3921 | bpr | 133 | expired worksheet. But their earlier scores will be conserved (and will be taken into |
23 | reyssat | 134 | account in the statistics), and you can always consult these scores. |
135 | !exit |
||
136 | !endif |
||
137 | |||
138 | !if prep_putsource=$error |
||
3921 | bpr | 139 | If you have a source of a worksheet saved earlier, you can insert this source |
140 | into the current worksheet, by copying this source into the window below, |
||
23 | reyssat | 141 | then clicking on the button `Send'. This form also allows you to insert the |
3918 | bpr | 142 | source of a public worksheet using cut-and-paste. |
1755 | bpr | 143 | <p> |
144 | !set wims_menu_items=!append line sheetadmin,1,cmd=resume \ |
||
145 | to $wims_menu_items |
||
146 | |||
23 | reyssat | 147 | !form reply |
3049 | bpr | 148 | <input type=hidden name="job" value=putsource><center> |
149 | <textarea cols=55 rows=10 name="source">$source</textarea> |
||
1755 | bpr | 150 | <p><input type=submit value="$wims_name_send"> |
23 | reyssat | 151 | </center></form> |
152 | <b>Warning</b>. Don't insert modified source file! You risk to make your |
||
153 | worksheet useless. |
||
154 | !exit |
||
155 | !endif |
||
156 | |||
157 | !if prep_modify=$error |
||
158 | !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
159 | !if $modif>$cnt or $modif<1 |
||
160 | You have sent an invalid request. Ignored. |
||
161 | !else |
||
162 | !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
||
2210 | bpr | 163 | !changeto exomodify.phtml $exo |
23 | reyssat | 164 | !endif |
165 | !exit |
||
166 | !endif |
||
167 | |||
1755 | bpr | 168 | !if $error=toolate |
1780 | bpr | 169 | $name_expiration1 ($l_date). $name_expiration2 |
23 | reyssat | 170 | |
1755 | bpr | 171 | <p> |
172 | !href cmd=resume $wims_name_back2 |
||
173 | ($wims_name_sheetmanagement) |
||
174 | |||
23 | reyssat | 175 | !exit |
176 | !endif |
||
1755 | bpr | 177 | !msg $error |