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