home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 February / PCWorld_2001-02_cd.bin / Software / Topware / Sambar / _setup.1 / newgroup.stm < prev    next >
Text File  |  2000-12-19  |  2KB  |  59 lines

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  4. </HEAD>
  5. <BODY bgcolor=#ffffff>
  6. <CENTER><FONT SIZE=6>Create a New User Group</FONT></CENTER>
  7. <BR>
  8.  
  9. <SCRIPT language="JavaScript">
  10. <!--
  11.  
  12. var inValid = ":|/ ";
  13. function Form_Validator(theForm)
  14. {
  15.     if (theForm.groupname.value == "")
  16.     {
  17.         alert("Please enter a value for the \"Group Name\" field.");
  18.         theForm.groupname.focus();
  19.         return (false);
  20.     }
  21.  
  22.     for (j = 0; j < theForm.username.value.length; j++)
  23.     {
  24.         if (inValid.indexOf(theForm.groupname.value.charAt(j)) != -1)
  25.         {
  26.             alert("The \"groupname\" contains invalid characters (:| ).");
  27.             theForm.groupname.focus();
  28.             return (false);
  29.         }
  30.     }
  31. }
  32. //-->
  33. </SCRIPT>
  34. <BR>
  35. <FORM METHOD="POST" ACTION="/session/addgroup" onsubmit="return Form_Validator(this)">
  36. <INPUT TYPE="hidden" NAME="RCpage" VALUE="/sysadmin/usermgmt/newgroup.stm">
  37.  
  38. <TABLE border=0 cellpadding=5 cellspacing=2 width=550>
  39. <TR valign=top>
  40. <TD align=right><B>Group Name</B></TD>
  41. <TD><INPUT TYPE="text" NAME="groupname" VALUE="" SIZE=40 MAXLENGTH=40></TD>
  42. </TR>
  43. <TR>
  44. <TD></TD><TD><INPUT TYPE="submit" VALUE="Create New User Group"></TD>
  45. </TR>
  46. </TABLE>
  47. </FORM>
  48. </CENTER>
  49. <P>
  50. <HR>
  51. <P>
  52. Note: Once created, groups cannot be deleted through the user interface.
  53. To delete one or more unused groups, simply delete the <I>config/groups</I>
  54. file and it will be recreated the next time the server is started with
  55. only those groups found in the <I>config/passwd</I> file.
  56. <P>
  57. </BODY>
  58. </HTML>
  59.