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