Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
20 reyssat 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 renewlink=cmd=renew&worksheet=$worksheet&$init_parm
9
!endif
10
 
11
!if $printing=yes
12
 !changeto oef/print.phtml
13
!endif
14
 
15
!if $title!=$empty
16
 !set module_title=$title
17
 !set module_author=$author
18
 !set module_address=$email
19
!endif
20
 
21
!if 0$delay2>0 and $status!=$empty
22
 !set now_=$wims_nowseconds
1060 bpr 23
 !read js/chrono.phtml $[max(0,$delay1-($now_-$starttime))]
20 reyssat 24
!endif
1060 bpr 25
!set wims_html_header=!append line $header_js to $wims_html_header
20 reyssat 26
!header
27
 
28
!if $module_checkdata!=yes
29
 !read oef/es/nodata.phtml
30
 !goto end
31
!endif
32
 
33
!if $title=$empty
34
 Este módulo es una agrupación de ejercicios. Aparentemente lo ha
35
 abierto sin precisar un ejercicio válido que quiera hacer. Esto puede
36
 ocurrir porque ha seguido un enlace erróneo, o tratarse de un error del
37
 programa.
38
 <p><center>
39
 !href module=$module Pruebe a comenzar de nuevo
40
, o
41
 !href $ cancelar
42
 . </center>
43
 !goto end
44
!endif
45
 
46
!if 0$delay1>0 and $status!=$empty
1060 bpr 47
 <p><form target="#" name=chrono><center>
1009 bpr 48
 <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
20 reyssat 49
 &nbsp;<b><font color=red>¡Atención!</font></b>
50
 !if $qnum>1
51
  Esta serie tiene límite de tiempo.
52
 !else
53
  Ete ejercicio tiene límite de tiempo.
54
 !endif
1060 bpr 55
 <input size=4 name=clock readonly onFocus="this.blur();">
20 reyssat 56
 </table>
57
 </center></form> <p>
58
!endif
59
 
60
:tester
61
!read oef/present.phtml
62
 
1006 bpr 63
<center><hr width="50%"></center>
20 reyssat 64
 
65
!if $cmd=hint
66
 !read oef/hint.phtml
67
 !goto end
68
!endif
69
 
70
!if $status=waiting
71
 !if $error!=$empty
72
  !read oef/msg.phtml
1006 bpr 73
  <center><hr width="50%"></center>
20 reyssat 74
 !endif
75
 !read oef/form.phtml
76
 <p>
77
 !if $hint!=$empty and $givehint>0
78
  !href cmd=hint Pista
79
.
80
 !endif
81
 !if $help!=$empty
82
  !href cmd=help Ayuda
83
.
84
 !endif
85
 !if $qnum<=1
86
  !href $renewlink Reiniciar el ejercicio
87
.
88
 !else
89
  Este es el ejercicio número $[$reply_cnt+1] de una serie con $qnum
90
  ejercicios.
91
  !href $renewlink Abandonar la serie
92
.
93
 !endif
94
!else
95
 !if $error!=$empty
96
  !read oef/msg.phtml
1006 bpr 97
  <center><hr width="50%"></center>
20 reyssat 98
 !endif
99
 !read oef/answer.phtml
100
 <p>
101
 !if $status!=$empty
102
  Este es el ejercicio número $reply_cnt de una serie de $qnum exercicios. <p>
103
  !href cmd=next Continuar la serie con el siguiente ejercicio
104
, o
105
  !href $renewlink abandonar la serie y solicitar una nueva
106
 (debe seguir hasta el final de la serie si quiere recibir puntuación).
107
 !else
108
  !if $qnum>1
109
   Ha terminado una serie de $qnum ejercicios, con una puntuación de
110
   $module_score sobre 10.
111
   !ifval $module_score>9.8
112
    ¡Felicidades!
113
   !endif
114
   !if $toolate!=$empty and $score>$module_score
115
    (Ha sido penalizado por superar el límite de tiempo permitido).
116
   !endif
117
   <p>
118
   !href $renewlink Una vez más
119
.
120
   !if $wims_sheet=$empty
121
    !href exo_Intro
122
.
123
   !endif
124
  !else
125
   Ha obtenido una puntuación de $module_score sobre 10.
126
   !ifval $module_score>9.8
127
    ¡Felicidades!
128
   !endif
129
   !if $toolate!=$empty and $score>$module_score
130
    (Ha sido penalizado por superar el límite de tiempo permitido).
131
   !endif
132
 
133
   <p>
134
   !href $renewlink Una vez más
135
.
136
   !if $wims_sheet=$empty and $oef_test!=yes
137
    !href exo_Intro
138
.
139
   !endif
140
  !endif
141
 !endif
142
!endif
143
 
144
!if $replydefaulted=yes
145
 <p> <small>
146
 Modo de desarrollo:
147
 !if $oef_default=yes
148
  las respuestas correctas se insertan en los campos
149
  de respuesta de forma predeterminada.
150
  !else
151
   !href cmd=config&oef_default=yes insertar las respuestas correctas
152
   en los campos de respuesta.
153
 !endif
154
 </small>
155
!endif
156
 
157
!read endhook.phtml
158
!if $wims_user=supervisor and exam notin $session and \
159
        ..classes/ notin ..$module and ..adm/ notin ..$module and \
160
        ..devel/ notin ..$module and \
161
        GNU isin $module_copyright and \
162
        _check notin $session and \
163
        $class_importation!=no
164
 <p>
165
 !href module=adm/createxo&existing=$thisexo&catmodule=$module Importar
166
 este ejercicio a su clase (donde podrá modificarlo).
167
!endif
168
:end
169
 
170
!tail
171