home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / nvu / nvu-1.0-cs-CZ.win32.installer.exe / chrome / pippki.jar / content / pippki / pref-masterpass.xul < prev    next >
Extensible Markup Language  |  2003-02-24  |  4KB  |  109 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.               accesskey="&changepassword.accesskey;"
  59.               prefstring="security.disable_button.changePassword"/>
  60.     </hbox>
  61.   </groupbox>
  62.  
  63.   <!-- Password Prefs -->
  64.   <groupbox>
  65.  
  66.     <checkbox id="askEveryTimeHidden"
  67.               prefstring="signon.expireMasterPassword"
  68.               hidden="true"/>
  69.  
  70.     <caption label="&managepassword.label;"/>
  71.     <description>&managepassword.text;</description>
  72.     <hbox align="center">
  73.       <radiogroup id="passwordAskTimes"
  74.                   prefstring="security.ask_for_password"
  75.                   flex="1">
  76.         <!-- note that these values are different than what NSS uses, which
  77.              are (0, -1, 1) respectively -->
  78.         <radio value="0" label="&managepassword.askfirsttime;" id="askFirstTime"
  79.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  80.         <radio value="1" label="&managepassword.askeverytime;" id="askEveryTime"
  81.                style="margin: 0px;" oncommand="changePasswordSettings(false);"/>
  82.         <hbox align="center">
  83.           <radio value="2" label="&managepassword.asktimeout;" id="askTimeout"
  84.                  style="margin: 0px;" oncommand="changePasswordSettings(true);"/>
  85.           <textbox id="passwordTimeout" size="4"
  86.                    preftype="int"
  87.                    prefstring="security.password_lifetime"
  88.                    oninput="changePasswordSettings(false);"/>
  89.           <label value="&managepassword.timeout.unit;" style="margin: 4px;"/>
  90.         </hbox>
  91.       </radiogroup>
  92.     </hbox>
  93.   </groupbox>
  94.  
  95.   <!-- Reset Password -->
  96.   <groupbox>
  97.     <caption label="&resetpassword.label;"/>
  98.     <description>&resetpassword.text;</description>
  99.     <hbox align="center">
  100.       <button label="&resetpassword.button;"
  101.               oncommand="ResetPW();"
  102.               id="resetPasswordButton"
  103.               accesskey="&resetpassword.accesskey;"
  104.               prefstring="security.disable_button.resetPassword"/>
  105.     </hbox>
  106.   </groupbox>
  107.  
  108. </page>
  109.