Subversion Repositories wimsdev

Rev

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

Rev 1409 Rev 1664
Line 1... Line -...
1
!nocache
-
 
2
!if $oef_test=yes
-
 
3
 !set renewlink=cmd=next&retest=again
-
 
4
 !!$header_js
-
 
5
 !goto tester
-
 
6
!else
-
 
7
 !set init_parm=!translate + to $ $ in $module_init_parm
-
 
8
 !set init_parm=!replace internal $\
-
 
9
$ by ; in $init_parm
-
 
10
 !set renewlink=cmd=renew&worksheet=$worksheet&$init_parm
-
 
11
!endif
-
 
12
 
-
 
13
!if $printing=yes
-
 
14
 !changeto oef/print.phtml
-
 
15
!endif
-
 
16
 
-
 
17
!if $title!=$empty
-
 
18
 !set module_title=$title
-
 
19
 !set module_author=$author
-
 
20
 !set module_address=$email
-
 
21
!endif
-
 
22
 
-
 
23
!if 0$delay2>0 and $status!=$empty
-
 
24
 !set now_=$wims_nowseconds
-
 
25
 !read js/chrono.phtml $[max(0,$delay1-($now_-$starttime))]
-
 
26
!endif
-
 
27
!set wims_html_header=!append line $header_js to $wims_html_header
-
 
28
!set wims_html_header=$oefcss\
-
 
29
$wims_html_header
-
 
30
 
-
 
31
!header1
-
 
32
<h1 class="oeftitle">$title</h1>
-
 
33
 
-
 
34
!if $module_checkdata!=yes
-
 
35
 !read oef/$module_language/nodata.phtml
-
 
36
 !goto end
-
 
37
!endif
-
 
38
 
-
 
39
!if $title=$empty
-
 
40
 This module is a groupment of exercises. You have apparently requested it
-
 
41
 without precising which valid exercise you want to do. It is either because
-
 
42
 you clicked on a wrong link, or because of a software bug.
-
 
43
 <p><center>
-
 
44
 !href module=$module Try to restart your manipulation
-
 
45
 , or
-
 
46
 !href $ abandon
-
 
47
 . </center>
-
 
48
 !goto end
-
 
49
!endif
-
 
50
 
-
 
51
!if 0$delay1>0 and $status!=$empty
-
 
52
 <p><form target="#" name=chrono><center>
-
 
53
 <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
-
 
54
 &nbsp;<b><font color=red>Attention!</font></b>
-
 
55
 !if $qnum>1
-
 
56
  This series of exercises is limited in time.
-
 
57
 !else
-
 
58
  This exercise is limited in time.
-
 
59
 !endif
-
 
60
 <input size=4 name=clock readonly onFocus="this.blur();">
-
 
61
 </table>
-
 
62
 </center></form> <p>
-
 
63
!endif
-
 
64
 
-
 
65
:tester
-
 
66
!read oef/present.phtml
-
 
67
 
-
 
68
!if $wims_theme_version= or $wims_theme_version<1
-
 
69
<center><hr width="50%"></center>
-
 
70
!endif
-
 
71
 
-
 
72
!if $cmd=hint
-
 
73
 !read oef/hint.phtml
-
 
74
 !goto end
-
 
75
!endif
-
 
76
 
-
 
77
!if $status=waiting
-
 
78
 !if $error!=$empty
-
 
79
  !read oef/msg.phtml
-
 
80
 !if $wims_theme_version= or $wims_theme_version<1
-
 
81
  <center><hr width="50%"></center>
-
 
82
 !endif
-
 
83
 !endif
-
 
84
 !read oef/form.phtml
-
 
85
 <p>
-
 
86
 !if $hint!=$empty and $givehint>0
-
 
87
  !href cmd=hint Hint
-
 
88
.
-
 
89
 !endif
-
 
90
 !if $help!=$empty
-
 
91
  !href cmd=help Help
-
 
92
.
-
 
93
 !endif
-
 
94
 !if $qnum<=1
-
 
95
  !href $renewlink Renew the exercise
-
 
96
.
-
 
97
 !else
-
 
98
  This is exercise number $[$reply_cnt+1] in a series of $qnum exercises.
-
 
99
  !href $renewlink Abandon the series
-
 
100
.
-
 
101
 !endif
-
 
102
!else
-
 
103
 !if $error!=$empty
-
 
104
  !read oef/msg.phtml
-
 
105
  !if $wims_theme_version= or $wims_theme_version<1
-
 
106
  <center><hr width="50%"></center>
-
 
107
  !endif
-
 
108
 !endif
-
 
109
 !read oef/answer.phtml
-
 
110
 <p>
-
 
111
 !if $status!=$empty
-
 
112
  This is exercise number $reply_cnt in a series of $qnum exercises. <p>
-
 
113
  !href cmd=next Continue the series with the next exercise
-
 
114
, or
-
 
115
  !href $renewlink abandon the series and ask for a new one
-
 
116
. (You must go through to the end of a series if you want a score.)
-
 
117
 !else
-
 
118
  !if $qnum>1
-
 
119
   You have finished a series of $qnum exercises, with a score of
-
 
120
   $module_score over 10.
-
 
121
   !ifval $module_score>9.8
-
 
122
    Congratulations!
-
 
123
   !endif
-
 
124
   !if $toolate!=$empty and $score>$module_score
-
 
125
    (You have been punished for exceeding the time limit.)
-
 
126
   !endif
-
 
127
   <p>
-
 
128
   !href $renewlink Once again
-
 
129
.
-
 
130
   !if $wims_sheet=$empty
-
 
131
    !href exo_Intro
-
 
132
.
-
 
133
   !endif
-
 
134
  !else
-
 
135
   You have obtained a score of $module_score over 10.
-
 
136
   !ifval $module_score>9.8
-
 
137
    Congratulations!
-
 
138
   !endif
-
 
139
   !if $toolate!=$empty and $score>$module_score
-
 
140
    (You have been punished for exceeding the time limit.)
-
 
141
   !endif
-
 
142
   <p>
-
 
143
   !href $renewlink Once again
-
 
144
.
-
 
145
   !if $wims_sheet=$empty and $oef_test!=yes
-
 
146
    !href exo_Intro
-
 
147
.
-
 
148
   !endif
-
 
149
  !endif
-
 
150
 !endif
-
 
151
!endif
1
!exit
152
 
-
 
153
!if $replydefaulted=yes
-
 
154
 <p> <small>Development mode:
-
 
155
 !if $oef_default=yes
-
 
156
  good replies inserted into reply fields as default.
-
 
157
 !else
-
 
158
  !href cmd=config&oef_default=yes insert good replies
-
 
159
  into reply fields.
-
 
160
 !endif
-
 
161
 </small>
-
 
162
!endif
-
 
163
 
-
 
164
!read ./endhook.phtml
-
 
165
!!!if $wims_user=supervisor and exam notin $session and \
-
 
166
!!      ..classes/ notin ..$module and ..adm/ notin ..$module and \
-
 
167
!!      ..devel/ notin ..$module and \
-
 
168
!!      GNU isin $module_copyright and \
-
 
169
!!      _check notin $session and \
-
 
170
!!      $class_importation!=no
-
 
171
!! <p>
-
 
172
!! !href module=adm/createxo&existing=$thisexo&catmodule=$module Import
-
 
173
!! this exercise into your class (where you can modify it).
-
 
174
!!!endif
-
 
175
:end
-
 
176
 
-
 
177
!tail
-
 
178
 
-