Subversion Repositories wimsdev

Rev

Rev 5850 | Rev 6043 | 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>.
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
 &nbsp;&nbsp;
66
 !set wims_ref_class=wims_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
 
76
!if $error=sheet_in_exam
3921 bpr 77
 Impossible to deactivate this worksheet, because you have exams based on its
1755 bpr 78
 content.
79
 !exit
80
!endif
81
 
82
!if $error=non_empty_activities
3947 bpr 83
 You want to deactivate worksheet $sheet, although participants have already
1755 bpr 84
 started to work on it!
85
 <p>
5657 obado 86
  !if share iswordof $confirmed
87
   Moreover, the worksheet is shared with other classes where there may be scores too. 
88
   It is therefore not allowed to deactivate it.
89
   !exit
90
  !endif
91
  All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it.
92
  Do you still want to proceed?
93
 </p>
94
 <p style="text-align:center">
95
  !set wims_ref_class=wims_button
96
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
97
  &nbsp;&nbsp;
98
  !set wims_ref_class=wims_button
99
  !href cmd=resume $wims_name_no; $wims_name_giveup
100
 </p>
1755 bpr 101
 <p>
5657 obado 102
  List of students having worked on this worksheet:
1755 bpr 103
 <tt>$worktest</tt>
5657 obado 104
 </p>
105
 <p><b>Note</b>. Only deactivate if you are using this class as a test.</p>
1755 bpr 106
 !exit
107
!endif
108
 
23 reyssat 109
!if prep_activate=$error
5657 obado 110
 You want to activate worksheet $sheet.
111
 <p>By activating a worksheet, you make it visible to the participants of the class.  Once activated,
3927 bpr 112
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated 
5657 obado 113
 worksheet will result in losing the scores and grades of the participants.</p>
114
 <p>Do you want to continue?</p>
115
 <p style="text-align:center">
116
  !set wims_ref_class=wims_button
117
  !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
118
  &nbsp;&nbsp;
119
  !set wims_ref_class=wims_button
120
  !href cmd=resume $wims_name_no; $wims_name_giveup
121
 </p>
23 reyssat 122
 !exit
123
!endif
124
 
125
!if prep_erase=$error
3947 bpr 126
 Do you really want to erase worksheet #$sheet ($title)?
5657 obado 127
 <p style="text-align:center">
128
 !set wims_ref_class=wims_button
1755 bpr 129
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
5657 obado 130
 &nbsp;&nbsp;
131
 !set wims_ref_class=wims_button
1755 bpr 132
 !href cmd=resume $wims_name_no ; $wims_name_giveup
5657 obado 133
 </p>
23 reyssat 134
 !exit
135
!endif
1755 bpr 136
 
23 reyssat 137
!if prep_expire=$error
3947 bpr 138
 Worksheet #$sheet ($title) normally expires on $expday
23 reyssat 139
 !item $expmon of $months
140
 $expyear. Do you want to expire it now?
5657 obado 141
 <p style="text-align:center">
142
 !set wims_ref_class=wims_button
3245 guerimand 143
 !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
5657 obado 144
 &nbsp;&nbsp;
145
 !set wims_ref_class=wims_button
1755 bpr 146
 !href cmd=resume $wims_name_no ; $wims_name_giveup
5657 obado 147
 </p>
23 reyssat 148
 <p><b>Remark.</b> Your students cannot continue to work on a
3921 bpr 149
 expired worksheet. But their earlier scores will be conserved (and will be taken into
5657 obado 150
 account in the statistics), and you can always consult these scores.</p>
23 reyssat 151
 !exit
152
!endif
153
 
154
!if prep_putsource=$error
3947 bpr 155
 If you have saved the source code of a worksheet previously, you can insert this code
156
 into the current worksheet, by copying this code into the window below,
4552 bpr 157
 then clicking on the button <span class="wims_button disabled">$wims_name_send</span>. 
158
 You may also insert the
3947 bpr 159
 source code of a public worksheet by cutting and pasting.
3951 bpr 160
<p>
1755 bpr 161
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
162
to $wims_menu_items
163
 
23 reyssat 164
 !form reply
5850 bpr 165
  <input type="hidden" name="job" value="putsource"/><p class="wimscenter">
5657 obado 166
  <textarea cols="55" rows="10" name="source">$source</textarea>
5850 bpr 167
  </p>
168
  <p class="wimscenter"><input type="submit" value="$wims_name_send"/></p>
5926 bpr 169
 
170
!formend
4552 bpr 171
 <span class="wims_warning">$wims_name_warning</span>. 
172
 It is advised not to modify the source code of the worksheet as it may abort the
3947 bpr 173
 worksheet.
23 reyssat 174
 !exit
175
!endif
176
 
177
!if prep_modify=$error
178
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
179
 !if $modif>$cnt or $modif<1
180
  You have sent an invalid request. Ignored.
181
 !else
182
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
2210 bpr 183
  !changeto exomodify.phtml $exo
23 reyssat 184
 !endif
185
 !exit
186
!endif
187
 
1755 bpr 188
!if $error=toolate
5657 obado 189
 $name_expiration1 ($l_date). $name_expiration2 
190
 <p>
191
  !href cmd=resume $wims_name_back2
192
  ($wims_name_sheetmanagement)
193
 </p>
3951 bpr 194
 !exit
195
!endif
1755 bpr 196
 
3951 bpr 197
!if $error=srcnoexo
5764 bpr 198
 This worksheet does not have any exercises yet, so the source code is empty.<br/>
3951 bpr 199
 !href cmd=resume Back to edit the worksheet
23 reyssat 200
 !exit
201
!endif
3951 bpr 202
 
1755 bpr 203
!msg $error