Subversion Repositories wimsdev

Rev

Rev 12638 | Rev 12938 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9500 bpr 1
 
232 bpr 2
!if $error!=$empty
12488 bpr 3
  <div class="wims_msg alert">
4
  !read msg.phtml
5
  </div><p>
6
  !href module=home $wims_name_class_home
7
  </p>
8
  !goto end
232 bpr 9
!endif
9353 bpr 10
!if $user!=$empty
11
  !readdef wimshome/log/classes/$wims_class/.users/$user
12
  !distribute item $user_lastname,$user_firstname into lastname,firstname
13
!endif
7465 bpr 14
!default name_student=!nosubst $lastname, $firstname
232 bpr 15
!readproc var.activity.proc
9353 bpr 16
!if $status!=OK
9363 bpr 17
  !form reply
6235 bpr 18
  <input type="hidden" name="job" value="select" />
9353 bpr 19
  <input type="hidden" name="status" value="OK" />
7465 bpr 20
  <fieldset class="property_fields halfwidth blockcenter">
9500 bpr 21
    <legend>$name_title
12488 bpr 22
    !if $user!=$empty
23
      ($name_student)
24
    !endif
9500 bpr 25
    </legend>
26
   <div class="field box">
12488 bpr 27
      <label for="showsheet">$name_showsheet</label>
28
      <br />
9353 bpr 29
    !set wims_formselect_switch=multiple size="$[min($activelist_cnt,10)]"
7465 bpr 30
    !formselect showsheet list $activlist prompt $(shs_title[$(activlist)])
9500 bpr 31
    </div>
32
    <div class="wimscenter wimsform">
7465 bpr 33
      <input type="submit" value="$wims_name_Show" />
9500 bpr 34
    </div>
12488 bpr 35
    !read choix.phtml
7465 bpr 36
   </fieldset>
9500 bpr 37
  !formend
2064 bpr 38
!else
232 bpr 39
!if $usercnt==0
9363 bpr 40
  $name_noparticipant
232 bpr 41
!else
12488 bpr 42
  !default showsheet=$activlist
43
  !default graphics=0
44
  !if $graphics=1
45
    !default choice=first
46
    !if $choice=all
47
      !set choice=first
48
    !endif
49
  !else
50
    !if $choice!=login
51
      !reset loginlist
52
    !endif
9405 bpr 53
  !endif
12488 bpr 54
  !set nbth=4
55
  !if $user=$empty
56
    <p>$name_click</p>
9353 bpr 57
  !endif
12488 bpr 58
  !if $graphics!=1
59
    !set table_id=TABLE_userlist
60
    !set table_class=sortable
61
  !endif
62
  $table_header
63
  <thead>
12714 bpr 64
  <tr>
12488 bpr 65
  <th colspan="5"></th>
66
  !for j in $showsheet
67
    !if $(activ[$j])>0
68
      <th colspan="2" class="small">$wims_name_Sheet $j <br />$(shs_title[$j])<br />($(nbexo$j) $name_exo)</th>
69
      !increase nbth
70
      !increase nbth
71
    !endif
72
  !next j
73
  </tr>
74
  $table_hdtr
75
  <th scope="col">$wims_name_lastname, $wims_name_firstname</th>
76
  <th scope="col">$name_lastconnexion</th>
77
  <th scope="col" data-sort-method="number">$name_nbsessions</th>
78
  <th scope="col" class="small" data-sort-method="number">$wims_name_cnt_exo<br /> ($nbexototal $name_exo)</th>
79
  <th>$name_total</th>
80
  !for j in $showsheet
81
    !if $(activ[$j])>0
82
      <th class="small" scope="col" data-sort-method="number">$name_cnt_exo</th>
83
      <th class="small" scope="col" data-sort-method="number">$name_time</th>
84
    !endif
85
  !next j
86
  </tr>
87
  </thead>
88
  <tbody>
89
  !!!no efficient !
90
  !set nbpart=0
91
  !for m=1 to $usercnt
