home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / configuration / account / security.inc < prev    next >
Encoding:
Text File  |  2004-03-08  |  1.9 KB  |  75 lines

  1. <table border="0" class="normal" cellpadding="2" cellspacing="0">
  2. <tr>
  3.         <td colspan="2">
  4.         <br><?php if (isset($feedback)) echo $feedback; ?>
  5.         <?php echo $security_text; ?><br><br>
  6.         </td>
  7. </tr>
  8. <?php
  9. if (isset($val->error["currentpassword"]))
  10. {
  11. ?>
  12. <tr>
  13.         <td class="Error" colspan="2">
  14.           <?php echo $val->error["currentpassword"]; ?>
  15.         </td>
  16. </tr>
  17. <?php } ?>
  18. <tr>
  19.     <td align="right" nowrap><?php echo $security_current_password; ?>: </td>
  20.     <td ><input size="40" class="textbox" type="password" name="currentpassword" maxlength="20"></td>
  21. </tr>
  22. <tr>
  23.         <td> </td>
  24. </tr>
  25. <?php
  26. if (isset($val->error["newpass1"]))
  27. {
  28. ?>
  29. <tr>
  30.         <td class="Error" colspan="2">
  31.                 <?php echo $val->error["newpass1"]; ?>
  32.         </td>
  33. </tr>
  34. <?php } ?>
  35. <tr>
  36.     <td align="right" nowrap><?php echo $security_new_password; ?>: </td>
  37.     <td ><input size="40" class="textbox" type="password" name="newpass1" maxlength="20"></td>
  38. </tr>
  39. <?php
  40. if (isset($val->error["newpass2"]))
  41. {
  42. ?>
  43. <tr>
  44.         <td class="Error" colspan="2">
  45.                 <?php echo $val->error["newpass2"]; ?>
  46.         </td>
  47. </tr>
  48. <?php } ?>
  49. <tr>
  50.     <td align="right" nowrap><?php echo $security_confirm_password; ?>: </td>
  51.     <td ><input size="40" class="textbox" type="password" name="newpass2" maxlength="20"></td>
  52. </tr>
  53. <tr>
  54.         <td> </td>
  55. </tr>
  56. <tr height="25">
  57.     <td colspan="99"><?php
  58.     $button = new button($cmdOk, "javascript:_save('change_password', 'true')");
  59.     echo '  ';
  60.     $button = new button($cmdApply, "javascript:_save('change_password', 'false')");
  61.     echo '  ';
  62.     $button = new button($cmdClose, "javascript:document.location='".$return_to ."'");
  63.     ?></td>
  64. </tr>
  65. </table>
  66. <script type="text/javascript">
  67. function _save(task, close)
  68. {
  69.     document.forms[0].task.value = task;
  70.     document.forms[0].close.value = close;
  71.     document.forms[0].submit();
  72. }
  73. </script>
  74.  
  75.