Subversion Repositories wimsdev

Rev

Rev 2210 | Rev 3062 | 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
4
 ©êºp¡A§@·~²M³æªº·Ç³Æ / ­×§ïÅv§Q«O¯dµ¹½Òµ{ªººÞ²zªÌ¡C
5
 !exit
6
!endif
7
 
8
!if bad_class=$error
9
 ©_©Ç¡A§Úµo²{±zªº½Òµ{¤£À³·í¡I
10
 !exit
11
!endif
12
 
2210 bpr 13
!if bad_source=$error
14
 The item number $bad_source in the source you just submitted is not
15
 valid.
16
 !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
17
.
18
 !exit
19
!endif
20
 
23 reyssat 21
!if bad_sheet=$error
22
 ±zªº§@·~²M³æ½s¸¹¤£¾A·í¡A¥i¯à¬O³nÅ骺 bug ¡H
23
 !exit
24
!endif
25
 
26
!if no_title=$error
27
 ±z©Òµn¿ýªº§@·~²M³æ¨S¦³¼ÐÃD¡A¤£«Øij±z³o»ò°µ¡C³B²z®Éªº¿ù»~¡H
28
 !exit
29
!endif
30
 
2210 bpr 31
 
32
 
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
45
 You are sharing sheets with other classes!
46
 !if $wims_ismanager<2
47
  You must ask the site manager to deactivate the sheet for you.
48
  !exit
49
 !endif
50
 You might put your neighboring classes in total disorder by deactivating
51
 this sheet. This operation is therefore <b>stronly discouraged</b>.
52
 <p>
53
 Do you still want to deactivate the sheet?
54
 <p><center>
55
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(statutaction[3])
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
66
 Impossible to deactivate this sheet, because you have exams based on its
67
 content.
68
 !exit
69
!endif
70
 
71
!if $error=non_empty_activities
72
 You want to deactivate the sheet $sheet, while participants have already
73
 started to work on it!
74
 <p>
75
 !if share iswordof $confirmed
76
  Moreover, the sheet is shared with other classes where there may be works
77
  and scores too. It is therefore not allowed to deactivate it.
78
  !exit
79
 !endif
80
 All scores obtained on this sheet will be erased, if you deactivate. Really
81
 want to do it?
82
 <p><center>
83
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(statutaction[3])
84
 .&nbsp;&nbsp;
85
 !href cmd=resume $wims_name_no; $wims_name_giveup
86
 . </center> <p>
87
 List of accounts having worked on this sheet:
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
97
 ±z­n¨D¹B§@§@·~²M³æ  $sheet ¡A¥ç§YÅý§@·~²M³æ³Q½Òµ{°Ñ»PªÌ¦s¨ú¡C<p>
98
 ½Ðª`·N¡A¤@¥¹§@·~²M³æ¹B§@«á¡A±z´NµLªk¦A­×§ï²M³æ¡C±z½T©w­nÄ~Äò¡H
99
 <p><center>
100
 !href cmd=reply&job=activate  ¹B§@²M³æ
101
 ¡C&nbsp;&nbsp;
102
 !href cmd=resume  ©ñ±ó¹B§@
103
 ¡C</center>
104
 !exit
105
!endif
106
 
107
!if prep_erase=$error
108
 ±z½T©w­n§R°£³o­Ó§@·~²M³æ #$sheet ($title) ¶Ü¡H
109
 <p><center>
110
 !href cmd=reply&job=erase  §R°£
111
 ¡C&nbsp;&nbsp;
112
 !href cmd=resume  ©ñ±ó§R°£
113
 ¡C</center>
114
 !exit
115
!endif
116
 
117
!if prep_expire=$error
118
 
119
 §@·~²M³æ #$sheet ($title) ªººI¤î¤é´Á¬°¡G $expday
120
 !item $expmon of $months
121
 $expyear ¡C±z­n±N²M³æ³]©w¬°¤w¹L´Á¶Ü¡H
122
 <p><center>
123
 !href cmd=reply&job=expire ³]©w¬°¤w¹L´Á
124
 ¡C&nbsp;&nbsp;
125
 !href cmd=resume ©ñ±ó³]©w
126
 ¡C </center>
127
 <p><b>³Æµù¡G</b>±zªº¾Ç¥ÍµLªk¹B§@¤w¨ì´Áªº§@·~²M³æ
128
 ¡C¦ý¥L­Ì­ì¥ýªº¦¨ÁZ¤´µM«O¯d(²Î­p®É¤´µM¥]§t³o¨Ç¦¨ÁZ)¡A¥B±z¤´¥i¥H¬d¸ß³o¨Ç¦¨ÁZ¡C
129
 !exit
130
!endif
131
 
2210 bpr 132
!if prep_putsource=$error
133
 If you have a source of a sheet saved earlier, you can insert this source
134
 into the current sheet, by copying this source into the window below,
135
 then clicking on the button `Send'. This form also allows you to insert the
136
 source of a public work sheet using cut-and-paste.
137
  <p>
138
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
139
to $wims_menu_items
140
 
141
 !form reply
3049 bpr 142
 <input type=hidden name="job" value=putsource><center>
143
 <textarea cols=55 rows=10 name="source">$source</textarea>
2210 bpr 144
 <p><input type=submit value="$wims_name_send">
145
 </center></form>
146
 <b>Warning</b>. Don't insert modified source file! You risk to make your
147
 worksheet useless.
148
 !exit
149
!endif
150
 
151
!if prep_modify=$error
152
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
153
 !if $modif>$cnt or $modif<1
154
  You have sent an invalid request. Ignored.
155
 !else
156
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
157
  !changeto exomodify.phtml $exo
158
 !endif
159
 !exit
160
!endif
161
 
162
!if $error=toolate
163
 $name_expiration1 ($l_date). $name_expiration2
164
 
165
<p>
166
!href cmd=resume $wims_name_back2
167
 ($wims_name_sheetmanagement)
168
 
169
 !exit
170
!endif
23 reyssat 171
!msg $error
2210 bpr 172
!set wims_module_log=error: $error
173
 
174
 
175
 
176
 
177
 
178
 
179
!msg $error