Subversion Repositories wimsdev

Rev

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

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