Subversion Repositories wimsdev

Rev

Rev 1047 | Go to most recent revision | Details | 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
 Spreminjanje delovnih listov je dovoljeno le skrbniku!
5
 !exit
6
!endif
7
 
8
!if bad_class=$error
9
 Čudno, vaša učilnica se zdi neveljavna.
10
 !exit
11
!endif
12
 
13
!if bad_sheet=$error
14
 Številka vašega delovnega lista je neveljavna. Hrošč v programski opremi?
15
 !exit
16
!endif
17
 
18
!if bad_source=$error
19
 Element številka $bad_source v vašem delovnem listu je neveljaven.
20
 !href cmd=reply&job=prep_putsource&source=$source Popravi kodo
21
 .
22
 !exit
23
!endif
24
 
25
!if no_title=$error
26
 Poskušate registrirati delovni list brez naslova, kar ni priporočljivo.
27
 Gre za pomoto?
28
 !exit
29
!endif
30
 
31
!if prep_activate=$error
32
 Želeli ste vključiti delovni list $sheet, s čimer bo postal dostopen uporabnikom učilnice. <p>
33
 Pomnite, da vsebine vključenega lista ni mogoče spreminjati, ne da bi ga prej izključili in s tem zbrisali vse rezultate, dosežene na tem listu.
34
 <p>
35
 Ali želite nadaljevati?
36
 <p><center>
37
 !href cmd=reply&job=activate Da, vključi list
38
 .&nbsp;&nbsp;
39
 !href cmd=resume Ne, prekliči
40
 .</center>
41
 !exit
42
!endif
43
 
44
!if prep_erase=$error
45
 Ali res želite izbrisati ta list #$sheet ($title)?
46
 <p><center>
47
 !href cmd=reply&job=erase Da, zbriši
48
 .&nbsp;&nbsp;
49
 !href cmd=resume Ne, prekliči
50
 .</center>
51
 !exit
52
!endif
53
 
54
!if prep_expire=$error
55
 Ta list #$sheet ($title) naj bi bil zaključen na dan $expday
56
 !item $expmon $months
57
 $expyear. Ali ga želite zaključiti takoj?
58
 <p><center>
59
 !href cmd=reply&job=expire Da, zaključi
60
 .&nbsp;&nbsp;
61
 !href cmd=resume Ne, prekliči
62
 . </center>
63
 <p><b>Opomba.</b> Uporabniki na zaključenem delovnem listu ne morejo več pridobivati točk. Že doseženi rezultati pa bodo ostali shranjeni in upoštevani v statistiki.
64
 !exit
65
!endif
66
 
67
!if prep_putsource=$error
68
 If you have a source of a sheet saved earlier, you can insert this source
69
 into the current sheet, by copying this source into the window below,
70
 then clicking on the button `Send'. This form also allows you to insert the
71
 source of a public work sheet using cut-and-paste.
72
 <p>
73
 Otherwise,
74
 !href cmd=resume Return to the main page of the sheet.
75
 !form reply
76
 <input type=hidden name=job value=putsource><center>
77
 <textarea cols=55 rows=10 name=source>$source</textarea>
78
 <p><input type=submit value="Send">
79
 </center></form>
80
 <b>Warning</b>. Don't insert modified source file! You risk to make your
81
 worksheet useless.
82
 !exit
83
!endif
84
 
85
!if prep_modify=$error
86
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
87
 !if $modif>$cnt or $modif<1
88
  You have sent an invalid request. Ignored.
89
 !else
90
  !set exo=!record $modif of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
91
  !distribute lines $exo into directory,parm,require,weight,title,desc,dep
92
  !set orgtit=!module title $directory
93
  <p><center><h3>Modification of item $modif</h3></center>
94
  !form reply
95
  <input type=hidden name=modif value=$modif>
96
  <input type=hidden name=job value=modify>
97
  <ul>
98
  <li>Title: <small>(The original title is <em>$orgtit</em>)
99
  </small> <br>
100
  <input size=50 name=mod_title value="$title">
101
  <li>Description:<br>
102
  <textarea name=mod_desc rows=5 cols=50>$desc</textarea>
103
  <li>Number of points asked: 
104
  <input size=4 name=mod_require value="$require">,
105
  of weight 
106
  <input size=4 name=mod_weight value="$weight">,
107
  <li>Score dependencies:
108
  <input size=40 name=mod_dep value="$dep">.
109
  !reset mod_dep
110
  </ul>
111
  <p><center><input type=submit value="Register the change"></form>
112
  </center> <p>
113
  !href cmd=resume Abandon the change.
114
  <p><small>
115
  <b>Help</b>. Score dependencies means that a participant must get
116
  required scores in other exercises of the sheet before he/she can do
117
  this one. For example, 
118
  <font color=blue><tt>1:50,2:30,3+4+5:60</tt></font>
119
  means that the
120
  participant must get 50% success on exercise 1, 30% success on exercise 2,
121
  and an average of 60% success on exercises 3,4,5.
122
  </small>
123
 !endif
124
!endif
125
 
126
!if $error=not_secure
127
 This operation can only be done from a secure host.
128
 !if $sec=$empty
129
  You haven't defined secure host. Access denied. You may ask the site manager
130
  to do it for you.
131
 !else
132
  Access denied.
133
 !endif
134
 !exit
135
!endif
136
 
137
!if $error=sharing_sheet
138
 <font color=red><b><blink>Danger!!!</font></b></blink>
139
 You are sharing sheets with other classes!
140
 !if $wims_ismanager<2
141
  You must ask the site manager to deactivate the sheet for you.
142
  !exit
143
 !endif
144
 You might put your neighboring classes in total disorder by deactivating
145
 this sheet. This operation is therefore <b>stronly discouraged</b>.
146
 <p>
147
 Do you still want to deactivate the sheet?
148
 <p><center>
149
 !href cmd=reply&job=deactivate&confirm=yes Yes; continue
150
 .&nbsp;&nbsp;
151
 !href cmd=resume No; cancel
152
 . </center>
153
 <p>
154
 <b>Before continuing, ask at least the supervisors of your class neighbors to
155
 save their classes!</b>
156
 !exit
157
!endif
158
 
159
!if $error=sheet_in_exam
160
 Impossible to deactivate this sheet, because you have exams based on its
161
 content.
162
 !exit
163
!endif
164
 
165
!if $error=non_empty_activities
166
 You want to deactivate the sheet $sheet, while participants have already
167
 started to work on it!
168
 <p>
169
 !if share iswordof $confirmed
170
  Moreover, the sheet is shared with other classes where there may be works
171
  and scores too. It is therefore not allowed to deactivate it.
172
  !exit
173
 !endif
174
 All scores obtained on this sheet will be erased, if you deactivate. Really
175
 want to do it?
176
 <p><center>
177
 !href cmd=reply&job=deactivate&confirm=yes Yes; deactivate
178
 .&nbsp;&nbsp;
179
 !href cmd=resume No; cancel
180
 . </center> <p>
181
 List of accounts having worked on this sheet:
182
 <p>
183
 <tt>$worktest</tt>
184
 <p>
185
 <b>Note</b>. This action should be taken only if this is a testing class.
186
 Don't go further if the participants are your real students!
187
 !exit
188
!endif
189
 
190
!msg $error