Rev 1198 | 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 |
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 | |
1006 | bpr | 67 | <center><hr width="50%"></center> |
20 | reyssat | 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> |
20 | reyssat | 78 | !endif |
79 | !read oef/form.phtml |
||
80 | <p> |
||
81 | !if $hint!=$empty and $givehint>0 |
||
82 | !href cmd=hint Suggerimento |
||
83 | . |
||
84 | !endif |
||
85 | !if $help!=$empty |
||
86 | !href cmd=help Help on line |
||
87 | . |
||
88 | !endif |
||
89 | !if $qnum<=1 |
||
90 | !href $renewlink Un nuovo esercizio |
||
91 | . |
||
92 | !else |
||
93 | Questo è l'esercizio numero $[$reply_cnt+1] di una sessione di $qnum esercizi. |
||
94 | !href $renewlink Terminare la sessione |
||
95 | . |
||
96 | !endif |
||
97 | !else |
||
98 | !if $error!=$empty |
||
99 | !read oef/msg.phtml |
||
1006 | bpr | 100 | <center><hr width="50%"></center> |
20 | reyssat | 101 | !endif |
102 | !read oef/answer.phtml |
||
103 | <p> |
||
104 | !if $status!=$empty |
||
105 | Questo è l'esercizio $reply_cnt in una serie di $qnum. <p> |
||
106 | !href cmd=next Passare all'esercizio successivo |
||
107 | , o |
||
108 | !href $renewlink abbandonare la sessione e cominciarne un'altra |
||
109 | . (È necessario terminare una sessione per ottenere un punteggio.) |
||
110 | !else |
||
111 | !if $qnum>1 |
||
112 | Avete terminato una sessione di $qnum esercizi, ottenendo un punteggio di |
||
113 | $module_score su 10. |
||
114 | !ifval $module_score>9.8 |
||
115 | Congratulazioni |
||
116 | !endif |
||
117 | !if $toolate!=$empty and $score>$module_score |
||
118 | (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.) |
||
119 | !endif |
||
120 | <p> |
||
121 | !href $renewlink Un'altra sessione |
||
122 | . |
||
123 | !if $wims_sheet=$empty |
||
124 | !href exo_Intro |
||
125 | . |
||
126 | !endif |
||
127 | !else |
||
128 | Avete ottenuto un punteggio di $module_score su 10. |
||
129 | !ifval $module_score>9.8 |
||
130 | Congratulazioni! |
||
131 | !endif |
||
132 | !if $toolate!=$empty and $score>$module_score |
||
133 | (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.) |
||
134 | !endif |
||
135 | <p> |
||
136 | !href $renewlink Un'altra sessione |
||
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>Debug: |
||
148 | !if $oef_default=yes |
||
149 | le risposte esatte sono inserite come risposte di default. |
||
150 | !else |
||
151 | !href cmd=config&oef_default=yes le risposte corrette |
||
152 | vanno inserite nei campi delle risposte. |
||
153 | !endif |
||
154 | </small> |
||
155 | !endif |
||
156 | |||
157 | !read ./endhook.phtml |
||
1361 | czzmrn | 158 | !!## transfer in the "bottom menu" |
1198 | bpr | 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 |
||
20 | reyssat | 169 | :end |
170 | !tail |