Subversion Repositories wimsdev

Rev

Rev 16195 | Rev 16729 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16195 Rev 16286
Line 2... Line 2...
2
 
2
 
3
!if not_supervisor=$error
3
!if not_supervisor=$error
4
 Sorry, only the registered supervisor of a class can edit a worksheet
4
  Sorry, only the registered supervisor of a class can edit a worksheet
5
 !exit
5
  !exit
6
!endif
6
!endif
7
 
7
 
8
!if bad_series=$error
8
!if bad_series=$error
9
Strange, but  I do not find the exercise series to modify !!
9
  Strange, but  I do not find the exercise series to modify !!
10
 !exit
10
  !exit
11
!endif
11
!endif
12
 
12
 
13
!if bad_source=$error
13
!if bad_source=$error
14
 The item number $bad_source in the source code you just submitted is not
14
  The item number $bad_source in the source code you just submitted is not
15
 valid.
15
  valid.
16
 !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
16
  !href cmd=reply&job=prep_putsource&source=$source $name_correctsource
17
.
17
.
18
 !exit
18
  !exit
19
!endif
19
!endif
20
 
20
 
21
!if active_sheet=$error
21
!if active_sheet=$error
22
 Cette feuille est active. Son contenu ne peut pas être modifié.
22
  Cette feuille est active. Son contenu ne peut pas être modifié.
23
 !exit
23
  !exit
24
!endif
24
!endif
25
 
25
 
26
!if bad_sheet=$error
26
!if bad_sheet=$error
27
 Your worksheet number is not valid. Could be this a bug?
27
  Your worksheet number is not valid. Could be this a bug?
28
 !exit
28
  !exit
29
!endif
29
!endif
30
 
30
 
31
!if bad_maxsheet=$error
31
!if bad_maxsheet=$error
32
 Le nombre de feuilles est limité à $max_sheets. Vous ne pouvez donc plus en créer.
32
 The number of worksheets is limited to $max_sheets. You may not create another worksheet.
33
 !exit
-
 
34
!endif
-
 
35
 
-
 
36
!if no_title=$error
-
 
37
 You want to register a worksheet without a title, which is not advisable.
-
 
38
 Did you simply forget?
-
 
39
 !exit
33
 !exit
-
 
34
!endif
-
 
35
 
-
 
36
!if no_title=$error
-
 
37
  You want to register a worksheet without a title, which is not advisable.
-
 
38
  Did you simply forget?
-
 
39
  !exit
40
!endif
40
!endif
41
 
41
 
42
!if $error=not_secure
42
!if $error=not_secure
43
 This action can only be done from a secure host.
43
  This action can only be done from a secure host.
44
 !if $sec=$empty
44
  !if $sec=$empty
45
  You have not defined a secure host. Access denied. You may ask the webmaster
45
    You have not defined a secure host. Access denied. You may ask the webmaster
46
  to do it for you.
46
    to do it for you.
47
 !else
47
  !else
48
  Access denied.
48
    Access denied.
49
 !endif
49
  !endif
50
 !exit
50
  !exit
51
!endif
51
!endif
52
 
52
 
53
!if $error=sharing_sheet
53
!if $error=sharing_sheet
54
 You are sharing worksheets with other classes!
54
  You are sharing worksheets with other classes!
55
 !if $wims_ismanager<2
55
  !if $wims_ismanager<2
56
  You must ask the webmaster to deactivate the worksheet for you.
56
    You must ask the webmaster to deactivate the worksheet for you.
57
  !exit
57
    !exit
58
 !endif
58
  !endif
59
 Deactivating this worksheet may disrupted neighboring classes.
59
  Deactivating this worksheet may disrupted neighboring classes.
60
 This action is therefore <b>strongly discouraged</b>.
60
  This action is therefore <b>strongly discouraged</b>.
61
 <p> Do you still want to deactivate the worksheet?</p>
61
  <p>Do you still want to deactivate the worksheet?</p>
62
 <p style="text-align:center">
62
  <p class="wimscenter">
63
 !set wims_ref_class=wims_button
63
  !set wims_ref_class=wims_button
64
 !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
