Subversion Repositories wimsdev

Rev

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