Subversion Repositories wimsdev

Rev

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