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.

165 lines
3.5 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iivdhd.str"-->
  5. <%
  6. On Error Resume Next
  7. Dim path, currentobj, redir, dirtype, quote, dirkeyType, vtype
  8. dirkeyType = "IIsWebDirectory"
  9. path=Session("dpath")
  10. Session("path")=path
  11. Set currentobj=GetObject(path)
  12. vtype = Session("vtype")
  13. %>
  14. <!--#include file="iifixpth.inc"-->
  15. <%
  16. redir=currentobj.HttpRedirect
  17. path=currentobj.path
  18. if redir <> "" then
  19. dirtype="redir"
  20. elseif instr(path,"\\") then
  21. dirtype="net"
  22. else
  23. dirtype="dir"
  24. end if
  25. quote=chr(34)
  26. function writeDirType(thetype)
  27. if vtype = "svc" or not Session("isAdmin") then
  28. if thetype = dirtype then
  29. writeDirType = "<IMG SRC='images/radioon.gif' HSPACE=2 WIDTH=12 HEIGHT=12 BORDER=0>"
  30. else
  31. writeDirType = "<IMG SRC='images/radiooff.gif' HSPACE=2 WIDTH=12 HEIGHT=12 BORDER=0>"
  32. end if
  33. else
  34. if thetype=dirtype then
  35. writeDirType= "<INPUT TYPE=radio NAME=" & quote &_
  36. "rdoDirType" & quote & " CHECKED OnClick=" &_
  37. quote & "warnWrkingSite();SetDirType('" & thetype & "')" &_
  38. quote & ">"
  39. else
  40. writeDirType= "<INPUT TYPE=radio NAME=" & quote &_
  41. "rdoDirType" & quote & " OnClick=" &_
  42. quote & "warnWrkingSite();SetDirType('" & thetype & "')" &_
  43. quote & ">"
  44. end if
  45. end if
  46. end function
  47. %>
  48. <!--#include file="iisetfnt.inc"-->
  49. <HTML>
  50. <HEAD>
  51. <TITLE></TITLE>
  52. </HEAD>
  53. <SCRIPT LANGUAGE="JavaScript">
  54. var Global=top.title.Global;
  55. Global.siteProperties = false;
  56. function warnWrkingSite()
  57. {
  58. if (top.title.nodeList[Global.selId].isWorkingServer)
  59. {
  60. alert("<%= L_WORKINGSERVER_TEXT %>");
  61. }
  62. }
  63. function SetDirType(theType){
  64. <% if Session("IsIE") then %>
  65. if (theType=="net"){
  66. parent.head.location.href="iivddir.asp?ptype=UNC";
  67. }
  68. if (theType=="redir"){
  69. parent.head.location.href="iivdrd.asp";
  70. }
  71. if (theType=="dir"){
  72. parent.head.location.href="iivddir.asp?ptype=Local";
  73. }
  74. <% else %>
  75. if (theType=="net"){
  76. parent.frames[1].location.href="iivddir.asp?ptype=UNC";
  77. }
  78. if (theType=="redir"){
  79. parent.frames[1].location.href="iivdrd.asp";
  80. }
  81. if (theType=="dir"){
  82. parent.frames[1].location.href="iivddir.asp?ptype=Local";
  83. }
  84. <% end if %>
  85. }
  86. </SCRIPT>
  87. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" OnLoad="SetDirType('<%= dirtype %>');" TOPMARGIN=5 TEXT="#000000" LINK="#FFFFFF" >
  88. <TABLE WIDTH = 500>
  89. <TR>
  90. <TD>
  91. <%= sFont("","","",True) %>
  92. <% if (vtype="server") or (vtype="svc") then %>
  93. <B><%= L_HOMEDIRECTORY_TEXT %></B>
  94. <% else %>
  95. <B><%= L_DIRECTORY_TEXT %></B>
  96. <% end if %>
  97. <FORM NAME="userform">
  98. <%= L_WHENCONNECTING_TEXT %>&nbsp;<%= L_CONTENTSHOULD_TEXT %><P>
  99. <TABLE BORDER=0>
  100. <TR>
  101. <TD ALIGN="left" VALIGN="bottom">
  102. <%= sFont("","","",True) %>
  103. <%= writeDirType("dir") %>&nbsp;&nbsp;<%= L_DIR_TEXT %>
  104. </FONT>
  105. </TD>
  106. </TR>
  107. <TR>
  108. <TD ALIGN="left" VALIGN="bottom">
  109. <%= sFont("","","",True) %>
  110. <% if vtype <> "dir" then %>
  111. <%= writeDirType("net") %>&nbsp;&nbsp;<%= L_NETDIR_TEXT %>
  112. <% else %>
  113. <% if Session("IsIE") then %>
  114. &nbsp;<IMG SRC="images/radiooff.gif" HSPACE=2 WIDTH=12 HEIGHT=12 BORDER=0 ALT="">
  115. <% else %>
  116. <IMG SRC="images/radiooff.gif" HSPACE=4 WIDTH=12 HEIGHT=12 BORDER=0 ALT="">&nbsp;
  117. <% end if %>
  118. <%= sFont("","","Gray",True) %>
  119. <%= L_NETDIR_TEXT %>
  120. </FONT>
  121. <% end if %>
  122. </FONT>
  123. </TD>
  124. </TR>
  125. <TR>
  126. <TD ALIGN="left" VALIGN="bottom">
  127. <%= sFont("","","",True) %>
  128. <%= writeDirType("redir") %>&nbsp;&nbsp;<%= L_REDIR_TEXT %>
  129. </FONT>
  130. </TD>
  131. </TR>
  132. </TABLE>
  133. </FORM>
  134. <HR>
  135. </TD>
  136. </TR>
  137. </TABLE>
  138. </FONT>
  139. </BODY>
  140. </HTML>