Rev 17631 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5181 | guerimand | 1 | !read adm/language lang/names.phtml |
5239 | bpr | 2 | |
3 | !read adm/language adm/lang/external_auth.phtml |
||
1170 | bpr | 4 | !read adm/css.phtml |
1051 | bpr | 5 | !header1 |
6 | |||
1610 | bpr | 7 | !read adm/title.phtml 1\ |
2275 | bpr | 8 | WIMS $httpd_HTTP_HOST\ |
2213 | bpr | 9 | $name_title |
1610 | bpr | 10 | |
11518 | obado | 11 | !! login and password must contain 4-16 alphanumeric characters |
14834 | guerimand | 12 | !!set password_pattern=[a-zA-Z0-9]{4,16} |
13 | !!set login_pattern=[a-zA-Z0-9]{4,16} |
||
14 | !readproc adm/class/authchars |
||
15 | !set login_pattern=[$char_login]{4,16} |
||
16 | !set password_pattern=[$char_passwd]{4,16} |
||
11518 | obado | 17 | |
23 | reyssat | 18 | !if $cltype iswordof 2 4 and $classcnt>0 |
12049 | obado | 19 | <p class="wimscenter"> |
20 | ($name_reserved) |
||
21 | </p> |
||
23 | reyssat | 22 | !endif |
13254 | guerimand | 23 | |
23 | reyssat | 24 | !if $error!=$empty |
12049 | obado | 25 | <div class="wims_msg alert"> |
12991 | bpr | 26 | !read lang/msg.phtml.$modu_lang |
12049 | obado | 27 | </div> |
28 | <p> |
||
12955 | bpr | 29 | !set wims_ref_class=wims_button |
30 | !href cmd=new&class=$class&subclass=yes $wims_name_back2 |
||
12049 | obado | 31 | </p> |
32 | !goto end1 |
||
23 | reyssat | 33 | !endif |
34 | |||
35 | !if $classcnt=0 |
||
2213 | bpr | 36 | $name_warning1 |
12049 | obado | 37 | !goto end |
23 | reyssat | 38 | !endif |
39 | |||
13256 | guerimand | 40 | !if $classlist!=$empty |
41 | $name_inscription |
||
42 | |||
43 | $table_header |
||
44 | !if $ctype=0 |
||
45 | $table_hdtr |
||
46 | <th>$wims_name_name</th><th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Language</th> |
||
47 | <th>$name_remainig</th><th>$wims_name_Status</th> |
||
48 | !else |
||
49 | <caption>$institution_name</caption> |
||
50 | $table_hdtr |
||
51 | <th>$wims_name_name</th><th>$wims_name_Supervisor</th><th>$wims_name_level</th> |
||
52 | <th>$wims_name_Status</th></tr> |
||
53 | !endif |
||
54 | !for cl in $classlist |
||
55 | !reset class_supervisor,class_email,class_level,class_lang,class_institution,class_description,class_password,class_limit |
||
56 | !defread wimshome/log/classes/$cl/.def |
||
57 | !distribute char $class_level into l1,l2 |
||
58 | !set part=!recordcnt wimshome/log/classes/$cl/.userlist |
||
59 | $table_tr<td> |
||
60 | !if $ctype=0 |
||
17180 | bpr | 61 | !href module=$module&cmd=reply&class=$cl $class_institution<br>$class_description |
13256 | guerimand | 62 | !else |
63 | !href module=$module&cmd=reply&class=$cl $class_description |
||
64 | !endif |
||
65 | </td><td> |
||
66 | !mailurl $class_email $class_supervisor |
||
67 | </td> |
||
68 | !if $class_level=$empty |
||
69 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
||
70 | <td>$pname</td> |
||
71 | !else |
||
17180 | bpr | 72 | <td>$(level$l1)<br>$name_year $l2</td> |
13256 | guerimand | 73 | !endif |
74 | !if $ctype=0 |
||
75 | <td>$(lang_$class_lang)</td> |
||
76 | <td style="text-align:right"> |
||
77 | !if $class_limit-$part>$site_dispo |
||
78 | $site_dispo |
||
79 | !else |
||
80 | $[$class_limit-$part] |
||
81 | !endif |
||
82 | </td> |
||
83 | !endif |
||
13286 | obado | 84 | <td> |
13287 | bpr | 85 | !if $class_password=$empty |
86 | <span class="wims_label open">$(name_statut[1])</span> |
||
87 | !else |
||
88 | <span class="wims_label wims_warning">$(name_statut[2])</span> |
||
89 | !endif |
||
13286 | obado | 90 | </td> |
13256 | guerimand | 91 | </tr> |
92 | !next cl |
||
93 | $table_end |
||
94 | |||
13289 | obado | 95 | <div class="wims_msg info">$name_remark1</div> |
13256 | guerimand | 96 | !goto end1 |
97 | !endif classlist!=$empty |
||
98 | |||
4039 | bpr | 99 | !read adm/class/classname.phtml $description\ |
4017 | bpr | 100 | $institution |
23 | reyssat | 101 | |
4591 | czzmrn | 102 | !! if class_mixed_external_auth not 0 show message in and class_external_auth |
103 | !! and when class_mixed_external_auth=2 also disable the registration form |
||
4269 | czzmrn | 104 | !! please check! thanks! |
105 | !default authreg=0 |
||
106 | !if $cltype=1 |
||
107 | !set authreg=!defof class_mixed_external_auth in wimshome/log/classes/$class_parent/.def |
||
108 | !set extauth=!defof class_external_auth in wimshome/log/classes/$class_parent/.def |
||
4274 | czzmrn | 109 | !set usuperv=!defof user_supervisable in wimshome/log/classes/$class_parent/.users/$wims_user |
4269 | czzmrn | 110 | !endif |
111 | !if $cltype=0 |
||
4591 | czzmrn | 112 | !set super_mixed_auth=!defof class_mixed_external_auth in wimshome/log/classes/$class_superclass/.def |
113 | !if $super_mixed_auth=2 |
||
114 | !set authreg=$super_mixed_auth |
||
115 | !set extauth=!defof class_external_auth in wimshome/log/classes/$class_superclass/.def |
||
116 | !else |
||
117 | !set authreg=$class_mixed_external_auth |
||
118 | !set extauth=!defof class_external_auth in wimshome/log/classes/$class/.def |
||
119 | !endif |
||
120 | !! do we really need this for $cltype=0? |
||
4274 | czzmrn | 121 | !set usuperv=!defof user_supervisable in wimshome/log/classes/$class/.users/$wims_user |
4269 | czzmrn | 122 | !endif |
123 | !! need to check if supervisor in order to allow user management by supervisor |
||
4274 | czzmrn | 124 | !! need to check if user_supervisable for direct access from module=home |
4591 | czzmrn | 125 | !! anything else? |
4274 | czzmrn | 126 | !if $wims_user!=supervisor and $usuperv!=yes and $authreg iswordof 1 2 and $cltype iswordof 0 1 |
4305 | bpr | 127 | <div class="wims_external_auth"> |
4269 | czzmrn | 128 | $extauth |
4305 | bpr | 129 | </div> |
4269 | czzmrn | 130 | !if $authreg=2 |
131 | !goto end1 |
||
132 | !endif |
||
133 | !endif |
||
134 | |||
23 | reyssat | 135 | !if $password!=$empty and $passverify=$empty |
12049 | obado | 136 | !if $cltype iswordof 2 4 |
137 | $name_classessss |
||
138 | !href module=adm/class/classes&type=authparticipant&class=$class $classname |
||
139 | !else |
||
140 | $name_classessss |
||
141 | !href module=adm/class/classes&type=authparticipant&class=$class $classname |
||
142 | !endif |
||
143 | !if $cltype iswordof 4 2 |
||
144 | $name_warning_protected |
||
145 | !if $classcnt>0 |
||
146 | $name_inscription_student |
||
147 | !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass |
||
12991 | bpr | 148 | . |
12049 | obado | 149 | !endif |
150 | !else |
||
151 | $name_isprotected |
||
23 | reyssat | 152 | !endif |
12049 | obado | 153 | <p>$name_writepasswd |
12955 | bpr | 154 | !if $cltype iswordof 2 4 |
155 | $name_asateacher. |
||
156 | !else |
||
157 | $name_asaparticipant. |
||
158 | !endif |
||
12049 | obado | 159 | </p> |
7452 | bpr | 160 | |
12049 | obado | 161 | !form reply |
17180 | bpr | 162 | <input type="hidden" name="step" value="1"> |
12049 | obado | 163 | <fieldset class="property_fields halfwidth blockcenter"> |
16539 | guerimand | 164 | <legend> |
165 | !if $utype=0 |
||
166 | $name_title_participant |
||
167 | !else |
||
17631 | czzmrn | 168 | $name_title_supervisor |
16539 | guerimand | 169 | !endif |
170 | </legend> |
||
12049 | obado | 171 | <div class="field box"> |
172 | <label for="classpass">$wims_name_Password</label> |
||
17180 | bpr | 173 | <input type="password" name="classpass" id="classpass" required="required" class="noicon" placeholder="$wims_name_Password"> |
12049 | obado | 174 | </div> |
175 | <div class="wimscenter wimsform"> |
||
17180 | bpr | 176 | <input type="submit" value="$wims_name_send"> |
12049 | obado | 177 | </div> |
178 | </fieldset> |
||
179 | !formend |
||
180 | <span class="wims_warning">$wims_name_warning</span>. |
||
181 | !if $cltype iswordof 2 4 |
||
182 | $name_access1 |
||
183 | !else |
||
184 | $name_access2 |
||
185 | !endif |
||
186 | $name_obtainpasswd |
||
17632 | czzmrn | 187 | ( |
12049 | obado | 188 | !if $cltype iswordof 2 4 |
17632 | czzmrn | 189 | !mailurl $smail $name_write_adm |
190 | !else |
||
191 | !mailurl $smail $wims_name_wsup |
||
192 | !endif |
||
193 | ). |
||
194 | !if $cltype iswordof 2 4 |
||
12049 | obado | 195 | <p> |
196 | <span class="wims_warning">$wims_name_warning</span>. |
||
197 | $name_warning_direct |
||
12991 | bpr | 198 | !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass |
199 | . |
||
12049 | obado | 200 | </p> |
201 | !endif |
||
202 | !goto end1 |
||
23 | reyssat | 203 | !endif |
204 | |||
205 | !if $step=$empty or $step<2 |
||
12049 | obado | 206 | !if $ssclass!=$empty and $wims_class!=$ssclass and $wims_user=supervisor |
207 | !form reply |
||
17180 | bpr | 208 | <input type="hidden" name="step" value="1"> |
12049 | obado | 209 | <label for="search">$name_research:</label> |
17180 | bpr | 210 | <input size="20" name="search" id="search" value="$search"> |
211 | <input type="submit" value="$wims_name_tosave"> |
||
6309 | bpr | 212 | |
12049 | obado | 213 | !formend |
214 | !default foundcnt=0 |
||
215 | !if $foundcnt>0 |
||
216 | $table_header |
||
12955 | bpr | 217 | <caption>$name_clickname</caption> |
218 | $table_hdtr<th>$wims_name_name</th><th>$wims_name_Login</th></tr> |
||
219 | !for i=1 to $foundcnt |
||
220 | !set l=!line $i of $found |
||
221 | !distribute item $l into l_,f_,L_ |
||
222 | $table_tr<td> |
||
223 | !href cmd=reply&step=2&login=$L_ $l_, $f_ |
||
224 | </td> |
||
225 | <td>$L_</td> |
||
226 | </tr> |
||
227 | !next i |
||
12049 | obado | 228 | $table_end |
229 | !goto end1 |
||
10653 | bpr | 230 | !endif |
12049 | obado | 231 | !if $search!=$empty and $foundcnt=0 |
232 | <p> ($name_nofound) </p> |
||
233 | !endif |
||
234 | $name_newparticipant |
||
235 | !else |
||
236 | !if $idp_method notitemof $idp_method_list |
||
237 | !if $wims_user=supervisor |
||
238 | $name_inscription21 |
||
239 | !else |
||
240 | $name_inscription2 |
||
241 | !endif |
||
242 | !endif |
||
5023 | bpr | 243 | !endif |
12049 | obado | 244 | |
1081 | bpr | 245 | !form reply |
12049 | obado | 246 | !! check user supervisor?? |
5023 | bpr | 247 | |
12955 | bpr | 248 | !if $idp_method isitemof $idp_method_list and $auth_user$user_auth!=$empty and $wims_user!=supervisor |
17180 | bpr | 249 | <input type="hidden" name="step" value="3"> |
12955 | bpr | 250 | $name_inscription4: |
251 | <p> |
||
252 | !formcheckbox agreecgu list yes prompt $name_cgu |
||
253 | [ |
||
13123 | bpr | 254 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
12955 | bpr | 255 | ] |
256 | </p> |
||
17180 | bpr | 257 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave"></div> |
12955 | bpr | 258 | !goto end1 |
259 | !endif |
||
260 | !!FIXME $auth_user=$empty |
||
261 | !if $wims_user=supervisor and $auth_user=$empty |
||
6309 | bpr | 262 | |
12955 | bpr | 263 | !! teacher registering a student with idp ldap |
264 | !if $idp_method isitemof ldap |
||
12049 | obado | 265 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
6307 | bpr | 266 | |
12955 | bpr | 267 | !!!FIXME check the value of step |
17180 | bpr | 268 | <input type="hidden" name="step" value="3"> |
12049 | obado | 269 | <fieldset class="property_fields halfwidth blockcenter"> |
17631 | czzmrn | 270 | <legend> |
271 | !if $utype=0 |
||
272 | $name_title_participant |
||
273 | !else |
||
274 | $name_title_supervisor |
||
275 | !endif |
||
276 | </legend> |
||
12049 | obado | 277 | <div class="field box"> |
278 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
||
17180 | bpr | 279 | <input size="16" name="user_auth" id="user_auth" value="$user_auth"> |
12049 | obado | 280 | </div> |
12955 | bpr | 281 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
282 | !if $wims_user=supervisor and $class=$wims_class and $ct iswordof 2 4 |
||
283 | <div class="field box"> |
||
284 | <label for="utype">$name_accounttype</label> |
||
285 | !default utype=0 |
||
286 | !set wims_ref_class=wims_formradio |
||
287 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
||
12049 | obado | 288 | </div> |
12955 | bpr | 289 | !endif |
12991 | bpr | 290 | <div class="wimscenter wimsform"> |
17180 | bpr | 291 | <input type="submit" value="$wims_name_tosave"> |
12991 | bpr | 292 | </div> |
293 | </fieldset> |
||
12049 | obado | 294 | |
12991 | bpr | 295 | !formend |
296 | !goto end1 |
||
297 | !endif |
||
12049 | obado | 298 | |
12991 | bpr | 299 | !! teacher registering a student with external auth without idp ldap |
300 | !if $auth_method isitemof $auth_method_list |
||
17180 | bpr | 301 | <input type="hidden" name="step" value="3"> |
12991 | bpr | 302 | <fieldset class="property_fields halfwidth blockcenter"> |
17631 | czzmrn | 303 | <legend> |
304 | !if $utype=0 |
||
305 | $name_title_participant |
||
306 | !else |
||
307 | $name_title_supervisor |
||
308 | !endif |
||
309 | </legend> |
||
12991 | bpr | 310 | <div class="field box halfwidth"> |
311 | <label for="lastn">$wims_name_lastname</label> |
||
17180 | bpr | 312 | <input size="20" name="lastn" id="lastn" value="$lastn"> |
12049 | obado | 313 | </div> |
12991 | bpr | 314 | <div class="field box halfwidth"> |
315 | <label for="firstn">$wims_name_firstname</label> |
||
17180 | bpr | 316 | <input size="20" name="firstn" id="firstn" value="$firstn"> |
12991 | bpr | 317 | </div> |
318 | <div class="field box"> |
||
319 | <label for="user_auth">$wims_name_Login </label> |
||
17180 | bpr | 320 | <input size="16" name="user_auth" id="user_auth" value="$user_auth"> |
12991 | bpr | 321 | <div class="formHelp">$name_external, |
322 | <span class="wims_warning">$name_login_external_warning</span> |
||
323 | </div> |
||
12955 | bpr | 324 | </div> |
325 | <div class="field box"> |
||
326 | <label for="email">$wims_name_email</label> |
||
17180 | bpr | 327 | <input type="email" size="60" name="email" id="email" value="$email"> |
12955 | bpr | 328 | <div class="formHelp">$name_optional</div> |
329 | </div> |
||
330 | <div class="wimscenter wimsform"> |
||
17180 | bpr | 331 | <input type="submit" value="$wims_name_tosave"> |
12955 | bpr | 332 | </div> |
12991 | bpr | 333 | </fieldset> |
334 | !formend |
||
335 | !goto end1 |
||
336 | !endif |
||
337 | !endif step empty or step<2 |
||
338 | |||
339 | !if $auth_user=$empty or $auth_method notitemof $auth_method_list |
||
340 | !!read adm/language lang/names.phtml |
||
17180 | bpr | 341 | <input type="hidden" name="step" value="2"> |
12991 | bpr | 342 | !else |
17180 | bpr | 343 | <input type="hidden" name="step" value="3"> |
12955 | bpr | 344 | !endif |
12049 | obado | 345 | <fieldset class="property_fields halfwidth blockcenter"> |
16539 | guerimand | 346 | <legend> |
347 | !if $utype=0 |
||
348 | $name_title_participant |
||
349 | !else |
||
350 | $name_title_supervisor |
||
351 | !endif |
||
352 | </legend> |
||
12049 | obado | 353 | <div class="field box halfwidth"> |
354 | <label for="lastn">$wims_name_lastname</label> |
||
17180 | bpr | 355 | <input size="20" name="lastn" id="lastn" value="$lastn" required="required"> |
12049 | obado | 356 | </div> |
357 | <div class="field box halfwidth"> |
||
358 | <label for="firstn">$wims_name_firstname</label> |
||
17180 | bpr | 359 | <input size="20" name="firstn" id="firstn" value="$firstn" required="required"> |
12049 | obado | 360 | </div> |
12955 | bpr | 361 | !if $wims_user=supervisor |
362 | !reset login |
||
363 | !endif |
||
364 | !if ($auth_user=$empty or $auth_method notitemof $auth_method_list) or $wims_user=supervisor |
||
12049 | obado | 365 | <div class="field box"> |
366 | <label for="login">$wims_name_Login</label> |
||
17180 | bpr | 367 | <input size="16" name="login" id="login" value="$login" required="required" pattern="$login_pattern"> |
12049 | obado | 368 | <div class="formHelp"> |
12955 | bpr | 369 | !if $auth_method notitemof $auth_method_list or $wims_user!=supervisor |
370 | $name_warning_login |
||
371 | !endif |
||
372 | $name_warning_login2 |
||
7888 | obado | 373 | </div> |
12955 | bpr | 374 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
375 | !reset login_ext |
||
376 | <label for="login_ext">$wims_name_Login</label> |
||
17180 | bpr | 377 | <input size="16" name="login_ext" id="login_ext" value="$login_ext"> |
12955 | bpr | 378 | <div class="formHelp">$name_external |
379 | <span class="wims_warning">$name_login_external_warning</span> |
||
7475 | bpr | 380 | </div> |
12955 | bpr | 381 | !endif |
382 | </div> |
||
383 | !if $auth_method notitemof $auth_method_list |
||
7475 | bpr | 384 | <div class="field box"> |
12955 | bpr | 385 | <label for="pass">$wims_name_Password</label> |
17180 | bpr | 386 | <input type="password" size="16" name="pass" id="pass" required="required" pattern="$password_pattern"> |
12955 | bpr | 387 | <div class="formHelp">$name_passwd_warning</div> |
7446 | bpr | 388 | </div> |
12049 | obado | 389 | !endif |
12955 | bpr | 390 | !else |
12049 | obado | 391 | <div class="field box"> |
12955 | bpr | 392 | <label for="login">$wims_name_Login</label> |
17180 | bpr | 393 | <input size="16" name="login" id="login" value="$login" readonly="readonly"> |
12955 | bpr | 394 | <div class="formHelp">$name_internal</div> |
12049 | obado | 395 | </div> |
12955 | bpr | 396 | <div class="field box"> |
397 | <label for="login_ext">$wims_name_Login</label> |
||
17180 | bpr | 398 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" readonly="readonly"> |
12955 | bpr | 399 | <div class="formHelp">$name_external, <span class="wims_warning"></span></div> |
400 | </div> |
||
401 | !endif |
||
402 | <div class="field box"> |
||
403 | <label for="email">$wims_name_email</label> |
||
17180 | bpr | 404 | <input type="email" size="60" name="email" id="email" value="$email"> |
12955 | bpr | 405 | <div class="formHelp">$name_optional</div> |
406 | </div> |
||
407 | !if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4 |
||
408 | <div class="field box"> |
||
16539 | guerimand | 409 | !! <label for="utype">$name_accounttype</label> |
410 | <b>$name_accounttype</b> |
||
411 | !if $utype=0 |
||
412 | $wims_name_namestudent |
||
413 | !else |
||
414 | $wims_name_nameteacher |
||
415 | !endif |
||
416 | !! !default utype=0 |
||
417 | !! !set wims_ref_class=wims_formradio |
||
418 | !! !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
||
12955 | bpr | 419 | </div> |
420 | !endif |
||
421 | !if $regvars_cnt>0 |
||
422 | !read regvars.phtml |
||
423 | !endif |
||
424 | !if $wims_user!=supervisor |
||
425 | <div class="field box"> |
||
426 | !set wims_ref_class=wims_formradio |
||
427 | !formcheckbox agreecgu list yes prompt $name_cgu |
||
428 | [ |
||
13123 | bpr | 429 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
12955 | bpr | 430 | ] |
431 | </div> |
||
432 | !endif |
||
17180 | bpr | 433 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave"></div> |
12049 | obado | 434 | </fieldset> |
435 | !formend |
||
436 | !goto end1 |
||
23 | reyssat | 437 | !endif |
438 | |||
439 | !if $step=2 |
||
12049 | obado | 440 | !if $wims_user!=supervisor |
441 | $name_hello, $name_student!<p> |
||
442 | $name_inscription3 |
||
443 | !else |
||
444 | $name_inscription31 |
||
445 | !endif |
||
10653 | bpr | 446 | <span class="tt wims_login">$login</span>. </p> |
12049 | obado | 447 | !if $email=$empty |
448 | <p> $name_emptyemail </p> |
||
449 | !else |
||
450 | <p>$wims_name_email: <span class="tt wims_address">$email</span> </p> |
||
451 | !endif |
||
7475 | bpr | 452 | |
12049 | obado | 453 | !form reply |
17180 | bpr | 454 | <input type="hidden" name="step" value="3"> |
12049 | obado | 455 | <fieldset class="property_fields halfwidth blockcenter"> |
16539 | guerimand | 456 | <legend> |
457 | !if $utype=0 |
||
458 | $name_title_participant |
||
459 | !else |
||
460 | $name_title_supervisor |
||
461 | !endif |
||
462 | </legend> |
||
12049 | obado | 463 | <div class="field box"> |
464 | <label for="pass2">$name_passwd_exact</label> |
||
17180 | bpr | 465 | <input type="password" size="16" name="pass2" id="pass2" required="required"> |
12049 | obado | 466 | </div> |
467 | <div class="wimscenter wimsform"> |
||
17180 | bpr | 468 | <input type="submit" value="$wims_name_send"> |
12049 | obado | 469 | </div> |
470 | </fieldset> |
||
471 | !formend |
||
472 | !goto end1 |
||
23 | reyssat | 473 | !endif |
474 | |||
475 | !if $step=3 |
||
12049 | obado | 476 | !! needed for $name_student after !endif ? |
5100 | bpr | 477 | !readproc adm/class/userdef class,$class,$login |
5135 | bpr | 478 | !set firstn=!defof user_firstname in $userdef |
479 | !set lastn=!defof user_lastname in $userdef |
||
12049 | obado | 480 | !if $wims_user=supervisor |
481 | !set login_wims=!defof user_external_auth in $userdef |
||
482 | !default login_wims=$Login |
||
483 | $name_studentadded |
||
484 | <span class="tt wims_login"> |
||
12955 | bpr | 485 | !href module=adm/class/usermanage&job=userprop&getuser=$Login $login_wims |
12049 | obado | 486 | </span>. |
487 | !if $wims_supertype iswordof 2 4 |
||
12955 | bpr | 488 | !readproc adm/gateway/transfer $login test |
489 | !if $transfer_test>0 |
||
490 | <p> |
||
12049 | obado | 491 | $name_otheractivities |
492 | !href module=adm/class/usermanage&job=transfer&getuser=$login $name_transfer1 |
||
12955 | bpr | 493 | </p> |
494 | !endif |
||
12049 | obado | 495 | !endif |
12955 | bpr | 496 | !set wims_menu_items=!append line usermanage,1,module=adm/class/usermanage\ |
12049 | obado | 497 | addstudent,1,module=$module&step=1\ |
498 | to wims_menu_items |
||
12955 | bpr | 499 | !goto end |
500 | !endif |
||
5118 | bpr | 501 | |
12955 | bpr | 502 | <p>$name_hello, $name_student!</p> |
503 | <p>$name_welcome |
||
504 | <span class="tt wims_login">$login</span>.</p> |
||
505 | $name_youcan |
||
506 | !read adm/class/initclass $class,auth |
||
6309 | bpr | 507 | |
12049 | obado | 508 | |
12955 | bpr | 509 | !if $wims_class!=$empty |
510 | !if $auth_method iswordof cas |
||
511 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
||
512 | !read adm/codeurl $url |
||
513 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |
||
514 | <a class="wims_button" href="$class_cas_auth/login?service=$script_out">$wims_name_Enter</a> |
||
12049 | obado | 515 | !else |
12955 | bpr | 516 | !if $auth_method iswordof ldap php |
517 | !set tmp=!getdef user_external_auth in wimshome/log/classes/$ssclass/.users/$login |
||
518 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$tmp $name_gotowork |
||
519 | !else |
||
520 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork |
||
521 | !endif |
||
12049 | obado | 522 | !endif |
12955 | bpr | 523 | !!FIXME what about php here |
12991 | bpr | 524 | !! Pourquoi est-ce different : dans le second cas ouvre une autre session, |
525 | !! demande de nouveau le mot de passe ??? |
||
12049 | obado | 526 | !else |
527 | !if $auth_method isitemof cas |
||
7446 | bpr | 528 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
529 | !read adm/codeurl $url |
||
530 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |
||
531 | <a class="wims_button" href="$class_cas_auth/login?service=$script_out">$wims_name_Enter</a> |
||
12049 | obado | 532 | !else |
533 | !if $auth_method iswordof ldap |
||
5118 | bpr | 534 | !set tmp=!getdef user_external_auth in wimshome/log/classes/$ssclass/.users/$login |
5072 | bpr | 535 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$tmp $name_gotowork |
12049 | obado | 536 | !else |
11896 | bpr | 537 | <a href="$wims_ref_name?lang=$lang&+module=adm/class/classes&+type=authparticipant&+class=$class&+auth_user=$login"> |
12049 | obado | 538 | $name_gotowork</a> ($name_bookmark). |
539 | !endif |
||
540 | !endif |
||
541 | !goto end |
||
542 | !endif |
||
23 | reyssat | 543 | !endif |
544 | |||
545 | :end1 |
||
9116 | bpr | 546 | |
23 | reyssat | 547 | !if $wims_user=supervisor |
12049 | obado | 548 | !if $step=1 |
549 | !set wims_menu_items=!append line back2,1,module=adm/class/usermanage\ |
||
550 | to $wims_menu_items |
||
551 | !endif |
||
552 | !goto end |
||
23 | reyssat | 553 | !endif |
5874 | bpr | 554 | |
23 | reyssat | 555 | !if $cltype iswordof 2 4 |
12049 | obado | 556 | !set wims_menu_items=!append line classlist,1,module=adm/class/classes&type=supervisor\ |
557 | to $wims_menu_items |
||
23 | reyssat | 558 | !else |
12049 | obado | 559 | !set wims_menu_items=!append line classlist,1,module=adm/class/classes&type=participant\ |
560 | to $wims_menu_items |
||
23 | reyssat | 561 | !endif |
12049 | obado | 562 | |
23 | reyssat | 563 | :end |
564 | !tail |
||
565 | |||
566 | !reset step, subclass |