Subversion Repositories wimsdev

Rev

Rev 15500 | Rev 16690 | 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
 
16615 guerimand 46
!if $cmd=new and $job=user and $wims_user!=supervisor
47
  !readproc adm/class/userdef classes,$wims_class,$wims_user
48
  !defread $userdef
49
  !if $user_forcechpwd=yes
50
    <div class="wims_msg alert">
51
     $name_desc_forcechpwd
52
    </div>
53
  !endif
54
!endif
55
 
11519 obado 56
<fieldset class="property_fields halfwidth blockcenter">
57
  !if $wims_user=supervisor
58
    !default job=user
59
    !if $job=none
60
      !set ch_$job=checked
61
      <legend>$wims_name_Password</legend>
62
      <div class="field box">
63
        $name_passwdtype
64
        <div>
65
          <input type="radio" name="job" $ch_user value="user" id="job1" />
66
          <label for="job1">$name_userpasswd</label>
67
          <div class="formHelp">$name_userpasswd_hlp</div>
68
        </div>
69
        <div>
70
          <input type="radio" name="job" $ch_class value="class" id="job2" />
71
          <label for="job2">$name_classpasswd</label>
72
          <div class="formHelp">$name_classpasswd_hlp</div>
73
        </div>
74
      </div>
75
    !else
76
      <legend>
77
        $(name_$(job)passwd)
78
        !if $job=part
79
          <span class="tt">$part</span>
80
        !endif
81
      </legend>
82
      <p class="formHelp">$(name_$(job)passwd_hlp)</p>
83
      <input type="hidden" name="job" value="$job" />
84
    !endif
85
  !else
15500 obado 86
    !if $job=user or $job=none
87
      <legend>$wims_name_Password</legend>
88
    !endif
11519 obado 89
    <input type="hidden" name="job" value="user" />
90
  !endif
91
 
92
  !if $job=user or $job=none
7462 bpr 93
    <div class="field box">
11519 obado 94
      <label for="old">$name_actualpasswd</label>
95
      <input type="password" size="16" name="old" id="old"
96
      !if $job=user
97
        required="required" $password_pattern
4828 guerimand 98
      !endif
11519 obado 99
      />
100
      !if $job=none and $wims_user=supervisor
101
        <div class="formHelp">$name_actualpasswd_hlp.</div>
102
      !endif
103
    </div>
104
  !endif
105
 
7451 bpr 106
  <div class="field box">
11519 obado 107
    <label for="pw1">$name_newpasswd</label>
108
    <input type="password" size="16" name="pw1" id="pw1"
109
    !if $job=user
110
      required="required" $password_pattern
111
    !endif
112
    />
113
    <div class="formHelp">
114
      $name_alphanumer
115
      !if $job isitemof none,class and $wims_user=supervisor
116
        <br/>($name_emptypasswd).
117
      !endif
118
    </div>
7451 bpr 119
  </div>
11519 obado 120
  <div class="field box">
121
    <label for="pw2">$name_newpasswd2</label>
122
    <input type="password" size="16" name="pw2" id="pw2"
123
    !if $job=user
124
      required="required" $password_pattern
125
    !endif
126
    />
127
  </div>
128
  <div class="wimscenter wimsform">
6235 bpr 129
    <input type="submit" value="$wims_name_tosave" />
10442 bpr 130
    !set wims_ref_class=wims_button wims_secondary_button
9499 bpr 131
    !href module=home $wims_name_giveup
11519 obado 132
  </div>
133
</fieldset>
5953 bpr 134
 
11519 obado 135
!if $job notwordof class
136
  <p class="small wimscenter">
137
    $name_jetable
138
    !set wims_ref_class=wims_button_help
139
    !href target=wims_mhelp cmd=help $wims_name_help
140
  </p>
141
!endif
5926 bpr 142
 
143
!formend
11519 obado 144
 
23 reyssat 145
:end
146
!tail
147
 
148
!distribute item $ into job,pw1,pw2,old