92
    !if $nbpart > $limitpart and $choice!=all
93
      !break
94
    !endif
95
    !set uu=!record $m of wimshome/log/classes/$wims_class/.userlist
96
    !distribute items $uu into lastname,firstname,uu
97
    !if $choice=first and $m=1
98
      !default user=$uu
99
    !endif
100
    !if $choice=all or ($choice=login and $uu isitemof $loginlist and $user=$empty) \
101
        or ($choice=select and $uu isitemof $select_user)\
102
        or $uu=$user\
103
        or ($choice=filter and $varfilter_!=$empty)
104
      !if $varfilter_!=$empty
105
        !reset var_filter_test
106
        !readproc adm/vfilter/testfilter $uu\
9252 bpr 107
$varfilter_
12488 bpr 108
        !if $var_filter_test!=1
109
          !goto enduser
110
        !endif
12485 guerimand 111
      !endif
12488 bpr 112
      !set getraw=$uu
113
      !increase nbpart
114
      !readproc raw.proc
115
      $table_tr
116
      <td>
117
      !href module=adm/class/userscore&job=getuser&getuser=$uu#sheet$(showsheet[1]) $name_student
118
      </td>
119
      !for h = 1 to 2*$sheetcnt + 4
120
        !set h1=$[($h+$h%2)/2-2]
121
        !if $h <=4 or ($h>4 and $(activ[$h1])>0) and $h1 isitemof $showsheet
122
          !if $h>2 and . notin $[$h/2]
123
            !if $(data[$h])!=$empty
124
              !let tmp=!replace internal : by , in $(data[$h])
125
              !let tmp=$[$(tmp[1])*3600+$(tmp[2])*60+$(tmp[3])]
126
            !else
127
              !let tmp=-1
128
            !endif
129
            <td data-sort="$tmp">$(data[$h])
130
          !else
131
            <td data-sort="$(data[$h])">$(data[$h])
132
          !endif
133
          !if $h=3 and $(data[$h])!=$empty and $(data[-1])>0
134
            <span style="color:orange">+ $(data[-1])</span>
135
          !endif
136
          !set h2=$[$h%2]
137
          !if $h1 isitemof $showsheet and $h2=1
138
            !if , isin $showsheet
139
              !set bb=!select $databyday where column 1=$h1
140
            !else
141
              !set bb=$(databyday[1;])
142
            !endif
143
            !if $bb!=$empty
144
              !set bb=!exec pari vecsum($(bb[6]))
145
              <span style="color:orange">+ $bb</span>
146
            !endif
147
          !endif
148
          </td>
149
        !endif
150
      !next
151
      </tr>
152
      !if $graphics=1
153
        $table_tr
154
        <td colspan="$[$nbth+1]" style="text-align:left;">
155
        !read exobyday.phtml
156
        </td></tr>
157
      !endif
9252 bpr 158
    !endif
12488 bpr 159
  :enduser
232 bpr 160
  !next
12488 bpr 161
  </tbody>
162
  $table_end
12638 obado 163
  !read tablesort.phtml
9353 bpr 164
!endif
165
 
9500 bpr 166
!if $user!=$empty and $choice!=all
12488 bpr 167
  !distribute item scores,livret1 into sc,li
168
  !set parmuser1=&job=getuser&getuser=$user
169
  !set parmuser2=&job=user&user=$user
9353 bpr 170
!else
12488 bpr 171
  !distribute item Score1,livret into sc,li
9353 bpr 172
!endif
10085 bpr 173
!set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation $user\
174
back2 $user,1,cmd=new&user=$user\
9353 bpr 175
$sc,1,module=adm/class/userscore&job_affi=notes$parmuser1\
176
$li,1,module=adm/class/livret$parmuser2\
1336 bpr 177
to $wims_menu_items
9500 bpr 178
!if $choice!=all
179
  !read adm/class/getnextuser $wims_class,$user,activity,user
180
!endif
232 bpr 181
:end
1038 bpr 182
!tail