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.

115 lines
2.5 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iifvdhd.str"-->
  5. <%
  6. On Error Resume Next
  7. Dim path, currentobj, keyType, redir, dirtype, quote, dirkeyType
  8. path=Session("dpath")
  9. Session("path")=path
  10. Set currentobj=GetObject(path)
  11. dirkeyType = "IIsFTPDirectory"
  12. %>
  13. <!--#include file="iifixpth.inc"-->
  14. <%
  15. redir=currentobj.HttpRedirect
  16. path=currentobj.path
  17. if redir <> "" then
  18. dirtype="redir"
  19. elseif instr(path,"\\") then
  20. dirtype="net"
  21. else
  22. dirtype="dir"
  23. end if
  24. quote=chr(34)
  25. function writeDirType(thetype)
  26. if thetype=dirtype then
  27. writeDirType="<INPUT TYPE=radio NAME=" & quote & "rdoDirType" & quote & " CHECKED OnClick=" & quote & "SetDirType('" & thetype & "')" & quote & ">"
  28. else
  29. writeDirType="<INPUT TYPE=radio NAME=" & quote & "rdoDirType" & quote & " OnClick=" & quote & "SetDirType('" & thetype & "')" & quote & ">"
  30. end if
  31. end function
  32. %>
  33. <!--#include file="iisetfnt.inc"-->
  34. <HTML>
  35. <HEAD>
  36. <TITLE></TITLE>
  37. <SCRIPT LANGUAGE="JavaScript">
  38. function SetDirType(theType){
  39. <% if Session("IsIE") then %>
  40. if (theType=="net"){
  41. parent.head.location.href="iifvdnt.asp";
  42. }
  43. if (theType=="redir"){
  44. parent.head.location.href="iifvdrd.asp";
  45. }
  46. if (theType=="dir"){
  47. parent.head.location.href="iifvddir.asp";
  48. }
  49. <% else %>
  50. if (theType=="net"){
  51. parent.frames[1].location.href="iifvdnt.asp";
  52. }
  53. if (theType=="redir"){
  54. parent.frames[1].location.href="iifvdrd.asp";
  55. }
  56. if (theType=="dir"){
  57. parent.frames[1].location.href="iifvddir.asp";
  58. }
  59. <% end if %>
  60. }
  61. </SCRIPT>
  62. </HEAD>
  63. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 OnLoad="SetDirType('<%= dirtype %>');" TEXT="#000000" LINK="#FFFFFF" >
  64. <%= sFont("","","",True) %>
  65. <% if (vtype="server") or (vtype="svc") then %>
  66. <B><%= L_HOMEDIRECTORY_TEXT %></B>
  67. <% else %>
  68. <B><%= L_DIRECTORY_TEXT %></B>
  69. <% end if %>
  70. <P>
  71. <%= L_WHENCONNECTING_TEXT %>&nbsp;<%= L_CONTENTSHOULD_TEXT %><P>
  72. <FORM NAME="userform">
  73. <TABLE>
  74. <TR>
  75. <TD ALIGN="left" VALIGN="bottom">
  76. <%= sFont("","","",True) %>
  77. <%= writeDirType("dir") %>&nbsp;<%= L_DIR_TEXT %>
  78. </FONT>
  79. </TD>
  80. </TR>
  81. <TR>
  82. <TD ALIGN="left" VALIGN="bottom">
  83. <%= sFont("","","",True) %>
  84. <% if Session("vtype") <> "dir" then %>
  85. <%= writeDirType("net") %>&nbsp;<%= L_NETDIR_TEXT %>
  86. <% else %>
  87. &nbsp;&nbsp;<IMG SRC="images/radiooff.gif" WIDTH=12 HEIGHT=12 BORDER=0 ALT="">
  88. <%= sFont("","","Gray",True) %>
  89. <%= L_NETDIR_TEXT %>
  90. </FONT>
  91. <% end if %>
  92. </FONT>
  93. </TD>
  94. </TR>
  95. </TABLE>
  96. </FORM>
  97. </FONT>
  98. </BODY>
  99. </HTML>