Subversion Repositories wimsdev

Rev

Rev 16378 | Rev 17078 | Go to most recent revision | 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 i=1 to $exocnt
  45.   !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam
  46.   !distribute lines $ex into we,li,ti
  47.   $table_tr
  48.     <td>$i</td>
  49.     <td>$ti</td>
  50.     <td>$we</td>
  51.     <td>
  52.     !if $(replied$i)>0
  53.       $(gotip$i)
  54.       !if $(gotip$i)!=$(got$i)
  55.         !let realtsco=$(got$i)
  56.         <div class="wims_tooltip">&ast;<div class="wims_tooltiptext">$name_real_score</div></div>
  57.       !endif
  58.     !else
  59.       <span class="small">$name_pending</span>
  60.     !endif    
  61.     </td>
  62.    </tr>
  63.   !next i
  64.   </tbody>
  65.   <tfoot>
  66.    $table_tr
  67.     <td colspan="4" class="wims_average">
  68.      !default score=$sprime
  69.      $name_scoreexam2:
  70.      <strong>$[$scoreip*$scoremax/10]/$scoremax</strong>
  71.      !if $scoreip!=$score
  72.        !let realtsco=$[$score*$scoremax/10]/$scoremax
  73.        <div class="wims_tooltip">&ast;<div class="wims_tooltiptext">$name_real_score</div></div>
  74.      !endif
  75.     </td>
  76.    </tr>
  77.   </tfoot>
  78.  $table_end
  79. !endif
  80.  
  81. !if $wims_exam_remain > 0
  82.   <p id="exam_clock">$wims_name_examremain $wims_hr_rm:$wims_hr_rs $[$sdure2-($now-$registered)].</p>
  83. !endif
  84.  
  85. !if $registered=$empty
  86.   $name_begin1.
  87.   !href cmd=reply&job=student $name_begin2
  88. !else
  89.   !if $timeleft<=0
  90.     <div class="wims_msg warning">
  91.     $name_timeleft
  92.     </div>
  93.   !endif
  94.   !if $allowtype=simulation
  95.     $name_simulation2
  96.     !if $lastscore>0
  97.       ($name_realscore)
  98.     !endif
  99.   !else
  100.     $name_bestscore
  101.     !if $stries!=1
  102.       $name_bestscore2
  103.     !endif
  104.   !endif
  105.   !set wims_menu_items=!append line backexam,1,cmd=reply&job=student\
  106. to $wims_menu_items
  107.   !set test=!recordcnt wimshome/$wims_sesdir/examscore.$exam
  108.   !if $test>=2
  109.     !set wims_menu_items=!append line endexam,1,cmd=reply&job=scorereg\
  110. to $wims_menu_items
  111.   !endif
  112. !endif
  113.  
  114. !if $wims_user=supervisor
  115.   !set wims_menu_items=!append line itemsep,0,\
  116. backteacher,1,cmd=resume\
  117. to $wims_menu_items
  118. !endif
  119.  
  120. :end
  121. <!-- adm/class/exam/score.phtml END -->
  122. !tail
  123.  
  124. !reset job
  125.