Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
5619 bpr 1
<div class="wims_content">
23 reyssat 2
 
3
!read search.phtml
4
!if $overflow=yes
11781 obado 5
 !goto end
23 reyssat 6
!endif
7
!if $clcnt+$sccnt+$directcnt<1
8
 !if $keyword=$empty
1741 bpr 9
  $name_language
10
  !href module=home&list=0 $wims_name_search
23 reyssat 11
 !else
1741 bpr 12
  $name_nofound
23 reyssat 13
 !endif
11781 obado 14
 !goto end
23 reyssat 15
!endif
16
!if $wims_user!=$empty
17
 !read direct.phtml
10770 bpr 18
 !if $wims_user!=supervisor and $superclass_orig=$empty
11781 obado 19
  !!goto end
23 reyssat 20
 !endif
21
!else
5025 bpr 22
  $name_text1
23 reyssat 23
!endif
24
 
12534 guerimand 25
<script src="scripts/js/tablesort.js"></script>
26
 
4588 czzmrn 27
!set super_mixed_auth=!defof class_mixed_external_auth in wimshome/log/classes/$wims_superclass/.def
28
!if $sccnt>0 and $super_mixed_auth!=2
12534 guerimand 29
 !set table_id=TABLE_portal
30
 !set table_class=sortable
3066 bpr 31
 $table_header
1741 bpr 32
 <caption>$name_portalandgroup</caption>
12534 guerimand 33
 <thead>
10648 bpr 34
 $table_hdtr
12534 guerimand 35
   <th scope="col">$wims_name_name</th>
36
   <th scope="col" data-sort-method="none">$wims_name_action</th>
37
   <th scope="col">$wims_name_Supervisor</th>
38
   <th scope="col">$wims_name_Status</th>
39
 </tr>
40
 </thead>
41
 <tbody>
23 reyssat 42
 !for i=1 to $sccnt
43
  !set l=!line $i of $sclasses
44
  !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
5015 bpr 45
  !!!if $sclass=$empty
6235 bpr 46
   !set show=$inst<br />$cl
9506 bpr 47
  !!!else
5015 bpr 48
  !! !set show=$inst
49
  !!!endif
1204 bpr 50
  !set supv=!item 9 of $l
23 reyssat 51
  !if $supv=$empty
52
   !reset class_password
53
   !defread wimshome/log/classes/$code/.def
54
   !set supv=$class_supervisor
55
   !set pswd=$class_password
56
  !endif
5894 bpr 57
  $table_tr<td>
9506 bpr 58
  !!!href module=$module&type=authparticipant&class=$code
23 reyssat 59
  $show
5028 bpr 60
  </td>
5027 bpr 61
   !read adm/class/initclass $code,auth
5015 bpr 62
   !defread wimshome/log/classes/$code/.def
63
   !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
64
     !set tmp_parm=&subclass=yes
5013 bpr 65
     !read participant2.phtml
5015 bpr 66
     !reset tmp_parm
9506 bpr 67
   !else
5894 bpr 68
   <td>
5013 bpr 69
   !set wims_ref_class=wims_button
5044 bpr 70
   !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
5025 bpr 71
   </td>
5013 bpr 72
   !endif
5894 bpr 73
  <td>
23 reyssat 74
  $supv
10793 bpr 75
  </td><td>
23 reyssat 76
  !if $pswd=$empty
1741 bpr 77
   $name_open
23 reyssat 78
  !else
1741 bpr 79
   $name_protected
23 reyssat 80
  !endif
5800 bpr 81
</td></tr>
23 reyssat 82
 !next i
12534 guerimand 83
 </tbody>
5800 bpr 84
 $table_end
23 reyssat 85
!endif
86
 
4588 czzmrn 87
!if $clcnt>0 and $super_mixed_auth!=2
12534 guerimand 88
 !set table_id=TABLE_cls
89
 !set table_class=sortable
90
 $table_header
10770 bpr 91
 !if $superclass_orig=$empty
1741 bpr 92
  <caption>$name_independantclass</caption>
12534 guerimand 93
  <thead>
23 reyssat 94
  $table_hdtr
12534 guerimand 95
  <th scope="col">$wims_name_name</th>
96
  <th scope="col" data-sort-method="none">$wims_name_action</th>
97
  <th scope="col">$wims_name_nameteacher</th>
98
  <th scope="col">$wims_name_level</th>
