File: userlist.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (61 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
!! display list of participant with usual information

!reset table_center
!set typen=!defof class_typename in wimshome/log/classes/$wims_class/.def
!if $usercnt=0
  <div class="wimscenter">
  $name_noyetparticipant
  </div>
!else
  !! ------ manage ask for technical variable selection (use new varfilter variable)
  !form reply
  <input type="hidden" name="job" value="userlist" >
  !read adm/vfilter/varfilter html
  !formend
  !! ----- displaying table of participant
  !set table_id=TABLE_userlist
  !set table_class=sortable
  $table_header
  <thead>
  $table_hdtr
    <th scope="col">$name_studentglo</th>
  !for k in $tv_listname
    <th scope="col">$k</th>
  !next k
  </tr>
  </thead>
  <tbody>
  !for i=1 to $usercnt
    !set uu=!record $i of wimshome/log/classes/$wims_class/.userlist
    !distribute items $uu into bl,bl,uu
    !if $varfilter_!=$empty
      !read adm/vfilter/testfilter $uu\
$varfilter_
    !endif
    !if $(var_filter_test)=1 or $varfilter_=$empty
      !reset user_exists,$lttechvarid
      !readproc adm/class/userdef classes,$wims_class,$uu
      !readdef $userdef
      $table_tr
      !reset css_connected
      !if $uu isitemof $wims_connectedlogin
        !set css_connected=class="wims_connected"
        !set wims_ref_title=connected
      !endif
      <td $css_connected>
      !if $tv_listlocal!=$empty
        !href cmd=reply&job=userprop&user=$uu $name_studentloc
      !else
        $name_studentloc
      !endif
      </td>
      !for k in $lttechvarid
        <td>$($k)</td>
      !next k
      </tr>
    !endif
  !next i
  </tbody>
  $table_end
  !read tablesort.phtml
!endif