Subversion Repositories wimsdev

Rev

Rev 16111 | Go to most recent revision | 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>
85
      <td>$(data[3])</td>
86
      <td>$(data[4])</td>
87
      <td>$(data[5])</td>
88
      <td data-sort="$(data[7])">$(data[6])</td>
89
      !set data=!item 8 to -1 of $data
16192 guerimand 90
      !set nbdata=!itemcnt $data
91
      !if $nbdata=0
92
        <td></td>
93
      !else
94
        !for val in $data
95
          <td>$val</td>
96
        !next val
97
      !endif
12466 bpr 98
      </tr>
99
    !endif
10013 bpr 100
  !next i
12406 guerimand 101
   </tbody>
12466 bpr 102
  $table_end
12638 obado 103
  !read tablesort.phtml
8315 guerimand 104
!endif
8316 guerimand 105
 
12406 guerimand 106
 
9056 guerimand 107
!! define wims_menu_items
9808 bpr 108
!set wims_menu_items=!append line itemsep,0,\
109
csv,1,module=adm/class/userscore&job=csv\
9117 bpr 110
to $wims_menu_items
9808 bpr 111
!if $wims_typename iswordof group and $wims_supertype=2
12466 bpr 112
  !set wims_menu_items=!append line regmanage,1,module=adm/class/usermanage&job=regmanage to $wims_menu_items
9117 bpr 113
!endif
8316 guerimand 114
!if $typen!=level
12466 bpr 115
  !set wims_menu_items=!append line addparticipant,1,module=adm/class/reguser&step=1\
8316 guerimand 116
to $wims_menu_items
117
!endif
8318 guerimand 118
!if $deleted!=$empty
12466 bpr 119
  !set wims_menu_items=!append line recover,1,cmd=reply&job=recover\
8318 guerimand 120
to $wims_menu_items
8317 guerimand 121
!endif
9361 guerimand 122
 
123
!! menubox links -> teacher list
124
!set class_Supervisor=!defof class_Supervisor in wimshome/log/classes/$wims_class/.def
12072 guerimand 125
!!## supervisor can see list of teacher and their access
126
!if supervisor=$wims_user and $wims_supertype=2
12466 bpr 127
  !default wims_superclass=$wims_class
128
  !set teacherlist=!record 0 of wimshome/log/classes/$wims_superclass/.teacherlist
129
  !set teachercnt=!linecnt $teacherlist
130
  !if $teachercnt>0 and $job!=teacher
131
    !set wims_menu_items=!append line itemsep,0,\
9361 guerimand 132
teacherlist,1,module=adm/class/usermanage&job=teacher\
133
to $wims_menu_items
12466 bpr 134
  !endif
135
  !!## only the administrator has the right to add a teacher to the superclass
136
  !if $wims_typename iswordof group and $wims_supertype=2
9602 bpr 137
    !if $teachercnt=0 or $job=teacher
12466 bpr 138
      !set wims_menu_items=!append line itemsep,0, to $wims_menu_items
9602 bpr 139
    !endif
140
    !set wims_menu_items=!append line addteacher,1,module=adm/class/reguser&step=1&utype=1 to $wims_menu_items
12466 bpr 141
  !endif
9361 guerimand 142
!endif wims_typename=group etc
9808 bpr 143
 
10081 bpr 144
!set wims_menu_items=!append line itemsep,0,$wims_name_classactivity\
9808 bpr 145
sendmail,1,module=adm/class/sendmail\
146
photoboard,1,module=adm/class/photoboard\
147
to $wims_menu_items
148
!if $typen notwordof level portal program group class \
12466 bpr 149
    or ($wims_typename iswordof course or ($wims_typename iswordof class and $wims_supertype iswordof 0 2))
10081 bpr 150
  !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\
9808 bpr 151
Score1,1,module=adm/class/userscore\
12466 bpr 152
livret,1,module=adm/class/livret\
153
activity,1,module=adm/class/activity\
154
  to $wims_menu_items
9808 bpr 155
!endif