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.

175 lines
3.7 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <!--#include file="iitool.str"-->
  5. <!--#include file="iisetfnt.inc"-->
  6. <!--#include file="iigtdata.str"-->
  7. <%
  8. On Error Resume Next
  9. %>
  10. <HTML>
  11. <HEAD>
  12. <SCRIPT LANGUAGE="javascript">
  13. function chkDataPaths(){
  14. if (top.title.Global.siteProperties){
  15. top.connect.location.href="iisess.asp?clearPathsOneTime=False";
  16. save();
  17. }
  18. else{
  19. top.title.Global.updated=false;
  20. if (!top.title.Global.dontAsk){
  21. width = <%= L_IIGTDATA_W %>;
  22. height = <%= L_IIGTDATA_H %>;
  23. popbox=window.open("iigtdata.asp","GetDataPaths","toolbar=no,scrollbars=yes,directories=no,menubar=no,width="+width+",height="+height);
  24. if(popbox !=null){
  25. if (popbox.opener==null){
  26. popbox.opener=self;
  27. }
  28. }
  29. }
  30. else{
  31. save();
  32. }
  33. }
  34. }
  35. var uform;
  36. function save()
  37. {
  38. var bDoSave = true;
  39. parent.iisstatus.location.href = "iistat.asp?status=" + escape("<%= L_SAVING_TEXT %>");
  40. if (parent.main.head != null){
  41. uform=parent.main.head.document.userform;
  42. parent.main.head.listFunc.writeList();
  43. }
  44. else{
  45. uform=parent.main.document.userform;
  46. if( parent.main.validatePage != null )
  47. {
  48. bDoSave = parent.main.ContinueSave();
  49. }
  50. }
  51. if( bDoSave )
  52. {
  53. dosave();
  54. }
  55. else
  56. {
  57. parent.main.SaveCallback();
  58. }
  59. }
  60. function dosave()
  61. {
  62. path="?state=saving";
  63. for (i=0; i < uform.elements.length;i++){
  64. thiselement=uform.elements[i];
  65. thisname=uform.elements[i].name;
  66. thisval=uform.elements[i].value;
  67. if (thisname !=""){
  68. if (thisname.substring(0,3) !="chk"){
  69. if (thisname.substring(0,3) !="txt"){
  70. if (thisname.substring(0,3) !="btn"){
  71. if (thisname.substring(0,3) !="rdo"){
  72. if (thisname.indexOf("hdn") != ""){
  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. path=path + "&GreetingMessage=" + escape(thisval);
  96. }
  97. }
  98. //write off non-list values & checks for child inheritence...
  99. top.connect.location.href=("iiput.asp"+path);
  100. }
  101. function reset() {
  102. top.title.Global.updated=false;
  103. parent.main.location.href=parent.main.location.href;
  104. }
  105. function toolFunc(){
  106. this.save=save;
  107. this.dosave = dosave;
  108. }
  109. function sleep(cnt){
  110. for (i=0;i<cnt;i++){
  111. }
  112. }
  113. toolFuncs=new toolFunc();
  114. </SCRIPT>
  115. </HEAD>
  116. <BODY BACKGROUND="images/greycube.gif" TEXT="#FFFFFF" LINK="#FFFFFF" ALINK="#FFFFFF" VLINK="#FFFFFF">
  117. <TABLE HEIGHT=30 ALIGN="right" CELLPADDING=1 CELLSPACING=1>
  118. <TR>
  119. <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0>
  120. <TR>
  121. <TD VALIGN="middle">
  122. <%= sFont(2,Session("MENUFONT"),"",True) %>
  123. <B>
  124. <A HREF="javascript:chkDataPaths();"><IMG HEIGHT=16 WIDTH=16 HSPACE=2 ALIGN="top" SRC="images/save.gif" BORDER=0 ALT="<%= L_SAVE_TEXT %>"><%= L_SAVE_TEXT %></A>
  125. </B>
  126. </FONT>
  127. </TD>
  128. </TR>
  129. </TABLE></TD>
  130. <TD><%= sFont(2,Session("MENUFONT"),"",True) %>|</FONT></TD>
  131. <TD><TABLE VALIGN="top" BORDER=0 CELLPADDING=5 CELLSPACING=0>
  132. <TR>
  133. <TD VALIGN="middle">
  134. <%= sFont(2,Session("MENUFONT"),"",True) %><B>
  135. <A HREF="javascript:reset();"><IMG HEIGHT=16 WIDTH=16 HSPACE=2 ALIGN="top" SRC="images/refr.gif" BORDER=0 ALT="<%= L_RESET_TEXT %>"><%= L_RESET_TEXT %></A>
  136. </B></FONT>
  137. </TD>
  138. </TR>
  139. </TABLE></TD>
  140. <TD></TD>
  141. </TR>
  142. </TABLE>
  143. </BODY>
  144. </HTML>