home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / pippki.jar / content / pippki / pref-masterpass.xul < prev    next >
Extensible Markup Language  |  2002-09-02  |  4KB  |  107 lines

  1. <?xml version="1.0"?> 
  2. <!-- 
  3.    - The contents of this file are subject to the Mozilla Public
  4.    - License Version 1.1 (the "License"); you may not use this file
  5.    - except in compliance with the License. You may obtain a copy of
  6.    - the License at http://www.mozilla.org/MPL/
  7.    - 
  8.    - Software distributed under the License is distributed on an "AS
  9.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    - implied. See the License for the specific language governing
  11.    - rights and limitations under the License.
  12.    - 
  13.    - The Original Code is mozilla.org code.
  14.    - 
  15.    - The Initial Developer of the Original Code is Netscape
  16.    - Communications Corp.  Portions created by Netscape are
  17.    - Copyright (C) 2001 Netscape Communications Corp.  All
  18.    - Rights Reserved.
  19.    - 
  20.    - Contributor(s):
  21.    -   Ian McGreer <mcgreer@netscape.com>
  22.   -->
  23.  
  24. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  25.  
  26. <!DOCTYPE page [
  27.   <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  28.   <!ENTITY % prefPass SYSTEM "chrome://pippki/locale/pref-masterpass.dtd">
  29.   %brandDTD;
  30.   %prefPass;
  31. ]>
  32.  
  33. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  34.       onload="parent.initPanel('chrome://pippki/content/pref-masterpass.xul'); onMasterPasswordLoad();"
  35.       headertitle="&lheader;">
  36.  
  37.   <script type="application/x-javascript" src="chrome://pippki/content/pref-masterpass.js"/>
  38.  
  39.   <!-- List elements to manage for prefs -->
  40.   <script type="application/x-javascript">
  41.   <![CDATA[
  42.     var _elementIDs = ["askEveryTimeHidden",
  43.                        "changePasswordButton",
  44.                        "resetPasswordButton",
  45.                        "passwordAskTimes",
  46.                        "passwordTimeout"];
  47.   ]]>
  48.   </script>
  49.             
  50.   <!-- Change Password -->
  51.   <groupbox>
  52.     <caption label="&changepassword.label;"/>
  53.     <description>&changepassword.text;</description>
  54.     <hbox align="center">
  55.       <button label="&changepassword.button;"
  56.               oncommand="ChangePW();"
  57.               id="changePasswordButton"
  58.               prefstring="security.disable_button.changePassword"/>
  59.     </hbox>
  60.   </groupbox>
  61.  
  62.   <!-- Password Prefs -->
  63.   <groupbox>
  64.  
  65.     <checkbox id="askEveryTimeHidden"
  66.               prefstring="signon.expireMasterPassword"
  67.               hidden="true"/>
  68.  
  69.     <caption label="&managepassword.label;"/>
  70.     <description>&managepassword.text;</description>
  71.     <hbox align="center">
  72.       <radiogroup id="passwordAskTimes"
  73.                   prefstring="security.ask_for_password"
  74.                   flex="1">
  75.         <!-- note that these values are different than what NSS uses, which
  76.              are (0, -1, 1) respectively -->
  77.         <radio value="0" label="&managepassword.askfirsttime;" id="askFirstTime"
  78.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  79.         <radio value="1" label="&managepassword.askeverytime;" id="askEveryTime"
  80.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  81.         <hbox align="center">
  82.           <radio value="2" label="&managepassword.asktimeout;" id="askTimeout"
  83.                  style="margin: 0px;" oncommand="changePasswordSettings(true);"/>
  84.           <textbox id="passwordTimeout" size="4"
  85.                    preftype="int"
  86.                    prefstring="security.password_lifetime"
  87.                    oninput="changePasswordSettings(false);"/>
  88.           <label value="&managepassword.timeout.unit;" style="margin: 4px;"/>
  89.         </hbox>
  90.       </radiogroup>
  91.     </hbox>
  92.   </groupbox>
  93.  
  94.   <!-- Reset Password -->
  95.   <groupbox>
  96.     <caption label="&resetpassword.label;"/>
  97.     <description>&resetpassword.text;</description>
  98.     <hbox align="center">
  99.       <button label="&resetpassword.button;"
  100.               oncommand="ResetPW();"
  101.               id="resetPasswordButton"
  102.               prefstring="security.disable_button.resetPassword"/>
  103.     </hbox>
  104.   </groupbox>
  105.  
  106. </page>
  107.