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.

181 lines
4.5 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iipoptl.str"-->
  5. <!--#include file="iisetfnt.inc"-->
  6. <!--#include file="iigtdata.str"-->
  7. <HTML>
  8. <SCRIPT LANGUAGE="JavaScript">
  9. function toolFunc(){
  10. this.mainframe = top.opener.top;
  11. this.save = save;
  12. }
  13. toolFuncs = new toolFunc();
  14. function closeWin(){
  15. top.location.href="iipopcl.asp"
  16. }
  17. function ok(){
  18. <%' We can't do getdatapaths for IE3, as it doesn't support calling object properties in %>
  19. <% ' a parent window from a child window... just save instead. %>
  20. <% if Session("IsIE") and Session("browserver") < 4 then %>
  21. save();
  22. <% else %>
  23. <% if Session("vtype") <> "svc" then %>
  24. if (top.opener.top.title.Global.siteProperties){
  25. <% else %>
  26. if (false){
  27. <% end if %>
  28. top.connect.location.href="iisess.asp?clearPathsOneTime=False";
  29. save();
  30. }
  31. else{
  32. top.opener.top.title.Global.updated=false;
  33. if (!top.opener.top.title.Global.dontAsk){
  34. width = <%= L_IIGTDATA_W %>;
  35. height = <%= L_IIGTDATA_H %>;
  36. popbox=window.open("iigtdata.asp","GetDataPaths","toolbar=no,scrollbars=yes,directories=no,menubar=no,width="+width+",height="+height);
  37. if(popbox !=null){
  38. if (popbox.opener==null){
  39. popbox.opener=self;
  40. }
  41. }
  42. }
  43. else{
  44. save();
  45. }
  46. }
  47. <% end if %>
  48. }
  49. function save(){
  50. writingList=false;
  51. mf = toolFuncs.mainframe;
  52. if (parent.main.head !=null){
  53. uform=parent.main.head.document.userform;
  54. writingList=parent.main.head.listFunc.bHasList;
  55. parent.main.head.listFunc.writeList();
  56. }
  57. else{
  58. uform=parent.main.document.userform;
  59. }
  60. //mf.body.iisstatus.location.href="iistat.asp?thisState=<%= L_SAVING_TEXT %>";
  61. path="?page=popup";
  62. for (i=0; i < uform.elements.length;i++){
  63. thiselement=uform.elements[i];
  64. thisname=uform.elements[i].name;
  65. thisval=uform.elements[i].value;
  66. thisname.toLowerCase();
  67. if (thisname !=""){
  68. if (thisname.substring(0,3)!="chk"){
  69. if (thisname.substring(0,3)!="txt"){
  70. if (thisname.substring(0,3)!="rdo"){
  71. if (thisname.substring(0,3)!="hdn"){
  72. if (thisname.substring(0,3)!="btn"){
  73. path=path + "&" + escape(thisname);
  74. path=path + "=" + escape(thisval);
  75. }
  76. }
  77. }
  78. }
  79. else{
  80. path=path + "&" + thisname.substring(3, thisname.length);
  81. path=path + "=" + escape(thisval);
  82. }
  83. }
  84. else{
  85. path=path + "&" + thisname.substring(3, thisname.length);
  86. if (thiselement.checked){
  87. path=path + "="+true;
  88. }
  89. else{
  90. path=path + "="+false;
  91. }
  92. }
  93. }
  94. else{
  95. //hack to compinsate for bug in which text fields get submitted w/o a name...
  96. path=path + "&AspScriptErrorMessage=" + thisval
  97. }
  98. }
  99. mf.connect.location.href=("iiput.asp"+path);
  100. if (!writingList){
  101. top.location.href="iipopcl.asp"
  102. }
  103. }
  104. function helpBox(){
  105. if (top.title.Global.helpFileName==null){
  106. alert("<%= L_NOHELP_ERRORMESSAGE %>");
  107. }
  108. else{
  109. thefile=top.title.Global.helpDir + top.title.Global.helpFileName+".htm";
  110. window.open(thefile ,"Help","toolbar=no,scrollbars=yes,directories=no,menubar=no,width=300,height=425");
  111. }
  112. }
  113. </SCRIPT>
  114. <BODY BACKGROUND="images/greycube.gif" TEXT="#FFFFFF" LINK="#FFFFFF" ALINK="#FFFFFF" VLINK="#FFFFFF">
  115. <TABLE WIDTH="100%" BORDER=0 CELLPADDING=5 CELLSPACING=1>
  116. <TR>
  117. <TD ALIGN="right">
  118. <TABLE CELLPADDING=5 CELLSPACING=0>
  119. <TR>
  120. <TD VALIGN="top">
  121. <%= sFont(2,Session("MENUFONT"),"",True) %>
  122. <B><A HREF="javascript:ok();">
  123. <IMG SRC="images/ok.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_OK_TEXT %>"></A>
  124. <A HREF="javascript:ok();"><%= L_OK_TEXT %></A></B>
  125. </FONT>
  126. </TD>
  127. <TD VALIGN="top">
  128. <%= sFont(2,Session("MENUFONT"),"#FFFFFF",True) %>|</FONT>
  129. </TD>
  130. <TD VALIGN="top">
  131. <%= sFont(2,Session("MENUFONT"),"",True) %>
  132. <B><A HREF="javascript:parent.window.close();">
  133. <IMG SRC="images/cncl.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_CANCEL_TEXT %>"></A>
  134. <A HREF="javascript:closeWin();"><%= L_CANCEL_TEXT %></A></B>
  135. </FONT>
  136. </TD>
  137. <TD VALIGN="top">
  138. <%= sFont(2,Session("MENUFONT"),"#FFFFFF",True) %>|</FONT>
  139. </TD>
  140. <TD VALIGN="top">
  141. <%= sFont(2,Session("MENUFONT"),"",True) %>
  142. <A HREF="javascript:helpBox();">
  143. <IMG SRC="images/help.gif" BORDER=0 ALIGN="top" HEIGHT=16 WIDTH=16 ALT="<%= L_HELP_TEXT %>"></A>
  144. <B><A HREF="javascript:helpBox();"><%= L_HELP_TEXT %></A></B>
  145. </FONT>
  146. </TD>
  147. </TR>
  148. </TABLE>
  149. </TD>
  150. </TR>
  151. </TABLE>
  152. </BODY>
  153. </HTML>