Subversion Repositories wimsdev

Rev

Rev 1361 | Rev 1664 | 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=!append line $oefcss to $wims_html_header
  29.  
  30. !header1
  31. <h1 class="oeftitle">$title</h1>
  32.  
  33. !if $module_checkdata!=yes
  34.  !read oef/$module_language/nodata.phtml
  35.  !goto end
  36. !endif
  37.  
  38. !if $title=$empty
  39.  Questo modulo contiene un gruppo di esercizi. Apparentemete non &egrave;
  40.  stato specificato quale esercizio svolgere. O si &egrave; cliccato
  41.  su un link errato o si tratta di un bug nel sistema.
  42.  <p><center>
  43.  !href module=$module Riprovare
  44.  , o
  45.  !href $ annullare
  46.  . </center>
  47.  !goto end
  48. !endif
  49.  
  50. !if 0$delay1>0 and $status!=$empty
  51.  <p><form target="#" name=chrono><center>
  52.  <table border=2 bgcolor="$wims_ref_bgcolor"><tr><td>
  53.  &nbsp;<b><font color=red>Attenzione!</font></b>
  54.  !if $qnum>1
  55.   Questa sessione ha un limite di tempo.
  56.  !else
  57.   Questo esercizio ha un limite di tempo.
  58.  !endif
  59.  <input size=4 name=clock readonly onFocus="this.blur();">
  60.  </table>
  61.  </center></form> <p>
  62. !endif
  63.  
  64. :tester
  65. !read oef/present.phtml
  66.  
  67. !if $wims_theme_version= or $wims_theme_version<1
  68. <center><hr width="50%"></center>
  69. !endif
  70.  
  71. !if $cmd=hint
  72.  !read oef/hint.phtml
  73.  !goto end
  74. !endif
  75.  
  76. !if $status=waiting
  77.  !if $error!=$empty
  78.   !read oef/msg.phtml
  79.  !if $wims_theme_version= or $wims_theme_version<1
  80.   <center><hr width="50%"></center>
  81.  !endif
  82.  !endif
  83.  !read oef/form.phtml
  84.  <p>
  85.  !if $hint!=$empty and $givehint>0
  86.   !href cmd=hint Suggerimento
  87. .
  88.  !endif
  89.  !if $help!=$empty
  90.   !href cmd=help Help on line
  91. .
  92.  !endif
  93.  !if $qnum<=1
  94.   !href $renewlink Un nuovo esercizio
  95. .
  96.  !else
  97.   Questo &egrave; l'esercizio numero $[$reply_cnt+1] di una sessione di $qnum esercizi.
  98.  !href $renewlink Terminare la sessione
  99. .
  100. !endif
  101. !else
  102. !if $error!=$empty
  103.  !read oef/msg.phtml
  104.  !if $wims_theme_version= or $wims_theme_version<1
  105.  <center><hr width="50%"></center>
  106.  !endif
  107. !endif
  108. !read oef/answer.phtml
  109. <p>
  110. !if $status!=$empty
  111.  Questo &egrave; l'esercizio $reply_cnt in una serie di $qnum. <p>
  112.   !href cmd=next Passare all'esercizio successivo
  113. , o
  114.  !href $renewlink abbandonare la sessione e cominciarne un'altra
  115. . (&Egrave; necessario terminare una sessione per ottenere un punteggio.)
  116.  !else
  117.   !if $qnum>1
  118.    Avete terminato una sessione di $qnum esercizi, ottenendo un punteggio di
  119.    $module_score su 10.
  120.    !ifval $module_score>9.8
  121.     Congratulazioni
  122.    !endif
  123.    !if $toolate!=$empty and $score>$module_score
  124.     (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
  125.   !endif
  126.   <p>
  127.   !href $renewlink Un'altra sessione
  128. .
  129.    !if $wims_sheet=$empty
  130.     !href exo_Intro
  131. .
  132.    !endif
  133.   !else
  134.    Avete ottenuto un punteggio di $module_score su 10.
  135.    !ifval $module_score>9.8
  136.     Congratulazioni!
  137.    !endif
  138.    !if $toolate!=$empty and $score>$module_score
  139.     (Sei stato punito per non aver terminato l'esercizio nel tempo stabilito.)
  140.   !endif
  141.   <p>
  142.   !href $renewlink Un'altra sessione
  143. .
  144.    !if $wims_sheet=$empty and $oef_test!=yes
  145.     !href exo_Intro
  146. .
  147.    !endif
  148.   !endif
  149.  !endif
  150. !endif
  151.  
  152. !if $replydefaulted=yes
  153.  <p> <small>Debug:
  154.  !if $oef_default=yes
  155.   le risposte esatte sono inserite come risposte di default.
  156.  !else
  157.   !href cmd=config&oef_default=yes le risposte corrette
  158.   vanno inserite nei campi delle risposte.
  159.  !endif
  160.  </small>
  161. !endif
  162.  
  163. !read ./endhook.phtml
  164. !!## transfer in the "bottom menu"
  165. !!!if $wims_user=supervisor and exam notin $session and \
  166. !!      ..classes/ notin ..$module and ..adm/ notin ..$module and \
  167. !!      ..devel/ notin ..$module and \
  168. !!      GNU isin $module_copyright and \
  169. !!      _check notin $session and \
  170. !!      $class_importation!=no
  171. !! <p>
  172. !! !href module=adm/createxo&existing=$thisexo&catmodule=$module Importa
  173. !! questo esercizio nel tuo corso (dove puoi modificarlo).
  174. !!!endif
  175. :end
  176. !tail
  177.