Subversion Repositories wimsdev

Rev

Rev 6235 | Rev 7973 | 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
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
 &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
7801 bpr 87
   Moreover, the worksheet is shared with other classes where there may be scores too.
5657 obado 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:
6043 bpr 103
 <span class="tt">$worktest</span>
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,
7801 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>
7801 bpr 114
 !if $test_expire!=$empty
115
  <div class="wims_warning">
116
   The expiration date of the sheet is previous to today, it will be
117
   updated at the expiration date of your class.
118
  </div>
119
 !endif
5657 obado 120
 <p>Do you want to continue?</p>
121
 <p style="text-align:center">
122
  !set wims_ref_class=wims_button
123
  !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
124
  &nbsp;&nbsp;
125
  !set wims_ref_class=wims_button
126
  !href cmd=resume $wims_name_no; $wims_name_giveup
127
 </p>
23 reyssat 128
 !exit
129
!endif
130
 
131
!if prep_erase=$error
3947 bpr 132
 Do you really want to erase worksheet #$sheet ($title)?
5657 obado 133
 <p style="text-align:center">
134
 !set wims_ref_class=wims_button
1755 bpr 135
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
5657 obado 136
 &nbsp;&nbsp;
137
 !set wims_ref_class=wims_button
1755 bpr 138
 !href cmd=resume $wims_name_no ; $wims_name_giveup
5657 obado 139
 </p>
23 reyssat 140
 !exit
141
!endif
1755 bpr 142
 
23 reyssat 143
!if prep_expire=$error
3947 bpr 144
 Worksheet #$sheet ($title) normally expires on $expday
23 reyssat 145
 !item $expmon of $months
146
 $expyear. Do you want to expire it now?
5657 obado 147
 <p style="text-align:center">
148
 !set wims_ref_class=wims_button
3245 guerimand 149
 !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
5657 obado 150
 &nbsp;&nbsp;
151
 !set wims_ref_class=wims_button
1755 bpr 152
 !href cmd=resume $wims_name_no ; $wims_name_giveup
5657 obado 153
 </p>
23 reyssat 154
 <p><b>Remark.</b> Your students cannot continue to work on a
3921 bpr 155
 expired worksheet. But their earlier scores will be conserved (and will be taken into
5657 obado 156
 account in the statistics), and you can always consult these scores.</p>
23 reyssat 157
 !exit
158
!endif
159
 
160
!if prep_putsource=$error
3947 bpr 161
 If you have saved the source code of a worksheet previously, you can insert this code
162
 into the current worksheet, by copying this code into the window below,
7801 bpr 163
 then clicking on the button <span class="wims_button disabled">$wims_name_send</span>.
4552 bpr 164
 You may also insert the
3947 bpr 165
 source code of a public worksheet by cutting and pasting.
3951 bpr 166
<p>
1755 bpr 167
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
168
to $wims_menu_items
169
 
23 reyssat 170
 !form reply
6235 bpr 171
  <input type="hidden" name="job" value="putsource" /><p class="wimscenter">
5657 obado 172
  <textarea cols="55" rows="10" name="source">$source</textarea>
5850 bpr 173
  </p>
6235 bpr 174
  <p class="wimscenter"><input type="submit" value="$wims_name_send" /></p>
7801 bpr 175
 
5926 bpr 176
!formend
7801 bpr 177
 <span class="wims_warning">$wims_name_warning</span>.
4552 bpr 178
 It is advised not to modify the source code of the worksheet as it may abort the
3947 bpr 179
 worksheet.
23 reyssat 180
 !exit
181
!endif
182
 
183
!if prep_modify=$error
184
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
185
 !if $modif>$cnt or $modif<1
186
  You have sent an invalid request. Ignored.
187
 !else
188
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
2210 bpr 189
  !changeto exomodify.phtml $exo
23 reyssat 190
 !endif
191
 !exit
192
!endif
193
 
1755 bpr 194
!if $error=toolate
7801 bpr 195
 $name_expiration1 ($l_date). $name_expiration2
5657 obado 196
 <p>
197
  !href cmd=resume $wims_name_back2
198
  ($wims_name_sheetmanagement)
199
 </p>
3951 bpr 200
 !exit
201
!endif
1755 bpr 202
 
3951 bpr 203
!if $error=srcnoexo
6235 bpr 204
 This worksheet does not have any exercises yet, so the source code is empty.<br />
3951 bpr 205
 !href cmd=resume Back to edit the worksheet
23 reyssat 206
 !exit
207
!endif
3951 bpr 208
 
1755 bpr 209
!msg $error