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.

37 lines
1.1 KiB

  1. <%
  2. ' $Date: 11/24/97 12:17p $
  3. ' $ModTime: $
  4. ' $Revision: 2 $
  5. ' $Workfile: themes.inc $
  6. Sub ShowFolderList(folderspec)
  7. Dim fs, f, f1, fc, s
  8. Set fs = CreateObject("Scripting.FileSystemObject")
  9. Set f = fs.GetFolder(folderspec)
  10. Set fc = f.SubFolders
  11. s = "<OPTION VALUE=""" & """ SELECTED>Select your theme!"
  12. For Each f1 in fc
  13. s = s & "<OPTION NAME=" & """Theme""" & " VALUE=""" & f1.name
  14. If myinfo.Theme = f1.name Then
  15. s = s & """ SELECTED>" & f1.name
  16. Else
  17. s = s & """>" & f1.name
  18. End If
  19. Next
  20. s = s & "</SELECT>"
  21. response.write s
  22. End Sub
  23. If myinfo.ranWizard <> "" Then
  24. 'response.write "<FONT Size='-1'><A HREF = " & """#""" & " onClick = """ & HelpWindow("Style") & """>Template Style</A></FONT><BR>"_
  25. '&
  26. response.write "<SELECT NAME='theme' Language='VBSCRIPT' ONCHANGE='Submit'>"
  27. Else
  28. response.write "<H5>You can choose from the following templates to personalize your home page.</H5><BR><blockquote>"_
  29. & "<SELECT NAME='theme' Size=3>"
  30. End If
  31. call ShowFolderList(Server.MapPath("/iissamples/homepage/themes"))
  32. If myinfo.ranWizard <> "" Then
  33. response.write "</blockquote>"
  34. End If
  35. %>