Rev 16878 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 5648 | obado | 1 | <!-- adm/class/exam/score.phtml BEGIN --> |
| 23 | reyssat | 2 | |
| 3 | !if $job=score |
||
| 15494 | bpr | 4 | !read adm/class/classname.phtml $wims_classname\ |
| 5 | $wims_institutionname |
||
| 4021 | bpr | 6 | |
| 15494 | bpr | 7 | !read adm/title.phtml 1\ |
| 8 | $classname\ |
||
| 9 | $title |
||
| 2032 | bpr | 10 | |
| 15494 | bpr | 11 | !if $wims_user=supervisor |
| 12 | <p class="wimscenter">($name_presentation)</p> |
||
| 13 | !endif |
||
| 14 | <div>$desc</div> |
||
| 23 | reyssat | 15 | !endif |
| 16 | |||
| 17 | !if $error!=$empty |
||
| 15494 | bpr | 18 | <div class="wims_msg alert"> |
| 11268 | obado | 19 | !read lang/msg.phtml.$moduclass_lang |
| 15494 | bpr | 20 | </div> |
| 21 | <p> |
||
| 22 | !href module=home $wims_name_back2 |
||
| 9001 | bpr | 23 | . </p> |
| 15494 | bpr | 24 | !goto end |
| 23 | reyssat | 25 | !endif |
| 26 | |||
| 27 | !if $exocnt=0 |
||
| 15494 | bpr | 28 | $name_empty |
| 23 | reyssat | 29 | !else |
| 16378 | guerimand | 30 | !if $scorereducedbyip=1 |
| 31 | <div class="wims_msg info">$name_msg_exam_withip</div> |
||
| 32 | !endif |
||
| 15494 | bpr | 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> |
||
| 16878 | guerimand | 44 | !for ii=1 to $exocnt |
| 45 | !set i=!item $ii of $(wims_exrandomlist[1;]) |
||
| 23 | reyssat | 46 | !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam |
| 47 | !distribute lines $ex into we,li,ti |
||
| 15494 | bpr | 48 | $table_tr |
| 16878 | guerimand | 49 | <td>$ii</td> |
| 5953 | bpr | 50 | <td>$ti</td> |
| 9001 | bpr | 51 | <td>$we</td> |
| 5953 | bpr | 52 | <td> |
| 15494 | bpr | 53 | !if $(replied$i)>0 |
| 16378 | guerimand | 54 | $(gotip$i) |
| 55 | !if $(gotip$i)!=$(got$i) |
||
| 56 | !let realtsco=$(got$i) |
||
| 57 | <div class="wims_tooltip">*<div class="wims_tooltiptext">$name_real_score</div></div> |
||
| 58 | !endif |
||
| 15494 | bpr | 59 | !else |
| 60 | <span class="small">$name_pending</span> |
||
| 16378 | guerimand | 61 | !endif |
| 5648 | obado | 62 | </td> |
| 63 | </tr> |
||
| 16878 | guerimand | 64 | !next ii |
| 5648 | obado | 65 | </tbody> |
| 66 | <tfoot> |
||
| 67 | $table_tr |
||
| 9468 | bpr | 68 | <td colspan="4" class="wims_average"> |
| 5648 | obado | 69 | !default score=$sprime |
| 16378 | guerimand | 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">*<div class="wims_tooltiptext">$name_real_score</div></div> |
||
| 16509 | guerimand | 75 | !endif |
| 5648 | obado | 76 | </td> |
| 77 | </tr> |
||
| 78 | </tfoot> |
||
| 23 | reyssat | 79 | $table_end |
| 80 | !endif |
||
| 81 | |||
| 11268 | obado | 82 | !if $wims_exam_remain > 0 |
| 11718 | bpr | 83 | <p id="exam_clock">$wims_name_examremain $wims_hr_rm:$wims_hr_rs $[$sdure2-($now-$registered)].</p> |
| 11268 | obado | 84 | !endif |
| 5953 | bpr | 85 | |
| 23 | reyssat | 86 | !if $registered=$empty |
| 15494 | bpr | 87 | $name_begin1. |
| 88 | !href cmd=reply&job=student $name_begin2 |
||
| 23 | reyssat | 89 | !else |
| 15494 | bpr | 90 | !if $timeleft<=0 |
| 91 | <div class="wims_msg warning"> |
||
| 92 | $name_timeleft |
||
| 93 | </div> |
||
| 23 | reyssat | 94 | !endif |
| 15494 | bpr | 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 |
||
| 11461 | bpr | 105 | !endif |
| 17078 | guerimand | 106 | !if $timeleft>0 |
| 107 | !set wims_menu_items=!append line backexam,1,cmd=reply&job=student\ |
||
| 10116 | bpr | 108 | to $wims_menu_items |
| 17078 | guerimand | 109 | !endif |
| 15494 | bpr | 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\ |
||
| 10116 | bpr | 113 | to $wims_menu_items |
| 15494 | bpr | 114 | !endif |
| 23 | reyssat | 115 | !endif |
| 116 | |||
| 117 | !if $wims_user=supervisor |
||
| 10116 | bpr | 118 | !set wims_menu_items=!append line itemsep,0,\ |
| 119 | backteacher,1,cmd=resume\ |
||
| 120 | to $wims_menu_items |
||
| 23 | reyssat | 121 | !endif |
| 122 | |||
| 123 | :end |
||
| 5648 | obado | 124 | <!-- adm/class/exam/score.phtml END --> |
| 23 | reyssat | 125 | !tail |
| 126 | |||
| 127 | !reset job |