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.

195 lines
5.3 KiB

  1. <HTML DIR=LTR id=dlgPrivacyPolicy>
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  3. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  4. <HEAD>
  5. <TITLE id=dialogTitle>
  6. Privacy Policy
  7. </TITLE>
  8. <STYLE>
  9. HTML { font-family: MS Shell Dlg; font-size: 8pt; width: 52.65em; height: 42.3em; }
  10. BODY { font-family: MS Shell Dlg; font-size: 8pt; }
  11. FIELDSET { font-family: MS Shell Dlg; font-size: 8pt; }
  12. TABLE { font-family: MS Shell Dlg; font-size: 8pt; }
  13. INPUT { font-family: MS Shell Dlg; font-size: 8pt; }
  14. LABEL { font-family: MS Shell Dlg; font-size: 8pt; }
  15. BUTTON { font-family: MS Shell Dlg; font-size: 8pt; width: 7 em; height: 2.2em; }
  16. </STYLE>
  17. <SCRIPT language="JavaScript">
  18. var siteData = window.dialogArguments;
  19. window.returnValue = 0;
  20. function okButtonClick()
  21. {
  22. if( radDefault.checked == true)
  23. {
  24. window.returnValue = 1;
  25. }
  26. else if (radAccept.checked == true)
  27. {
  28. window.returnValue = 2;
  29. }
  30. else if (radReject.checked == true)
  31. {
  32. window.returnValue = 3;
  33. }
  34. else
  35. {
  36. //strange..
  37. window.returnValue = 666;
  38. }
  39. //close the dialog
  40. window.close();
  41. }
  42. function cancelButtonClick()
  43. {
  44. //this return value means that the Cancel button was clicked
  45. window.returnValue = 0;
  46. //close the dialog
  47. window.close();
  48. }
  49. function writePathQuoted()
  50. {
  51. document.write('"');
  52. document.write(siteData.url);
  53. document.write('"');
  54. }
  55. function writeMinimimumCookieDomainQuoted()
  56. {
  57. document.write('"');
  58. document.write(siteData.cookieUrl);
  59. document.write('"');
  60. }
  61. function checkCurrentPreference()
  62. {
  63. if( siteData.acceptRejectOrDefault == "a")
  64. radAccept.checked = true;
  65. else if( siteData.acceptRejectOrDefault == "r")
  66. radReject.checked = true;
  67. else if( siteData.acceptRejectOrDefault == "d")
  68. radDefault.checked = true;
  69. if( siteData.fixedAcceptRejectOrDefault)
  70. {
  71. radAccept.disabled = true;
  72. radReject.disabled = true;
  73. radDefault.disabled = true;
  74. }
  75. }
  76. function CheckIfPolicyFound()
  77. {
  78. var policyDone = siteData.flagPolicyHuntDone;
  79. document.body.all("fldPolicy").children("policyframe").src = siteData.urlPolicyHuntView;
  80. if( policyDone == false)
  81. setTimeout( CheckIfPolicyFound, 200);
  82. }
  83. function BodyOnKeyPress(nCode)
  84. {
  85. if (nCode == 27) //ESC
  86. {
  87. cancelButtonClick();
  88. }
  89. else if (nCode == 13) //Enter
  90. {
  91. okButtonClick();
  92. }
  93. }
  94. </SCRIPT>
  95. </HEAD>
  96. <BODY ID=bdy style="color: windowtext; background: threedface; " scroll=no
  97. onkeypress="BodyOnKeyPress(event.keyCode)" >
  98. <TABLE style="width:100%;height:100%">
  99. <TR>
  100. <TD>
  101. <FIELDSET align=absMiddle id=fldPolicy style="border: 0;height:100%">
  102. <IFRAME NAME="policyframe" id=policyframe application="no"
  103. style="width:100%; height:100%; background: threedface; ">
  104. </IFRAME>
  105. </FIELDSET>
  106. </TD>
  107. </TR>
  108. <TR>
  109. <TD style="height:1%">
  110. <TABLE style="width:100%">
  111. <TR>
  112. <TD>
  113. <FIELDSET align=absMiddle id=fldPreference style="padding:1mm">
  114. <DIV id=lblQuery style="height: 1.5 em;">
  115. <p ID="query">
  116. How should cookies from <SCRIPT language="JavaScript">writeMinimimumCookieDomainQuoted();</SCRIPT> be handled?
  117. </p>
  118. </DIV>
  119. <TABLE CELLPADDING=0 CELLSPACING=0>
  120. <TR>
  121. <TD>
  122. &nbsp;&nbsp;&nbsp;<INPUT id=radDefault type=radio name=radPreference ACCESSKEY=p
  123. tabIndex=3 style="width: 1.2em; ">
  124. </TD>
  125. <TD>
  126. <LABEL ID=lblDefault FOR=radDefault>
  127. &nbsp;&nbsp;Com<u>p</u>are cookies' Privacy Policy to my settings.
  128. </LABEL>
  129. </TD>
  130. </TR>
  131. <TR>
  132. <TD>
  133. &nbsp;&nbsp;&nbsp;<INPUT id=radAccept type=radio name=radPreference ACCESSKEY=a
  134. tabIndex=4 style="width: 1.2em;">
  135. </TD>
  136. <TD>
  137. <LABEL ID=lblAccept FOR=radAccept>
  138. &nbsp;&nbsp;<u>A</u>lways allow this site to use cookies.
  139. </LABEL>
  140. </TD>
  141. </TR>
  142. <TR>
  143. <TD>
  144. &nbsp;&nbsp;&nbsp;<INPUT id=radReject type=radio name=radPreference ACCESSKEY=n
  145. tabIndex=5 style="width: 1.2em;">
  146. </TD>
  147. <TD>
  148. <LABEL ID=lblReject FOR=radReject>
  149. &nbsp;&nbsp;<u>N</u>ever allow this site to use cookies.
  150. </LABEL>
  151. <TD>
  152. </TR>
  153. </TABLE>
  154. </FIELDSET>
  155. </TD>
  156. <TD valign=top width="1%">
  157. <TABLE>
  158. <TR>
  159. <TD>
  160. <BUTTON id=btnOk onClick="okButtonClick()" tabIndex=1 ACCESSKEY=o type=submit>
  161. OK
  162. </BUTTON>
  163. </TD>
  164. </TR>
  165. <TR>
  166. <TD>
  167. <BUTTON id=btnCancel onClick="cancelButtonClick()" tabIndex=2 ACCESSKEY=c type=submit>
  168. Cancel
  169. </BUTTON>
  170. </TD>
  171. </TR>
  172. </TABLE>
  173. </TD>
  174. </TR>
  175. </TABLE>
  176. </TD>
  177. </TR>
  178. </TABLE>
  179. <SCRIPT language="JavaScript">
  180. checkCurrentPreference();
  181. CheckIfPolicyFound();
  182. </SCRIPT>
  183. </BODY>
  184. </HTML>