Subversion Repositories wimsdev

Rev

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