Subversion Repositories wimsdev

Rev

Rev 12716 | Rev 12721 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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