Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
8333 guerimand 1
!! display list of participant with usual information
8306 guerimand 2
!! work to do
9119 bpr 3
!!ATTENTION : il faut faire un tableau different en fonction du niveau de structure de la classe d'appel (portail, superclass, etc...) reflechir à ce que l'on affiche.
8306 guerimand 4
 
9023 guerimand 5
!read adm/title.phtml 1\
6
$classname\
7
$wims_name_part_list ($usercnt)
8
 
12320 guerimand 9
!readproc userlist.mkdata
10
 
8315 guerimand 11
!reset table_center
9117 bpr 12
!set typen=!defof class_typename in wimshome/log/classes/$wims_class/.def
8315 guerimand 13
!if $usercnt=0
12407 obado 14
  <div class="wimscenter">
12466 bpr 15
  $name_noyetparticipant
16
  !if $typen!=level
17
    $ $
18
    !set wims_ref_class=wims_button
19
    !href module=adm/class/reguser&step=1 $wims_name_addstudent
20
    $ $
21
  !endif
22
  !!    20141016 : deconnecte pour l'instant, attente d'organisation.
23
  !!    !set wims_ref_class=wims_button
24
  !!    !href cmd=reply&job=csv $wims_name_csv
12407 obado 25
  </div>
8315 guerimand 26
!else
12407 obado 27
  !! ------ manage ask for technical variable selection.
10455 guerimand 28
  !if $tv_listtechvar!=$empty
8315 guerimand 29
    !form reply
9984 guerimand 30
    !read adm/vfilter/varfilter html
8315 guerimand 31
    !formend
10455 guerimand 32
  !endif
12466 bpr 33
  !! ----- displaying table of participant
34
  !set table_id=TABLE_userlist
35
  !set table_class=sortable
36
  $table_header
37
  <thead>
38
  !if $nbtechvar>0
39
    <tr>
16044 guerimand 40
    !for k=1 to 6
12406 guerimand 41
      <th></th>
12466 bpr 42
    !next k
43
    <th colspan="$nbtechvar">$name_vars</th>
44
    <th></th>
45
    </tr>
46
  !endif
12716 bpr 47
  $table_hdtr
12466 bpr 48
  <th scope="col">$name_studentglo</th>
16044 guerimand 49
  !for k in $wims_name_Login,$wims_name_email,$name_regnum,$name_external_auth,$wims_name_lastconnect
12466 bpr 50
    <th scope="col">$k</th>
51
  !next k
52
  !if $nbtechvar>0
53
    !for k in $(tv_listtechvar[;1])
54
      <th scope="col">$k</th>
55
    !next k
56
  !endif
12716 bpr 57
  <th scope="col">$name_comments</th>
10012 bpr 58
    </tr>
12406 guerimand 59
  </thead>
60
  <tbody>
12320 guerimand 61
  !set nbrec=!recordcnt $fileuserlist
62
  !for i=1 to $nbrec
12466 bpr 63
    !set data=!record $i of $fileuserlist
64
    !set uu=!item 2 of $data
65
    !if $varfilter_!=$empty
66
      !read adm/vfilter/testfilter $uu\
8315 guerimand 67
$varfilter_
12466 bpr 68
    !endif
69
    !if $(var_filter_test)=1 or $varfilter_=$empty
70
      !!   !set UU=!hex $uu
71
      !reset user_exists,user_email,user_regnum,user_external_auth,user_vars,user_comments$namecomment,user_comments
72
      !readproc adm/class/userdef classes,$wims_class,$uu
73
      !readdef $userdef
74
      !readproc adm/vfilter/uservarfilter.proc $userdef
75
      $table_tr
76
      !reset css_connected
77
      !if $uu isitemof $wims_connectedlogin
78
        !set css_connected=class="wims_connected"
79
        !set wims_ref_title=connected
80
      !endif
81
      <td $css_connected>
16192 guerimand 82
        !href cmd=reply&+job=userprop&+getuser=$uu $(data[1])
12466 bpr 83
      </td>
16111 guerimand 84
      <td>$(data[2])</td>
16518 guerimand 85
      <td>
