Subversion Repositories wimsdev

Rev

Rev 1060 | Rev 1198 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  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 init_parm=!replace internal $\
  9. $ by ; in $init_parm
  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
  25.  !read js/chrono.phtml $[max(0,$delay1-($now_-$starttime))]
  26. !endif
  27. !set wims_html_header=!append line $header_js to $wims_html_header
  28. !set wims_html_header=$oefcss\
  29. $wims_html_header
  30.  
  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.  
  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
  50.  <p><form target="#" name=chrono><center>
  51.  <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
  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
  58.  <input size=4 name=clock readonly onFocus="this.blur();">
  59.  </table>
  60.  </center></form> <p>
  61. !endif
  62.  
  63. :tester
  64. !read oef/present.phtml
  65. <center><hr width="50%"></center>
  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
  75.   <center><hr width="50%"></center>
  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
  98.   <center><hr width="50%"></center>
  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.  
  165.