99
  <th scope="col">$wims_name_Status</th>
23 reyssat 100
 !else
101
   !if $splevel>1
102
    !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
103
   !else
10770 bpr 104
    !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
23 reyssat 105
   !endif
1741 bpr 106
   <caption>$Name_levels ($inst)
23 reyssat 107
   !if $splevel>1
1743 bpr 108
    !href cmd=reply&type=$type&superclass2=$sparent $name_up
23 reyssat 109
   !endif
411 bpr 110
   </caption>
23 reyssat 111
   $table_hdtr
12534 guerimand 112
    <th scope="col">$wims_name_name</th>
113
    <th scope="col" data-sort-method="none">$wims_name_action</th>
114
    <th scope="col">$wims_name_nameteacher</th>
115
    <th scope="col">$wims_name_level</th>
116
    <th scope="col">$wims_name_Status</th>
117
    !if $superclass_orig!=$empty and $stype=4
118
      <th scope="col">+</th>
119
    !endif
23 reyssat 120
 !endif
5831 bpr 121
 </tr>
12534 guerimand 122
 </thead>
123
 <tbody>
10768 bpr 124
 !!! put it var.proc ??
125
  !set directlist_=!replace internal , by $ ; $ $ in $directlist
23 reyssat 126
 !for i=1 to $clcnt
127
  !set l=!line $i of $classes
128
  !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
1204 bpr 129
  !set supv=!item 9 of $l
23 reyssat 130
  !if $supv=$empty
131
   !reset class_password
132
   !defread wimshome/log/classes/$code/.def
133
   !set lv=$class_level
134
   !set supv=$class_supervisor
135
   !set pswd=$class_password
136
  !endif
137
  !distribute char $lv into l_,y_
10770 bpr 138
  !if $superclass_orig=$empty
6235 bpr 139
   !set show=$inst <br />$cl
23 reyssat 140
  !else
141
   !set show=$cl
142
  !endif
5042 bpr 143
  !read adm/class/initclass $code,auth
144
  !!defread wimshome/log/classes/$code/.def
5894 bpr 145
  $table_tr<td>
5053 bpr 146
    $show
147
  </td>
5042 bpr 148
  !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
5013 bpr 149
     !read participant2.phtml
9506 bpr 150
  !else
10749 bpr 151
  <td>
10777 bpr 152
    !set wims_ref_class=wims_button
153
     !if $code notwordof $directlist_
154
       !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
155
     !else
156
      !if $splevel=$empty or $splevel=2
157
       !set wims_ref_class=wims_button
158
       !href module=adm/class/reguser&class=$code $name_register
5071 bpr 159
      !else
9506 bpr 160
        <span style="color:grey">$name_register</span>
5071 bpr 161
      !endif
10777 bpr 162
    !endif
5063 bpr 163
    </td>
5053 bpr 164
  !endif
5894 bpr 165
  <td>
23 reyssat 166
  $supv
6235 bpr 167
  </td><td>$(wims_name_n_$l_)<br />$name_year $y_</td>
5894 bpr 168
  <td>
23 reyssat 169
  !if $pswd=$empty
1741 bpr 170
   $name_open
23 reyssat 171
  !else
1741 bpr 172
   $name_protected
23 reyssat 173
  !endif
174
  </td>
10770 bpr 175
   !if $superclass_orig!=$empty and $stype=4
23 reyssat 176
    <td>
5063 bpr 177
    !if $ty!=1 and $splevel!=3
178
    !set wims_ref_class=wims_button
23 reyssat 179
     !href cmd=reply&type=$type&superclass2=$code $sousclasses
180
    !else
181
    -
182
    !endif
5063 bpr 183
    </td>
23 reyssat 184
   !endif
5053 bpr 185
   </tr>
10768 bpr 186
:endloop
23 reyssat 187
 !next i
12534 guerimand 188
 </tbody>
5800 bpr 189
 $table_end
23 reyssat 190
!endif
12534 guerimand 191
<script>
192
  !if $super_mixed_auth!=2
193
    !if $sccnt>0
194
      new Tablesort(document.getElementById('TABLE_portal'));
195
    !endif
196
    !if $clcnt>0
197
      new Tablesort(document.getElementById('TABLE_cls'));
198
    !endif
199
  !endif
200
</script>
11781 obado 201
:end
5601 obado 202
</div>