Rev 1009 | Rev 1105 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
386 | bpr | 1 | !nocache |
2 | !if $oef_test=yes |
||
3 | !set renewlink=cmd=next&retest=again |
||
4 | !goto tester |
||
5 | !else |
||
6 | !set init_parm=!translate + to $ $ in $module_init_parm |
||
7 | !set renewlink=cmd=renew&worksheet=$worksheet&$init_parm |
||
8 | !endif |
||
9 | |||
10 | !if $printing=yes |
||
11 | !changeto oef/print.phtml |
||
12 | !endif |
||
13 | |||
14 | !if $title!=$empty |
||
15 | !set module_title=$title |
||
16 | !set module_author=$author |
||
17 | !set module_address=$email |
||
18 | !endif |
||
19 | |||
20 | !if 0$delay2>0 and $status!=$empty |
||
21 | !set now_=$wims_nowseconds |
||
1060 | bpr | 22 | !read js/chrono.phtml $[max(0,$delay1-($now_-$starttime))] |
386 | bpr | 23 | !endif |
1060 | bpr | 24 | !set wims_html_header=!append line $header_js to $wims_html_header |
386 | bpr | 25 | !header |
26 | |||
27 | !if $title=$empty |
||
28 | Aquest mòdul és un agrupament d'exercicis. Aparentment l'has demanat |
||
29 | sense precisar quin exercici vàlid vols fer. Pot ser que hagis clicat |
||
30 | sobre un enllaç incorrecte, o per un error al software. |
||
31 | <p><center> |
||
32 | !href module=$module Intenta tornar a començar |
||
33 | , or |
||
34 | !href $ abandonar |
||
35 | . </center> |
||
36 | !goto end |
||
37 | !endif |
||
38 | |||
39 | !if 0$delay1>0 and $status!=$empty |
||
1060 | bpr | 40 | <p><form target="#" name=chrono><center> |
1009 | bpr | 41 | <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td> |
386 | bpr | 42 | <b><font color=red>Atenció!</font></b> |
43 | !if $qnum>1 |
||
44 | Aquestes sèries d'exercicis tenen un temps limitat. |
||
45 | !else |
||
46 | Aquest exercici té el temps limitat. |
||
47 | !endif |
||
1060 | bpr | 48 | <input size=4 name=clock readonly onFocus="this.blur()";> |
386 | bpr | 49 | </table> |
50 | </center></form> <p> |
||
51 | !endif |
||
52 | |||
53 | :tester |
||
54 | !read oef/present.phtml |
||
1006 | bpr | 55 | <center><hr width="50%"></center> |
386 | bpr | 56 | |
57 | !if $cmd=hint |
||
58 | !read oef/hint.phtml |
||
59 | !goto end |
||
60 | !endif |
||
61 | |||
62 | !if $status=waiting |
||
63 | !if $error!=$empty |
||
64 | !read oef/msg.phtml |
||
1006 | bpr | 65 | <center><hr width="50%"></center> |
386 | bpr | 66 | !endif |
67 | !read oef/form.phtml |
||
68 | <p> |
||
69 | !if $hint!=$empty and $givehint>0 |
||
70 | !href cmd=hint Consell |
||
71 | . |
||
72 | !endif |
||
73 | !if $help!=$empty |
||
74 | !href cmd=help Ajuda |
||
75 | . |
||
76 | !endif |
||
77 | !if $qnum<=1 |
||
78 | !href $renewlink Renova l'exercici |
||
79 | . |
||
80 | !else |
||
81 | Aquest és l'exercici número $[$reply_cnt+1] d'una sèrie de $qnum exercicis. |
||
82 | !href $renewlink Abandonar la sèrie |
||
83 | . |
||
84 | !endif |
||
85 | !else |
||
86 | !if $error!=$empty |
||
87 | !read oef/msg.phtml |
||
1006 | bpr | 88 | <center><hr width="50%"></center> |
386 | bpr | 89 | !endif |
90 | !read oef/answer.phtml |
||
91 | <p> |
||
92 | !if $status!=$empty |
||
93 | Aquest és l'exercici número $reply_cnt d'una sèrie de $qnum exercicis. <p> |
||
94 | !href cmd=next Continuar la sèrie amb el següent exercici |
||
95 | , o |
||
96 | !href $renewlink abandonar la sèrie i demanar-ne una de nova |
||
97 | . (Has d'arribar al final de la sèrie si vols obtenir una nota.) |
||
98 | !else |
||
99 | !if $qnum>1 |
||
100 | Has acabat una sèrie de $qnum exercicis, amb una nota de |
||
101 | $module_score sobre 10. |
||
102 | !ifval $module_score>9.8 |
||
103 | Enhorabona! |
||
104 | !endif |
||
105 | !if $toolate!=$empty and $score>$module_score |
||
106 | (Has estat penelitzat per excedir-te del temps límit.) |
||
107 | !endif |
||
108 | <p> |
||
109 | !href $renewlink Un altre |
||
110 | . |
||
111 | !if $wims_sheet=$empty |
||
112 | !href exo_Intro |
||
113 | . |
||
114 | !endif |
||
115 | !else |
||
116 | Has obtingut una nota de $module_score sobre 10. |
||
117 | !ifval $module_score>9.8 |
||
118 | Enhorabona! |
||
119 | !endif |
||
120 | !if $toolate!=$empty and $score>$module_score |
||
121 | (Has estat penalitzat per excedir-te del temps límit.) |
||
122 | !endif |
||
123 | <p> |
||
124 | !href $renewlink Un altre |
||
125 | . |
||
126 | !if $wims_sheet=$empty and $oef_test!=yes |
||
127 | !href exo_Intro |
||
128 | . |
||
129 | !endif |
||
130 | !endif |
||
131 | !endif |
||
132 | !endif |
||
133 | |||
134 | !if $replydefaulted=yes |
||
135 | <p> <small> |
||
136 | En el mode d'elaboració s'inclouen per defecte les respostes correctes en els camps de resposta. |
||
137 | </small> |
||
138 | !endif |
||
139 | |||
140 | !read ./endhook.phtml |
||
141 | !if $wims_user=supervisor and exam notin $session and \ |
||
142 | ..classes/ notin ..$module and ..adm/ notin ..$module and \ |
||
143 | ..devel/ notin ..$module and \ |
||
144 | GNU isin $module_copyright and \ |
||
145 | _check notin $session and \ |
||
146 | $class_importation!=no |
||
147 | <p> |
||
148 | !href module=adm/createxo&existing=$thisexo&catmodule=$module Importar |
||
149 | aquest exercici a la teua classe (on tu pots modificar-lo). |
||
150 | !endif |
||
151 | :end |
||
152 | |||
153 | !tail |
||
154 |