Subversion Repositories wimsdev

Rev

Rev 11944 | Rev 16615 | 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}"
11944 bpr 17
!if $wims_user=supervisor
18
  !set wims_menu_items=!append line SE_config,1,module=adm/class/config to $wims_menu_items
19
!endif
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
15500 obado 76
    !if $job=user or $job=none
77
      <legend>$wims_name_Password</legend>
78
    !endif
11519 obado 79
    <input type="hidden" name="job" value="user" />
80
  !endif
81
 
82
  !if $job=user or $job=none
7462 bpr 83
    <div class="field box">
11519 obado 84
      <label for="old">$name_actualpasswd</label>
85
      <input type="password" size="16" name="old" id="old"
86
      !if $job=user
87
        required="required" $password_pattern
4828 guerimand 88
      !endif
11519 obado 89
      />
90
      !if $job=none and $wims_user=supervisor
91
        <div class="formHelp">$name_actualpasswd_hlp.</div>
92
      !endif
93
    </div>
94
  !endif
95
 
7451 bpr 96
  <div class="field box">
11519 obado 97
    <label for="pw1">$name_newpasswd</label>
98
    <input type="password" size="16" name="pw1" id="pw1"
99
    !if $job=user
100
      required="required" $password_pattern
101
    !endif
102
    />
103
    <div class="formHelp">
104
      $name_alphanumer
105
      !if $job isitemof none,class and $wims_user=supervisor
106
        <br/>($name_emptypasswd).
107
      !endif
108
    </div>
7451 bpr 109
  </div>
11519 obado 110
  <div class="field box">
111
    <label for="pw2">$name_newpasswd2</label>
112
    <input type="password" size="16" name="pw2" id="pw2"
113
    !if $job=user
114
      required="required" $password_pattern
115
    !endif
116
    />
117
  </div>
118
  <div class="wimscenter wimsform">
6235 bpr 119
    <input type="submit" value="$wims_name_tosave" />
10442 bpr 120
    !set wims_ref_class=wims_button wims_secondary_button
9499 bpr 121
    !href module=home $wims_name_giveup
11519 obado 122
  </div>
123
</fieldset>
5953 bpr 124
 
11519 obado 125
!if $job notwordof class
126
  <p class="small wimscenter">
127
    $name_jetable
128
    !set wims_ref_class=wims_button_help
129
    !href target=wims_mhelp cmd=help $wims_name_help
130
  </p>
131
!endif
5926 bpr 132
 
133
!formend
11519 obado 134
 
23 reyssat 135
:end
136
!tail
137
 
138
!distribute item $ into job,pw1,pw2,old