Subversion Repositories wimsdev

Rev

Rev 1060 | Rev 1198 | 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
367 bpr 35
 !read oef/it/nodata.phtml
20 reyssat 36
 !goto end
37
!endif
38
 
39
!if $title=$empty
40
 Questo modulo contiene un gruppo di esercizi. Apparentemete non &egrave;
41
 stato specificato quale esercizio svolgere. O si &egrave; cliccato
42
 su un link errato o si tratta di un bug nel sistema.
43
 <p><center>
44
 !href module=$module Riprovare
45
 , o
46
 !href $ annullare
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>
20 reyssat 54
 &nbsp;<b><font color=red>Attenzione!</font></b>
55
 !if $qnum>1
56
  Questa sessione ha un limite di tempo.
57
 !else
58
  Questo esercizio ha un limite di tempo.
59
 !endif
1060 bpr 60
 <input size=4 name=clock readonly onFocus="this.blur();">
20 reyssat 61
 </table>
62
 </center></form> <p>
63
!endif
64
 
65
:tester
66
!read oef/present.phtml
510 czzmrn 67
 
1006 bpr 68
<center><hr width="50%"></center>
20 reyssat 69
 
70
!if $cmd=hint
71
 !read oef/hint.phtml
72
 !goto end
73
!endif
74
 
75
!if $status=waiting
76
 !if $error!=$empty
77
  !read oef/msg.phtml
1006 bpr 78
  <center><hr width="50%"></center>
20 reyssat 79
 !endif
80
 !read oef/form.phtml
81
 <p>
82
 !if $hint!=$empty and $givehint>0
83
  !href cmd=hint Suggerimento
84
.
85
 !endif
86
 !if $help!=$empty
87
  !href cmd=help Help on line
88
.
89
 !endif
90
 !if $qnum<=1
91
  !href $renewlink Un nuovo esercizio
92
.
93
 !else
94
  Questo &egrave; l'esercizio numero $[$reply_cnt+1] di una sessione di $qnum esercizi.
95
  !href $renewlink Terminare la sessione
96
.
97
 !endif
98
!else
99
 !if $error!=$empty
100
  !read oef/msg.phtml
1006 bpr 101
  <center><hr width="50%"></center>
20 reyssat 102
 !endif
103
 !read oef/answer.phtml
104
 <p>
105
 !if $status!=$empty
106
  Questo &egrave; l'esercizio $reply_cnt in una serie di $qnum. <p>
107
  !href cmd=next Passare all'esercizio successivo
108
, o
109
  !href $renewlink abbandonare la sessione e cominciarne un'altra
110
. (&Egrave; necessario terminare una sessione per ottenere un punteggio.)
111
 !else
112
  !if $qnum>1
113
   Avete terminato una sessione di $qnum esercizi, ottenendo un punteggio di
114
   $module_score su 10.
115
   !ifval $module_score>9.8
116
    Congratulazioni
117
   !endif
118
   !if $toolate!=$empty and $score>$module_score
119
    (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
120
   !endif
121
   <p>
122
   !href $renewlink Un'altra sessione
123
.
124
   !if $wims_sheet=$empty
125
    !href exo_Intro
126
.
127
   !endif
128
  !else
129
   Avete ottenuto un punteggio di $module_score su 10.
130
   !ifval $module_score>9.8
131
    Congratulazioni!
132
   !endif
133
   !if $toolate!=$empty and $score>$module_score
134
    (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
135
   !endif
136
   <p>
137
   !href $renewlink Un'altra sessione
138
.
139
   !if $wims_sheet=$empty and $oef_test!=yes
140
    !href exo_Intro
141
.
142
   !endif
143
  !endif
144
 !endif
145
!endif
146
 
147
!if $replydefaulted=yes
148
 <p> <small>Debug:
149
 !if $oef_default=yes
150
  le risposte esatte sono inserite come risposte di default.
151
 !else
152
  !href cmd=config&oef_default=yes le risposte corrette
153
  vanno inserite nei campi delle risposte.
154
 !endif
155
 </small>
156
!endif
157
 
158
!read ./endhook.phtml
159
!if $wims_user=supervisor and exam notin $session and \
160
        ..classes/ notin ..$module and ..adm/ notin ..$module and \
161
        ..devel/ notin ..$module and \
162
        GNU isin $module_copyright and \
163
        _check notin $session and \
164
        $class_importation!=no
165
 <p>
166
 !href module=adm/createxo&existing=$thisexo&catmodule=$module Importa
167
 questo esercizio nel tuo corso (dove puoi modificarlo).
168
!endif
169
:end
170
!tail
171