Subversion Repositories wimsdev

Rev

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

Rev 12719 Rev 12720
Line 4... Line 4...
4
!if $clcnt+$sccnt<1 and $keyword!=$empty
4
!if $clcnt+$sccnt<1 and $keyword!=$empty
5
 <p class="notfound">
5
  <p class="notfound">
6
 $name_nofound
6
  $name_nofound
7
 </p>
7
  </p>
8
!endif
8
!endif
9
!if $wims_user!=$empty
9
!if $wims_user!=$empty
10
 !read direct.phtml
10
  !read direct.phtml
11
 !if $wims_user!=supervisor and $supervisable!=yes
11
  !if $wims_user!=supervisor and $supervisable!=yes
12
  !exit
12
    !exit
13
 !endif
13
  !endif
14
!else
14
!else
15
  !read lang/supervisor.phtml.$modu_lang
15
  !read lang/supervisor.phtml.$modu_lang
16
!endif
16
!endif
17
 
17
 
18
!if $overflow=yes
18
!if $overflow=yes
19
 !exit
19
  !exit
20
!endif
20
!endif
21
 
21
 
22
!if $clcnt+$sccnt>0
22
!if $clcnt+$sccnt>0
23
 !if $wims_user=$empty
23
  !if $wims_user=$empty
24
   $name_supervisor_text
24
    $name_supervisor_text
25
 !endif
25
  !endif
26
 
26
 
27
 !if $sccnt>0
27
  !if $sccnt>0
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
  <tr>
33
    <tr>
34
    <th></th>
34
    <th></th>
35
    <th>$wims_name_teacher</th>
35
    <th>$wims_name_teacher</th>
36
    <th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th>
36
    <th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th>
37
  </tr>
37
    </tr>
38
  $table_hdtr
38
    $table_hdtr
-
 
39
    <th scope="col">$wims_name_name</th>
-
 
40
    <th scope="col" data-sort-method="none">$wims_name_action</th>
39
    <th scope="col">$wims_name_name</th>
41
    <th scope="col">$wims_name_name</th>
40
    <th scope="col" data-sort-method="none">$wims_name_action</th>
42
    <th scope="col" data-sort-method="none">$wims_name_action</th>
41
    <th scope="col">$wims_name_name</th>
-
 
42
    <th scope="col" data-sort-method="none">$wims_name_action</th>
-
 
43
  </tr>
-
 
44
  </thead>
-
 
45
  <tbody>
-
 
46
  !for i=1 to $sccnt
-
 
47
   !set l=!line $i of $sclasses
-
 
48
   !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
-
 
49
   !set supv=!item 9 of $l
-
 
50
   !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
-
 
51
 
-
 
52
   $table_tr
-
 
53
   <td>
-
 
54
    $in<br />$cl
-
 
55
   </td>
-
 
56
   !reset class_auth
-
 
57
   !defread wimshome/log/classes/$code/.def
-
 
58
   !read adm/class/initclass $code,auth
-
 
59
   !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
-
 
60
     !read supervisor2.phtml
-
 
61
   !else
-
 
62
   <td>
-
 
63
    !set wims_ref_class=wims_button
-
 
64
    !href module=$module&type=authparticipant&class=$code $wims_name_Enter
-
 
65
   </td>
-
 
66
   !endif
-
 
67
   <td>$supv</td>
-
 
68
   <td>
-
 
69
    !set wims_ref_class=wims_button
-
 
70
    !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
-
 
71
   </td></tr>
-
 
72
  !next i
-
 
73
  </tbody>
-
 
74
  $table_end
-
 
75
  !read tablesort.phtml
-
 
76
 !endif
-
 
77
 !if $clcnt>0 and $s_prog!=1
-
 
78
  !set table_id=TABLE_cls
-
 
79
  !set table_class=sortable
-
 
80
  $table_header
-
 
81
  <thead>
-
 
82
  !if $superclass_orig=$empty
-
 
83
   <caption>$name_independantclass</caption>
-
 
84
   $table_hdtr
-
 
85
     <th scope="col">$wims_name_name</th>
-
 
86
     <th scope="col">$wims_name_nameteacher / $wims_name_Supervisor</th>
-
 
87
     <th scope="col">$wims_name_action</th>
-
 
88
   </tr>
-
 
89
  !else
-
 
90
   !if $splevel>1
-
 
91
    !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
-
 
92
   !else
-
 
93
    !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
-
 
94
   !endif
-
 
95
   !default Name_level=$(CL_Name[2])
-
 
96
    <caption>$Name_level / $inst
-
 
97
    !if $class_type>2
-
 
98
    $
-
 
99
    !set wims_ref_class=wims_button_help
-
 
100
    !href cmd=help&special_parm=$module_language/structure $wims_name_help
-
 
101
    !endif
-
 
102
    !if $splevel>1
-
 
103
     !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
-
 
104
    !endif
