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.

168 lines
4.3 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="iianon.str"-->
  8. <%
  9. On Error Resume Next
  10. %>
  11. <!--#include file="iiset.inc"-->
  12. <!--#include file="iisetfnt.inc"-->
  13. <%
  14. ' Do not use top.title.Global.update flag if page is loaded into a dialog
  15. bUpdateGlobal = false
  16. %>
  17. <HTML>
  18. <HEAD>
  19. <TITLE>New</TITLE>
  20. <SCRIPT LANGUAGE="javascript">
  21. <!--#include file="iijsfuncs.inc"-->
  22. function loadHelp()
  23. {
  24. top.title.Global.helpFileName="iipy_6";
  25. }
  26. function chkPassword(pass2, pass1)
  27. {
  28. if (pass1.value != pass2.value)
  29. {
  30. alert("<%= L_PASSNOTMATCH_TEXT %>");
  31. pass2.value = "";
  32. pass2.focus();
  33. }
  34. }
  35. function ok()
  36. {
  37. parentform = top.opener.document.userform;
  38. parentform.AnonymousUserName.value = document.userform.AnonymousUserName.value;
  39. parentform.AnonymousUserPass.value = document.userform.AnonymousUserPass.value;
  40. parentform.AnonymousPasswordSync.value = document.userform.chkAnonymousPasswordSync.checked;
  41. parent.window.close();
  42. }
  43. function setFields()
  44. {
  45. parentform = top.opener.document.userform;
  46. document.userform.AnonymousUserName.value = parentform.AnonymousUserName.value;
  47. document.userform.AnonymousUserPass.value = parentform.AnonymousUserPass.value;
  48. //yes, we do have to store a string-val True in this text box, as it's hidden...
  49. //DO NOT LOCALIZE THIS VALUE!
  50. document.userform.chkAnonymousPasswordSync.checked = (parentform.AnonymousPasswordSync.value.toLowerCase() == "true");
  51. }
  52. </SCRIPT>
  53. </HEAD>
  54. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" LINK="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0 onLoad="loadHelp();">
  55. <FORM NAME="userform">
  56. <TABLE HEIGHT="100%" WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
  57. <TR>
  58. <TD VALIGN="top">
  59. <TABLE BORDER=0 BGCOLOR="<%= Session("BGCOLOR") %>" CELLPADDING=10 CELLSPACING=0>
  60. <TR>
  61. <TD>
  62. <%= sFont("","","",True) %>
  63. <%= L_ACCOUNTUSED_TEXT %>
  64. </FONT>
  65. <P>
  66. <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
  67. <TR>
  68. <TD VALIGN="top">
  69. <%= sFont("","","",True) %>
  70. <%= L_USERNAME_TEXT %>&nbsp;&nbsp;
  71. </FONT>
  72. </TD>
  73. <TD VALIGN="top">
  74. <%= sFont("","","",True) %>
  75. <%= text("AnonymousUserName",25,"","", "",False,True) %>
  76. </FONT>
  77. </TD>
  78. </TR>
  79. <TR>
  80. <TD VALIGN="top">
  81. <%= sFont("","","",True) %>
  82. <%= L_PASSWORD_TEXT %>&nbsp;&nbsp;&nbsp;
  83. </FONT>
  84. </TD>
  85. <TD VALIGN="top">
  86. <%= sFont("","","",True) %>
  87. <%= pword("AnonymousUserPass",25,"cnfrmAnonymousUserPass.value = '';","", "",False,True) %>
  88. </FONT>
  89. </TD>
  90. </TD>
  91. <TR>
  92. <TD VALIGN="top">
  93. <%= sFont("","","",True) %>
  94. <%= L_CONFIRMPASSWORD_TEXT %>&nbsp;&nbsp;&nbsp;
  95. </FONT>
  96. </TD>
  97. <TD VALIGN="top">
  98. <%= sFont("","","",True) %>
  99. <%= pword("cnfrmAnonymousUserPass",25,"chkPassword(this,AnonymousUserPass);","", "",False,True) %>
  100. </FONT>
  101. </TD>
  102. </TR>
  103. <TR>
  104. <TD VALIGN="top" COLSPAN = 2>
  105. <%= sFont("","","",True) %>
  106. <INPUT TYPE="checkbox" NAME="chkAnonymousPasswordSync" onClick="setCntrlState(!this.checked,AnonymousUserPass);setCntrlState(!this.checked,cnfrmAnonymousUserPass);">
  107. <%= L_PASSSYNCH_TEXT %>
  108. </TD>
  109. </TR>
  110. </TABLE>
  111. </TD>
  112. </TR>
  113. </TABLE>
  114. </FORM>
  115. </TD></TR>
  116. <TR>
  117. <TD HEIGHT=40 ALIGN="right" BACKGROUND="images/greycube.gif" BGCOLOR="#5F5F5F">
  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:parent.window.close();"><%= L_CANCEL_TEXT %></A></B>
  135. </FONT>
  136. </TD>
  137. </TR>
  138. </TABLE>
  139. </TD>
  140. </TR>
  141. </TABLE>
  142. <SCRIPT LANGUAGE="JavaScript">
  143. setFields();
  144. setCntrlState(!document.userform.chkAnonymousPasswordSync.checked,document.userform.AnonymousUserPass);
  145. setCntrlState(!document.userform.chkAnonymousPasswordSync.checked,document.userform.cnfrmAnonymousUserPass);
  146. </SCRIPT>
  147. </BODY>
  148. </HTML>
  149. <% end if %>