Subversion Repositories wimsdev

Rev

Rev 1060 | Rev 1198 | 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
1105 bpr 28
!set wims_html_header=$oefcss\
29
$wims_html_header
20 reyssat 30
 
1105 bpr 31
!header1
32
<h1 class="oeftitle">$title</h1>
33
 
34
!if $module_checkdata!=yes
35
 !read oef/$module_language/nodata.phtml
36
 !goto end
37
!endif
38
 
20 reyssat 39
!if $title=$empty
40
 Ta modul je sestavljen iz skupine vaj. Očitno ste ga zahtevali, ne da bi natančno izbrali katero od veljavnih vaj. Morda ste kliknili na napačno povezavo ali pa gre za napako v programu.
41
 <p><center>
42
 !href module=$module Poskusite znova
43
 ali pa
44
 !href $ opustite
45
 . </center>
46
 !goto end
47
!endif
48
 
49
!if 0$delay1>0 and $status!=$empty
1060 bpr 50
 <p><form target="#" name=chrono><center>
1009 bpr 51
 <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
20 reyssat 52
 &nbsp;<b><font color=red>Opozorilo!</font></b>
53
 !if $qnum>1
54
  Reševanje te skupine vaj je časovno omejeno.
55
 !else
56
 Reševanje te vaje je časovno omejeno.
57
 !endif
1060 bpr 58
 <input size=4 name=clock readonly onFocus="this.blur();">
20 reyssat 59
 </table>
60
 </center></form> <p>
61
!endif
62
 
63
:tester
64
!read oef/present.phtml
1006 bpr 65
<center><hr width="50%"></center>
20 reyssat 66
 
67
!if $cmd=hint
68
 !read oef/hint.phtml
69
 !goto end
70
!endif
71
 
72
!if $status=waiting
73
 !if $error!=$empty
74
  !read oef/msg.phtml
1006 bpr 75
  <center><hr width="50%"></center>
20 reyssat 76
 !endif
77
 !read oef/form.phtml
78
 <p>
79
 !if $hint!=$empty and $givehint>0
80
  !href cmd=hint Namig
81
.
82
 !endif
83
 !if $help!=$empty
84
  !href cmd=help Pomoč
85
.
86
 !endif
87
 !if $qnum<=1
88
  !href $renewlink Obnovi vajo
89
.
90
 !else
91
  To je vaja številka $[$reply_cnt+1] iz niza. Število vseh vaj v tem nizu je $qnum.
92
  !href $renewlink Prekini niz
93
.
94
 !endif
95
!else
96
 !if $error!=$empty
97
  !read oef/msg.phtml
1006 bpr 98
  <center><hr width="50%"></center>
20 reyssat 99
 !endif
100
 !read oef/answer.phtml
101
 <p>
102
 !if $status!=$empty
103
  To je vaja številka $[$reply_cnt+1] iz niza. Število vseh vaj v tem nizu je $qnum.<p>
104
  !href cmd=next Nadaljuj niz z naslednjo vajo
105
  ali pa
106
  !href $renewlink prekini niz in začni znova
107
. (Rezultat dobite le, če zaključite celoten niz.)
108
 !else
109
  !if $qnum>1
110
   Zaključili ste reševanje niza vaj, za katerega ste dobili oceno
111
   $module_score od 10.
112
   !ifval $module_score>9.8
113
    Čestitke!
114
   !endif
115
   !if $toolate!=$empty and $score>$module_score
116
   (Bili ste kaznovani zaradi prekoračene časovne omejitve.)
117
   !endif
118
   <p>
119
   !href $renewlink Še enkrat
120
.
121
   !if $wims_sheet=$empty
122
    !href exo_Intro
123
.
124
   !endif
125
  !else
126
   Vaš rezultat je $module_score od 10.
127
   !ifval $module_score>9.8
128
    Čestitke!
129
   !endif
130
   !if $toolate!=$empty and $score>$module_score
131
   (Bili ste kaznovani zaradi prekoračene časovne omejitve.)
132
   !endif
133
   <p>
134
   !href $renewlink Še enkrat
135
.
136
   !if $wims_sheet=$empty and $oef_test!=yes
137
    !href exo_Intro
138
.
139
   !endif
140
  !endif
141
 !endif
142
!endif
143
 
144
!if $replydefaulted=yes
145
 <p> <small>
146
 Preizkusni način: v polja za odgovore so avtomatsko vpisani pravilni odgovori.
147
 </small>
148
!endif
149
 
150
!read ./endhook.phtml
151
!if $wims_user=supervisor and exam notin $session and \
152
        ..classes/ notin ..$module and ..adm/ notin ..$module and \
153
        ..devel/ notin ..$module and \
154
        GNU isin $module_copyright and \
155
        _check notin $session and \
156
        $class_importation!=no
157
 <p>
158
 !href module=adm/createxo&existing=$thisexo&catmodule=$module Uvozite
159
 to vajo v svojo učilnico, kjer jo lahko prilagodite po svojih željah.
160
!endif
161
:end
162
 
163
!tail
164