Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
4223 bpr 1
!read adm/title.phtml 1\
2
$classname\
9473 bpr 3
$wims_name_teacherlist
23 reyssat 4
 
4223 bpr 5
!!don't work as it is
6
!!!if $teachercnt>0
5754 bpr 7
!!<div class="wimscenter">
9031 guerimand 8
!!!href module=adm/class/userscore&job=csv $wims_name_csv
5754 bpr 9
!!</div>
4223 bpr 10
!!!endif
11
 
12408 guerimand 12
!set table_id=TABLE_teacher
13
!set table_class=sortable
23 reyssat 14
$table_header
12071 guerimand 15
!if $wims_realuser=supervisor and $type_class=2
12466 bpr 16
  <caption>
5480 bpr 17
  !href module=adm/class/reguser&step=1&utype=1 $wims_name_addteacher
12466 bpr 18
  </caption>
5480 bpr 19
!endif
12408 guerimand 20
<thead>
23 reyssat 21
$table_hdtr
12716 bpr 22
<th scope="col">$wims_name_account</th>
23
<th scope="col">$wims_name_lastname</th>
24
<th scope="col">$wims_name_firstname</th>
16250 guerimand 25
<th scope="col">$name_mkclass</th>
12716 bpr 26
<th scope="col">$name_gestion</th>
27
<th scope="col">$name_inscript</th>
12072 guerimand 28
!if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
12466 bpr 29
  <th data-sort-method='none'>$wims_name_action</th></tr>
12072 guerimand 30
!endif
12408 guerimand 31
</thead>
32
<tbody>
23 reyssat 33
!for i=1 to $teachercnt
12466 bpr 34
  !set l=!line $i of $teacherlist
35
  !distribute items $l into tl_,tf_,tc_
36
  $table_tr
37
  <td><span class="tt wims_login">$tc_</span></td>
38
  <td>$tl_ </td>
39
  <td>$tf_ </td>
40
  !readproc adm/class/userdef classes,$wims_superclass,$tc_
41
  !set sup=!defof user_supervise\
16250 guerimand 42
user_participate\
43
user_mkclass in $userdef
12466 bpr 44
  !reset userdef
16250 guerimand 45
  !distribute line $sup into sup,part,mk
46
  <td>
47
   !if $mk!=no
48
    &#x2705;
49
   !endif
50
  </td>
12466 bpr 51
  !if $type_class=2
52
    !for l in sup,part
53
      <td>
54
      !if $($l)!=$empty
55
        !set nb=!itemcnt $($l)
56
        !let po=!positionof item $($l[1]) in $(ltclassname[;1])
57
        $(ltclassname[$po;2])
14335 bpr 58
        !if $nb>1
59
          !for k=2 to $nb
60
            !let po=!positionof item $($l[$k]) in $(ltclassname[;1])
61
            ; $(ltclassname[$po;2])
62
          !next k
63
        !endif
12466 bpr 64
      !endif
65
      </td>
66
    !next l
67
  !else
68
    !for l in sup,part
69
      <td>
70
      !if $wims_class isitemof $($l)
71
         &#x2705;
72
      !endif
73
      </td>
74
    !next l
75
  !endif
76
  !if $wims_realuser=supervisor or $wims_realuser=$class_Supervisor
77
    <td>
78
    !set wims_ref_class=wims_button
79
    !href cmd=reply&job=userprop&getuser=$tc_&oldjob=teacher $wims_name_change
80
    </td>
81
  !endif
4219 bpr 82
 </tr>
23 reyssat 83
!next i
12408 guerimand 84
</tbody>
23 reyssat 85
$table_end
12638 obado 86
!read tablesort.phtml
12072 guerimand 87
 
88
!if $type_class=2 and $wims_realuser=supervisor
9473 bpr 89
  !set wims_menu_items=!append line \
90
  addteacher,1, module=adm/class/reguser&step=1&utype=1\
91
to $wims_menu_items
92
!endif
5480 bpr 93
!set wims_menu_items=!append line part_list,1,cmd=resume\
94
to $wims_menu_items