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.

122 lines
2.5 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <% if Session("FONTSIZE") = "" then %>
  5. <!--#include file="iito.inc"-->
  6. <% else %>
  7. <!--#include file="iivdrd.str"-->
  8. <%
  9. Dim path, currentobj, redirto
  10. On Error Resume Next
  11. path=Session("dpath")
  12. Set currentobj=GetObject(path)
  13. function redirOpt(optionStr)
  14. redirOpt = checkboxVal(0,InStr(currentobj.HttpRedirect,optionStr) > 0 ,"chk" + optionStr,"setHttpRedirect();",false)
  15. end function
  16. %>
  17. <!--#include file="iiset.inc"-->
  18. <!--#include file="iisetfnt.inc"-->
  19. <HTML>
  20. <HEAD>
  21. <TITLE></TITLE>
  22. <SCRIPT LANGUAGE="JavaScript">
  23. var Global=top.title.Global;
  24. <% if UCase(Right(currentobj.ADsPath,4))="ROOT" then %>
  25. Global.helpFileName="iipy_3";
  26. <% else %>
  27. Global.helpFileName="iipy_5";
  28. <% end if %>
  29. function warnWrkingSite()
  30. {
  31. if (top.title.nodeList[Global.selId].isWorkingServer)
  32. {
  33. alert("<%= L_WORKINGSERVER_TEXT %>");
  34. }
  35. }
  36. function listFuncs(){
  37. this.writeList=buildListForm;
  38. }
  39. function buildListForm(){
  40. }
  41. function setHttpRedirect(){
  42. redirstr = document.userform.hdnHttpRedirect.value + ",";
  43. if (document.userform.chkEXACT_DESTINATION.checked){
  44. redirstr += "EXACT_DESTINATION,";
  45. }
  46. if (document.userform.chkCHILD_ONLY.checked){
  47. redirstr += "CHILD_ONLY,";
  48. }
  49. if (document.userform.chkPERMANENT.checked){
  50. redirstr += "PERMANENT, ";
  51. }
  52. document.userform.HttpRedirect.value = redirstr;
  53. }
  54. listFunc=new listFuncs();
  55. </SCRIPT>
  56. </HEAD>
  57. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 TEXT="#000000" LINK="#FFFFFF" >
  58. <%= sFont("","","",True) %>
  59. <FORM NAME="userform" onSubmit="return false">
  60. <TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
  61. <TR>
  62. <TD VALIGN="Bottom">
  63. <%= sFont("","","",True) %>
  64. <%= L_REDIRTO_TEXT %>&nbsp;
  65. <% redirto=currentobj.HttpRedirect
  66. if InStr(redirto,",") > 0 then
  67. redirto = Left(redirto,InStr(redirto,",")-1)
  68. else
  69. redirto = "http://"
  70. end if
  71. %>
  72. <%= inputbox(0,"text","hdnHttpRedirect",redirto,L_REDIRTO_NUM,"warnWrkingSite();setHttpRedirect();","","setHttpRedirect();",False,False,False) %>
  73. <INPUT TYPE="hidden" NAME="HttpRedirect" VALUE="<%= currentobj.HttpRedirect %>">
  74. &nbsp;&nbsp;
  75. </FONT>
  76. </TD>
  77. </TR>
  78. <TR>
  79. <TD>&nbsp;</TD>
  80. </TR>
  81. <TR>
  82. <TD>
  83. <%= sFont("","","",True) %>
  84. <%= L_CLIENTSENTTO_TEXT %><P>
  85. <%= redirOpt("EXACT_DESTINATION") %><%= L_EXACTURL_TEXT %><BR>
  86. <%= redirOpt("CHILD_ONLY") %><%= L_DIRBELOW_TEXT %><BR>
  87. <%= redirOpt("PERMANENT") %><%= L_PERM_TEXT %>
  88. </FONT>
  89. </TD>
  90. </TR>
  91. </TABLE>
  92. </FORM>
  93. </FONT>
  94. </BODY>
  95. </HTML>
  96. <% end if %>