Subversion Repositories wimsdev

Rev

Rev 10793 | Rev 12534 | 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
 
4588 czzmrn 25
!set super_mixed_auth=!defof class_mixed_external_auth in wimshome/log/classes/$wims_superclass/.def
26
!if $sccnt>0 and $super_mixed_auth!=2
3066 bpr 27
 $table_header
1741 bpr 28
 <caption>$name_portalandgroup</caption>
10648 bpr 29
 $table_hdtr
5831 bpr 30
 <th>$wims_name_name</th><th>$wims_name_action</th><th>$wims_name_Supervisor</th><th>$wims_name_Status</th></tr>
23 reyssat 31
 !for i=1 to $sccnt
32
  !set l=!line $i of $sclasses
33
  !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
5015 bpr 34
  !!!if $sclass=$empty
6235 bpr 35
   !set show=$inst<br />$cl
9506 bpr 36
  !!!else
5015 bpr 37
  !! !set show=$inst
38
  !!!endif
1204 bpr 39
  !set supv=!item 9 of $l
23 reyssat 40
  !if $supv=$empty
41
   !reset class_password
42
   !defread wimshome/log/classes/$code/.def
43
   !set supv=$class_supervisor
44
   !set pswd=$class_password
45
  !endif
5894 bpr 46
  $table_tr<td>
9506 bpr 47
  !!!href module=$module&type=authparticipant&class=$code
23 reyssat 48
  $show
5028 bpr 49
  </td>
5027 bpr 50
   !read adm/class/initclass $code,auth
5015 bpr 51
   !defread wimshome/log/classes/$code/.def
52
   !if $class_auth isitemof $auth_method_list and $(class_$(class_auth)_auth)!=$empty
53
     !set tmp_parm=&subclass=yes
5013 bpr 54
     !read participant2.phtml
5015 bpr 55
     !reset tmp_parm
9506 bpr 56
   !else
5894 bpr 57
   <td>
5013 bpr 58
   !set wims_ref_class=wims_button
5044 bpr 59
   !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
5025 bpr 60
   </td>
5013 bpr 61
   !endif
5894 bpr 62
  <td>
23 reyssat 63
  $supv
10793 bpr 64
  </td><td>
23 reyssat 65
  !if $pswd=$empty
1741 bpr 66
   $name_open
23 reyssat 67
  !else
1741 bpr 68
   $name_protected
23 reyssat 69
  !endif
5800 bpr 70
</td></tr>
23 reyssat 71
 !next i
5800 bpr 72
 $table_end
23 reyssat 73
!endif
74
 
4588 czzmrn 75
!if $clcnt>0 and $super_mixed_auth!=2
5800 bpr 76
$table_header
10770 bpr 77
 !if $superclass_orig=$empty
1741 bpr 78
  <caption>$name_independantclass</caption>
23 reyssat 79
  $table_hdtr
5071 bpr 80
  <th>$wims_name_name</th><th>$wims_name_action</th>
1741 bpr 81
  <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
23 reyssat 82
 !else
83
   !if $splevel>1
84
    !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def
85
   !else
10770 bpr 86
    !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def
23 reyssat 87
   !endif
1741 bpr 88
   <caption>$Name_levels ($inst)
23 reyssat 89
   !if $splevel>1
1743 bpr 90
    !href cmd=reply&type=$type&superclass2=$sparent $name_up
23 reyssat 91
   !endif
411 bpr 92
   </caption>
23 reyssat 93
   $table_hdtr
5071 bpr 94
   <th>$wims_name_name</th><th>$wims_name_action</th>
1741 bpr 95
   <th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Status</th>
10770 bpr 96
   !if $superclass_orig!=$empty and $stype=4
23 reyssat 97
    <th>+</th>
98
   !endif
99
 !endif
5831 bpr 100
 </tr>
10768 bpr 101
 
102
 !!! put it var.proc ??
103
  !set directlist_=!replace internal , by $ ; $ $ in $directlist
23 reyssat 104
 !for i=1 to $clcnt
105
  !set l=!line $i of $classes
106
  !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd
1204 bpr 107
  !set supv=!item 9 of $l
23 reyssat 108
  !if $supv=$empty
109
   !reset class_password
110
   !defread wimshome/log/classes/$code/.def
111
   !set lv=$class_level
112
   !set supv=$class_supervisor
113
   !set pswd=$class_password
114
  !endif
115
  !distribute char $lv into l_,y_
10770 bpr 116
  !if $superclass_orig=$empty
6235 bpr 117
   !set show=$inst <br />$cl
23 reyssat 118
  !else
119
   !set show=$cl
120
  !endif
5042 bpr 121
  !read adm/class/initclass $code,auth
122
  !!defread wimshome/log/classes/$code/.def
5894 bpr 123
  $table_tr<td>
5053 bpr 124
    $show
125
  </td>
5042 bpr 126
  !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
5013 bpr 127
     !read participant2.phtml
9506 bpr 128
  !else
10749 bpr 129
  <td>
10777 bpr 130
    !set wims_ref_class=wims_button
131
     !if $code notwordof $directlist_
132
       !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter
133
     !else
134
      !if $splevel=$empty or $splevel=2
135
       !set wims_ref_class=wims_button
136
       !href module=adm/class/reguser&class=$code $name_register
5071 bpr 137
      !else
9506 bpr 138
        <span style="color:grey">$name_register</span>
5071 bpr 139
      !endif
10777 bpr 140
    !endif
5063 bpr 141
    </td>
5053 bpr 142
  !endif
5894 bpr 143
  <td>
23 reyssat 144
  $supv
6235 bpr 145
  </td><td>$(wims_name_n_$l_)<br />$name_year $y_</td>
5894 bpr 146
  <td>
23 reyssat 147
  !if $pswd=$empty
1741 bpr 148
   $name_open
23 reyssat 149
  !else
1741 bpr 150
   $name_protected
23 reyssat 151
  !endif
152
  </td>
10770 bpr 153
   !if $superclass_orig!=$empty and $stype=4
23 reyssat 154
    <td>
5063 bpr 155
    !if $ty!=1 and $splevel!=3
156
    !set wims_ref_class=wims_button
23 reyssat 157
     !href cmd=reply&type=$type&superclass2=$code $sousclasses
158
    !else
159
    -
160
    !endif
5063 bpr 161
    </td>
23 reyssat 162
   !endif
5053 bpr 163
   </tr>
10768 bpr 164
:endloop
23 reyssat 165
 !next i
5800 bpr 166
 $table_end
23 reyssat 167
!endif
11781 obado 168
 
169
:end
5601 obado 170
</div>