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.

136 lines
3.0 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="iicomp.str"-->
  8. <!--#include file="iimime.str"-->
  9. <%
  10. On Error Resume Next
  11. Dim path, currentobj, sDlgTitle, mbw
  12. sDlgTitle = "Server Properties - [" & Request.ServerVariables("SERVER_NAME") &"]"
  13. path=Session("dpath")
  14. Session("path")=path
  15. Session("SpecObj")=""
  16. Session("SpecProps")=""
  17. Set currentobj=GetObject(path)
  18. %>
  19. <!--#include file="iiset.inc"-->
  20. <!--#include file="iisetfnt.inc"-->
  21. <%
  22. ' Do not use top.title.Global.update flag if page is loaded into a dialog
  23. bUpdateGlobal = false
  24. %>
  25. <HTML>
  26. <HEAD>
  27. <TITLE><%= sDlgTitle %></TITLE>
  28. <SCRIPT LANGUAGE="JavaScript">
  29. <!--#include file="iijsfuncs.inc"-->
  30. function loadHelp(){
  31. top.title.Global.helpFileName="iipx";
  32. }
  33. function SetMaxBW(isChecked){
  34. if (isChecked){
  35. document.userform.hdnMaxBandwidth.value=document.userform.hdnhdnMaxBandwidth.value;
  36. document.userform.MaxBandwidth.value = document.userform.hdnhdnMaxBandwidth.value;
  37. }
  38. else{
  39. document.userform.hdnhdnMaxBandwidth.value=document.userform.hdnMaxBandwidth.value;
  40. document.userform.hdnMaxBandwidth.value="";
  41. document.userform.MaxBandwidth.value = -1;
  42. }
  43. }
  44. function calcBW(thiscntrl){
  45. num = parseInt(thiscntrl.value);
  46. if (!isNaN(num)){
  47. document.userform.MaxBandwidth.value = thiscntrl.value * 1024;
  48. }
  49. }
  50. </SCRIPT>
  51. </HEAD>
  52. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 LEFTMARGIN=5 TEXT="#000000" onLoad="loadHelp();">
  53. <FORM NAME="userform" onSubmit="return false">
  54. <%= sFont("","","",True) %>
  55. <B><%= L_IIS_TEXT %></B>
  56. <HR>
  57. <TABLE WIDTH = 100%>
  58. <TR>
  59. <TD><%= sFont("","","",True) %>
  60. <% if currentobj.MaxBandwidth > 0 then %>
  61. <INPUT TYPE="checkbox" NAME="hdnchkMaxBandwith" CHECKED onClick="SetMaxBW(this.checked);top.title.Global.updated=true;">
  62. <% else %>
  63. <INPUT TYPE="checkbox" NAME="hdnchkMaxBandwith" onClick="SetMaxBW(this.checked);top.title.Global.updated=true;">
  64. <% end if %>
  65. &nbsp;<%= L_ENABLEBANDWIDTH_TEXT %>
  66. </B>
  67. <BLOCKQUOTE>
  68. <TABLE>
  69. <TR>
  70. <TD COLSPAN=2>
  71. <%= sFont("","","",True) %>
  72. <%= L_LIMITNET_TEXT %><P>
  73. <%= L_MAXNETUSAGE_TEXT %>&nbsp;
  74. <%
  75. if currentobj.MaxBandwidth < 0 then
  76. mbw = ""
  77. else
  78. mbw = currentobj.MaxBandwidth/1024
  79. end if
  80. %>
  81. <%= inputbox(0,"text","hdnMaxBandwidth",mbw,10,"","","isNum(this,1,32767);calcBW(this);",true,false,false) %>&nbsp;
  82. <%= L_KBS_TEXT %>
  83. <INPUT TYPE="hidden" NAME="MaxBandwidth" VALUE="<%= currentobj.MaxBandwidth%>">
  84. </FONT>
  85. </TD>
  86. </TR>
  87. </TABLE>
  88. </BLOCKQUOTE>
  89. <TABLE>
  90. <TR>
  91. <TD COLSPAN = 3>
  92. <HR>
  93. <%= sFont("","","",True) %>
  94. <B><%= L_MIMEMAP_TEXT %></B>
  95. </FONT>
  96. </TD>
  97. </TR>
  98. <TR>
  99. <TD><IMG SRC="images/mime.gif" WIDTH=32 HEIGHT=32 BORDER=0>&nbsp;&nbsp;</TD>
  100. <TD><%= sFont("","","",True) %><%= L_CONFIGUREMIME_TEXT %></TD>
  101. <TD><INPUT TYPE="button" NAME="btnMimeMap" VALUE="<%= L_FILETYPES_TEXT %>" onClick='popBox("MIMEmap", <%= L_MIMEMAP_W %>, <%= L_MIMEMAP_H %>, "iimime");'></TD>
  102. </TR>
  103. </TABLE>
  104. </TD>
  105. </TR>
  106. </TABLE>
  107. </FORM>
  108. </FONT>
  109. </BODY>
  110. </HTML>
  111. <% end if %>