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.

195 lines
7.8 KiB

  1. <!--
  2. $Date: 10/07/97 9:59a $
  3. $ModTime: $
  4. $Revision: 18 $
  5. $Workfile: tempsubs.inc $
  6. -->
  7. <%
  8. Function HelpWindow(name)
  9. DIM strWindow
  10. strWindow = "window.open'/Iisadmin/Tour/iiwzhlp.htm#" & name & "','help','height=200,width=400,scrollbars'"
  11. HelpWindow = strWindow
  12. End Function
  13. ' *********************** ranWizard check
  14. Sub Template_ranWizardCheck
  15. If myinfo.ranWizard <> "" Then
  16. If myinfo.ranWizard = 0 Then
  17. ranWizard = "False"
  18. ElseIf myinfo.ranWizard = "-1" Then
  19. ranWizard = "True"
  20. End If
  21. Else
  22. ranWizard = "False"
  23. myinfo.ranWizard = 0
  24. End If
  25. End Sub
  26. ' ******************* GENERIC CONTENTS *************
  27. ' ********************* MESSAGING/LINKS
  28. ' window.open("iiwzhlp.htm","IIS Wizard Help","width=400,height=300,resizable=no,scrollbars=yes")
  29. Sub Template_page_messaging
  30. response.write "<Span ID=header><FONT face='Verdana' size='-2'>"_
  31. & "Check these boxes to include a <A HREF = " & """#""" & " onClick = """ & HelpWindow("GuestBook") & """>guest book or a drop box</a><BR>"_
  32. & "<INPUT TYPE='checkbox' NAME='Guestbook' VALUE='-1'"
  33. If myinfo.Guestbook = "-1" Then
  34. response.write " CHECKED "
  35. End If
  36. response.write " >Guest Book<BR>"_
  37. & "<INPUT TYPE='checkbox' NAME='Messages' VALUE='-1'"
  38. If myinfo.Messages = "-1" Then
  39. response.write " CHECKED "
  40. End If
  41. response.write ">Drop box<BR></FONT></SPAN>"
  42. End Sub
  43. ' ************************ favorite links
  44. Sub Template_page_links
  45. response.write "<Span ID=header><FONT face='Verdana' size='-2'>"_
  46. & "<IFRAME NAME='linksFrame' WIDTH='200' HEIGHT='220' FRAMEBORDER=0 SRC='urlform.asp'>"_
  47. & "<FRAME NAME='linksFrame' WIDTH='200' HEIGHT='220' FRAMEBORDER=0 SRC='urlform.asp'>"_
  48. & "</IFRAME></FONT></SPAN>"
  49. End Sub
  50. ' ************************* title / main contents
  51. Sub Template_title
  52. response.write "<SPAN ID=header><FONT face='Verdana' size='-2'>"
  53. If myinfo.title <> "" Then
  54. response.write "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Title") & """>This is the title for your home page</A><BR>"_
  55. & "<H1>" & myinfo.Title & "</H1><BR>"_
  56. & "You can change the title below.<BR>"
  57. Else
  58. response.write "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Title") & """>Enter a title for your home page.</A><BR>"
  59. End If
  60. response.write "<INPUT NAME=title TYPE=text style='color:black;font-family:verdana;font-size:10pt;' size=38 maxlength=39 Value="""_
  61. & myinfo.Title & """></FONT></SPAN>"
  62. End Sub
  63. ' ********************** main page contents
  64. Sub Template_Address
  65. response.write "<SPAN ID='title'><Font Face='Verdana' Size='-2'>"_
  66. & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Department") & """>Type your department or division name here.</A><BR>"_
  67. & "<INPUT NAME='Department' TYPE='text' size=38 maxlength=39 "_
  68. & "VALUE="""_
  69. & myinfo.Department & """><BR><A HREF = " & """#""" & " onClick = """ & HelpWindow("Address") & """>Type your address here.</A><BR>"
  70. DIM number
  71. number = 1
  72. For number = 1 to 4
  73. response.write "<INPUT NAME = 'address" & number & "' TYPE = 'text'"_
  74. & " size=43 style='color:black;font-family:verdana;font-size:10pt;' maxlength=60 VALUE=""" & MyInfo("Address" & number) & """><BR>"
  75. Next
  76. End Sub
  77. Sub Template_Phone
  78. response.write "<SPAN ID='title'><Font Face='Verdana' Size='-2'>"_
  79. & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Phone") & """>Phone number</A><BR>"_
  80. & "<INPUT NAME = 'Phone' TYPE = 'text' size=20 style='color:black;font-family:verdana;font-size:10pt;' maxlength=30 "_
  81. & "VALUE="""_
  82. & myinfo.Phone & """><BR></Font></Span>"
  83. End Sub
  84. Sub Template_Email
  85. response.write "<SPAN ID=header><FONT face='Verdana' size='-2'>"_
  86. & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Email") & """>Email</A></Font></Span><BR>"_
  87. & "<INPUT NAME = 'Email' style='color:black;font-family:verdana;font-size:10pt;' TYPE = 'text'"_
  88. & " size=38 maxlength=60 VALUE="""_
  89. & myinfo.Email
  90. response.write """><BR>"
  91. End Sub
  92. Sub Template_Name
  93. response.write "<SPAN ID=header><FONT face='Verdana' size='-2'>"_
  94. & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Name") & """>Name<A></Font></Span><BR>"_
  95. & "<INPUT NAME = 'Name' TYPE = 'text' size=38 style='color:black;font-family:verdana;font-size:10pt;' maxlength=50 VALUE=""" & myinfo.Name & """>"
  96. End Sub
  97. Sub Template_faxPhone
  98. response.write "<FONT face='Verdana' size='-2'>"_
  99. & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Fax") & """>Fax number:</A></FONT><BR>"_
  100. & "<IMG SRC='space.gif' Width='20' Height='1'>"_
  101. & "<INPUT TYPE=text NAME='faxPhone' size=20 style='color:black;font-family:verdana;font-size:10pt;' maxlength=30 VALUE="""_
  102. & myinfo.faxPhone &""">"
  103. End Sub
  104. ' *********************** Page Words
  105. Function Template_Heading()
  106. Dim strHeading, number
  107. strHeading = ""
  108. number = 1
  109. For number = 1 to 4
  110. If number = 1 Then
  111. strHeading = strHeading & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Heading") & """>Type a heading for the following paragraph</A>."
  112. Else
  113. strHeading = strHeading & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Heading") & """>Type an additional heading here</A>."
  114. End If
  115. strHeading = strHeading & "</FONT><BR><INPUT NAME = 'Heading" & number & "' TYPE = 'TEXT' size=43 maxlength=43 VALUE=""" & myinfo("Heading" & number)
  116. strHeading = strHeading & """ style='color:black; font-family:verdana;font-size:10pt;font-weight:bold'>&#10;&#13;"
  117. strHeading = strHeading & "<BR><FONT style='font-family:verdana;font-size:10pt'>"
  118. If number = 1 Then
  119. strHeading = strHeading & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Paragraph") & """>Type a paragraph about yourself, about something you are interested in, or your job</A>."
  120. Else
  121. strHeading = strHeading & "<A HREF = " & """#""" & " onClick = """ & HelpWindow("Paragraph") & """>Type additional information here</A>."
  122. End If
  123. strHeading = strHeading & "</FONT><BR><TEXTAREA NAME ='Words" & number & "' WRAP=PHYSICAL ROWS=4 COLS=44 style='font-family:verdana;font-size:10pt'>"& myinfo("Words" & number) & "</TEXTAREA><BR>"
  124. Next
  125. Template_Heading = strHeading
  126. End Function
  127. ' ************************* form data submission
  128. Sub Template_Theme_onClick
  129. document.HPWiz.Submit
  130. document.Template.Submit
  131. End Sub
  132. Sub Template_addLink
  133. document.urlUpdate.Submit
  134. End Sub
  135. Sub urlArray
  136. response.write "<TR><TD><SPAN ID=header><Font Face='Verdana' Size='-2'>"_
  137. & "<SELECT NAME='urlEdit' MULTIPLE SIZE = 5 style='color:black;font-family:verdana;font-size:10pt;'>"
  138. Dim urlList(), urlWordsList()
  139. intID = 0
  140. For i = 0 to myinfo.intUrl
  141. If myinfo("urlWords" & i) = "null" or myinfo("url" & i) = "http://" or myinfo("url" & i) = "" THEN
  142. myinfo("url" & i) = "null"
  143. myinfo("urlWords" & i) = "null"
  144. Else
  145. Redim Preserve urlList(intID), urlWordsList(intID)
  146. urlList(intID) = Myinfo("url" & i)
  147. urlWordsList(intID) = Myinfo("urlWords" & i)
  148. response.write "<OPTION NAME='remove' VALUE=""" & i & """>" & " " & urlWordsList(intID)
  149. intID = intID + 1
  150. END IF
  151. Next
  152. If intID <> "" Then
  153. response.write "</SELECT></FONT></TD></TR><TR><TD Valign=top align=left>" &_
  154. "<INPUT type=submit NAME='removeLink' VALUE='remove link'>"_
  155. & "</Font></Span></TD></TR>"
  156. End If
  157. End Sub
  158. Sub addLink
  159. If myinfo.inturl <> "" Then
  160. i = 1 + myinfo.intUrl
  161. myinfo("url" & i) = Request.Form("url")
  162. If request.Form("urlWords") <> "" Then
  163. myinfo("urlWords" & i) = request.Form("urlWords")
  164. Else
  165. myinfo("urlWords" & i) = request.Form("url")
  166. End If
  167. myinfo.intUrl = i
  168. Else
  169. myinfo.url1 = request.Form("url")
  170. If request.Form("urlWords") <> "" Then
  171. myinfo.urlWords1 = request.Form("urlWords")
  172. Else
  173. myinfo.urlWords1 = request.Form("url")
  174. End If
  175. myinfo.inturl = 1
  176. End If
  177. End Sub
  178. Sub removeLink
  179. i = Request.Form("urlEdit") 'link to remove
  180. myinfo("url" & i) = "null"
  181. myinfo("urlWords" & i) = "null"
  182. End Sub
  183. %>