64
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes, $(wims_name_actionlist[3])
65
 &nbsp;&nbsp;
65
$ $
66
 !set wims_ref_class=wims_button wims_secondary_button
66
  !set wims_ref_class=wims_button wims_secondary_button
67
 !href cmd=resume $wims_name_no; $wims_name_giveup
67
  !href cmd=resume $wims_name_no, $wims_name_giveup
68
 </p>
68
 </p><p>
69
 <p>
-
 
70
  <b>Before continuing, ask at least the supervisors of your class neighbors to
69
  <b>Before continuing, ask at least the supervisors of your class neighbors to
71
  save their classes!</b>
70
  save their classes!</b>
72
 </p>
71
 </p>
73
 !exit
72
 !exit
74
!endif
73
!endif
75
 
74
 
76
!if sheet_in_exam iswordof $error
75
!if sheet_in_exam iswordof $error
77
  !set exa=!word 2 of $error
76
  !set exa=!word 2 of $error
78
  Impossible to deactivate this worksheet, because you have exams based on its
77
  Impossible to deactivate this worksheet, because you have exams based on its
79
  content (for example exam $exa).
78
  content (for example exam $exa).
80
 !exit
79
  !exit
81
!endif
80
!endif
82
 
81
 
83
!if $error=non_empty_activities
82
!if $error=non_empty_activities
84
 <p class="wims_msg warning">You want to deactivate worksheet $sheet, although participants have already
83
  <p class="wims_msg warning">You want to deactivate worksheet $sheet, although participants have already
85
 started to work on it!</p>
84
  started to work on it!</p>
-
 
85
 
86
 !if share iswordof $confirmed
86
  !if share iswordof $confirmed
87
   <p>Moreover, the worksheet is shared with other classes where there may be scores too.
87
    <p>Moreover, the worksheet is shared with other classes where there may be scores too.
88
   It is therefore not allowed to deactivate it.</p>
88
    It is therefore not allowed to deactivate it.</p>
89
   !exit
89
    !exit
90
 !endif
90
  !endif
91
 <p>
91
  <p>
92
  All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it.
92
  All scores obtained on this worksheet will be <b>erased</b>, if you deactivate it.
93
  Do you still want to proceed?
93
  Do you still want to proceed?
94
 </p>
94
  </p>
95
 <p style="text-align:center">
95
  <p class="wimscenter">
96
  !set wims_ref_class=wims_button
96
  !set wims_ref_class=wims_button
97
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes; $(wims_name_actionlist[3])
97
  !href cmd=reply&job=deactivate&confirm=yes $wims_name_yes, $(wims_name_actionlist[3])
98
  &nbsp;&nbsp;
98
   &nbsp;&nbsp;
99
  !set wims_ref_class=wims_button wims_secondary_button
99
   !set wims_ref_class=wims_button wims_secondary_button
100
  !href cmd=resume $wims_name_no; $wims_name_giveup
100
  !href cmd=resume $wims_name_no, $wims_name_giveup
101
 </p>
101
  </p>
102
 <p>
-
 
103
  List of students having worked on this worksheet:
102
  List of students having worked on this worksheet:
104
  <span class="tt">$worktest</span>
103
  <p class="tt">$worktest</p>
105
 </p>
104
 
106
 <div class="wims_msg info"><b>Note</b>. Only deactivate if you are using this class as a test.</div>
105
  <div class="wims_msg info"><b>Note</b>. Only deactivate if you are using this class as a test.</div>
107
 !exit
106
  !exit
108
!endif
107
!endif
109
 
108
 
110
!if prep_activate=$error
109
!if prep_activate=$error
111
 You want to activate worksheet $sheet.
110
 You want to activate worksheet $sheet.
112
 <p>By activating a worksheet, you make it visible to the participants of the class.  Once activated,
111
 <p>By activating a worksheet, you make it visible to the participants of the class.  Once activated,
113
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated
112
 a worksheet cannot be modified, unless deactivated first. However, deactiviting an activated
114
 worksheet will result in losing the scores and grades of the participants.</p>
113
 worksheet will result in losing the scores and grades of the participants.</p>
115
 !if $test_expire!=$empty