86
        !if $wims_mail_hidden=yes
87
          !if $(data[3])!=$empty
88
            &#x2705;
89
          !endif
90
        !else
91
          $(data[3])
92
        !endif
93
      </td>
16111 guerimand 94
      <td>$(data[4])</td>
95
      <td>$(data[5])</td>
96
      <td data-sort="$(data[7])">$(data[6])</td>
97
      !set data=!item 8 to -1 of $data
16192 guerimand 98
      !set nbdata=!itemcnt $data
99
      !if $nbdata=0
100
        <td></td>
101
      !else
102
        !for val in $data
103
          <td>$val</td>
104
        !next val
105
      !endif
12466 bpr 106
      </tr>
107
    !endif
10013 bpr 108
  !next i
12406 guerimand 109
   </tbody>
12466 bpr 110
  $table_end
12638 obado 111
  !read tablesort.phtml
8315 guerimand 112
!endif
8316 guerimand 113
 
12406 guerimand 114
 
9056 guerimand 115
!! define wims_menu_items
9808 bpr 116
!set wims_menu_items=!append line itemsep,0,\
117
csv,1,module=adm/class/userscore&job=csv\
9117 bpr 118
to $wims_menu_items
9808 bpr 119
!if $wims_typename iswordof group and $wims_supertype=2
12466 bpr 120
  !set wims_menu_items=!append line regmanage,1,module=adm/class/usermanage&job=regmanage to $wims_menu_items
9117 bpr 121
!endif
8316 guerimand 122
!if $typen!=level
12466 bpr 123
  !set wims_menu_items=!append line addparticipant,1,module=adm/class/reguser&step=1\
8316 guerimand 124
to $wims_menu_items
125
!endif
8318 guerimand 126
!if $deleted!=$empty
12466 bpr 127
  !set wims_menu_items=!append line recover,1,cmd=reply&job=recover\
8318 guerimand 128
to $wims_menu_items
8317 guerimand 129
!endif
9361 guerimand 130
 
131
!! menubox links -> teacher list
132
!set class_Supervisor=!defof class_Supervisor in wimshome/log/classes/$wims_class/.def
12072 guerimand 133
!!## supervisor can see list of teacher and their access
134
!if supervisor=$wims_user and $wims_supertype=2
12466 bpr 135
  !default wims_superclass=$wims_class
136
  !set teacherlist=!record 0 of wimshome/log/classes/$wims_superclass/.teacherlist
137
  !set teachercnt=!linecnt $teacherlist
138
  !if $teachercnt>0 and $job!=teacher
139
    !set wims_menu_items=!append line itemsep,0,\
9361 guerimand 140
teacherlist,1,module=adm/class/usermanage&job=teacher\
141
to $wims_menu_items
12466 bpr 142
  !endif
143
  !!## only the administrator has the right to add a teacher to the superclass
144
  !if $wims_typename iswordof group and $wims_supertype=2
9602 bpr 145
    !if $teachercnt=0 or $job=teacher
12466 bpr 146
      !set wims_menu_items=!append line itemsep,0, to $wims_menu_items
9602 bpr 147
    !endif
148
    !set wims_menu_items=!append line addteacher,1,module=adm/class/reguser&step=1&utype=1 to $wims_menu_items
12466 bpr 149
  !endif
9361 guerimand 150
!endif wims_typename=group etc
9808 bpr 151
 
10081 bpr 152
!set wims_menu_items=!append line itemsep,0,$wims_name_classactivity\
9808 bpr 153
sendmail,1,module=adm/class/sendmail\
154
photoboard,1,module=adm/class/photoboard\
155
to $wims_menu_items
156
!if $typen notwordof level portal program group class \
12466 bpr 157
    or ($wims_typename iswordof course or ($wims_typename iswordof class and $wims_supertype iswordof 0 2))
10081 bpr 158
  !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\
9808 bpr 159
Score1,1,module=adm/class/userscore\
12466 bpr 160
livret,1,module=adm/class/livret\
161
activity,1,module=adm/class/activity\
162
  to $wims_menu_items
9808 bpr 163
!endif