-
 
105
    </caption>
-
 
106
    $table_hdtr
-
 
107
      <th scope="col">$Name_level</th>
-
 
108
      <th scope="col">$wims_name_nameteacher</th>
-
 
109
      !if $superclass_orig!=$empty and $stype=4
-
 
110
        <th scope="col">+</th>
-
 
111
        !if $ty!=1 and $splevel =1
-
 
112
          <th scope="col">+</th>
-
 
113
        !endif
-
 
114
      !endif
-
 
115
    </tr>
43
    </tr>
116
   !endif
-
 
117
   </thead>
44
    </thead>
118
   <tbody>
45
    <tbody>
119
   !for i=1 to $clcnt
46
    !for i=1 to $sccnt
120
     !set l=!line $i of $classes
47
      !set l=!line $i of $sclasses
121
     !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
48
      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
122
     !set supv=!item 9 of $l
49
      !set supv=!item 9 of $l
123
     !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
50
      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
124
 
51
 
125
     $table_tr
52
      $table_tr
126
     !if $superclass_orig=$empty
-
 
127
      <td>$in<br />$cl</td>
-
 
128
     !else
-
 
129
      <td>
-
 
130
      !href module=$module&type=authsupervisor&class=$code $cl
-
 
131
      </td>
-
 
132
     !endif
-
 
133
     <td>$supv</td>
-
 
134
     !if $superclass_orig!=$empty and $stype=4
-
 
135
      <td>
53
      <td>
136
      !if $ty!=1
54
      $in<br />$cl
-
 
55
      </td>
137
       !set wims_ref_class=wims_button
56
      !reset class_auth
138
       !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
57
      !defread wimshome/log/classes/$code/.def
-
 
58
      !read adm/class/initclass $code,auth
-
 
59
      !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
-
 
60
        !read supervisor2.phtml
139
      !else
61
      !else
140
      -
62
        <td>
-
 
63
        !set wims_ref_class=wims_button
-
 
64
        !href module=$module&type=authparticipant&class=$code $wims_name_Enter
-
 
65
        </td>
141
      !endif
66
      !endif
142
      </td>
-
 
143
      !if $ty!=1 and $splevel =1
-
 
144
       <td>
-
 
145
       !set wims_ref_class=wims_button
-
 
146
       !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
-
 
147
       </td>
67
      <td>$supv</td>
148
      !endif
-
 
149
     !endif
-
 
150
     !if $superclass_orig=$empty
-
 
151
      <td>
68
      <td>
152
      !set wims_ref_class=wims_button
69
      !set wims_ref_class=wims_button
153
      !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
70
      !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
-
 
71
      </td></tr>
-
 
72
    !next i
-
 
73
    </tbody>
-
 
74
    $table_end
-
 
75
    !read tablesort.phtml
-
 
76
  !endif
-
 
77
  !if $clcnt>0 and $s_prog!=1
-
 
78
    !set table_id=TABLE_cls
-
 
79
    !set table_class=sortable
-
 
80
    $table_header
-
 
81
    <thead>
-
 
82
    !if $superclass_orig=$empty
-
 
83
      <caption>$name_independantclass</caption>
-
 
84
      $table_hdtr
-
 
85
       <th scope="col">$wims_name_name</th>
-
 
86
       <th scope="col">$wims_name_nameteacher / $wims_name_Supervisor</th>
-
 
87
       <th scope="col">$wims_name_action</th>
-
 
88
      </tr>
-
 
89
    !else
-
 
90
      !if $splevel>1
-
 
91
        !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
-
 
92
      !else
-
 
93
        !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
-
 
94
      !endif
-
 
95
      !default Name_level=$(CL_Name[2])
-
 
96
      <caption>$Name_level / $inst
-
 
97
      !if $class_type>2
-
 
98
        $
-
 
99
        !set wims_ref_class=wims_button_help
-
 
100
        !href cmd=help&special_parm=$module_language/structure $wims_name_help
-
 
101
      !endif
-
 
102
      !if $splevel>1
-
 
103
        !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
-
 
104
      !endif
-
 
105
      </caption>
-
 
106
      $table_hdtr
-
 
107
        <th scope="col">$Name_level</th>
-
 
108
        <th scope="col">$wims_name_nameteacher</th>
-
 
109
      !if $superclass_orig!=$empty and $stype=4
-
 
110
        <th scope="col">+</th>
-
 
111
        !if $ty!=1 and $splevel =1
-
 
112
          <th scope="col">+</th>
-
 
113
        !endif
-
 
114
      !endif
154
      </td>
115
      </tr>
-
 
116
    !endif
-
 
117
    </thead>
-
 
118
    <tbody>
-
 
119
    !for i=1 to $clcnt
-
 
120
      !set l=!line $i of $classes
-
 
121
      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
-
 
122
      !set supv=!item 9 of $l
-
 
123
      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
-
 
124
 
