Subversion Repositories wimsdev

Rev

Rev 121 | 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 renewlink=cmd=renew&worksheet=$worksheet&$module_init_parm
  8. !endif
  9.  
  10. !if $printing=yes
  11.  !changeto oef/print.phtml
  12. !endif
  13.  
  14. !if $title!=$empty
  15.  !set module_title=$title
  16.  !set module_author=$author
  17.  !set module_address=$email
  18. !endif
  19.  
  20. !if 0$delay2>0 and $status!=$empty
  21.  !set now_=$wims_nowseconds
  22.  !read js/chrono.js $[max(0,$delay1-($now_-$starttime))]
  23. !endif
  24. $header_js
  25. !header
  26.  
  27. !if $title=$empty
  28. ±¾Ä£¿éÊÇÒ»×éÁ·Ï°. ÄãÏë×öÁ·Ï°, µ«ÓÖûÓÐÖ¸³öÄãÏë×öÄĸöÁ·Ï°.
  29. ¿ÉÄÜÊÇÓÉÓÚÄãµã»÷ÁËÒ»¸ö´íÎóµÄÁ¬½Ó, Ò²¿ÉÄÜÊÇÈí¼þµÄ´íÎó.
  30.  <p><center>
  31.  !href module=$module ÖØÐ²Ù×÷
  32.  , »ò
  33.  !href $ ·ÅÆú
  34.  . </center>
  35.  !goto end
  36. !endif
  37.  
  38. !if 0$delay1>0 and $status!=$empty
  39.  <p><form target=# name=chrono><center>
  40. <table border=2 bgcolor=$wims_ref_bgcolor><tr><td>
  41.  &nbsp;<b><font color=red>×¢Òâ!</font></b>
  42.  !if $qnum>1
  43.   ±¾×éÁ·Ï°ÓÐʱ¼äÏÞÖÆ.
  44.  !else
  45.   ±¾Á·Ï°ÓÐʱ¼äÏÞÖÆ.
  46.  !endif
  47.  <input size=4 name=clock>
  48.  </table>
  49.  </center></form> <p>
  50. !endif
  51.  
  52. :tester
  53. !read oef/present.phtml
  54.  
  55. <center><hr width=50%></center>
  56.  
  57. !if $cmd=hint
  58.  !read oef/hint.phtml
  59.  !goto end
  60. !endif
  61.  
  62. !if $status=waiting
  63.  !if $error!=$empty
  64.   !read oef/msg.phtml
  65.   <center><hr width=50%></center>
  66.  !endif
  67.  !read oef/form.phtml
  68.  <p>
  69.  !if $hint!=$empty and $givehint>0
  70.   !href cmd=hint Ìáʾ
  71. .
  72.  !endif
  73.  !if $qnum<=1
  74.   !href $renewlink »»Ò»¸öÁ·Ï°
  75. .
  76.  !else
  77. ÕâÊDZ¾´Î $qnum ¸öϰÌâÖÐµÄµÚ $[$reply_cnt+1] ¸öϰÌâ.
  78.   !href $renewlink ·ÅÆú±¾´ÎÁ·Ï°
  79. .
  80.  !endif
  81. !else
  82.  !if $error!=$empty
  83.   !read oef/msg.phtml
  84.   <center><hr width=50%></center>
  85.  !endif
  86.  !read oef/answer.phtml
  87.  <p>
  88.  !if $status!=$empty
  89. ÕâÊDZ¾´Î $qnum ¸öϰÌâÖÐµÄµÚ $reply_cnt ¸öϰÌâ. <p>
  90.   !href cmd=next ¼ÌÐøÏÂÒ»¸öϰÌâ
  91. , »ò
  92.   !href $renewlink ·ÅÆú±¾´ÎÁ·Ï°, ÒªÇóÒ»´ÎеÄÁ·Ï°
  93. . (Èç¹ûÄãÐèÒª³É¼¨µÄ»°, Äã±ØÐë×öÍê±¾´ÎÁ·Ï°µÄËùÓÐϰÌâ.)
  94.  !else
  95.   !if $qnum>1
  96. ÄãÒÑ×öÍêÁËÒ»´Î $qnum ¸öϰÌâ, ³É¼¨ÊÇ
  97.    $module_score/10.
  98.    !ifval $module_score>9.8
  99.     ×£ºØÄã!
  100.    !endif
  101.    <p>
  102.    !href exo_Again
  103. .
  104.    !if $wims_sheet=$empty
  105.     !href exo_Intro
  106.    !endif
  107.   !else
  108. ÄãµÄ³É¼¨ÊÇ $module_score/10.
  109.    !ifval $module_score>9.8
  110.     ×£ºØÄã!
  111.    !endif
  112.    <p>
  113.    !href exo_Again
  114. .
  115.    !if $wims_sheet=$empty and $oef_test!=yes
  116.     !href exo_Intro
  117.    !endif
  118.   !endif
  119.  !endif
  120. !endif
  121.  
  122. !if $replydefaulted=yes
  123.  <p> <small>
  124.  Development mode: good replies inserted into reply fields as default.
  125.  </small>
  126. !endif
  127.  
  128. !read ./endhook.phtml
  129. !if $wims_user=supervisor and exam notin $session and \
  130.         ..classes/ notin ..$module and ..adm/ notin ..$module and \
  131.         ..devel/ notin ..$module and \
  132.         GNU isin $module_copyright and \
  133.         _check notin $session and \
  134.         $class_importation!=no
  135.  <p>
  136.  !href module=adm/createxo&existing=$thisexo&catmodule=$module ²åÈë
  137. ±¾Á·Ï°µ½ÄãµÄ°à¼¶ (Äã¿ÉÒÔÔÚÄÇÀïÐÞ¸ÄËü).
  138. !endif
  139. :end
  140. !tail
  141.  
  142.