<p><b><?php print_string("allfieldsrequired") ?></b></p>
<?php
   if (empty($frm->username)) {
       $frm->username = "";
   }
   if (empty($frm->password)) {
       $frm->password = "";
   }
   if (empty($frm->newpassword1)) {
       $frm->newpassword1 = "";
   }
   if (empty($frm->newpassword2)) {
       $frm->newpassword2 = "";
   }
?>
<form action="change_password.php" method="post" name="form" id="form">
<table cellpadding="10">
<tr valign="top">
    <td><p><?php print_string("username") ?>:</p></td>
    <td><input type="text" name="username" size="25" value="<?php p($frm->username) ?>" />
    <?php if (!empty($err->username)) { formerr($err->username); } ?>
    </td>
</tr>
<tr valign="top">
    <td><p><?php print_string("password") ?>:</p></td>
    <td><input type="password" name="password" size="25" value="<?php p($frm->password) ?>" />
    <?php if (!empty($err->password)) { formerr($err->password); } ?>
    </td>
</tr>
<tr valign="top">
    <td><p><?php print_string("newpassword") ?>:</p></td>
    <td><input type="password" name="newpassword1" size="25" value="<?php p($frm->newpassword1) ?>" />
    <?php if (!empty($err->newpassword1)) { formerr($err->newpassword1); } ?>
    </td>
</tr>
<tr valign="top">
    <td><p><?php print_string("newpassword") ?> (<?php print_string("again") ?>):</p></td>
    <td><input type="password" name="newpassword2" size="25" value="<?php p($frm->newpassword2) ?>" />
    <?php if (!empty($err->newpassword2)) { formerr($err->newpassword2); } ?>
    </td>
</tr>
<tr>
    <td></td>
    <td><input type="hidden" name="id" value="<?php p($frm->id)?>" />
    <input type="submit" value="<?php print_string("changepassword") ?>" /></td>
    </tr>
  </table>
</form>
