Subversion Repositories wimsdev

Rev

Rev 1105 | Rev 1409 | 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
1060 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
1006 bpr 67
<center><hr width="50%"></center>
386 bpr 68
 
69
!if $cmd=hint
70
 !read oef/hint.phtml
71
 !goto end
72
!endif
73
 
74
!if $status=waiting
75
 !if $error!=$empty
76
  !read oef/msg.phtml
1006 bpr 77
  <center><hr width="50%"></center>
386 bpr 78
 !endif
79
 !read oef/form.phtml
80
 <p>
81
 !if $hint!=$empty and $givehint>0
82
  !href cmd=hint Consell
83
.
84
 !endif
85
 !if $help!=$empty
86
  !href cmd=help Ajuda
87
.
88
 !endif
89
 !if $qnum<=1
90
  !href $renewlink Renova l'exercici
91
.
92
 !else
93
  Aquest és l'exercici número $[$reply_cnt+1] d'una sèrie de $qnum exercicis.
94
  !href $renewlink Abandonar la sèrie
95
.
96
 !endif
97
!else
98
 !if $error!=$empty
99
  !read oef/msg.phtml
1006 bpr 100
  <center><hr width="50%"></center>
386 bpr 101
 !endif
102
 !read oef/answer.phtml
103
 <p>
104
 !if $status!=$empty
105
  Aquest és l'exercici número $reply_cnt d'una sèrie de $qnum exercicis. <p>
106
  !href cmd=next Continuar la sèrie amb el següent exercici
107
, o
108
  !href $renewlink abandonar la sèrie i demanar-ne una de nova
109
. (Has d'arribar al final de la sèrie si vols obtenir una nota.)
110
 !else
111
  !if $qnum>1
112
   Has acabat una sèrie de $qnum exercicis, amb una nota de
113
   $module_score sobre 10.
114
   !ifval $module_score>9.8
115
    Enhorabona!
116
   !endif
117
   !if $toolate!=$empty and $score>$module_score
118
    (Has estat penelitzat per excedir-te del temps límit.)
119
   !endif
120
   <p>
121
   !href $renewlink Un altre
122
.
123
   !if $wims_sheet=$empty
124
    !href exo_Intro
125
.
126
   !endif
127
  !else
128
   Has obtingut una nota de $module_score sobre 10.
129
   !ifval $module_score>9.8
130
    Enhorabona!
131
   !endif
132
   !if $toolate!=$empty and $score>$module_score
133
    (Has estat penalitzat per excedir-te del temps límit.)
134
   !endif
135
   <p>
136
   !href $renewlink Un altre
137
.
138
   !if $wims_sheet=$empty and $oef_test!=yes
139
    !href exo_Intro
140
.
141
   !endif
142
  !endif
143
 !endif
144
!endif
145
 
146
!if $replydefaulted=yes
147
 <p> <small>
148
 En el mode d'elaboració s'inclouen per defecte les respostes correctes en els camps de resposta.
149
 </small>
150
!endif
151
 
152
!read ./endhook.phtml
1198 bpr 153
!!!if $wims_user=supervisor and exam notin $session and \
154
!!      ..classes/ notin ..$module and ..adm/ notin ..$module and \
155
!!      ..devel/ notin ..$module and \
156
!!      GNU isin $module_copyright and \
157
!!      _check notin $session and \
158
!!      $class_importation!=no
159
!! <p>
160
!! !href module=adm/createxo&existing=$thisexo&catmodule=$module Importar
161
!! aquest exercici a la teua classe (on tu pots modificar-lo).
162
!!!endif
386 bpr 163
:end
164
 
165
!tail
166