Rev 12998 | 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 |
||
12720 | bpr | 5 | !goto end |
23 | reyssat | 6 | !endif |
7 | !if $clcnt+$sccnt+$directcnt<1 |
||
12720 | bpr | 8 | !if $keyword=$empty |
9 | $name_language |
||
10 | !href module=home&list=0 $wims_name_search |
||
11 | !else |
||
12845 | obado | 12 | <p class="wims_msg info">$name_nofound</p> |
12720 | bpr | 13 | !endif |
14 | !goto end |
||
23 | reyssat | 15 | !endif |
16 | !if $wims_user!=$empty |
||
12720 | bpr | 17 | !read direct.phtml |
18 | !if $wims_user!=supervisor and $superclass_orig=$empty |
||
19 | !!goto end |
||
20 | !endif |
||
23 | reyssat | 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 |
||
12720 | bpr | 28 | !set table_id=TABLE_portal |
29 | !set table_class=sortable |
||
30 | $table_header |
||
31 | <caption>$name_portalandgroup</caption> |
||
32 | <thead> |
||
33 | $table_hdtr |
||
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> |
||
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 |
||
44 | !!!if $sclass=$empty |
||
45 | !set show=$inst<br />$cl |
||
46 | !!!else |
||
47 | !! !set show=$inst |
||
48 | !!!endif |
||
49 | !set supv=!item 9 of $l |
||
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 |
||
56 | $table_tr<td> |
||
57 | !!!href module=$module&type=authparticipant&class=$code |
||
58 | $show |
||
59 | </td> |
||
60 | !read adm/class/initclass $code,auth |
||
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 |
||
64 | !read participant2.phtml |
||
65 | !reset tmp_parm |
||
66 | !else |
||
67 | <td> |
||
68 | !set wims_ref_class=wims_button |
||
69 | !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter |
||
70 | </td> |
||
71 | !endif |
||
72 | <td> |
||
73 | $supv |
||
74 | </td><td> |
||
12904 | obado | 75 | !if $pswd=$empty |
76 | <span class="wims_label open">$name_open</span> |
||
77 | !else |
||
78 | <span class="wims_label wims_warning">$name_protected</span> |
||
79 | !endif |
||
12720 | bpr | 80 | </td></tr> |
81 | !next i |
||
82 | </tbody> |
||
83 | $table_end |
||
84 | !read tablesort.phtml |
||
23 | reyssat | 85 | !endif |
86 | |||
4588 | czzmrn | 87 | !if $clcnt>0 and $super_mixed_auth!=2 |
12720 | bpr | 88 | !set table_id=TABLE_cls |
89 | !set table_class=sortable |
||
90 | $table_header |
||
91 | !if $superclass_orig=$empty |
||
92 | <caption>$name_independantclass</caption> |
||
93 | <thead> |
||
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> |
||
12720 | bpr | 100 | !else |
101 | !if $splevel>1 |
||
102 | !set inst=!defof class_description in wimshome/log/classes/$superclass2/.def |
||
103 | !else |
||
104 | !set inst=!defof class_institution in wimshome/log/classes/$superclass_orig/.def |
||
105 | !endif |
||
106 | <caption>$Name_levels ($inst) |
||
107 | !if $splevel>1 |
||
108 | !href cmd=reply&type=$type&superclass2=$sparent $name_up |
||
109 | !endif |
||
110 | </caption> |
||
12721 | bpr | 111 | <thead> |
12720 | bpr | 112 | $table_hdtr |
113 | <th scope="col">$wims_name_name</th> |
||
114 | <th scope="col" data-sort-method="none">$wims_name_action</th> |
||
115 | <th scope="col">$wims_name_nameteacher</th> |
||
116 | <th scope="col">$wims_name_level</th> |
||
117 | <th scope="col">$wims_name_Status</th> |
||
12534 | guerimand | 118 | !if $superclass_orig!=$empty and $stype=4 |
119 | <th scope="col">+</th> |
||
120 | !endif |
||
12720 | bpr | 121 | !endif |
122 | </tr> |
||
123 | </thead> |
||
124 | <tbody> |
||
125 | !!! put it var.proc ?? |
||
10768 | bpr | 126 | !set directlist_=!replace internal , by $ ; $ $ in $directlist |
12720 | bpr | 127 | !for i=1 to $clcnt |
128 | !set l=!line $i of $classes |
||
129 | !distribute items $l into code,expire,inst,cl,la,ty,lv,pswd |
||
130 | !set supv=!item 9 of $l |
||
131 | !if $supv=$empty |
||
132 | !reset class_password |
||
133 | !defread wimshome/log/classes/$code/.def |
||
134 | !set lv=$class_level |
||
135 | !set supv=$class_supervisor |
||
136 | !set pswd=$class_password |
||
137 | !endif |
||
138 | !distribute char $lv into l_,y_ |
||
139 | !if $superclass_orig=$empty |
||
140 | !set show=$inst <br />$cl |
||
141 | !else |
||
142 | !set show=$cl |
||
143 | !endif |
||
144 | !read adm/class/initclass $code,auth |
||
12998 | bpr | 145 | !defread wimshome/log/classes/$code/.def |
12720 | bpr | 146 | $table_tr<td> |
147 | $show |
||
148 | </td> |
||
149 | !if $auth_method isitemof $auth_method_list and $host_auth!=$empty |
||
150 | !read participant2.phtml |
||
151 | !else |
||
152 | <td> |
||
12998 | bpr | 153 | !! obligatory course |
154 | !set tmp=!defof class_ocourses in wimshome/log/classes/$class_parent/.def |
||
12996 | bpr | 155 | !if $code notwordof $directlist_ \ |
156 | and $code notitemof $user_participate,$user_supervise\ |
||
12998 | bpr | 157 | and ($class_typename!=level or $wims_user=supervisor) |
158 | !set wims_ref_class=wims_button |
||
13001 | bpr | 159 | !! obligatory course or optionel course but not registered in the parent |
12998 | bpr | 160 | !if $class_typename=course and (($tmp!=$empty and $tmp isin $code) \ |
161 | or $class_parent notitemof $user_participate) |
||
162 | <span style="color:grey">$name_register</span> |
||
163 | !else |
||
13001 | bpr | 164 | !if $wims_user=$empty |
165 | !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter |
||
166 | !else |
||
167 | !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register |
||
168 | !endif |
||
12998 | bpr | 169 | !endif |
5071 | bpr | 170 | !else |
12998 | bpr | 171 | !if $splevel=$empty or $splevel=2 and $code notitemof $tmp |
12720 | bpr | 172 | !set wims_ref_class=wims_button |
12996 | bpr | 173 | !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter |
12720 | bpr | 174 | !else |
175 | <span style="color:grey">$name_register</span> |
||
176 | !endif |
||
5071 | bpr | 177 | !endif |
12720 | bpr | 178 | </td> |
10777 | bpr | 179 | !endif |
23 | reyssat | 180 | <td> |
12720 | bpr | 181 | $supv |
182 | </td><td>$(wims_name_n_$l_)<br />$name_year $y_</td> |
||
183 | <td> |
||
12904 | obado | 184 | !if $pswd=$empty |
185 | <span class="wims_label open">$name_open</span> |
||
186 | !else |
||
187 | <span class="wims_label wims_warning">$name_protected</span> |
||
188 | !endif |
||
5063 | bpr | 189 | </td> |
12720 | bpr | 190 | !if $superclass_orig!=$empty and $stype=4 |
191 | <td> |
||
192 | !if $ty!=1 and $splevel!=3 |
||
193 | !set wims_ref_class=wims_button |
||
194 | !href cmd=reply&type=$type&superclass2=$code $sousclasses |
||
195 | !else |
||
196 | - |
||
197 | !endif |
||
198 | </td> |
||
199 | !endif |
||
200 | </tr> |
||
201 | :endloop |
||
202 | !next i |
||
203 | </tbody> |
||
204 | $table_end |
||
205 | !read tablesort.phtml |
||
23 | reyssat | 206 | !endif |
11781 | obado | 207 | :end |
5601 | obado | 208 | </div> |