home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 October / PCWorld_2000-10_cd1.bin / Komunik / sambar / _setup.1 / create.stm < prev    next >
Text File  |  2000-08-01  |  2KB  |  68 lines

  1. <HTML>
  2. <HEAD><TITLE>Sambar Server Document Manager</TITLE>
  3. <SCRIPT language="JavaScript">
  4. <!--
  5.  
  6. var strValid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_";
  7.  
  8. function Form_Validator(theForm)
  9. {
  10.     var alertstr = "Please correct the following\n";
  11.  
  12.     if (theForm.name.value == "")
  13.     {
  14.         alert(alertstr + "Enter a value for the document \"name\" field.");
  15.         theForm.name.focus();
  16.         return (false);
  17.     }
  18.  
  19.     for (j = 0; j < theForm.name.value.length; j++)
  20.     {
  21.         if (strValid.indexOf(theForm.name.value.charAt(j)) == -1)
  22.         {
  23.             alert(alertstr + "The \"name\" contains invalid characters.");
  24.             theForm.name.focus();
  25.             return (false);
  26.         }
  27.     }
  28. }
  29. //-->
  30. </SCRIPT>
  31. </HEAD>
  32. <BODY bgcolor=#ffffff>
  33. <A HREF="/sysadmin/index.stm" TARGET=_top>
  34. <IMG border=0 ALIGN=left SRC="/sysimage/system/console.gif"></A>
  35. <center><FONT SIZE=6>Sambar Server Document Manager</FONT>
  36. <P>
  37. <TABLE border=0 cellspacing=8>
  38. <TR><TD>
  39. <br>
  40. <B><FONT SIZE=+2 COLOR=#000088>Upload File</FONT></B><BR>
  41. <FORM METHOD="POST" ACTION="/session/dm-create" onsubmit="return Form_Validator(this)" enctype="multipart/form-data">
  42. <input type=hidden name="home" value="<RCSbrowse>">
  43. <input type=hidden name="path" value="<RC@txt2html(RC$path)>">
  44. <TABLE border=0 cellspacing=4>
  45. <TR><TD><B>Path:</B></TD>
  46.     <TD><FONT SIZE=+1><I><RC$path></I></FONT></TD></TR>
  47. <TR><TD><B>File:</B></TD>
  48.     <TD><input type=text name="name" value="new.htm" size=40></TD></TR>
  49. <TR><TD></TD><TD><I>(Note: File name may not contain spaces!)</I></TD></TR>
  50. </TABLE>
  51. <br>
  52. <input type=file name="upfile" size=60>
  53. <br>
  54. <I>(Maximum file size is 100KB).</I>
  55. <br>
  56. <br>
  57. <input type=submit value="Upload File">
  58. </FORM>
  59. <BR>
  60. Return to browsing: 
  61.     <A HREF="<RCSbrowse>/browse.stm?path=<RC@urlescape(RC$path)>"><RC$path></A>
  62. <BR>
  63. </TD></TR>
  64. </TABLE>
  65. </CENTER>
  66. </BODY>
  67. </HTML>
  68.