Subversion Repositories wimsdev

Rev

Rev 3927 | Rev 3947 | 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
3930 bpr 36
  You haven't defined secure host. Access denied. You may ask the webmaster
1755 bpr 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
3930 bpr 47
  You must ask the webmaster 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
 .&nbsp;&nbsp;
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
 .&nbsp;&nbsp;
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>
3927 bpr 99
 By activating a worksheet, you make it visible to the participants of the class.  Once activated,
100
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated 
101
 worksheet will result in losing the scores and grades of the participants.
23 reyssat 102
 <p>
3927 bpr 103
 Do you want to continue?
23 reyssat 104
 <p><center>
3245 guerimand 105
 !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
23 reyssat 106
 .&nbsp;&nbsp;
1755 bpr 107
 !href cmd=resume $wims_name_no; $wims_name_giveup
23 reyssat 108
 .</center>
109
 !exit
110
!endif
111
 
112
!if prep_erase=$error
3921 bpr 113
 Do you really want to erase this worksheet #$sheet ($title)?
23 reyssat 114
 <p><center>
1755 bpr 115
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
116
.&nbsp;&nbsp;
117
 !href cmd=resume $wims_name_no ; $wims_name_giveup
118
.</center>
23 reyssat 119
 !exit
120
!endif
1755 bpr 121
 
23 reyssat 122
!if prep_expire=$error
3921 bpr 123
 This worksheet #$sheet ($title) expires normally expires on $expday
23 reyssat 124
 !item $expmon of $months
125
 $expyear. Do you want to expire it now?
126
 <p><center>
3245 guerimand 127
 !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
23 reyssat 128
 .&nbsp;&nbsp;
1755 bpr 129
 !href cmd=resume $wims_name_no ; $wims_name_giveup
23 reyssat 130
 . </center>
131
 <p><b>Remark.</b> Your students cannot continue to work on a
3921 bpr 132
 expired worksheet. But their earlier scores will be conserved (and will be taken into
23 reyssat 133
 account in the statistics), and you can always consult these scores.
134
 !exit
135
!endif
136
 
137
!if prep_putsource=$error
3921 bpr 138
 If you have a source of a worksheet saved earlier, you can insert this source
139
 into the current worksheet, by copying this source into the window below,
23 reyssat 140
 then clicking on the button `Send'. This form also allows you to insert the
3918 bpr 141
 source of a public worksheet using cut-and-paste.
1755 bpr 142
  <p>
143
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
144
to $wims_menu_items
145
 
23 reyssat 146
 !form reply
3049 bpr 147
 <input type=hidden name="job" value=putsource><center>
148
 <textarea cols=55 rows=10 name="source">$source</textarea>
1755 bpr 149
 <p><input type=submit value="$wims_name_send">
23 reyssat 150
 </center></form>
151
 <b>Warning</b>. Don't insert modified source file! You risk to make your
152
 worksheet useless.
153
 !exit
154
!endif
155
 
156
!if prep_modify=$error
157
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
158
 !if $modif>$cnt or $modif<1
159
  You have sent an invalid request. Ignored.
160
 !else
161
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
2210 bpr 162
  !changeto exomodify.phtml $exo
23 reyssat 163
 !endif
164
 !exit
165
!endif
166
 
1755 bpr 167
!if $error=toolate
1780 bpr 168
 $name_expiration1 ($l_date). $name_expiration2
23 reyssat 169
 
1755 bpr 170
<p>
171
!href cmd=resume $wims_name_back2
172
 ($wims_name_sheetmanagement)
173
 
23 reyssat 174
 !exit
175
!endif
1755 bpr 176
!msg $error