Subversion Repositories wimsdev

Rev

Rev 367 | 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 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.  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
  46.  <p><form target=# name=chrono><center>
  47. <table border=2 bgcolor=$wims_ref_bgcolor><tr><td>
  48.  &nbsp;<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
  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
  61. <center><hr width=50%></center>
  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
  71.   <center><hr width=50%></center>
  72.  !endif
  73.  !read oef/form.phtml
  74.  <p>
  75.  !if $hint!=$empty and $givehint>0
  76.   !href cmd=hint Suggerimento
  77. .
  78.  !endif
  79.  !if $help!=$empty
  80.   !href cmd=help Help on line
  81. .
  82.  !endif
  83.  !if $qnum<=1
  84.   !href $renewlink Un nuovo esercizio
  85. .
  86.  !else
  87.   Questo &egrave; l'esercizio numero $[$reply_cnt+1] di una sessione di $qnum esercizi.
  88.  !href $renewlink Terminare la sessione
  89. .
  90. !endif
  91. !else
  92. !if $error!=$empty
  93.  !read oef/msg.phtml
  94.  <center><hr width=50%></center>
  95. !endif
  96. !read oef/answer.phtml
  97. <p>
  98. !if $status!=$empty
  99.  Questo &egrave; l'esercizio $reply_cnt in una serie di $qnum. <p>
  100.   !href cmd=next Passare all'esercizio successivo
  101. , o
  102.  !href $renewlink abbandonare la sessione e cominciarne un'altra
  103. . (&Egrave; necessario terminare una sessione per ottenere un punteggio.)
  104.  !else
  105.   !if $qnum>1
  106.    Avete terminato una sessione di $qnum esercizi, ottenendo un punteggio di
  107.    $module_score su 10.
  108.    !ifval $module_score>9.8
  109.     Congratulazioni
  110.    !endif
  111.    !if $toolate!=$empty and $score>$module_score
  112.     (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
  113.   !endif
  114.   <p>
  115.   !href $renewlink Un'altra sessione
  116. .
  117.    !if $wims_sheet=$empty
  118.     !href exo_Intro
  119. .
  120.    !endif
  121.   !else
  122.    Avete ottenuto un punteggio di $module_score su 10.
  123.    !ifval $module_score>9.8
  124.     Congratulazioni!
  125.    !endif
  126.    !if $toolate!=$empty and $score>$module_score
  127.     (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
  128.   !endif
  129.   <p>
  130.   !href $renewlink Un'altra sessione
  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>Debug:
  142.  !if $oef_default=yes
  143.   le risposte esatte sono inserite come risposte di default.
  144.  !else
  145.   !href cmd=config&oef_default=yes le risposte corrette
  146.   vanno inserite nei campi delle risposte.
  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 Importa
  160.  questo esercizio nel tuo corso (dove puoi modificarlo).
  161. !endif
  162. :end
  163.  
  164. !tail
  165.  
  166.