Subversion Repositories wimsdev

Rev

Rev 17078 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- adm/class/exam/score.phtml BEGIN -->
  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.     <p class="wimscenter">($name_presentation)</p>
  13.   !endif
  14.   <div>$desc</div>
  15. !endif
  16.  
  17. !if $error!=$empty
  18.   <div class="wims_msg alert">
  19.   !read lang/msg.phtml.$moduclass_lang
  20.   </div>
  21.   <p>
  22.   !href module=home $wims_name_back2
  23. . </p>
  24.   !goto end
  25. !endif
  26.  
  27. !if $exocnt=0
  28.   $name_empty
  29. !else
  30.   !if $scorereducedbyip=1
  31.     <div class="wims_msg info">$name_msg_exam_withip</div>
  32.   !endif
  33.   $table_header
  34.   <caption>$name_scoreexam</caption>
  35.     <thead>
  36.     $table_tr
  37.      <th>$wims_name_Exercise</th>
  38.      <th>$wims_name_title</th>
  39.      <th>$name_coeff</th>
  40.      <th>$name_Score</th>
  41.     </tr>
  42.     </thead>
  43.     <tbody>
  44.   !for ii=1 to $exocnt
  45.   !set i=!item $ii of $(wims_exrandomlist[1;])
  46.   !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam
  47.   !distribute lines $ex into we,li,ti
  48.   $table_tr
  49.     <td>$ii</td>
  50.     <td>$ti</td>
  51.     <td>$we</td>
  52.     <td>
  53.     !if $(replied$i)>0
  54.       $(gotip$i)
  55.       !if $(gotip$i)!=$(got$i)
  56.         !let realtsco=$(got$i)
  57.         <div class="wims_tooltip">&ast;<div class="wims_tooltiptext">$name_real_score</div></div>
  58.       !endif
  59.     !else
  60.       <span class="small">$name_pending</span>
  61.     !endif    
  62.     </td>
  63.    </tr>
  64.   !next ii
  65.   </tbody>
  66.   <tfoot>
  67.    $table_tr
  68.     <td colspan="4" class="wims_average">
  69.      !default score=$sprime
  70.      $name_scoreexam2:
  71.      <strong>$[$scoreip*$scoremax/10]/$scoremax</strong>
  72.      !if $scoreip!=$score
  73.        !let realtsco=$[$score*$scoremax/10]/$scoremax
  74.        <div class="wims_tooltip">&ast;<div class="wims_tooltiptext">$name_real_score</div></div>
  75.      !endif
  76.     </td>
  77.    </tr>
  78.   </tfoot>
  79.  $table_end
  80. !endif
  81.  
  82. !if $wims_exam_remain > 0
  83.   <div>$wims_name_examremain <span id="exam_clock"></span></div>
  84. !endif
  85.  
  86. !if $registered=$empty
  87.   $name_begin1.
  88.   !href cmd=reply&job=student $name_begin2
  89. !else
  90.   !if $wims_exam_remain<=0
  91.     <div class="wims_msg warning">
  92.     $name_timeleft
  93.     </div>
  94.   !endif
  95.   !if $allowtype=simulation
  96.     $name_simulation2
  97.     !if $lastscore>0
  98.       ($name_realscore)
  99.     !endif
  100.   !else
  101.     $name_bestscore
  102.     !if $stries!=1
  103.       $name_bestscore2
  104.     !endif
  105.   !endif
  106.   !if $wims_exam_remain>0
  107.     !set wims_menu_items=!append line backexam,1,cmd=reply&job=student\
  108. to $wims_menu_items
  109.   !endif
  110.   !set test=!recordcnt wimshome/$wims_sesdir/examscore.$exam
  111.   !if $test>=2
  112.     !set wims_menu_items=!append line endexam,1,cmd=reply&job=scorereg\
  113. to $wims_menu_items
  114.   !endif
  115. !endif
  116.  
  117. !if $wims_user=supervisor
  118.   !set wims_menu_items=!append line itemsep,0,\
  119. backteacher,1,cmd=resume\
  120. to $wims_menu_items
  121. !endif
  122.  
  123. :end
  124. <!-- adm/class/exam/score.phtml END -->
  125. !tail
  126.  
  127. !reset job
  128.