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.

212 lines
4.4 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="iifvdnt.str"-->
  8. <%
  9. On Error Resume Next
  10. Dim path, spath, instobj, currentobj
  11. path=UCase(Session("dpath"))
  12. spath=UCase(Session("spath"))
  13. if spath = "" then
  14. spath = Mid(path,1,InStr(path,"/ROOT")-1)
  15. Session("spath")=spath
  16. end if
  17. Set currentobj=GetObject(path)
  18. Set instobj=GetObject(spath)
  19. Session("SpecObj")=spath
  20. Session("SpecProps")="MSDosDirOutput"
  21. Set currentobj=GetObject(path)
  22. %>
  23. <!--#include file="iiset.inc"-->
  24. <!--#include file="iisetfnt.inc"-->
  25. <HTML>
  26. <HEAD>
  27. <TITLE></TITLE>
  28. <SCRIPT LANGUAGE="JavaScript">
  29. <% if UCase(Right(currentobj.ADsPath,4))="ROOT" then %>
  30. top.title.Global.helpFileName="iipz_5";
  31. <% else %>
  32. top.title.Global.helpFileName="iipz_3";
  33. <% end if %>
  34. var Global=top.title.Global;
  35. <!--#include file="iijsfuncs.inc"-->
  36. function disableDefault(dir,fromCntrl, toCntrl){
  37. if (!dir){
  38. if (fromCntrl.value !=""){
  39. toCntrl.value=fromCntrl.value;
  40. fromCntrl.value="";
  41. }
  42. }
  43. else{
  44. if (toCntrl.value !=""){
  45. fromCntrl.value=toCntrl.value;
  46. toCntrl.value="";
  47. }
  48. }
  49. }
  50. function enableDefault(chkCntrl){
  51. chkCntrl.checked=true;
  52. }
  53. function setLog(chkCntrl){
  54. if (chkCntrl.checked){
  55. document.userform.DontLog.value = "False";
  56. }
  57. else{
  58. document.userform.DontLog.value = "True";
  59. }
  60. }
  61. function SetBool(){
  62. if (document.userform.rdohdnMSDOSDirOutput[0].checked){
  63. document.userform.MSDOSDirOutput.value="False"
  64. }
  65. else{
  66. document.userform.MSDOSDirOutput.value="True"
  67. }
  68. }
  69. function listFuncs(){
  70. this.writeList=buildListForm;
  71. }
  72. function buildListForm(){
  73. }
  74. listFunc=new listFuncs();
  75. </SCRIPT>
  76. </HEAD>
  77. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 TEXT="#000000" LINK="#FFFFFF" >
  78. <%= sFont("","","",True) %>
  79. <HR>
  80. <FORM NAME="userform" onSubmit="return false">
  81. <TABLE BORDER=0 CELLPADDING=0>
  82. <TR>
  83. <TD>
  84. <%= sFont("","","",True) %>
  85. <%= L_PATH_TEXT %>
  86. </FONT>
  87. </TD>
  88. <TD>
  89. <% if InStr(currentobj.Path,"\\") then %>
  90. <%= text("Path",45,"","","",false,true) %>&nbsp;&nbsp;
  91. <% else %>
  92. <INPUT NAME="Path" VALUE="\\" SIZE=45 <%= Session("DEFINPUTSTYLE") %>>
  93. <% end if %>
  94. </TD>
  95. </TR>
  96. <TR>
  97. <TD><%= sFont("","","",True) %>
  98. <%= L_USERNAME_TEXT %>
  99. </FONT>
  100. </TD>
  101. <TD><%= sFont("","","",True) %>
  102. <%= text("UNCUserName",45,"","","",false,true) %>&nbsp;&nbsp;
  103. </FONT>
  104. </TD>
  105. </TR>
  106. <TR>
  107. <TD><%= sFont("","","",True) %>
  108. <%= L_PASSWORD_TEXT %>
  109. </FONT>
  110. </TD>
  111. <TD><%= sFont("","","",True) %>
  112. <%= pword("UNCPassword",45,"","","",false,true) %>&nbsp;&nbsp;
  113. </FONT>
  114. </TD>
  115. </TR>
  116. <TR HEIGHT=4>
  117. <TD>&nbsp;
  118. </TD>
  119. </TR>
  120. <TR>
  121. <TD COLSPAN=3>
  122. <%= sFont("","","",True) %>
  123. <%= checkbox("AccessRead","",false) %>&nbsp;<%= L_READ_TEXT %><BR>
  124. <%= checkbox("AccessWrite","",false) %>&nbsp;<%= L_WRITE_TEXT %><BR>
  125. <% if currentobj.DontLog then %>
  126. <INPUT TYPE="checkbox" NAME="hdnDontLog" OnClick="top.title.Global.updated=true;setLog(this);">&nbsp;<%= L_LOGACCESS_TEXT %><BR>
  127. <INPUT TYPE="hidden" NAME="DontLog" VALUE="True">
  128. <% else %>
  129. <INPUT TYPE="checkbox" NAME="hdnDontLog" CHECKED OnClick="top.title.Global.updated=true;setLog(this);">&nbsp;<%= L_LOGACCESS_TEXT %><BR>
  130. <INPUT TYPE="hidden" NAME="DontLog" VALUE="False">
  131. <% end if %>
  132. </FONT>
  133. </TD>
  134. </TR>
  135. </TABLE>
  136. <% if Session("vtype") = "svc" or Session("vtype") = "server" then%>
  137. <!-- set the current object = to the instance level object for MSDOSDirOutput -->
  138. <P>
  139. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  140. <%= L_DIRECTORYSTYLE_TEXT %>
  141. <IMG SRC="images/hr.gif" WIDTH=350 HEIGHT=2 BORDER=0 ALIGN="middle">
  142. <P>
  143. <TABLE BORDER=0 CELLPADDING=0 WIDTH = 200>
  144. <TR>
  145. <TD COLSPAN=3>
  146. <%= sFont("","","",True) %>
  147. <%= printradio("hdnMSDOSDirOutput", not instobj.MSDOSDirOutput, "SetBool();",false) %>
  148. &nbsp;
  149. <%= L_UNIX_TEXT %>&reg;
  150. </FONT>
  151. </TD>
  152. </TR>
  153. <TR>
  154. <TD COLSPAN=3>
  155. <%= sFont("","","",True) %>
  156. <%= printradio("hdnMSDOSDirOutput", instobj.MSDOSDirOutput, "SetBool();",false) %>
  157. &nbsp;
  158. <%= L_MSDOS_TEXT %>&reg;
  159. <% if instobj.MSDOSDirOutput then %>
  160. <INPUT TYPE="hidden" NAME="MSDOSDirOutput" VALUE="True">
  161. <% else %>
  162. <INPUT TYPE="hidden" NAME="MSDOSDirOutput" VALUE="False">
  163. <% end if %>
  164. </FONT>
  165. </TD>
  166. </TR>
  167. </TABLE>
  168. <% end if %>
  169. </FORM>
  170. </FONT>
  171. </BODY>
  172. </HTML>
  173. <% end if %>