Rev 1006 | Rev 1060 | 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 |
||
23 | !read js/chrono.js $[max(0,$delay1-($now_-$starttime))] |
||
24 | !endif |
||
25 | $header_js |
||
26 | !header |
||
27 | |||
28 | !if $module_checkdata!=yes |
||
29 | !read oef/en/nodata.phtml |
||
30 | !goto end |
||
31 | !endif |
||
32 | |||
33 | !if $title=$empty |
||
34 | This module is a groupment of exercises. You have apparently requested it |
||
35 | without precising which valid exercise you want to do. It is either because |
||
36 | you clicked on a wrong link, or because of a software bug. |
||
37 | <p><center> |
||
38 | !href module=$module Try to restart your manipulation |
||
39 | , or |
||
40 | !href $ abandon |
||
41 | . </center> |
||
42 | !goto end |
||
43 | !endif |
||
44 | |||
45 | !if 0$delay1>0 and $status!=$empty |
||
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>Attention!</font></b> |
49 | !if $qnum>1 |
||
50 | This series of exercises is limited in time. |
||
51 | !else |
||
52 | This exercise is limited in time. |
||
53 | !endif |
||
54 | <input size=4 name=clock readonly onFocus=this.blur();> |
||
55 | </table> |
||
56 | </center></form> <p> |
||
57 | !endif |
||
58 | |||
59 | :tester |
||
60 | !read oef/present.phtml |
||
1006 | bpr | 61 | <center><hr width="50%"></center> |
20 | reyssat | 62 | |
63 | !if $cmd=hint |
||
64 | !read oef/hint.phtml |
||
65 | !goto end |
||
66 | !endif |
||
67 | |||
68 | !if $status=waiting |
||
69 | !if $error!=$empty |
||
70 | !read oef/msg.phtml |
||
1006 | bpr | 71 | <center><hr width="50%"></center> |
20 | reyssat | 72 | !endif |
73 | !read oef/form.phtml |
||
74 | <p> |
||
75 | !if $hint!=$empty and $givehint>0 |
||
76 | !href cmd=hint Hint |
||
77 | . |
||
78 | !endif |
||
79 | !if $help!=$empty |
||
80 | !href cmd=help Help |
||
81 | . |
||
82 | !endif |
||
83 | !if $qnum<=1 |
||
84 | !href $renewlink Renew the exercise |
||
85 | . |
||
86 | !else |
||
87 | This is exercise number $[$reply_cnt+1] in a series of $qnum exercises. |
||
88 | !href $renewlink Abandon the series |
||
89 | . |
||
90 | !endif |
||
91 | !else |
||
92 | !if $error!=$empty |
||
93 | !read oef/msg.phtml |
||
1006 | bpr | 94 | <center><hr width="50%"></center> |
20 | reyssat | 95 | !endif |
96 | !read oef/answer.phtml |
||
97 | <p> |
||
98 | !if $status!=$empty |
||
99 | This is exercise number $reply_cnt in a series of $qnum exercises. <p> |
||
100 | !href cmd=next Continue the series with the next exercise |
||
101 | , or |
||
102 | !href $renewlink abandon the series and ask for a new one |
||
103 | . (You must go through to the end of a series if you want a score.) |
||
104 | !else |
||
105 | !if $qnum>1 |
||
106 | You have finished a series of $qnum exercises, with a score of |
||
107 | $module_score over 10. |
||
108 | !ifval $module_score>9.8 |
||
109 | Congratulations! |
||
110 | !endif |
||
111 | !if $toolate!=$empty and $score>$module_score |
||
112 | (You have been punished for exceeding the time limit.) |
||
113 | !endif |
||
114 | <p> |
||
115 | !href $renewlink Once again |
||
116 | . |
||
117 | !if $wims_sheet=$empty |
||
118 | !href exo_Intro |
||
119 | . |
||
120 | !endif |
||
121 | !else |
||
122 | You have obtained a score of $module_score over 10. |
||
123 | !ifval $module_score>9.8 |
||
124 | Congratulations! |
||
125 | !endif |
||
126 | !if $toolate!=$empty and $score>$module_score |
||
127 | (You have been punished for exceeding the time limit.) |
||
128 | !endif |
||
129 | <p> |
||
130 | !href $renewlink Once again |
||
131 | . |
||
132 | !if $wims_sheet=$empty and $oef_test!=yes |
||
133 | !href exo_Intro |
||
134 | . |
||
135 | !endif |
||
136 | !endif |
||
137 | !endif |
||
138 | !endif |
||
139 | |||
140 | !if $replydefaulted=yes |
||
141 | <p> <small>Development mode: |
||
142 | !if $oef_default=yes |
||
143 | good replies inserted into reply fields as default. |
||
144 | !else |
||
145 | !href cmd=config&oef_default=yes insert good replies |
||
146 | into reply fields. |
||
147 | !endif |
||
148 | </small> |
||
149 | !endif |
||
150 | |||
151 | !read ./endhook.phtml |
||
152 | !if $wims_user=supervisor and exam notin $session and \ |
||
153 | ..classes/ notin ..$module and ..adm/ notin ..$module and \ |
||
154 | ..devel/ notin ..$module and \ |
||
155 | GNU isin $module_copyright and \ |
||
156 | _check notin $session and \ |
||
157 | $class_importation!=no |
||
158 | <p> |
||
159 | !href module=adm/createxo&existing=$thisexo&catmodule=$module Import |
||
160 | this exercise into your class (where you can modify it). |
||
161 | !endif |
||
162 | :end |
||
163 | |||
164 | !tail |
||
165 |