Subversion Repositories wimsdev

Rev

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

  1. !set proc=oef
  2. <p><center><hr width="35%"></center> <p>
  3.  
  4. !if robot isin $session
  5.  !changeto content.html
  6. !endif
  7.  
  8. !if $wims_class!=$empty and $wims_user=supervisor
  9.  !distribute line $wims_oefdefault_qnum\
  10. $wims_oefdefault_qcmlevel\
  11. $wims_oefdefault_scoredelay\
  12. $wims_oefdefault_qcmpresent\
  13. $wims_oefdefault_presentsol\
  14. $wims_oefdefault_check into qnum,qcmlevel,scoredelay,intro_qcmpresent,intro_presentsol,intro_check
  15.  !let special_parm2=expert
  16. !endif
  17.  
  18. !if ////classes/ isin ////$module
  19.  !set class_header=wimshome/log/classes/$wims_class/
  20. !endif
  21.  
  22. !read $(class_header)Exindex
  23. !set exocnt=!itemcnt $exolist
  24. !set qcnt=$[min($exocnt,8)]
  25. !if $exocnt<1
  26.  !if $wims_user=supervisor and #classes/ isin #$module
  27.  !href module=adm/createxo Click here
  28.   to create your exercises.
  29.  !else
  30.   Sorry, this module has no available exercise for the time being. Come back
  31.   later!
  32.  !endif
  33.  !exit
  34. !endif
  35. !if $exocnt=1
  36.  This module contains actually only one exercise, <b>
  37.  !item 1 of $titlelist
  38.  </b>.
  39.  !set exoo=!item 1 of $exolist
  40.  !href cmd=new&module=$module&exo=$exoo Try it.
  41.  !exit
  42. !endif
  43.  
  44. !form new
  45. <input type=hidden name=module value="$module">
  46. <center><table border=0><tr>
  47. !set special_parm=!trim $special_parm
  48. !if select iswordof $special_parm2 and $special_parm!=$empty
  49.  <td align=center>Exercises containing<br>
  50.  <em><font color=blue>$special_parm</font></em>&nbsp;:<td>
  51. !else
  52.  <td align=center>Choose the exercises:<td>
  53. !endif
  54. !read oef/select.phtml
  55. <tr><td align=center>One series will have<td>
  56. !default qnum=1
  57. !formselect qnum from 1 to 9
  58. exercises.
  59. <tr><td align=center>Level of severity <td>
  60. !default qcmlevel=3
  61. !formselect qcmlevel from 1 to 9
  62. <tr><td align=center>Time limit <td>
  63. <input size=7 name=scoredelay value="$scoredelay"> seconds.
  64. !read introhook.phtml
  65. !if expert iswordof $special_parm2
  66.    <tr><td align=center>
  67.    Number of items shown in multiple choices: <td>
  68.    !default intro_qcmpresent=4
  69.    !formselect intro_qcmpresent list 2,3,4,5,6,7,8
  70.    <tr><td align=center>Give solution (if available)? <td>
  71.    !default intro_presentsol=1
  72.    !formselect intro_presentsol list 0,1,2 prompt never,if the score is not maximal,always
  73.    <tr><td align=right>
  74.    !default intro_check=1,2,3,4
  75.    Multiple choices</td><td>
  76.    !formcheckbox intro_check list 1 prompt Always contain
  77.    good reply.
  78.    <tr><td rowspan=3>&nbsp;</td><td align=left>
  79.    !formcheckbox intro_check list 2 prompt Penalty for bad replies in multiple choices.
  80.    <tr><td align=left>
  81.    !formcheckbox  intro_check list 3 prompt Show good reply.
  82.    <tr><td align=left>
  83.    !formcheckbox intro_check list 4 prompt Allow hint (when available).
  84.    !let tmp=!replace word expert by $ in $special_parm2
  85.    <tr><td colspan=2 align=center>
  86.    !href module=$module&special_parm=$special_parm&special_parm2=$tmp Simplified menu
  87.    <input type=hidden name=intro_expert value=yes>
  88. !else
  89.    <tr><td colspan=2 align=center>
  90.    !let tmp=$special_parm2 expert
  91.    !href module=$module&special_parm=$special_parm&special_parm2=$tmp Expert menu
  92. !endif
  93. </table></center> <p><center>
  94. <input type=submit value="Go to work">&nbsp;
  95. <input type=submit name=print value="Printable version">
  96. </center>
  97. </form>
  98.  
  99. !if $exocnt>10
  100.  !form intro
  101.  <input type=hidden name=special_parm2 value=select>
  102.  <input type=hidden name=module value="$module">
  103.  Select titles containing word
  104.  <input size=12 maxlength=12 name=special_parm value="$oldparm">
  105.  <input type=submit value=OK>
  106.  </form>
  107. !endif
  108.  
  109. <b>Remarks</b>. The exercises will be randomly taken among your choice
  110. (or among all the available exercises if your choice is empty).
  111.  
  112. !if * isin $titlelist
  113.  <p>Exercises marked by a * are in general harder than the others.
  114. !endif
  115.  
  116. <p><small>You can put two numbers into the time limit, a smaller limit followed
  117. by a bigger one. In this case, the first limit starts score reduction, which
  118. will go to 0 if the second limit is reached.
  119. </small>
  120.