-
 
125
      $table_tr
-
 
126
      !if $superclass_orig=$empty
-
 
127
        <td>$in<br />$cl</td>
-
 
128
      !else
-
 
129
        <td>
-
 
130
        !href module=$module&type=authsupervisor&class=$code $cl
-
 
131
        </td>
-
 
132
      !endif
-
 
133
      <td>$supv</td>
-
 
134
      !if $superclass_orig!=$empty and $stype=4
-
 
135
        <td>
-
 
136
        !if $ty!=1
-
 
137
          !set wims_ref_class=wims_button
-
 
138
          !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
-
 
139
        !else
-
 
140
          -
-
 
141
        !endif
-
 
142
        </td>
-
 
143
        !if $ty!=1 and $splevel =1
-
 
144
          <td>
-
 
145
          !set wims_ref_class=wims_button
-
 
146
          !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
-
 
147
          </td>
-
 
148
        !endif
-
 
149
      !endif
-
 
150
      !if $superclass_orig=$empty
-
 
151
        <td>
-
 
152
        !set wims_ref_class=wims_button
-
 
153
        !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
-
 
154
        </td>
155
     !endif
155
      !endif
156
     </tr>
156
      </tr>
157
    !next i
157
    !next i
158
   </tbody>
158
    </tbody>
159
   $table_end
159
    $table_end
160
   !read tablesort.phtml
160
    !read tablesort.phtml
161
  !else
161
  !else
162
!!#####################program
162
    !!#####################program
163
   !if $clcnt_pr>0
163
    !if $clcnt_pr>0
164
   !if $splevel>1
164
    !if $splevel>1
165
    !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
165
      !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
166
   !else
166
    !else
167
    !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
167
      !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
168
   !endif
168
    !endif
169
  !set table_id=TABLE_program
169
    !set table_id=TABLE_program
170
  !set table_class=sortable
170
    !set table_class=sortable
171
   $table_header
171
    $table_header
172
    <thead>
172
    <thead>
173
    <caption>$Name_program ($inst)
173
    <caption>$Name_program ($inst)
174
    !if $splevel>1
174
    !if $splevel>1
175
     !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
175
      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
176
    !endif
176
    !endif
177
    </caption>
177
    </caption>
178
    $table_hdtr
178
    $table_hdtr
179
      <th scope="col">$wims_name_level</th>
179
      <th scope="col">$wims_name_level</th>
180
      <th scope="col">$wims_name_nameteacher</th>
180
      <th scope="col">$wims_name_nameteacher</th>
181
      <th scope="col">+</th>
181
      <th scope="col">+</th>
182
    </tr>
182
    </tr>
183
    </thead>
183
    </thead>
184
    <tbody>
184
    <tbody>
185
    !for i=1 to $clcnt_pr
185
    !for i=1 to $clcnt_pr
186
     !set l=!line $i of $classes_pr
186
      !set l=!line $i of $classes_pr
187
     !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
187
      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
188
     !set supv=!item 9 of $l
188
      !set supv=!item 9 of $l
189
     !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
189
      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
190
     $table_tr
190
      $table_tr
191
     <td>
-
 
192
     !href module=$module&type=authsupervisor&class=$code $cl
-
 
193
     </td>
-
 
194
     <td>$supv</td>
-
 
195
     !if $superclass_orig!=$empty and $stype=4
-
 
196
      <td>
191
      <td>
197
      !if $ty!=1
-
 
198
       !set wims_ref_class=wims_button
-
 
199
       !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
192
      !href module=$module&type=authsupervisor&class=$code $cl
200
      !else
-
 
201
       -
-
 
202
      !endif
-
 
203
      </td>
193
      </td>
-
 
194
      <td>$supv</td>
-
 
195
      !if $superclass_orig!=$empty and $stype=4
-
 
196
        <td>
-
 
197
        !if $ty!=1
-
 
198
          !set wims_ref_class=wims_button
-
 
199
          !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
-
 
200
        !else
-
 
201
          -
-
 
202
        !endif
-
 
203
        </td>
204
     !endif
204
      !endif
205
    </td></tr>
205
      </td></tr>
206
    !next i
206
    !next i
207
    </tbody>
207
    </tbody>
208
    $table_end
208
    $table_end
209
    !read tablesort.phtml
209
    !read tablesort.phtml
210
   !endif
210
  !endif
211
  !endif
211
!endif
212
 
212
 
213
!else
213
!else
214
 !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty
214
  !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty
215
  ($name_language2)
215
    ($name_language2)
216
 !else
216
  !else
217
   !if $clcnt=0 and $keyword=$empty
217
    !if $clcnt=0 and $keyword=$empty
218
    ($name_noavailable)
218
      ($name_noavailable)
219
   !endif
219
    !endif
220
 !endif
220
  !endif
221
!endif
221
!endif
222
 
222
 
223
</div>
223
</div>