useradd.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!--
  2. ##############################################################################
  3. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. ##############################################################################
  17. -->
  18. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="en" lang="en">
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  21. <title>Add User</title>
  22. <script language="JavaScript1.2">
  23. function checkfields(f)
  24. {
  25. if(f.username.value != '' && f.password1.value != '' && f.password2.value != '')
  26. {
  27. f.S1.disabled=false;
  28. }
  29. else
  30. {
  31. f.S1.disabled=true;
  32. }
  33. }
  34. </script>
  35. </head>
  36. <body><form xmlns="" method="POST" action="/ws_access/AddUser"/>
  37. <table xmlns="" name="table1">
  38. <tr>
  39. <th colspan="2">
  40. <h3>Add User</h3>
  41. </th>
  42. </tr>
  43. <tr><td><b>User ID: </b></td><td><input type="text" name="username" size="20" onKeyPress="checkfields(this.form)"/></td></tr>
  44. <tr><td><b>First Name: </b></td><td><input type="text" name="firstname" size="20" value="" onKeyPress="checkfields(this.form)" onChange="checkfields(this.form)"/></td></tr>
  45. <tr><td><b>Last Name: </b></td><td><input type="text" name="lastname" size="20" value="" onKeyPress="checkfields(this.form)"/></td></tr>
  46. <tr><td><b>Password: </b></td><td><input type="password" name="password1" size="20" value="" onKeyPress="checkfields(this.form)" onChange="checkfields(this.form)"/></td></tr>
  47. <tr><td><b>Retype password: </b></td><td><input type="password" name="password2" size="20" value="" onKeyPress="checkfields(this.form)" onChange="checkfields(this.form)"/></td></tr>
  48. <tr><td></td><td><input type="submit" value="Submit" disabled="form.username.value=''" name="S1" /> &nbsp; <input type="reset" value="Clear" onClick="S1.disabled='true'"/> </td>
  49. </TABLE>
  50. </form>
  51. </body>
  52. </html>