Rev 11674 | Rev 11944 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8892 | czzmrn | 1 | !if $(module_title_$moduclass_lang)!=$empty |
2 | !set module_title=$(module_title_$moduclass_lang) |
||
3 | !endif |
||
2191 | bpr | 4 | !read adm/class/class.lang names.phtml |
5 | |||
1170 | bpr | 6 | !read adm/css.phtml |
1051 | bpr | 7 | !header1 |
8 | |||
4039 | bpr | 9 | !read adm/class/classname.phtml $wims_classname\ |
4024 | bpr | 10 | $wims_institutionname |
23 | reyssat | 11 | |
1343 | bpr | 12 | !read adm/title.phtml 1\ |
4024 | bpr | 13 | $classname\ |
2134 | bpr | 14 | $module_title |
23 | reyssat | 15 | |
11519 | obado | 16 | !set password_pattern=pattern="[a-zA-Z0-9]{4,16}" |
17 | |||
10630 | bpr | 18 | !set wims_menu_items=!append line SE_config,1,module=adm/class/config to $wims_menu_items |
19 | |||
23 | reyssat | 20 | !if $error!=$empty |
11519 | obado | 21 | <div class="wims_msg |
22 | !if success iswordof $error |
||
23 | success |
||
24 | !else |
||
25 | alert |
||
26 | !endif |
||
27 | "> |
||
28 | !read lang/msg.phtml.$moduclass_lang |
||
29 | </div> |
||
30 | !set wims_ref_class=wims_button |
||
31 | <p class="wimscenter"> |
||
32 | !href module=home $wims_name_back2 |
||
33 | </p> |
||
34 | !goto end |
||
23 | reyssat | 35 | !endif |
36 | |||
37 | !form reply |
||
38 | |||
11675 | lemaire | 39 | !if $class_type=4 or $class_type=2 or ($class_type=3 and $class_typename!=class) or /0// isin $wims_class// |
40 | !! in a group or portal or program or level or test zone$ |
||
11519 | obado | 41 | !! for groups and portal, the class password is used for teachers registration |
42 | !set name_classpasswd = $name_classpasswdt |
||
43 | !set name_classpasswd_hlp = $name_classpasswdt_hlp |
||
44 | !endif |
||
45 | |||
46 | <fieldset class="property_fields halfwidth blockcenter"> |
||
47 | !if $wims_user=supervisor |
||
48 | !default job=user |
||
49 | !if $job=none |
||
50 | !set ch_$job=checked |
||
51 | <legend>$wims_name_Password</legend> |
||
52 | <div class="field box"> |
||
53 | $name_passwdtype |
||
54 | <div> |
||
55 | <input type="radio" name="job" $ch_user value="user" id="job1" /> |
||
56 | <label for="job1">$name_userpasswd</label> |
||
57 | <div class="formHelp">$name_userpasswd_hlp</div> |
||
58 | </div> |
||
59 | <div> |
||
60 | <input type="radio" name="job" $ch_class value="class" id="job2" /> |
||
61 | <label for="job2">$name_classpasswd</label> |
||
62 | <div class="formHelp">$name_classpasswd_hlp</div> |
||
63 | </div> |
||
64 | </div> |
||
65 | !else |
||
66 | <legend> |
||
67 | $(name_$(job)passwd) |
||
68 | !if $job=part |
||
69 | <span class="tt">$part</span> |
||
70 | !endif |
||
71 | </legend> |
||
72 | <p class="formHelp">$(name_$(job)passwd_hlp)</p> |
||
73 | <input type="hidden" name="job" value="$job" /> |
||
74 | !endif |
||
75 | !else |
||
76 | <input type="hidden" name="job" value="user" /> |
||
77 | !endif |
||
78 | |||
79 | !if $job=user or $job=none |
||
7462 | bpr | 80 | <div class="field box"> |
11519 | obado | 81 | <label for="old">$name_actualpasswd</label> |
82 | <input type="password" size="16" name="old" id="old" |
||
83 | !if $job=user |
||
84 | required="required" $password_pattern |
||
4828 | guerimand | 85 | !endif |
11519 | obado | 86 | /> |
87 | !if $job=none and $wims_user=supervisor |
||
88 | <div class="formHelp">$name_actualpasswd_hlp.</div> |
||
89 | !endif |
||
90 | </div> |
||
91 | !endif |
||
92 | |||
7451 | bpr | 93 | <div class="field box"> |
11519 | obado | 94 | <label for="pw1">$name_newpasswd</label> |
95 | <input type="password" size="16" name="pw1" id="pw1" |
||
96 | !if $job=user |
||
97 | required="required" $password_pattern |
||
98 | !endif |
||
99 | /> |
||
100 | <div class="formHelp"> |
||
101 | $name_alphanumer |
||
102 | !if $job isitemof none,class and $wims_user=supervisor |
||
103 | <br/>($name_emptypasswd). |
||
104 | !endif |
||
105 | </div> |
||
7451 | bpr | 106 | </div> |
11519 | obado | 107 | <div class="field box"> |
108 | <label for="pw2">$name_newpasswd2</label> |
||
109 | <input type="password" size="16" name="pw2" id="pw2" |
||
110 | !if $job=user |
||
111 | required="required" $password_pattern |
||
112 | !endif |
||
113 | /> |
||
114 | </div> |
||
115 | <div class="wimscenter wimsform"> |
||
6235 | bpr | 116 | <input type="submit" value="$wims_name_tosave" /> |
10442 | bpr | 117 | !set wims_ref_class=wims_button wims_secondary_button |
9499 | bpr | 118 | !href module=home $wims_name_giveup |
11519 | obado | 119 | </div> |
120 | </fieldset> |
||
5953 | bpr | 121 | |
11519 | obado | 122 | !if $job notwordof class |
123 | <p class="small wimscenter"> |
||
124 | $name_jetable |
||
125 | !set wims_ref_class=wims_button_help |
||
126 | !href target=wims_mhelp cmd=help $wims_name_help |
||
127 | </p> |
||
128 | !endif |
||
5926 | bpr | 129 | |
130 | !formend |
||
11519 | obado | 131 | |
23 | reyssat | 132 | :end |
133 | !tail |
||
134 | |||
135 | !distribute item $ into job,pw1,pw2,old |