3 // only display this help message if we are being forced to change
5 notify( get_string('forcepasswordchangenotice') );
8 <p><b><?php print_string("allfieldsrequired") ?></b></p>
10 if (empty($frm->username
)) {
13 if (empty($frm->password
)) {
16 if (empty($frm->newpassword1
)) {
17 $frm->newpassword1
= "";
19 if (empty($frm->newpassword2
)) {
20 $frm->newpassword2
= "";
23 <form action=
"change_password.php" method=
"post" name=
"form" id=
"form">
24 <table cellpadding=
"10">
27 <td><?php print_string("username") ?>:
</td>
29 <?php if (isadmin()) { ?>
30 <input type=
"text" name=
"username" size=
"25" value=
"<?php p($frm->username) ?>" alt
="<?php print_string("username
") ?>" />
32 <input type=
"hidden" name=
"username" value=
"<?php p($frm->username)?>" /> <?php
p($frm->username
)?>
34 <?php if (!empty($err->username
)) { formerr($err->username
); } ?>
38 <?php if (!isadmin()) { ?>
40 <td><?php print_string("oldpassword") ?>:
</td>
41 <td><input type=
"password" name=
"password" size=
"25" value=
"<?php p($frm->password) ?>" alt
="<?php print_string("password
") ?>" />
42 <?php
if (!empty($err->password
)) { formerr($err->password
); } ?>
48 <td><?php print_string("newpassword") ?>:
</td>
49 <td><input type=
"password" name=
"newpassword1" size=
"25" value=
"<?php p($frm->newpassword1) ?>" alt
="<?php print_string("newpassword
") ?>" />
50 <?php
if (!empty($err->newpassword1
)) { formerr($err->newpassword1
); } ?>
54 <td><?php print_string("newpassword") ?> (
<?php print_string(
"again")
?>):
</td>
55 <td><input type=
"password" name=
"newpassword2" size=
"25" value=
"<?php p($frm->newpassword2) ?>" alt
="<?php print_string("newpassword
") ?> (<?php print_string("again
") ?>)" />
56 <?php
if (!empty($err->newpassword2
)) { formerr($err->newpassword2
); } ?>
61 <td><input type=
"hidden" name=
"id" value=
"<?php p($frm->id)?>" />
62 <input type
="submit" value
="<?php print_string("changepassword
") ?>" /></td
>