home *** CD-ROM | disk | FTP | other *** search
/ PC Advisor 2005 August / PCADVD_121.iso / internet / nsb-setup.exe / chrome / browser.jar / content / browser / pref / pref-masterpass.xul < prev    next >
Encoding:
Extensible Markup Language  |  2004-11-25  |  2.3 KB  |  75 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <!DOCTYPE window [
  6. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  7. %brandDTD;
  8. <!ENTITY % prefMasterpassDTD SYSTEM "chrome://browser/locale/pref/pref-masterpass.dtd" >
  9. %prefMasterpassDTD;
  10. ]>
  11.  
  12. <dialog id="set_password" title="&setPassword.title;"
  13.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  14.   style="width: 35em;" 
  15.   ondialogaccept="setPassword();" 
  16.   onload="onLoad();">
  17.  
  18. <script type="application/x-javascript" src="chrome://browser/content/pref/pref-masterpass.js"/>
  19. <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  20. <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  21.  
  22. <stringbundle id="prefBundle" src="chrome://browser/locale/pref/prefutilities.properties"/>
  23.  
  24.  
  25. <description>&masterPasswordDescription.label;</description>
  26.  
  27. <vbox style="margin: 5px;" flex="1">
  28. <groupbox>
  29. <grid>
  30.  <columns>
  31.    <column/>
  32.    <column/> 
  33.  </columns>
  34.  <rows>
  35.    <row>
  36.      <label value="&setPassword.oldPassword.label;"/> 
  37.      <textbox id="oldpw" type="password"/>
  38.      <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
  39.           & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
  40.           'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
  41.           than one tokens, some initialized and some not - does not work properly. So, 
  42.           either the textbox 'oldpw' or the textbox 'message' would be displayed, 
  43.           depending on the state of the token selected 
  44.      -->
  45.      <textbox id="message" disabled="true" />
  46.    </row>
  47.    <row>
  48.      <label value="&setPassword.newPassword.label;"/> 
  49.      <textbox id="pw1" type="password" 
  50.        oninput="setPasswordStrength(); checkPasswords();"/> 
  51.    </row>
  52.    <row>
  53.      <label value="&setPassword.reenterPassword.label;"/> 
  54.      <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
  55.    </row>
  56.  </rows>
  57. </grid>
  58. </groupbox>
  59.  
  60. <groupbox>
  61.  <caption label="&setPassword.meter.label;"/>
  62.  <progressmeter id="pwmeter" mode="determined" 
  63.                   value="0"/>
  64. </groupbox>
  65.  
  66. <keyset id="keys">
  67.   <key id="esc-key"    keycode="VK_ESCAPE" oncommand="window.close();"/>
  68. </keyset>
  69.  
  70. </vbox>
  71.  
  72. <description class="header">&masterPasswordWarning.label;</description>
  73.  
  74. </dialog>
  75.