Subversion Repositories wimsdev

Rev

Rev 1198 | Rev 1664 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
386 bpr 1
!nocache
2
!if $oef_test=yes
3
 !set renewlink=cmd=next&retest=again
1105 bpr 4
 !!$header_js
386 bpr 5
 !goto tester
6
!else
7
 !set init_parm=!translate + to $ $ in $module_init_parm
1105 bpr 8
 !set init_parm=!replace internal $\
9
$ by ; in $init_parm
386 bpr 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
1060 bpr 25
 !read js/chrono.phtml $[max(0,$delay1-($now_-$starttime))]
386 bpr 26
!endif
1060 bpr 27
!set wims_html_header=!append line $header_js to $wims_html_header
1105 bpr 28
!set wims_html_header=$oefcss\
29
$wims_html_header
386 bpr 30
 
1105 bpr 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
 
386 bpr 39
!if $title=$empty
40
 Aquest mòdul és un agrupament d'exercicis. Aparentment l'has demanat
41
 sense precisar quin exercici vàlid vols fer. Pot ser que hagis clicat
42
 sobre un enllaç incorrecte, o per un error al software.
43
 <p><center>
44
 !href module=$module Intenta tornar a començar
45
 , or
46
 !href $ abandonar
47
 . </center>
48
 !goto end
49
!endif
50
 
51
!if 0$delay1>0 and $status!=$empty
1060 bpr 52
 <p><form target="#" name=chrono><center>
1009 bpr 53
 <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
386 bpr 54
 &nbsp;<b><font color=red>Atenció!</font></b>
55
 !if $qnum>1
56
  Aquestes sèries d'exercicis tenen un temps limitat.
57
 !else
58
  Aquest exercici té el temps limitat.
59
 !endif
1409 bpr 60
 <input size=4 name=clock readonly onFocus="this.blur();">
386 bpr 61
 </table>
62
 </center></form> <p>
63
!endif
64
 
65
:tester
66
!read oef/present.phtml
1409 bpr 67
 
68
!if $wims_theme_version= or $wims_theme_version<1
1006 bpr 69
<center><hr width="50%"></center>
1409 bpr 70
!endif
386 bpr 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
1409 bpr 80
 !if $wims_theme_version= or $wims_theme_version<1
1006 bpr 81
  <center><hr width="50%"></center>
386 bpr 82
 !endif
1409 bpr 83
 !endif
386 bpr 84
 !read oef/form.phtml
85
 <p>
86
 !if $hint!=$empty and $givehint>0
87
  !href cmd=hint Consell
88
.
89
 !endif
90
 !if $help!=$empty
91
  !href cmd=help Ajuda
92
.
93
 !endif
94
 !if $qnum<=1
95
  !href $renewlink Renova l'exercici
96
.
97
 !else
98
  Aquest és l'exercici número $[$reply_cnt+1] d'una sèrie de $qnum exercicis.
99
  !href $renewlink Abandonar la sèrie
100
.
101
 !endif
102
!else
103
 !if $error!=$empty
104
  !read oef/msg.phtml
1409 bpr 105
  !if $wims_theme_version= or $wims_theme_version<1
1006 bpr 106
  <center><hr width="50%"></center>
1409 bpr 107
  !endif
386 bpr 108
 !endif
109
 !read oef/answer.phtml
110
 <p>
111
 !if $status!=$empty
112
  Aquest és l'exercici número $reply_cnt d'una sèrie de $qnum exercicis. <p>
113
  !href cmd=next Continuar la sèrie amb el següent exercici
114
, o
115
  !href $renewlink abandonar la sèrie i demanar-ne una de nova
116
. (Has d'arribar al final de la sèrie si vols obtenir una nota.)
117
 !else
118
  !if $qnum>1
119
   Has acabat una sèrie de $qnum exercicis, amb una nota de
120
   $module_score sobre 10.
121
   !ifval $module_score>9.8
122
    Enhorabona!
123
   !endif
124
   !if $toolate!=$empty and $score>$module_score
125
    (Has estat penelitzat per excedir-te del temps límit.)
126
   !endif
127
   <p>
128
   !href $renewlink Un altre
129
.
130
   !if $wims_sheet=$empty
131
    !href exo_Intro
132
.
133
   !endif
134
  !else
135
   Has obtingut una nota de $module_score sobre 10.
136
   !ifval $module_score>9.8
137
    Enhorabona!
138
   !endif
139
   !if $toolate!=$empty and $score>$module_score
140
    (Has estat penalitzat per excedir-te del temps límit.)
141
   !endif
142
   <p>
143
   !href $renewlink Un altre
144
.
145
   !if $wims_sheet=$empty and $oef_test!=yes
146
    !href exo_Intro
147
.
148
   !endif
149
  !endif
150
 !endif
151
!endif
152
 
153
!if $replydefaulted=yes
154
 <p> <small>
155
 En el mode d'elaboració s'inclouen per defecte les respostes correctes en els camps de resposta.
156
 </small>
157
!endif
158
 
159
!read ./endhook.phtml
1198 bpr 160
!!!if $wims_user=supervisor and exam notin $session and \
161
!!      ..classes/ notin ..$module and ..adm/ notin ..$module and \
162
!!      ..devel/ notin ..$module and \
163
!!      GNU isin $module_copyright and \
164
!!      _check notin $session and \
165
!!      $class_importation!=no
166
!! <p>
167
!! !href module=adm/createxo&existing=$thisexo&catmodule=$module Importar
168
!! aquest exercici a la teua classe (on tu pots modificar-lo).
169
!!!endif
386 bpr 170
:end
171
 
172
!tail
173