114
  !if $test_expire!=$empty
116
  <div class="wims_warning">
115
   <div class="wims_warning">
117
   The expiration date of the sheet is previous to today, it will be
116
    The expiration date of the sheet is previous to today, it will be
118
   updated at the expiration date of your class.
117
    updated at the expiration date of your class.
119
  </div>
118
   </div>
120
 !endif
119
  !endif
121
 <p>Do you want to continue?</p>
120
  <p>Do you want to continue?</p>
122
 <p style="text-align:center">
121
  <p class="wimscenter">
123
  !set wims_ref_class=wims_button
122
   !set wims_ref_class=wims_button
124
  !href cmd=reply&job=activate $wims_name_yes; $(wims_name_actionlist[1])
123
   !href cmd=reply&save=$wims_name_tosave&job=activate $wims_name_yes; $(wims_name_actionlist[1])
125
  &nbsp;&nbsp;
124
$ $
126
  !set wims_ref_class=wims_button
125
   !set wims_ref_class=wims_button
127
  !href cmd=resume $wims_name_no; $wims_name_giveup
126
   !href cmd=resume $wims_name_no, $wims_name_giveup
128
 </p>
127
  </p>
129
 !exit
128
  !exit
130
!endif
129
!endif
131
 
130
 
132
!if prep_erase=$error
131
!if prep_erase=$error
133
 Do you really want to erase worksheet #$sheet ($title)?
132
 Do you really want to erase worksheet #$sheet ($title)?
134
 <p style="text-align:center">
133
 <p style="text-align:center">
135
 !set wims_ref_class=wims_button wims_warning
134
 !set wims_ref_class=wims_button wims_warning
136
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
135
 !href cmd=reply&job=erase $wims_name_yes; $wims_name_erase
137
 
136
 
138
 !set wims_ref_class=wims_button
-
 
139
 !href cmd=resume $wims_name_no ; $wims_name_giveup
-
 
140
 </p>
-
 
141
 !exit
-
 
142
!endif
-
 
143
 
-
 
144
!if prep_expire=$error
-
 
145
 Worksheet #$sheet ($title) normally expires on $expday
-
 
146
 !item $expmon of $months
-
 
147
 $expyear. Do you want to expire it now?
-
 
148
 <p style="text-align:center">
-
 
149
 !set wims_ref_class=wims_button
-
 
150
 !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
-
 
151
 &nbsp;&nbsp;
-
 
152
 !set wims_ref_class=wims_button
137
 !set wims_ref_class=wims_button
153
 !href cmd=resume $wims_name_no ; $wims_name_giveup
138
 !href cmd=resume $wims_name_no ; $wims_name_giveup
154
 </p>
139
 </p>
155
 <p><b>Remark.</b> Your students cannot continue to work on a
-
 
156
 expired worksheet. But their earlier scores will be conserved (and will be taken into
-
 
157
 account in the statistics), and you can always consult these scores.</p>
-
 
158
 !exit
140
 !exit
-
 
141
!endif
-
 
142
 
-
 
143
!if prep_expire=$error
-
 
144
  Worksheet #$sheet ($title) normally expires on $expday
-
 
145
  !item $expmon of $months
-
 
146
  $expyear. Do you want to expire it now?
-
 
147
  <p class="wimscenter">
-
 
148
  !set wims_ref_class=wims_button
-
 
149
  !href cmd=reply&job=expire $wims_name_yes ; $(wims_name_actionlist[2])
-
 
150
  &nbsp;&nbsp;
-
 
151
  !set wims_ref_class=wims_button
-
 
152
  !href cmd=resume $wims_name_no ; $wims_name_giveup
-
 
153
  </p>
-
 
154
  <p><b>Remark.</b> Your students cannot continue to work on a
-
 
155
  expired worksheet. But their earlier scores will be conserved (and will be taken into
-
 
156
  account in the statistics), and you can always consult these scores.</p>
-
 
157
  !exit
159
!endif
158
!endif
160
 
159
 
161
!if prep_putsource=$error
160
!if prep_putsource=$error
162
 If you have saved the source code of a worksheet previously, you can insert this code
