Rev 12049 | Rev 12991 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12049 | Rev 12955 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | !if $error!=$empty |
20 | !if $error!=$empty |
21 | <div class="wims_msg alert"> |
21 | <div class="wims_msg alert"> |
22 | !read lang/msg.phtml.$modu_lang |
22 | !read lang/msg.phtml.$modu_lang |
23 | </div> |
23 | </div> |
24 | <p> |
24 | <p> |
25 |
|
25 | !set wims_ref_class=wims_button |
26 |
|
26 | !href cmd=new&class=$class&subclass=yes $wims_name_back2 |
27 | </p> |
27 | </p> |
28 | !goto end1 |
28 | !goto end1 |
29 | !endif |
29 | !endif |
30 | 30 | ||
31 | !if $classcnt=0 |
31 | !if $classcnt=0 |
Line 35... | Line 35... | ||
35 | 35 | ||
36 | !if $class=$empty |
36 | !if $class=$empty |
37 | $name_inscription |
37 | $name_inscription |
38 | 38 | ||
39 | $table_header |
39 | $table_header |
- | 40 | !if $ctype=0 |
|
- | 41 | $table_hdtr |
|
- | 42 | <th>$wims_name_name</th><th>$wims_name_nameteacher</th><th>$wims_name_level</th><th>$wims_name_Language</th> |
|
- | 43 | <th>$name_remainig</th><th>$wims_name_Status</th> |
|
- | 44 | !else |
|
- | 45 | <caption>$institution_name</caption> |
|
- | 46 | $table_hdtr |
|
- | 47 | <th>$wims_name_name</th><th>$wims_name_Supervisor</th><th>$wims_name_level</th> |
|
- | 48 | <th>$wims_name_Status</th></tr> |
|
- | 49 | !endif |
|
- | 50 | !for cl in $classlist |
|
- | 51 | !reset class_supervisor,class_email,class_level,class_lang,class_institution,class_description,class_password,class_limit |
|
- | 52 | !defread wimshome/log/classes/$cl/.def |
|
- | 53 | !distribute char $class_level into l1,l2 |
|
- | 54 | !set part=!recordcnt wimshome/log/classes/$cl/.userlist |
|
- | 55 | $table_tr<td> |
|
- | 56 | !if $ctype=0 |
|
- | 57 | !href module=$module&cmd=reply&class=$cl $class_institution<br />$class_description |
|
- | 58 | !else |
|
- | 59 | !href module=$module&cmd=reply&class=$cl $class_description |
|
- | 60 | !endif |
|
- | 61 | </td><td> |
|
- | 62 | !mailurl $class_email $class_supervisor |
|
- | 63 | </td> |
|
- | 64 | !if $class_level=$empty |
|
- | 65 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
|
- | 66 | <td>$pname</td> |
|
- | 67 | !else |
|
- | 68 | <td>$(level$l1)<br />$name_year $l2</td> |
|
- | 69 | !endif |
|
40 | !if $ctype=0 |
70 | !if $ctype=0 |
- | 71 | <td>$(lang_$class_lang)</td> |
|
- | 72 | <td style="text-align:right"> |
|
- | 73 | !if $class_limit-$part>$site_dispo |
|
41 | |
74 | $site_dispo |
- | 75 | !else |
|
42 |
|
76 | $[$class_limit-$part] |
- | 77 | !endif |
|
- | 78 | </td> |
|
- | 79 | !endif |
|
- | 80 | !if $class_password=$empty |
|
43 |
|
81 | <td>$(name_statut[1])</td> |
44 | !else |
82 | !else |
45 | <caption>$institution_name</caption> |
- | |
46 | $table_hdtr |
- | |
47 | <th>$wims_name_name</th><th>$wims_name_Supervisor</th><th>$wims_name_level</th> |
- | |
48 | < |
83 | <td>$(name_statut[2])</td> |
49 | !endif |
84 | !endif |
50 | !for cl in $classlist |
- | |
51 | !reset class_supervisor,class_email,class_level,class_lang,class_institution,class_description,class_password,class_limit |
- | |
52 | !defread wimshome/log/classes/$cl/.def |
- | |
53 | !distribute char $class_level into l1,l2 |
- | |
54 | !set part=!recordcnt wimshome/log/classes/$cl/.userlist |
- | |
55 | $table_tr<td> |
- | |
56 | !if $ctype=0 |
- | |
57 | !href module=$module&cmd=reply&class=$cl $class_institution<br />$class_description |
- | |
58 | !else |
- | |
59 | !href module=$module&cmd=reply&class=$cl $class_description |
- | |
60 | !endif |
- | |
61 | </td><td> |
- | |
62 | !mailurl $class_email $class_supervisor |
- | |
63 | </td> |
- | |
64 | !if $class_level=$empty |
- | |
65 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
- | |
66 | <td>$pname</td> |
- | |
67 | !else |
- | |
68 | <td>$(level$l1)<br />$name_year $l2</td> |
- | |
69 | !endif |
- | |
70 | !if $ctype=0 |
- | |
71 | <td>$(lang_$class_lang)</td> |
- | |
72 | <td style="text-align:right"> |
- | |
73 | !if $class_limit-$part>$site_dispo |
- | |
74 | $site_dispo |
- | |
75 | !else |
- | |
76 | $[$class_limit-$part] |
- | |
77 | !endif |
- | |
78 | </td> |
- | |
79 | !endif |
- | |
80 | !if $class_password=$empty |
- | |
81 | <td>$(name_statut[1])</td> |
- | |
82 | !else |
- | |
83 | <td>$(name_statut[2])</td> |
- | |
84 | !endif |
- | |
85 |
|
85 | </tr> |
86 |
|
86 | !next cl |
87 | $table_end |
87 | $table_end |
88 | 88 | ||
89 | <span class="wims_warning">$wims_name_warning</span>. $name_remark1 |
89 | <span class="wims_warning">$wims_name_warning</span>. $name_remark1 |
90 | !goto end1 |
90 | !goto end1 |
91 | !endif class=empty |
91 | !endif class=empty |
Line 143... | Line 143... | ||
143 | !endif |
143 | !endif |
144 | !else |
144 | !else |
145 | $name_isprotected |
145 | $name_isprotected |
146 | !endif |
146 | !endif |
147 | <p>$name_writepasswd |
147 | <p>$name_writepasswd |
148 |
|
148 | !if $cltype iswordof 2 4 |
149 |
|
149 | $name_asateacher. |
150 |
|
150 | !else |
151 |
|
151 | $name_asaparticipant. |
152 |
|
152 | !endif |
153 | </p> |
153 | </p> |
154 | 154 | ||
155 | !form reply |
155 | !form reply |
156 | <input type="hidden" name="step" value="1" /> |
156 | <input type="hidden" name="step" value="1" /> |
157 | <fieldset class="property_fields halfwidth blockcenter"> |
157 | <fieldset class="property_fields halfwidth blockcenter"> |
Line 176... | Line 176... | ||
176 | !if $cltype iswordof 2 4 |
176 | !if $cltype iswordof 2 4 |
177 | !mailurl $smail $name_write_adm |
177 | !mailurl $smail $name_write_adm |
178 | !else |
178 | !else |
179 | !mailurl $smail $wims_name_wsup |
179 | !mailurl $smail $wims_name_wsup |
180 | !endif |
180 | !endif |
181 | ). |
181 | ). |
182 | !if $cltype iswordof 2 4 |
182 | !if $cltype iswordof 2 4 |
183 | <p> |
183 | <p> |
184 | <span class="wims_warning">$wims_name_warning</span>. |
184 | <span class="wims_warning">$wims_name_warning</span>. |
185 | $name_warning_direct |
185 | $name_warning_direct |
186 | !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass |
186 | !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass |
187 | . |
187 | . |
188 | </p> |
188 | </p> |
189 | !endif |
189 | !endif |
190 | !goto end1 |
190 | !goto end1 |
191 | !endif |
191 | !endif |
192 | 192 | ||
193 | !if $step=$empty or $step<2 |
193 | !if $step=$empty or $step<2 |
194 | !if $ssclass!=$empty and $wims_class!=$ssclass and $wims_user=supervisor |
194 | !if $ssclass!=$empty and $wims_class!=$ssclass and $wims_user=supervisor |
195 | !form reply |
195 | !form reply |
196 | <input type="hidden" name="step" value="1" /> |
196 | <input type="hidden" name="step" value="1" /> |
197 | <label for="search">$name_research:</label> |
197 | <label for="search">$name_research:</label> |
Line 200... | Line 200... | ||
200 | 200 | ||
201 | !formend |
201 | !formend |
202 | !default foundcnt=0 |
202 | !default foundcnt=0 |
203 | !if $foundcnt>0 |
203 | !if $foundcnt>0 |
204 | $table_header |
204 | $table_header |
205 |
|
205 | <caption>$name_clickname</caption> |
206 |
|
206 | $table_hdtr<th>$wims_name_name</th><th>$wims_name_Login</th></tr> |
207 |
|
207 | !for i=1 to $foundcnt |
208 |
|
208 | !set l=!line $i of $found |
209 |
|
209 | !distribute item $l into l_,f_,L_ |
210 |
|
210 | $table_tr<td> |
211 |
|
211 | !href cmd=reply&step=2&login=$L_ $l_, $f_ |
212 |
|
212 | </td> |
213 |
|
213 | <td>$L_</td> |
214 |
|
214 | </tr> |
215 |
|
215 | !next i |
216 | $table_end |
216 | $table_end |
217 | !goto end1 |
217 | !goto end1 |
218 | !endif |
218 | !endif |
219 | !if $search!=$empty and $foundcnt=0 |
219 | !if $search!=$empty and $foundcnt=0 |
220 | <p> ($name_nofound) </p> |
220 | <p> ($name_nofound) </p> |
221 | !endif |
221 | !endif |
222 | $name_newparticipant |
222 | $name_newparticipant |
223 | !else |
223 | !else |
224 | !if $idp_method notitemof $idp_method_list |
224 | !if $idp_method notitemof $idp_method_list |
225 | !if $wims_user=supervisor |
225 | !if $wims_user=supervisor |
226 | $name_inscription21 |
226 | $name_inscription21 |
227 | !else |
227 | !else |
228 | $name_inscription2 |
228 | $name_inscription2 |
229 | !endif |
229 | !endif |
230 | !endif |
230 | !endif |
231 | !endif |
231 | !endif |
232 | 232 | ||
233 | !form reply |
233 | !form reply |
234 | !! check user supervisor?? |
234 | !! check user supervisor?? |
235 | 235 | ||
236 |
|
236 | !if $idp_method isitemof $idp_method_list and $auth_user$user_auth!=$empty and $wims_user!=supervisor |
237 |
|
237 | <input type="hidden" name="step" value="3" /> |
238 |
|
238 | $name_inscription4: |
239 |
|
239 | <p> |
240 |
|
240 | !formcheckbox agreecgu list yes prompt $name_cgu |
241 |
|
241 | [ |
242 |
|
242 | !href target=wims_mhelp cmd=help $name_seecgu |
243 |
|
243 | ] |
244 |
|
244 | </p> |
245 |
|
245 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
246 |
|
246 | !goto end1 |
247 |
|
247 | !endif |
248 | !!FIXME $auth_user=$empty |
248 | !!FIXME $auth_user=$empty |
249 |
|
249 | !if $wims_user=supervisor and $auth_user=$empty |
250 | 250 | ||
251 |
|
251 | !! teacher registering a student with idp ldap |
252 |
|
252 | !if $idp_method isitemof ldap |
253 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
253 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
254 | 254 | ||
255 | !!!FIXME check the value of step |
255 | !!!FIXME check the value of step |
256 | <input type="hidden" name="step" value="3" /> |
256 | <input type="hidden" name="step" value="3" /> |
257 | <fieldset class="property_fields halfwidth blockcenter"> |
257 | <fieldset class="property_fields halfwidth blockcenter"> |
258 | <legend>$name_title</legend> |
258 | <legend>$name_title</legend> |
259 | <div class="field box"> |
259 | <div class="field box"> |
260 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
260 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
261 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" /> |
261 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" /> |
262 | </div> |
262 | </div> |
263 |
|
263 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
264 |
|
264 | !if $wims_user=supervisor and $class=$wims_class and $ct iswordof 2 4 |
265 | <div class="field box"> |
- | |
266 | <label for="utype">$name_accounttype</label> |
- | |
267 | !default utype=0 |
- | |
268 | !set wims_ref_class=wims_formradio |
- | |
269 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
- | |
270 | </div> |
- | |
271 | !endif |
- | |
272 | <div class="wimscenter wimsform"> |
- | |
273 | <input type="submit" value="$wims_name_tosave" /> |
- | |
274 | </div> |
- | |
275 | </fieldset> |
- | |
276 | - | ||
277 | !formend |
- | |
278 | !goto end1 |
- | |
279 | !endif |
- | |
280 | - | ||
281 | !! teacher registering a student with external auth without idp ldap |
- | |
282 | !if $auth_method isitemof $auth_method_list |
- | |
283 | <input type="hidden" name="step" value="3" /> |
- | |
284 | <fieldset class="property_fields halfwidth blockcenter"> |
- | |
285 | <legend>$name_title</legend> |
- | |
286 | <div class="field box halfwidth"> |
- | |
287 | <label for="lastn">$wims_name_lastname</label> |
- | |
288 | <input size="20" name="lastn" id="lastn" value="$lastn" /> |
- | |
289 | </div> |
- | |
290 | <div class="field box halfwidth"> |
- | |
291 | <label for="firstn">$wims_name_firstname</label> |
- | |
292 | <input size="20" name="firstn" id="firstn" value="$firstn" /> |
- | |
293 | </div> |
- | |
294 | <div class="field box"> |
- | |
295 | <label for="user_auth">$wims_name_Login </label> |
- | |
296 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" /> |
- | |
297 | <div class="formHelp">$name_external, |
- | |
298 | <span class="wims_warning">$name_login_external_warning</span> |
- | |
299 | </div> |
- | |
300 | </div> |
- | |
301 | <div class="field box"> |
265 | <div class="field box"> |
302 | <label for=" |
266 | <label for="utype">$name_accounttype</label> |
303 | <input type="email" size="60" name="email" id="email" value="$email" /> |
- | |
304 | <div class="formHelp">$name_optional</div> |
- | |
305 |
|
267 | !default utype=0 |
306 |
|
268 | !set wims_ref_class=wims_formradio |
307 |
|
269 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
308 | </div> |
270 | </div> |
- | 271 | !endif |
|
- | 272 | <div class="wimscenter wimsform"> |
|
- | 273 | <input type="submit" value="$wims_name_tosave" /> |
|
- | 274 | </div> |
|
- | 275 | </fieldset> |
|
- | 276 | ||
- | 277 | !formend |
|
- | 278 | !goto end1 |
|
- | 279 | !endif |
|
- | 280 | ||
- | 281 | !! teacher registering a student with external auth without idp ldap |
|
- | 282 | !if $auth_method isitemof $auth_method_list |
|
- | 283 | <input type="hidden" name="step" value="3" /> |
|
- | 284 | <fieldset class="property_fields halfwidth blockcenter"> |
|
- | 285 | <legend>$name_title</legend> |
|
- | 286 | <div class="field box halfwidth"> |
|
- | 287 | <label for="lastn">$wims_name_lastname</label> |
|
- | 288 | <input size="20" name="lastn" id="lastn" value="$lastn" /> |
|
- | 289 | </div> |
|
- | 290 | <div class="field box halfwidth"> |
|
- | 291 | <label for="firstn">$wims_name_firstname</label> |
|
- | 292 | <input size="20" name="firstn" id="firstn" value="$firstn" /> |
|
- | 293 | </div> |
|
- | 294 | <div class="field box"> |
|
- | 295 | <label for="user_auth">$wims_name_Login </label> |
|
- | 296 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" /> |
|
- | 297 | <div class="formHelp">$name_external, |
|
- | 298 | <span class="wims_warning">$name_login_external_warning</span> |
|
- | 299 | </div> |
|
- | 300 | </div> |
|
- | 301 | <div class="field box"> |
|
- | 302 | <label for="email">$wims_name_email</label> |
|
- | 303 | <input type="email" size="60" name="email" id="email" value="$email" /> |
|
- | 304 | <div class="formHelp">$name_optional</div> |
|
- | 305 | </div> |
|
- | 306 | <div class="wimscenter wimsform"> |
|
- | 307 | <input type="submit" value="$wims_name_tosave" /> |
|
- | 308 | </div> |
|
309 |
|
309 | </fieldset> |
310 | !formend |
310 | !formend |
311 | !goto end1 |
311 | !goto end1 |
312 |
|
312 | !endif |
313 | !endif step empty or step<2 |
313 | !endif step empty or step<2 |
314 | 314 | ||
315 | !if $auth_user=$empty or $auth_method notitemof $auth_method_list |
315 | !if $auth_user=$empty or $auth_method notitemof $auth_method_list |
316 | !!read adm/language lang/names.phtml |
316 | !!read adm/language lang/names.phtml |
317 | <input type="hidden" name="step" value="2" /> |
317 | <input type="hidden" name="step" value="2" /> |
Line 326... | Line 326... | ||
326 | </div> |
326 | </div> |
327 | <div class="field box halfwidth"> |
327 | <div class="field box halfwidth"> |
328 | <label for="firstn">$wims_name_firstname</label> |
328 | <label for="firstn">$wims_name_firstname</label> |
329 | <input size="20" name="firstn" id="firstn" value="$firstn" required="required" /> |
329 | <input size="20" name="firstn" id="firstn" value="$firstn" required="required" /> |
330 | </div> |
330 | </div> |
331 |
|
331 | !if $wims_user=supervisor |
332 |
|
332 | !reset login |
333 |
|
333 | !endif |
334 |
|
334 | !if ($auth_user=$empty or $auth_method notitemof $auth_method_list) or $wims_user=supervisor |
335 | <div class="field box"> |
335 | <div class="field box"> |
336 | <label for="login">$wims_name_Login</label> |
336 | <label for="login">$wims_name_Login</label> |
337 | <input size="16" name="login" id="login" value="$login" required="required" pattern="$login_pattern" /> |
337 | <input size="16" name="login" id="login" value="$login" required="required" pattern="$login_pattern" /> |
338 | <div class="formHelp"> |
338 | <div class="formHelp"> |
339 |
|
339 | !if $auth_method notitemof $auth_method_list or $wims_user!=supervisor |
340 |
|
340 | $name_warning_login |
341 |
|
341 | !endif |
342 |
|
342 | $name_warning_login2 |
343 |
|
343 | </div> |
344 |
|
344 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
345 |
|
345 | !reset login_ext |
346 |
|
346 | <label for="login_ext">$wims_name_Login</label> |
347 |
|
347 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" /> |
348 |
|
348 | <div class="formHelp">$name_external |
349 |
|
349 | <span class="wims_warning">$name_login_external_warning</span> |
350 |
|
350 | </div> |
351 |
|
351 | !endif |
352 |
|
352 | </div> |
353 |
|
353 | !if $auth_method notitemof $auth_method_list |
354 | <div class="field box"> |
- | |
355 | <label for="pass">$wims_name_Password</label> |
- | |
356 | <input type="password" size="16" name="pass" id="pass" required="required" pattern="$password_pattern"/> |
- | |
357 | <div class="formHelp">$name_passwd_warning</div> |
- | |
358 | </div> |
- | |
359 | !endif |
- | |
360 | !else |
- | |
361 | <div class="field box"> |
354 | <div class="field box"> |
362 | <label for=" |
355 | <label for="pass">$wims_name_Password</label> |
363 | <input |
356 | <input type="password" size="16" name="pass" id="pass" required="required" pattern="$password_pattern"/> |
364 | <div class="formHelp"> |
357 | <div class="formHelp">$name_passwd_warning</div> |
365 | </div> |
- | |
366 | <div class="field box"> |
- | |
367 | <label for="login_ext">$wims_name_Login</label> |
- | |
368 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" readonly="readonly" /> |
- | |
369 | <div class="formHelp">$name_external, <span class="wims_warning"></span></div> |
- | |
370 | </div> |
358 | </div> |
371 | !endif |
359 | !endif |
- | 360 | !else |
|
- | 361 | <div class="field box"> |
|
- | 362 | <label for="login">$wims_name_Login</label> |
|
- | 363 | <input size="16" name="login" id="login" value="$login" readonly="readonly" /> |
|
- | 364 | <div class="formHelp">$name_internal</div> |
|
- | 365 | </div> |
|
- | 366 | <div class="field box"> |
|
- | 367 | <label for="login_ext">$wims_name_Login</label> |
|
- | 368 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" readonly="readonly" /> |
|
- | 369 | <div class="formHelp">$name_external, <span class="wims_warning"></span></div> |
|
- | 370 | </div> |
|
- | 371 | !endif |
|
- | 372 | <div class="field box"> |
|
- | 373 | <label for="email">$wims_name_email</label> |
|
- | 374 | <input type="email" size="60" name="email" id="email" value="$email" /> |
|
- | 375 | <div class="formHelp">$name_optional</div> |
|
- | 376 | </div> |
|
- | 377 | !if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4 |
|
- | 378 | <div class="field box"> |
|
- | 379 | <label for="utype">$name_accounttype</label> |
|
- | 380 | !default utype=0 |
|
- | 381 | !set wims_ref_class=wims_formradio |
|
- | 382 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
|
- | 383 | </div> |
|
- | 384 | !endif |
|
- | 385 | !if $regvars_cnt>0 |
|
- | 386 | !read regvars.phtml |
|
- | 387 | !endif |
|
- | 388 | !if $wims_user!=supervisor |
|
372 | <div class="field box"> |
389 | <div class="field box"> |
373 |
|
390 | !set wims_ref_class=wims_formradio |
374 |
|
391 | !formcheckbox agreecgu list yes prompt $name_cgu |
- | 392 | [ |
|
375 |
|
393 | !href target=wims_mhelp cmd=help $name_seecgu |
- | 394 | ] |
|
376 | </div> |
395 | </div> |
377 | !if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4 |
- | |
378 | <div class="field box"> |
- | |
379 | <label for="utype">$name_accounttype</label> |
- | |
380 | !default utype=0 |
- | |
381 | !set wims_ref_class=wims_formradio |
- | |
382 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
- | |
383 | </div> |
- | |
384 |
|
396 | !endif |
385 | !if $regvars_cnt>0 |
- | |
386 | !read regvars.phtml |
- | |
387 | !endif |
- | |
388 | !if $wims_user!=supervisor |
- | |
389 | <div class="field box"> |
- | |
390 | !set wims_ref_class=wims_formradio |
- | |
391 | !formcheckbox agreecgu list yes prompt $name_cgu |
- | |
392 | [ |
- | |
393 | !href target=wims_mhelp cmd=help $name_seecgu |
- | |
394 | ] |
- | |
395 | </div> |
- | |
396 | !endif |
- | |
397 |
|
397 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
398 | </fieldset> |
398 | </fieldset> |
399 | !formend |
399 | !formend |
400 | !goto end1 |
400 | !goto end1 |
401 | !endif |
401 | !endif |
402 | 402 | ||
403 | !if $step=2 |
403 | !if $step=2 |
404 | !if $wims_user!=supervisor |
404 | !if $wims_user!=supervisor |
405 | $name_hello, $name_student!<p> |
405 | $name_hello, $name_student!<p> |
406 | $name_inscription3 |
406 | $name_inscription3 |
407 | !else |
407 | !else |
408 | $name_inscription31 |
408 | $name_inscription31 |
409 | !endif |
409 | !endif |
410 | <span class="tt wims_login">$login</span>. </p> |
410 | <span class="tt wims_login">$login</span>. </p> |
411 | !if $email=$empty |
411 | !if $email=$empty |
412 | <p> $name_emptyemail </p> |
412 | <p> $name_emptyemail </p> |
Line 419... | Line 419... | ||
419 | <fieldset class="property_fields halfwidth blockcenter"> |
419 | <fieldset class="property_fields halfwidth blockcenter"> |
420 | <legend>$name_title</legend> |
420 | <legend>$name_title</legend> |
421 | <div class="field box"> |
421 | <div class="field box"> |
422 | <label for="pass2">$name_passwd_exact</label> |
422 | <label for="pass2">$name_passwd_exact</label> |
423 | <input type="password" size="16" name="pass2" id="pass2" required="required" /> |
423 | <input type="password" size="16" name="pass2" id="pass2" required="required" /> |
424 | </div> |
424 | </div> |
425 | <div class="wimscenter wimsform"> |
425 | <div class="wimscenter wimsform"> |
426 | <input type="submit" value="$wims_name_send" /> |
426 | <input type="submit" value="$wims_name_send" /> |
427 | </div> |
427 | </div> |
428 | </fieldset> |
428 | </fieldset> |
429 | !formend |
429 | !formend |
Line 438... | Line 438... | ||
438 | !if $wims_user=supervisor |
438 | !if $wims_user=supervisor |
439 | !set login_wims=!defof user_external_auth in $userdef |
439 | !set login_wims=!defof user_external_auth in $userdef |
440 | !default login_wims=$Login |
440 | !default login_wims=$Login |
441 | $name_studentadded |
441 | $name_studentadded |
442 | <span class="tt wims_login"> |
442 | <span class="tt wims_login"> |
443 |
|
443 | !href module=adm/class/usermanage&job=userprop&getuser=$Login $login_wims |
444 | </span>. |
444 | </span>. |
445 | !if $wims_supertype iswordof 2 4 |
445 | !if $wims_supertype iswordof 2 4 |
446 | !readproc adm/gateway/transfer $login test |
446 | !readproc adm/gateway/transfer $login test |
447 | !if $transfer_test>0 |
447 | !if $transfer_test>0 |
448 | <p> |
448 | <p> |
449 | $name_otheractivities |
449 | $name_otheractivities |
450 | !href module=adm/class/usermanage&job=transfer&getuser=$login $name_transfer1 |
450 | !href module=adm/class/usermanage&job=transfer&getuser=$login $name_transfer1 |
451 | </p> |
451 | </p> |
- | 452 | !endif |
|
452 | !endif |
453 | !endif |
453 | !endif |
- | |
454 | !set wims_menu_items=!append line usermanage,1,module=adm/class/usermanage\ |
454 | !set wims_menu_items=!append line usermanage,1,module=adm/class/usermanage\ |
455 | addstudent,1,module=$module&step=1\ |
455 | addstudent,1,module=$module&step=1\ |
456 | to wims_menu_items |
456 | to wims_menu_items |
457 | !goto end |
457 | !goto end |
458 | !endif |
458 | !endif |
459 | 459 | ||
460 | <p>$name_hello, $name_student!</p> |
460 | <p>$name_hello, $name_student!</p> |
461 | <p>$name_welcome |
461 | <p>$name_welcome |
462 | <span class="tt wims_login">$login</span>.</p> |
462 | <span class="tt wims_login">$login</span>.</p> |
463 | $name_youcan |
463 | $name_youcan |
464 | !read adm/class/initclass $class,auth |
464 | !read adm/class/initclass $class,auth |
465 | 465 | ||
466 | 466 | ||
467 | !if $wims_class!=$empty |
467 | !if $wims_class!=$empty |
468 | !if $auth_method iswordof cas |
468 | !if $auth_method iswordof cas |
469 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
469 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
470 | !read adm/codeurl $url |
470 | !read adm/codeurl $url |
471 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |
471 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |
472 | <a class="wims_button" href="$class_cas_auth/login?service=$script_out">$wims_name_Enter</a> |
472 | <a class="wims_button" href="$class_cas_auth/login?service=$script_out">$wims_name_Enter</a> |
473 | !else |
- | |
474 | !if $auth_method iswordof ldap php |
- | |
475 | !set tmp=!getdef user_external_auth in wimshome/log/classes/$ssclass/.users/$login |
- | |
476 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$tmp $name_gotowork |
- | |
477 | !else |
473 | !else |
- | 474 | !if $auth_method iswordof ldap php |
|
- | 475 | !set tmp=!getdef user_external_auth in wimshome/log/classes/$ssclass/.users/$login |
|
- | 476 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$tmp $name_gotowork |
|
- | 477 | !else |
|
478 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork |
478 | !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork |
- | 479 | !endif |
|
479 | !endif |
480 | !endif |
480 | !endif |
- | |
481 | !!FIXME what about php here |
481 | !!FIXME what about php here |
482 | !! Pourquoi est-ce different : dans le second cas ouvre une autre session, demande de nouveau le mot de passe ??? |
482 | !! Pourquoi est-ce different : dans le second cas ouvre une autre session, demande de nouveau le mot de passe ??? |
483 | !else |
483 | !else |
484 | !if $auth_method isitemof cas |
484 | !if $auth_method isitemof cas |
485 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
485 | !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class |
486 | !read adm/codeurl $url |
486 | !read adm/codeurl $url |
487 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |
487 | !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def |