home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / cookie / pref-cookies.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-21  |  3.9 KB  |  101 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    The contents of this file are subject to the Netscape Public
  5.    License Version 1.1 (the "License"); you may not use this file
  6.    except in compliance with the License. You may obtain a copy of
  7.    the License at http://www.mozilla.org/NPL/
  8.     
  9.    implied. See the License for the specific language governing
  10.    rights and limitations under the License.
  11.     
  12.    The Original Code is Mozilla Communicator client code, released
  13.    March 31, 1998.
  14.    
  15.    The Initial Developer of the Original Code is Netscape
  16.    Communications Corporation. Portions created by Netscape are
  17.    Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.    Rights Reserved.
  19.    
  20.    Contributor(s):
  21.      Hσkan Waara <hwaara@chello.se>
  22.      Peter Annema <disttsc@bart.nl>
  23.   -->
  24.  
  25. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  26. <?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
  27.  
  28. <!DOCTYPE window SYSTEM "chrome://cookie/locale/pref-cookies.dtd">
  29.  
  30. <window xmlns:html="http://www.w3.org/1999/xhtml" id="cookieWindow"
  31.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32.         class="color-dialog"
  33.         orient="vertical"
  34.         onload="init();">
  35.  
  36.   <script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
  37.  
  38.   <script type="application/x-javascript">
  39.   <![CDATA[
  40.  
  41.   var _elementIDs = ["networkCookieBehaviour", "networkWarnAboutCookies"];
  42.  
  43.   function init()
  44.   {
  45.     parent.initPanel('chrome://cookie/content/pref-cookies.xul');
  46.  
  47.     var enabled = document.getElementById("networkCookieBehaviour").value != "2";
  48.     setWarnAboutCookiesEnabled(enabled);
  49.   }
  50.  
  51.   function setWarnAboutCookiesEnabled(aEnabled)
  52.   {
  53.     var warnCheckbox = document.getElementById("networkWarnAboutCookies");
  54.     warnCheckbox.disabled = !aEnabled;
  55.     if (parent.hPrefWindow.getPrefIsLocked(warnCheckbox.getAttribute("prefstring")) )
  56.       warnCheckbox.disabled = true;
  57.   }
  58.  
  59.   ]]>
  60.   </script>
  61.  
  62.   <hbox class="box-smallheader" id="cookieHeader" title="&lHeader;"/>
  63.  
  64.   <groupbox orient="vertical">
  65.     <label value="&cookiePolicy.label;"/>
  66.  
  67.     <html>&cookieDetails;</html>
  68.  
  69.     <radiogroup id="networkCookieBehaviour" orient="vertical" autostretch="never"
  70.                 pref="true" preftype="int" prefstring="network.cookie.cookieBehavior"
  71.                 prefattribute="value">
  72.       <radio group="networkCookieBehaviour" value="2" label="&disableCookies.label;"
  73.              accesskey="&disableCookies.accesskey;" oncommand="setWarnAboutCookiesEnabled(false);"/>
  74.       <radio group="networkCookieBehaviour" value="1" label="&accOrgCookiesRadio.label;"
  75.              accesskey="&accOrgCookiesRadio.accesskey;" oncommand="setWarnAboutCookiesEnabled(true);"/>
  76.       <radio group="networkCookieBehaviour" value="0" label="&accAllCookiesRadio.label;"
  77.              accesskey="&accAllCookiesRadio.accesskey;" oncommand="setWarnAboutCookiesEnabled(true);"/>
  78.     </radiogroup>
  79.  
  80.     <separator/>
  81.  
  82.     <hbox autostretch="never">
  83.       <checkbox id="networkWarnAboutCookies" label="&warnAboutCookies.label;" accesskey="&warnAboutCookies.accesskey;"
  84.                 pref="true" preftype="bool" prefstring="network.cookie.warnAboutCookies"
  85.                 prefattribute="checked"/>
  86.     </hbox>
  87.  
  88.     <separator/>
  89.  
  90.     <hbox pack="end">
  91.       <button class="dialog" label="&viewCookies.label;" accesskey="&viewCookies.accesskey;" oncommand="viewCookies();"
  92.               id="viewCookieButton" pref="true" preftype="bool"
  93.               prefstring="pref.advanced.cookies.disable_button.view_cookies" prefattribute="disabled"/>
  94.       <button class="dialog" label="&viewTutorial.label;" accesskey="&viewTutorial.accesskey;" oncommand="viewTutorial();"
  95.               id="moreInformation" pref="true" preftype="bool"
  96.               prefstring="pref.advanced.cookies.disable_button.more_info" prefattribute="disabled"/>
  97.     </hbox>
  98.   </groupbox>
  99.  
  100. </window>
  101.