Subversion Repositories wimsdev

Rev

Rev 12720 | Rev 12845 | 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 $clcnt+$sccnt<1 and $keyword!=$empty
12720 bpr 5
  <p class="notfound">
6
  $name_nofound
7
  </p>
23 reyssat 8
!endif
9
!if $wims_user!=$empty
12720 bpr 10
  !read direct.phtml
11
  !if $wims_user!=supervisor and $supervisable!=yes
12
    !exit
13
  !endif
23 reyssat 14
!else
2238 bpr 15
  !read lang/supervisor.phtml.$modu_lang
23 reyssat 16
!endif
17
 
18
!if $overflow=yes
12720 bpr 19
  !exit
23 reyssat 20
!endif
21
 
22
!if $clcnt+$sccnt>0
12720 bpr 23
  !if $wims_user=$empty
24
    $name_supervisor_text
25
  !endif
2238 bpr 26
 
12720 bpr 27
  !if $sccnt>0
28
    !set table_id=TABLE_portal
29
    !set table_class=sortable
30
    $table_header
31
    <caption>$name_portalandgroup</caption>
32
    <thead>
33
    <tr>
12534 guerimand 34
    <th></th>
35
    <th>$wims_name_teacher</th>
36
    <th colspan="2">$wims_name_nameteacher/$wims_name_Supervisor</th>
12720 bpr 37
    </tr>
38
    $table_hdtr
12534 guerimand 39
    <th scope="col">$wims_name_name</th>
40
    <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>
12720 bpr 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
10164 bpr 51
 
12720 bpr 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
    !if $superclass_orig=$empty
82
      <caption>$name_independantclass</caption>
12721 bpr 83
      <thead>
12720 bpr 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>
12721 bpr 106
      <thead>
12720 bpr 107
      $table_hdtr
108
        <th scope="col">$Name_level</th>
109
        <th scope="col">$wims_name_nameteacher</th>
12534 guerimand 110
      !if $superclass_orig!=$empty and $stype=4
111
        <th scope="col">+</th>
112
        !if $ty!=1 and $splevel =1
113
          <th scope="col">+</th>
114
        !endif
115
      !endif
12720 bpr 116
      </tr>
117
    !endif
118
    </thead>
119
    <tbody>
120
    !for i=1 to $clcnt
121
      !set l=!line $i of $classes
122
      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
123
      !set supv=!item 9 of $l
124
      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
10164 bpr 125
 
12720 bpr 126
      $table_tr
127
      !if $superclass_orig=$empty
128
        <td>$in<br />$cl</td>
411 bpr 129
      !else
12720 bpr 130
        <td>
131
        !href module=$module&type=authsupervisor&class=$code $cl
132
        </td>
411 bpr 133
      !endif
12720 bpr 134
      <td>$supv</td>
135
      !if $superclass_orig!=$empty and $stype=4
136
        <td>
137
        !if $ty!=1
138
          !set wims_ref_class=wims_button
139
          !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
140
        !else
141
          -
142
        !endif
143
        </td>
144
        !if $ty!=1 and $splevel =1
145
          <td>
146
          !set wims_ref_class=wims_button
147
          !href cmd=reply&type=$type&superclass2=$code&s_prog=1 $name_program
148
          </td>
149
        !endif
411 bpr 150
      !endif
12720 bpr 151
      !if $superclass_orig=$empty
152
        <td>
153
        !set wims_ref_class=wims_button
154
        !href module=$module&type=authsupervisor&class=$code $wims_name_Enter
155
        </td>
156
      !endif
157
      </tr>
411 bpr 158
    !next i
12720 bpr 159
    </tbody>
160
    $table_end
161
    !read tablesort.phtml
491 bpr 162
  !else
12720 bpr 163
    !!#####################program
164
    !if $clcnt_pr>0
165
    !if $splevel>1
166
      !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
167
    !else
168
      !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
169
    !endif
170
    !set table_id=TABLE_program
171
    !set table_class=sortable
172
    $table_header
1741 bpr 173
    <caption>$Name_program ($inst)
411 bpr 174
    !if $splevel>1
12720 bpr 175
      !href cmd=reply&type=$type&superclass2=$sparent&s_prog=0 $name_up
23 reyssat 176
    !endif
411 bpr 177
    </caption>
12721 bpr 178
    <thead>
12534 guerimand 179
    $table_hdtr
180
      <th scope="col">$wims_name_level</th>
181
      <th scope="col">$wims_name_nameteacher</th>
182
      <th scope="col">+</th>
183
    </tr>
184
    </thead>
185
    <tbody>
411 bpr 186
    !for i=1 to $clcnt_pr
12720 bpr 187
      !set l=!line $i of $classes_pr
188
      !distribute items $l into code,expire,in,cl,la,ty,lv,pswd
189
      !set supv=!item 9 of $l
190
      !default supv=!defof class_supervisor in wimshome/log/classes/$code/.def
191
      $table_tr
5894 bpr 192
      <td>
12720 bpr 193
      !href module=$module&type=authsupervisor&class=$code $cl
194
      </td>
195
      <td>$supv</td>
196
      !if $superclass_orig!=$empty and $stype=4
197
        <td>
198
        !if $ty!=1
199
          !set wims_ref_class=wims_button
200
          !href cmd=reply&type=$type&superclass2=$code&s_prog=0 $sousclasses
201
        !else
202
          -
203
        !endif
204
        </td>
411 bpr 205
      !endif
12720 bpr 206
      </td></tr>
411 bpr 207
    !next i
12534 guerimand 208
    </tbody>
411 bpr 209
    $table_end
12638 obado 210
    !read tablesort.phtml
491 bpr 211
  !endif
12720 bpr 212
!endif
12534 guerimand 213
 
23 reyssat 214
!else
12720 bpr 215
  !if $class_type=$empty and $superclass_orig=$empty and $keyword=$empty
216
    ($name_language2)
217
  !else
218
    !if $clcnt=0 and $keyword=$empty
219
      ($name_noavailable)
220
    !endif
221
  !endif
23 reyssat 222
!endif
5601 obado 223
 
224
</div>