Subversion Repositories wimsdev

Rev

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