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