Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.4 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <%
  5. 'On Error Resume Next
  6. Dim numrows, numcols, i, j
  7. numrows=Request.QueryString("numrows")
  8. if numrows = 0 then
  9. 'we need a blank entry...
  10. numrows = 1
  11. end if
  12. if (Request.QueryString("cols") <> "") then
  13. numcols=(Request.QueryString("cols").count)
  14. else
  15. numcols=0
  16. end if
  17. %>
  18. <HTML>
  19. <HEAD>
  20. <TITLE>Hidden Form</TITLE>
  21. </HEAD>
  22. <BODY BGCOLOR="#000000">
  23. <FORM NAME="hiddenlistform" ACTION="iiputls.asp" METHOD=POST>
  24. <SCRIPT LANGUAGE="JavaScript">
  25. colNames=new Array(<%= numcols %>)
  26. <% i=1 %>
  27. <% do while (i < numcols+1) %>
  28. colNames[<%= (i-1) %>]="<%= Request.QueryString("cols")(i) %>"
  29. <% i=i + 1 %>
  30. <% loop %>
  31. <% 'Script to create an array of list controls for list processing. One a Set (cols) of controls will be created For Each list item, as determined by numrows %>
  32. for (var i=1; i < <%= numrows+1 %>; i++) {
  33. for (var J=0; J < <%= numcols %>; J++) {
  34. <% 'Yields a control named: col1Name1, col2Name2, etc. %>
  35. document.write("<INPUT NAME='" + colNames[J] +"' TYPE='text'>");
  36. }
  37. document.write("<br>");
  38. }
  39. parent.main.head.listFunc.SetListVals();
  40. <% 'Now... Submit, and write the list to the SSO! %>
  41. <% if numcols > 0 then %>
  42. document.hiddenlistform.submit();
  43. <% end if %>
  44. </SCRIPT>
  45. </FORM>
  46. </BODY>
  47. </HTML>