Subversion Repositories wimsdev

Rev

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

  1.  
  2. !if $job=score
  3.  !read adm/title.phtml 1\
  4.  $wims_classname, $wims_institutionname\
  5.  $title
  6.  
  7.  !if $wims_user=supervisor
  8.   <center>($name_presentation)</center>
  9.  !endif
  10.  <p>$desc<p>
  11. !endif
  12.  
  13. !if $error!=$empty
  14.  <p>
  15.  !read lang/msg.phtml.$moduclass_lang
  16.  <p>
  17.  !href module=home $wims_name_back2
  18. . <p>
  19.  !goto end
  20. !endif
  21.  
  22. !if $exocnt=0
  23.  $name_empty
  24. !else
  25.  $table_header
  26.  $table_hdtr
  27.  <caption>$name_scoreexam</caption>
  28.  $table_tr<th>$wims_name_Exercise<th>$wims_name_title</th><th>$name_coeff<th>$name_Score
  29.  !for i=1 to $exocnt
  30.   !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam
  31.   !distribute lines $ex into we,li,ti
  32.    $table_tr<td align="center">$i
  33.   <td align="center">$ti
  34.   <td align="center">$we<td align="center">
  35.   !if $(replied$i)>0
  36.    $(got$i)
  37.   !else
  38.    <small>$name_pending</small>
  39.   !endif
  40.  !next i
  41.   $table_tr<td align="center" colspan=4>
  42.  !default score=$sprime
  43. $name_scoreexam2: <b>$score</b> <small>/ 10</small>.
  44.  $table_end
  45. !endif
  46. <p>
  47.  
  48. !if $registered=$empty
  49.  $name_begin1.
  50.  !href cmd=reply&job=student $name_begin2
  51. !else
  52.  !if $timeleft<=0
  53.   $name_timeleft
  54.    <p>
  55.  !endif
  56.  !if $allowtype=simulation
  57.   $name_simulation2
  58.   !if $lastscore>0
  59.    ($name_realscore)
  60.   !endif
  61.  !else
  62.   $name_bestscore
  63.  !endif
  64.  <p>
  65. !set test=!recordcnt wimshome/$wims_sesdir/examscore.$exam
  66. !if $test>=2
  67.  !set wims_menu_items=!append line endexam,1,cmd=reply&job=scorereg\
  68.  to $wims_menu_items
  69. !endif
  70. !set wims_menu_items=!append line backexam,1,cmd=reply&job=student\
  71.  to $wims_menu_items
  72. !endif
  73.  
  74. !if $wims_user=supervisor
  75. !set wims_menu_items=!append line teacherview,1,cmd=resume\
  76.  to $wims_menu_items
  77.  </center>
  78. !endif
  79.  
  80. :end
  81. !tail
  82.  
  83. !reset job
  84.  
  85.