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.

191 lines
3.8 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="iiamaphd.str"-->
  8. <%
  9. On Error Resume Next
  10. dim path, currentobj
  11. path = Session("dpath")
  12. Session("path") = path
  13. Set currentobj = GetObject(path)
  14. Session("SpecObj")=""
  15. Session("SpecProps")=""
  16. %>
  17. <!--#include file="iiset.inc"-->
  18. <!--#include file="iisetfnt.inc"-->
  19. <%
  20. ' Do not use top.title.Global.update flag if page is loaded into a dialog
  21. bUpdateGlobal = false
  22. %>
  23. <HTML>
  24. <HEAD>
  25. <TITLE></TITLE>
  26. <SCRIPT LANGUAGE="JavaScript">
  27. function loadHelp(){
  28. top.title.Global.helpFileName="iipy_34";
  29. }
  30. function SetList(){
  31. self.location.href = "iiapphd.asp"
  32. }
  33. function disableDefault(dir,fromCntrl, toCntrl){
  34. if (!dir){
  35. if (fromCntrl.value != ""){
  36. toCntrl.value = fromCntrl.value;
  37. fromCntrl.value = "";
  38. }
  39. }
  40. else{
  41. if (toCntrl.value != ""){
  42. fromCntrl.value = toCntrl.value;
  43. toCntrl.value = "";
  44. }
  45. }
  46. }
  47. function enableDefault(chkCntrl){
  48. chkCntrl.checked = true;
  49. }
  50. </SCRIPT>
  51. </HEAD>
  52. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 TEXT="#000000" onLoad="loadList();loadHelp();" LINK="#000000" VLINK="#000000" >
  53. <%= sFont("","","",True) %>
  54. <B><%= L_APPMAPP_TEXT %></B><P>
  55. <FORM NAME="userform" onSubmit="return false">
  56. <%= checkbox("CacheISAPI","",True) %><%= L_CACHEISAPI_TEXT %><P>
  57. <SCRIPT LANGUAGE="JavaScript">
  58. <!--#include file="iijsfuncs.inc"-->
  59. <!--#include file="iijsls.inc"-->
  60. function loadList(){
  61. parent.list.location.href = "iiamapls.asp";
  62. }
  63. function buildListForm(){
  64. numrows = 0;
  65. for (var i = 0; i < cachedList.length; i++) {
  66. if (!cachedList[i].deleted){
  67. numrows = numrows + 1;
  68. }
  69. }
  70. qstr = "numrows="+numrows;
  71. qstr = qstr+"&cols=ScriptMaps";
  72. parent.parent.hlist.location.href = "iihdn.asp?"+qstr;
  73. <% 'the list values will be grabbed by the hiddenlistform script... %>
  74. }
  75. function SetListVals(){
  76. listForm = parent.parent.hlist.document.hiddenlistform;
  77. j = 0;
  78. for (var i = 0; i < cachedList.length; i++) {
  79. sm = 0;
  80. cf = 0;
  81. if (!cachedList[i].deleted){
  82. str = cachedList[i].ext + ",";
  83. str += cachedList[i].path + ",";
  84. if (cachedList[i].scripteng){
  85. sm = 1;
  86. }
  87. if (cachedList[i].checkfiles){
  88. cf = 4;
  89. }
  90. str += (sm + cf);
  91. if (cachedList[i].exclusions != ""){
  92. str += "," + cachedList[i].exclusions;
  93. }
  94. listForm.elements[j++].value = str;
  95. cachedList[i].updated = false;
  96. }
  97. }
  98. }
  99. function listObj(i,ext,p,f,e){
  100. this.id = i;
  101. this.deleted = false;
  102. this.newitem = false;
  103. this.updated = false;
  104. this.ext = initParam(ext,"");
  105. this.path = initParam(p,"");
  106. f = initParam(f,0);
  107. this.exclusions=initParam(e,"");
  108. this.checkfiles = (f & 4) > 0;
  109. this.scripteng = (f & 1) > 0;
  110. this.displaypath = crop(this.path,35);
  111. }
  112. listFunc = new listFuncs("fname","",top.opener.top);
  113. cachedList = new Array();
  114. <%
  115. dim i,Script,aScriptMap,aScript
  116. aScriptMap = currentobj.ScriptMaps
  117. i = 0
  118. For Each Script in aScriptMap
  119. if Script <> "" then
  120. aScript = GetScriptArray(Script)
  121. %>cachedList[<%= i %>] = new listObj(<%= i %>,"<%= aScript(0) %>","<%= Replace(aScript(1),"\","\\") %>",<%= aScript(2) %>,"<%= aScript(3) %>");<%
  122. i = i+1
  123. end if
  124. Next
  125. function GetScriptArray(ScriptStr)
  126. dim a,b,c,d,one,two,three
  127. a = ""
  128. b = ""
  129. c = 0
  130. d = ""
  131. one=Instr(ScriptStr,",")
  132. two=Instr((one+1),ScriptStr,",")
  133. three=Instr((two+1),ScriptStr,",")
  134. if one > 0 then
  135. a=Mid(ScriptStr,1,(one-1))
  136. b=Mid(ScriptStr,(one+1),((two-one)-1))
  137. if three <> 0 then
  138. c=Mid(ScriptStr,(two+1),((three-two)-1))
  139. d=Mid(ScriptStr,(three+1))
  140. else
  141. c=Mid(ScriptStr,(two+1))
  142. end if
  143. end if
  144. GetScriptArray=Array(a,b,c,d)
  145. end function
  146. %>
  147. </SCRIPT>
  148. </BODY>
  149. </HTML>
  150. <% end if %>