home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / pippki.jar / content / pippki / setp12password.xul < prev    next >
Extensible Markup Language  |  2002-02-27  |  3KB  |  87 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.    -   Bob Lord <lord@netscape.com>
  22.    -   Terry Hayes <thayes@netscape.com>
  23.    -   Ian McGreer <mcgreer@netscape.com>
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  27.  
  28. <!DOCTYPE window SYSTEM "chrome://pippki/locale/pippki.dtd">
  29.  
  30. <window id="setp12password" title="&pkcs12.setpassword.title;"
  31.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"      
  32.   style="width: 48em;"
  33.   onload="onP12Load();">
  34.  
  35.   <script type="application/x-javascript" src="chrome://pippki/content/password.js"/>
  36.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  37.  
  38.  
  39.   <vbox style="margin: 5px;" flex="1">
  40.     <description>&pkcs12.setpassword.message;</description>
  41.     <separator />
  42.     <grid>
  43.       <columns> <column/> <column/> </columns>
  44.       <rows>
  45.         <row>
  46.           <label value="&pkcs12.setpassword.label1;"/> 
  47.           <textbox id="pw1" type="password" 
  48.                    onkeypress="setPasswordStrength(); checkPasswords();"/> 
  49.         </row>
  50.         <row>
  51.           <label value="&pkcs12.setpassword.label2;"/> 
  52.           <textbox id="pw2" type="password" 
  53.                    onkeypress="checkPasswords();"/>  
  54.         </row>
  55.       </rows>
  56.     </grid>
  57.     <separator/>
  58.     <description>&pkcs12.setpassword.reminder;</description>
  59.     <separator/>
  60.     <label value="&setPassword.meter.label;"/>
  61.     <grid style="margin: 4px;">
  62.       <rows> <row/> </rows>
  63.       <columns>
  64.         <column style="margin: 5px;">
  65.           <progressmeter flex="1" id="pwmeter" mode="determined" value="0%"
  66.                          orient="horizontal" progresstext="Loading"
  67.                          style="width: 20em; foreground-color: red"/> 
  68.         </column>
  69.       </columns>
  70.     </grid>
  71.     <keyset id="keys">
  72.       <key id="enter-key"  keycode="VK_ENTER"  oncommand="if (!document.getElementById('ok-button').disabled) setP12Password();"/>
  73.       <key id="return-key" keycode="VK_RETURN" oncommand="if (!document.getElementById('ok-button').disabled) setP12Password();"/>
  74.       <key id="esc-key"    keycode="VK_ESCAPE" oncommand="window.close();"/>
  75.     </keyset>
  76.     <hbox>
  77.       <button id="ok-button" label="&ok.label;"
  78.               oncommand="setP12Password();" disabled="true"/> 
  79.       <button id="cancel-button" label="&cancel.label;"
  80.               oncommand="window.close();"/> 
  81.       <button id="help-button" label="&help.label;"
  82.               oncommand="openHelp('cert_backup_pwd');"/> 
  83.     </hbox>
  84.   </vbox>
  85.   
  86. </window>
  87.