home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / pref / pref-offline.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  4KB  |  105 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.    Software distributed under the License is distributed on an "AS
  10.    IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    implied. See the License for the specific language governing
  12.    rights and limitations under the License.
  13.     
  14.    The Original Code is Mozilla Communicator client code, released
  15.    March 31, 1998.
  16.    
  17.    The Initial Developer of the Original Code is Netscape
  18.    Communications Corporation. Portions created by Netscape are
  19.    Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    Rights Reserved.
  21.    
  22.    Contributor(s): Mohan Bhamidipati (mohanb@netscape.com)
  23.  
  24.   -->
  25. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  26.  
  27. <!DOCTYPE page [
  28. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  29. %brandDTD;
  30. <!ENTITY % offlineDTD SYSTEM "chrome://communicator/locale/pref/pref-offline.dtd" >
  31. %offlineDTD;
  32. ]>
  33.  
  34. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  35.       onload="parent.initPanel('chrome://communicator/content/pref/pref-offline.xul');"
  36.       headertitle="&boxHeader;">
  37.  
  38.   <script type="application/x-javascript">
  39.   <![CDATA[
  40.     var _elementIDs = ["offlineStartupstate", "whengoingOnlinestate", "whengoingOfflinestate", "offlineCompactFolder", "offlineCompactFolderMin"];
  41.     
  42.   function Startup()
  43.   {
  44.     var aCheckbox = document.getElementById("offlineCompactFolder");
  45.     enableField(aCheckbox, "offlineCompactFolderMin", false);
  46.   }
  47.  
  48.   function enableField(aCheckbox, aNodeID, setFocus) 
  49.   { 
  50.      var aField = document.getElementById(aNodeID); 
  51.      if (aCheckbox.checked) 
  52.          aField.removeAttribute("disabled"); 
  53.      else 
  54.          aField.setAttribute("disabled", "true"); 
  55.     
  56.      if (!aField.disabled && setFocus)
  57.        aField.focus();
  58.   } 
  59.   ]]>
  60.   </script>
  61.  
  62. <groupbox>
  63.   <caption label="&rHeader;"/>
  64.  
  65.   <!-- uncomment when 82487 is fixed -->
  66.   <!-- <label value="&textStart;"/>
  67.   <radiogroup id="offlineStartupstate"
  68.               prefstring="offline.startup_state">
  69.     <radio value="0" label="&radioAskMode;"/>
  70.     <radio value="1" label="&radioUsePrev;"/>
  71.   </radiogroup> -->
  72.  
  73.   <separator class="thin"/>
  74.   <label value="&textGoingOnline;"/>
  75.     <radiogroup id="whengoingOnlinestate"
  76.                 prefstring="offline.send.unsent_messages">
  77.     <radio value="0" label="&radioAskUnsent;"/>
  78.     <radio value="1" label="&radioAutoSend;"/>
  79.     <radio value="2" label="&radioNotSend;"/>
  80.     </radiogroup>
  81.  
  82.   <separator class="thin"/>
  83.   <label value="&textGoingOffline;"/>
  84.      <radiogroup id="whengoingOfflinestate"
  85.                  prefstring="offline.download.download_messages">
  86.     <radio value="0" label="&radioAskDownload;"/>
  87.     <radio value="1" label="&radioAutoDownload;"/>
  88.     <radio value="2" label="&radioNotDownload;"/>
  89.     </radiogroup>
  90.  
  91. </groupbox>
  92.  
  93. <groupbox>
  94.     <caption label="&Diskspace;"/>        
  95.     <hbox align="center">
  96.         <checkbox id="offlineCompactFolder" label="&offlineCompact.label;" accesskey="&offlineCompact.accesskey;"
  97.             prefstring="mail.prompt_purge_threshhold"
  98.             oncommand="enableField(this,'offlineCompactFolderMin',true);"/> 
  99.         <textbox id="offlineCompactFolderMin" size="5" value="100"
  100.             preftype="int" prefstring="mail.purge_threshhold"/>
  101.         <label value="&kb.label;"/>
  102.     </hbox>
  103. </groupbox>
  104. </page>
  105.