161
  If you have saved the source code of a worksheet previously, you can insert this code
163
 into the current worksheet, by copying this code into the window below,
162
  into the current worksheet, by copying this code into the window below,
164
 then clicking on the button <span class="wims_button disabled">$wims_name_send</span>.
163
  then clicking on the button <span class="wims_button disabled">$wims_name_send</span>.
165
 You may also insert the
164
  You may also insert the
166
 source code of a public worksheet by cutting and pasting.
165
  source code of a public worksheet by cutting and pasting.
167
<p>
166
  <p>
168
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
167
 !set wims_menu_items=!append line sheetadmin,1,cmd=resume \
169
to $wims_menu_items
168
to $wims_menu_items
170
 
169
 
171
 !form reply
170
  !form reply
172
  <input type="hidden" name="job" value="putsource" /><p class="wimscenter">
171
  <input type="hidden" name="job" value="putsource" /><p class="wimscenter">
173
  <textarea cols="55" rows="10" name="source">$source</textarea>
172
  <textarea cols="55" rows="10" name="source">$source</textarea>
174
  </p>
173
  </p>
175
  <p class="wimscenter"><input type="submit" value="$wims_name_send" /></p>
174
  <p class="wimscenter"><input type="submit" value="$wims_name_send" /></p>
176
 
175
 
177
!formend
176
  !formend
178
 <span class="wims_warning">$wims_name_warning</span>.
177
  <span class="wims_warning">$wims_name_warning</span>.
179
 It is advised not to modify the source code of the worksheet as it may abort the
178
  It is advised not to modify the source code of the worksheet as it may abort the
180
 worksheet.
179
  worksheet.
181
 !exit
180
  !exit
182
!endif
181
!endif
183
 
182
 
184
!if prep_modify=$error
183
!if prep_modify=$error
185
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
184
 !set cnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
186
 !if $modif>$cnt or $modif<1
185
 !if $modif>$cnt or $modif<1
Line 191... Line 190...
191
 !endif
190
 !endif
192
 !exit
191
 !exit
193
!endif
192
!endif
194
 
193
 
195
!if $error=toolate
194
!if $error=toolate
196
!read adm/lang/date.phtml.$moduclass_lang $class_expiration
195
  !read adm/lang/date.phtml.$moduclass_lang $class_expiration
197
 <p>$name_expiration1 ($l_date_out). $name_expiration2 </p>
196
  <p>$name_expiration1 ($l_date_out). $name_expiration2 </p>
198
 !set wims_ref_class=wims_button
197
  !set wims_ref_class=wims_button
199
 !href cmd=resume&job=$empty&save=$empty $wims_name_back2
198
  !href cmd=resume&job=$empty&save=$empty $wims_name_back2
200
 ($wims_name_sheetmanagement)
199
  ($wims_name_sheetmanagement)
201
 !exit
200
  !exit
202
!endif
201
!endif
203
 
202
 
204
!if $error=srcnoexo
203
!if $error=srcnoexo
205
 This worksheet does not have any exercises yet, so the source code is empty.<br />
204
  This worksheet does not have any exercise yet, so the source code is empty.<br />
206
 !href cmd=resume Back to edit the worksheet
205
  !href cmd=resume Back to edit the worksheet
207
 !exit
206
  !exit
208
!endif
207
!endif
209
 
208
 
210
!if $error=depindiv
209
!if $error=depindiv
211
  <div class="wims_msg alert">
210
  <div class="wims_msg alert">
212
    <strong>$wims_name_Error:</strong>
211
    <strong>$wims_name_Error:</strong>
213
    Il n'est pas possible de définir des dépendances de score en même temps que 
212
    Il n'est pas possible de définir des dépendances de score en même temps que
214
    l'activation de l'individualisation des feuilles de travail avec une variable technique.
213
    l'activation de l'individualisation des feuilles de travail avec une variable technique.
215
    <br/>
214
    <br/>
216
    Vous devez choisir entre les deux avant de pouvoir activer cette feuille.
215
    Vous devez choisir entre les deux avant de pouvoir activer cette feuille.
217
    !reset error
216
    !reset error
218
  </div>
217
  </div>