Subversion Repositories wimsdev

Rev

Rev 18148 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
1587 bpr 2
!read adm/title.phtml 1\
3
$classname\
4
$name_title_examcheck
23 reyssat 5
 
6
!if _check isin $session
12465 bpr 7
  !set error=bad_op
23 reyssat 8
!endif
9
 
10
!if $error!=$empty
15049 obado 11
  <div class="wims_msg alert">
12
    !read lang/msg.phtml.$moduclass_lang
12465 bpr 13
  </div>
23 reyssat 14
!else
12465 bpr 15
  !if $checksessions=$empty
15049 obado 16
    <p class="no_exampart">$name_no_exampart</p>
12465 bpr 17
  !else
16378 guerimand 18
    !if $class_examscore_withoutip!=yes and $scorereducedbyip=1
19
      <div class="wims_msg info">$name_msg_exam_withip</div>
20
    !endif
18680 bpr 21
    <p class="exampart">$name_exampart
22
    !if $cutexam!=$empty
23
      $(name_cuttime[2])
24
    !endif
25
    </p>
12465 bpr 26
    $table_header
27
    $table_hdtr<th rowspan="2">$name_Session</th><th rowspan="2">$name_Exam</th><th rowspan="2">$name_Score<span class="small">/$scoremax</span></th>
28
    <th colspan="$maxexo">$name_Exercise </th>
29
    <th rowspan="2">$name_Start</th>
16386 guerimand 30
    <th rowspan="2">$name_Duration</th>
16846 guerimand 31
    !if $wims_user=supervisor
32
      <th rowspan="2">$wims_name_sendbug</th>
33
    !endif
16386 guerimand 34
    </tr>
12465 bpr 35
    $table_hdtr
36
    !for i=1 to $maxexo
37
      <th>$i</th>
38
    !next i
39
    </tr>
40
    !for ses in $checksessions
41
      !set pos_ses=!positionof item $ses in $checksessions
42
      !for x in $(exam_$(pos_ses))
15559 bpr 43
        !set tmp=!record $x of wimshome/log/classes/$wims_class/exams/.exams
18148 bpr 44
        !! ------test if exam is hidden for this user
18144 bpr 45
        !if $wims_user!=supervisor
18148 bpr 46
          !set tmp_exam_status=!getsheetstatus exam=$(pos_ses)
18144 bpr 47
        !endif
16006 guerimand 48
        !! -----end test
18148 bpr 49
        !if $tmp_exam_status!=3
16006 guerimand 50
          !!titre
51
          !set tmp=!line 4 of $tmp
52
          $table_tr<td class="small">$ses</td>
53
          <td>$x: $tmp</td>
54
          !reset tmp
16378 guerimand 55
          !! ----- manage of examscorewithoutip or not
56
          !if $class_examscore_withoutip=yes
57
            !let tsco=$(score$(pos_ses)_$x)
58
            !let star=$empty
59
          !else
60
            !let tsco=$(scoreip$(pos_ses)_$x)
61
            !if $(score$(pos_ses)_$x)!=$(scoreip$(pos_ses)_$x)
62
              !let realtsco=$[rint(10*$(score$(pos_ses)_$x)*$scoremax)/100]
63
              !let star=<div class="wims_tooltip">&ast;<div class="wims_tooltiptext">$name_real_score</div></div>
64
            !endif
65
          !endif
66
          !! ----
16773 czzmrn 67
          !read adm/class/colors $tsco
16378 guerimand 68
          !let tsco=$[rint(10*$tsco*$scoremax)/100]
69
          <td style=$style_note>$tsco$star</td>
16006 guerimand 70
          !reset style_note
71
          !let nbx=!recordcnt wimshome/log/classes/$wims_class/exams/.exam$x
72
          !for i=1 to $nbx
16383 guerimand 73
            !!calculate in adm/class/userscore1
16006 guerimand 74
            !if $(Exam_$(x)_$(pos_ses)[$i])!=$empty
75
              !set s=$(Exam_$(x)_$(pos_ses)[$i])
16771 czzmrn 76
              !set s_color=$[rint(10*$s/$scoremax)]
16006 guerimand 77
              !if $s_color=0
78
                !set s_color=1
79
              !endif
16772 czzmrn 80
              !read adm/class/colors $s_color,htmlcolor
12465 bpr 81
            !else
16006 guerimand 82
              !set s_color=""
83
              !if $(duree$(pos_ses)_$x)=$empty
84
                !set s=&dagger;
85
              !else
86
                !! ?? can ever be "exercice never tried" or just "exercice unfinished"
87
                !set s=??
88
              !endif
12465 bpr 89
            !endif
16772 czzmrn 90
            <td class="wims_sheet_score">
16383 guerimand 91
              !if $i isitemof $(exo$(ses)$x)
16772 czzmrn 92
                <span style="border-color:$note_color">
16383 guerimand 93
                !href target=wims_check module=$module&cmd=new&job=examcheck&checkuser=$checkuser&checksession=$ses&checkexo=$x.$i&checkstep=1 $s
16772 czzmrn 94
                </span>
16383 guerimand 95
              !endif
16867 czzmrn 96
              !reset note_color
16006 guerimand 97
            </td>
98
          !next i
99
          !if $nbx<$maxexo
100
            !for i=$[$nbx+1] to $maxexo
101
              <td style="background-image:url(gifs/bg/crossgrey.gif)">&nbsp;</td>
102
            !next i
12465 bpr 103
          !endif
16006 guerimand 104
          <td class="small">
105
          !read date.phtml $(start$(pos_ses)_$x)
12465 bpr 106
          </td>
16006 guerimand 107
          <td class="small">
108
          !if $(duree$(pos_ses)_$x)!=$empty
109
            !set tmp=!exec pari divrem($(duree$(pos_ses)_$x),60)~
110
            !item 1 of $tmp
9470 bpr 111
$ $
16006 guerimand 112
            !char 1 to 3 of $name_minutes
9470 bpr 113
$ $
16006 guerimand 114
            !item 2 of $tmp
115
          !endif
116
          </td>
16846 guerimand 117
          !if $wims_user=supervisor
118
            <td>
16386 guerimand 119
             !! link for sendbug
120
             !reset t
121
             !for exo in $(exo$(ses)$x)
122
               !let l=module=adm/sendbug&+logcheck=$x.$exo&+checkuser=$checkuser&+checksession=$ses&+logtype=exam $wims_name_Exercise $exo
123
               !let t=!append line $l to $t
124
             !next exo
125
             !read js/dropdownbutton.phtml dropbutton_$(ses)_$x\
126
$wims_name_sendbug\
127
$t
16846 guerimand 128
            </td>
129
          !endif
16006 guerimand 130
          </tr>
12465 bpr 131
        !endif
132
      !next x
16386 guerimand 133
    !next ses
12465 bpr 134
    $table_end
135
  !endif
23 reyssat 136
!endif
9351 bpr 137
!if $wims_user!=supervisor
12465 bpr 138
  !set wims_menu_items=!append line myscore,1,cmd=reply&job=getuser&getuser=$checkuser\
1587 bpr 139
to $wims_menu_items
9351 bpr 140
!else
12465 bpr 141
  !set wims_menu_items=!append line scores,1,cmd=reply&job=getuser&getuser=$checkuser\
9351 bpr 142
to $wims_menu_items
12465 bpr 143
  !read adm/class/getnextuser $wims_class,$checkuser,examcheck,checkuser
144
  !set wims_menu_items=!append line itemsep,0,\
1643 bpr 145
 part_list,1,cmd=resume\
146
 to $wims_menu_items
147
!endif